本文整理匯總了PHP中interPool::getPlayersTradingBlock方法的典型用法代碼示例。如果您正苦於以下問題:PHP interPool::getPlayersTradingBlock方法的具體用法?PHP interPool::getPlayersTradingBlock怎麽用?PHP interPool::getPlayersTradingBlock使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類interPool
的用法示例。
在下文中一共展示了interPool::getPlayersTradingBlock方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
$dateEndMonth = $pool->conv_mois_numeric_to_text($dateEndMonth);
$dateEndDay = $_mydate->format('j');
$dateEndDayText = $_mydate->format('l');
$dateEndDayText = $pool->date_getJour($dateEndDayText);
$dateEndText = "{$dateEndDayText}, {$dateEndDay} {$dateEndMonth}";
echo "\n <BR>\n <CENTER>\n <FONT STYLE=\"font-family:Tahoma, Verdana;font-size:18px\">La période de transaction 'avant repêchage' aura lieu du <font style=\"color:red;\">{$dateBeginText}.</font> au <font style=\"color:red;\">{$dateEndText}.</font></FONT>\n </CENTER>\n ";
return;
}
if ($pool->today > $trade_before_draft_dateEnd && $pool->today < $trade_date_debut) {
echo "\n <BR>\n <CENTER>\n <FONT STYLE=\"font-family:Tahoma, Verdana;font-size:18px\">TradeCenter sera disponible à compter du début de la saison.</FONT>\n </CENTER>\n ";
return;
}
}
//}
// Affichage du tableau de "trading block"
$dataA = $pool->getPlayersTradingBlock($id_pool, $id_saison, $periode);
if (count($dataA) > 0) {
echo "<br>\n";
echo "<table cellpadding=0 cellspacing=0 border=0 style=\"margin-left:10px;\">\n";
echo "<tr>\n";
$title = "Joueurs que chaque gérant est prêt à échanger";
echo "<th CLASS=\"tableHeaderRoundCorner\" COLSPAN=50 style=\"font-size:14px;\">Trading Block" . "<img src=\"/images/ObjectIconInfo.gif\" class=\"info_bulle_tradingBlock\" title=\"{$title}\" style=\"margin-left:10px;vertical-align:bottom;\" /></th>\n";
echo "</tr>\n";
echo "<tr>\n";
foreach ($dataA as $itemA) {
$this_gerant = $itemA['gerant'];
$this_gerantA[] = $this_gerant;
$this_dataGerantA[] = $itemA;
}
$prev_gerant = "";
foreach ($this_gerantA as $index => $this_gerant) {