本文整理汇总了PHP中interPool::getPlayersTradingBlockGerant方法的典型用法代码示例。如果您正苦于以下问题:PHP interPool::getPlayersTradingBlockGerant方法的具体用法?PHP interPool::getPlayersTradingBlockGerant怎么用?PHP interPool::getPlayersTradingBlockGerant使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类interPool
的用法示例。
在下文中一共展示了interPool::getPlayersTradingBlockGerant方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
echo "<OPTION VALUE=\"{$rank}-{$id_player}-{$pos}-CE\" style=\"padding-right:10px;padding-top:2px;{$style_color}\" " . "ondblclick='document.form_trading_block.submit();'>{$first_name['0']}. {$last_name} ({$pos}) - {$team_abbr} - " . "{$total_pts} pts</OPTION>\n";
}
?>
</OPTGROUP>
</SELECT>
</td>
<TD VALIGN="top" STYLE="padding-top:10px;padding-left:20px;padding-right:20px;">
<input type="button" class="Btn1" value=">>" onclick="document.form_trading_block.tb_action.value='add';document.form_trading_block.submit();" />
<BR><BR>
<input type="button" class="Btn1" value="<<" onclick="document.form_trading_block.tb_action.value='remove';document.form_trading_block.submit();" />
</TD>
<TD VALIGN="top" ALIGN="right">
<SELECT ID="joueurs_in_trading_block" NAME="joueurs_in_trading_block[]" SIZE=10 multiple >
<OPTGROUP LABEL="Trading Block" STYLE="padding-right:10px;">
<?php
$playersOnTradingBlock = $pool->getPlayersTradingBlockGerant($id_pool, $id_saison, $periode, $gerant_sel);
foreach ($playersOnTradingBlock as $valueA) {
$id_player = $valueA['id_player'];
$first_name = $valueA['first_name'];
$last_name = $valueA['last_name'];
$pos = $valueA['pos'];
$team_abbr = $valueA['abbr'];
$total_pts = $valueA['pts_nhl'];
$rank = $valueA['rank'];
if ($pos == "TM") {
echo "<OPTION VALUE=\"{$rank}-{$id_player}-{$pos}-GC\" style=\"padding-right:10px;padding-top:2px;{$style_color}\" " . "ondblclick='document.form_trading_block.submit();'>{$last_name} ({$pos}) - {$team_abbr} - " . "{$total_pts} pts</OPTION>\n";
} else {
echo "<OPTION VALUE=\"{$rank}-{$id_player}-{$pos}-GC\" style=\"padding-right:10px;padding-top:2px;{$style_color}\" " . "ondblclick='document.form_trading_block.submit();'>{$first_name['0']}. {$last_name} ({$pos}) - {$team_abbr} - " . "{$total_pts} pts</OPTION>\n";
}
}
/*