本文整理匯總了PHP中interPool::getPlayersTradeGrandClub方法的典型用法代碼示例。如果您正苦於以下問題:PHP interPool::getPlayersTradeGrandClub方法的具體用法?PHP interPool::getPlayersTradeGrandClub怎麽用?PHP interPool::getPlayersTradeGrandClub使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類interPool
的用法示例。
在下文中一共展示了interPool::getPlayersTradeGrandClub方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
echo "<TR class=\"tr_title\">\n";
echo "<TH CLASS=\"tableHeaderRoundCorner\" COLSPAN=50 style=\"font-size:16px;\">Grand Club</th>\n";
echo "</tr>\n";
echo "</table>\n";
$compteur = 0;
foreach (array('TM', 'G', 'D', 'F') as $pos_en_trait) {
if ($gerant_logged == $gerant_sel) {
echo "<div id=\"equipeGerant_{$pos_en_trait}\" class=\"trade_prop_gerant_{$pos_en_trait}\" style=\"margin-left:10px;\">\n";
// pour que le 'outer' div ait une certaine hauteur:
echo "<p> </p>\n";
} else {
echo "<div id=\"equipeAdv_{$pos_en_trait}\" class=\"trade_prop_adv_{$pos_en_trait}\" style=\"margin-left:10px;\">\n";
// pour que le 'outer' div ait une certaine hauteur:
echo "<p> </p>\n";
}
$playersGCgerant1 = $pool->getPlayersTradeGrandClub($id_pool, $gerant_sel, $periode, $id_saison, $can_trade_teams, $trade_howto_switch_players, $pos_en_trait);
$last_pos = "";
foreach ($playersGCgerant1 as $value) {
$valueA = split(":", $value);
$rank = $valueA[0];
$id_player = $valueA[1];
$first_name = $valueA[2];
$last_name = $valueA[3];
$pos = $valueA[4];
$team_abbr = $valueA[5];
$total_pts = $valueA[6];
$pj_pool = $valueA[7];
$trading_block = $valueA[8];
$team_logo = $valueA[9];
$team_logo2 = $valueA[10];
$url_photo = $valueA[11];
示例2: foreach
<FORM NAME="form_trading_block" METHOD="post" ACTION="<?php
echo $_SERVER['PHP_SELF'];
?>
">
<center>
<TABLE ALIGN="center" cellpadding=0 cellspacing=0>
<TR>
<TD>
<INPUT TYPE="HIDDEN" NAME="tb_action" />
<SELECT ID="tb_joueurs_club" NAME="tb_joueurs_club[]" SIZE=36 multiple >
<OPTGROUP LABEL="Grand Club">
<?php
foreach (array('TM', 'G', 'D', 'F') as $pos_en_trait) {
$playersGC = $pool->getPlayersTradeGrandClub($id_pool, $gerant_sel, $periode, $id_saison, $can_trade_teams, $trade_howto_switch_players, $pos_en_trait, $ballotage_liste_IR);
$last_pos = "";
foreach ($playersGC as $value) {
$valueA = split(":", $value);
$rank = $valueA[0];
$id_player = $valueA[1];
$first_name = $valueA[2];
$last_name = $valueA[3];
$pos = $valueA[4];
$team_abbr = $valueA[5];
$total_pts = $valueA[6];
$pj_pool = $valueA[7];
$trading_block = $valueA[8];
if ($pj_pool == "") {
$pj_pool = 0;
}