當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。