本文整理匯總了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";
}
}
/*