当前位置: 首页>>代码示例>>PHP>>正文


PHP interPool::draftOnlineWithSalaryCap_v2方法代码示例

本文整理汇总了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) {
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:draft_online_main.php

示例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\">&nbsp;</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);
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:showListePlayers.php


注:本文中的interPool::draftOnlineWithSalaryCap_v2方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。