本文整理汇总了PHP中interPool::draftOnlineWithSalaryCap_v2方法的典型用法代码示例。如果您正苦于以下问题:PHP interPool::draftOnlineWithSalaryCap_v2方法的具体用法?PHP interPool::draftOnlineWithSalaryCap_v2怎么用?PHP interPool::draftOnlineWithSalaryCap_v2使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类interPool
的用法示例。
在下文中一共展示了interPool::draftOnlineWithSalaryCap_v2方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
$defenseurs_rfa_A = $sess->getSessVar('defenseurs_rfa_A',array());
$gardiens_7000000_A = $sess->getSessVar('gardiens_7000000_A',array());
$gardiens_6000000_A = $sess->getSessVar('gardiens_6000000_A',array());
$gardiens_5000000_A = $sess->getSessVar('gardiens_5000000_A',array());
$gardiens_4000000_A = $sess->getSessVar('gardiens_4000000_A',array());
$gardiens_3000000_A = $sess->getSessVar('gardiens_3000000_A',array());
$gardiens_2000000_A = $sess->getSessVar('gardiens_2000000_A',array());
$gardiens_1000000_A = $sess->getSessVar('gardiens_1000000_A',array());
$gardiens_0000000_A = $sess->getSessVar('gardiens_0000000_A',array());
$gardiens_ufa_A = $sess->getSessVar('gardiens_ufa_A',array());
$gardiens_rfa_A = $sess->getSessVar('gardiens_rfa_A',array());
$allPlayersA = $sess->getSessVar('allPlayersA',array());
*/
$dataA = $pool->draftOnlineWithSalaryCap_v2($gerant, $id_pool, $id_saison, "avants", 100000, 99999999, $pts_so_g);
foreach ($dataA as $itemA) {
$this_salary = $itemA['salary'];
if ($this_salary > 6999999) {
$forwards_7000000_A[] = $itemA;
} elseif ($this_salary > 5999999) {
$forwards_6000000_A[] = $itemA;
} elseif ($this_salary > 4999999) {
$forwards_5000000_A[] = $itemA;
} elseif ($this_salary > 3999999) {
$forwards_4000000_A[] = $itemA;
} elseif ($this_salary > 2999999) {
$forwards_3000000_A[] = $itemA;
} elseif ($this_salary > 1999999) {
$forwards_2000000_A[] = $itemA;
} elseif ($this_salary > 999999) {
示例2: switch
echo "<img src=\"/images/ObjectIconInfo.gif\" title=\"{$title}\" class=\"info_bulle_joueur\" style=\"margin-left:10px;vertical-align:bottom;\"/>";
echo "</th>\n";
echo "<TH CLASS=\"tableHeader1\">Éq.</TH>\n";
echo "<TH CLASS=\"tableHeader1\">Pos</TH>\n";
echo "<TH CLASS=\"tableHeader1\">PJ</TH>\n";
echo "<TH CLASS=\"tableHeader1\">Pts</TH>\n";
echo "<TH CLASS=\"tableHeader1\">Préd.</TH>\n";
for ($i = $id_saison; $i < $id_saison + 3; $i++) {
echo "<TH CLASS=\"tableHeader1\">" . $saisonNameA[$i] . "</TH>\n";
}
echo "<TH CLASS=\"tableHeader1\">Stats</TH>\n";
echo "<TH CLASS=\"tableHeader2\"> </TH>\n";
echo "</TR>\n";
switch ($pos2get) {
case "F":
$dataA = $pool->draftOnlineWithSalaryCap_v2($gerant, $id_pool, $id_saison, "avants", $from_salary, $to_salary, $pts_so_g);
break;
case "D":
$dataA = $pool->draftOnlineWithSalaryCap_v2($gerant, $id_pool, $id_saison, "defenseurs", $from_salary, $to_salary, $pts_so_g);
break;
case "G":
$dataA = $pool->draftOnlineWithSalaryCap_v2($gerant, $id_pool, $id_saison, "gardiens", $from_salary, $to_salary, $pts_so_g);
break;
case "UFA":
$dataA = $pool->draftOnlineWithSalaryCap_v2($gerant, $id_pool, $id_saison, "all", "ufa", 0, $pts_so_g);
break;
case "RFA":
$dataA = $pool->draftOnlineWithSalaryCap_v2($gerant, $id_pool, $id_saison, "all", "rfa", $to_salary, $pts_so_g);
break;
case "FAV":
$dataA = $pool->draftOnlineWithSalaryCap_v2($gerant, $id_pool, $id_saison, "fav", 0, 0, $pts_so_g);