本文整理汇总了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;
}