當前位置: 首頁>>代碼示例>>PHP>>正文


PHP interPool::getGerantsComboBox方法代碼示例

本文整理匯總了PHP中interPool::getGerantsComboBox方法的典型用法代碼示例。如果您正苦於以下問題:PHP interPool::getGerantsComboBox方法的具體用法?PHP interPool::getGerantsComboBox怎麽用?PHP interPool::getGerantsComboBox使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在interPool的用法示例。


在下文中一共展示了interPool::getGerantsComboBox方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: foreach

$nbre_periodes = $data["nbre_periodes"];
$trade_approbation = $data["trade_approbation"];
$trade_howto_switch_players = $data["trade_howto_switch_players"];
$date_debut_saison = $data["date_debut_saison"];
$match_max_trade_team = $data["match_max_trade_team"];
$can_trade_teams = $data["trade_teams"];
$ballotage_liste_IR = $data['ballotage_liste_IR'];
$salary_cap_enabled = $data['enable_salary_cap'];
$pts_vict_gardien = $data['pts_victoire_gardien'];
$pts_nulle_gardien = $data['pts_nulle_gardien'];
$pts_blanc_gardien = $data['pts_blanc_gardien'];
$trade_before_draft = $data['trade_before_draft'];
$trade_before_draft_dateBegin = $data['trade_before_draft_dateBegin'];
$trade_before_draft_dateEnd = $data['trade_before_draft_dateEnd'];
$trade_date_debut = $data['trade_date_debut'];
$dataComboBoxGerants = $pool->getGerantsComboBox($id_pool, $id_saison);
if ($cb_gerant_selected == "") {
    foreach ($dataComboBoxGerants as $value) {
        $valueA = explode(":", $value);
        $cbGerantId = $valueA[0];
        if ($cbGerantId == $gerant) {
            continue;
        }
        $id_gerant_for_id_gerant2 = $cbGerantId;
        $cb_gerant_selected = $cbGerantId;
        break;
    }
} else {
    $id_gerant_for_id_gerant2 = $cb_gerant_selected;
}
$old_id_proposition = "";
開發者ID:jfanctil,項目名稱:lamoria,代碼行數:31,代碼來源:tradecenter.php

示例2: foreach

 case "masseSalarialeGerants":
     echo "<TABLE cellpadding=0 cellspacing=0 border=0 align=\"center\" style=\"padding-top:10px;\">";
     echo "<tr>";
     echo "<TH CLASS=\"tableHeaderRoundCorner\" COLSPAN=50 style=\"font-size:16px;\">Masses salariales des listes de protection</TH>";
     echo "</tr>\n";
     echo "<tr>\n";
     echo "<TH CLASS=\"tableHeader1\">&nbsp;</TH>";
     echo "<TH CLASS=\"tableHeader1\" colspan=4>\$\$\$</TH>";
     echo "</tr>\n";
     echo "<tr>\n";
     echo "<TH CLASS=\"tableHeader1\">Gérant</TH>";
     foreach ($label_saison_id_A as $this_id_saison => $texte) {
         echo "<TH CLASS=\"tableHeader1\">{$texte}<br>(EQ,G,D,A)</TH>";
     }
     echo "</tr>\n";
     $ar_gerants = $pool->getGerantsComboBox($id_pool, $id_saison);
     foreach ($ar_gerants as $item) {
         $ar1 = explode(":", $item);
         $_id_gerant = $ar1[0];
         $_gerant_name = $ar1[1];
         $_gerant_logo = $ar1[2];
         // nombre de joueurs par position sur la liste de protection
         foreach (array($today_year, $today_year + 1, $today_year + 2, $today_year + 3) as $year_contrat_fin) {
             $nbre_tm_prot = 0;
             $nbre_g_prot = 0;
             $nbre_d_prot = 0;
             $nbre_f_prot = 0;
             $query = "select a.id_player,b.pos\n                              from joueurs_protection a, nhl_players b\n                              where\n                                   a.id_player = b.id\n                                   and a.id_pool = {$id_pool}\n                                   and a.saison_id = {$id_saison_2_use}\n                                   and a.gerant = {$_id_gerant}\n                                   and b.date_expiration = '2099-12-31'\n                                   and b.contrat_fin > '{$year_contrat_fin}'";
             $data = DB::dbSelect($query);
             foreach ($data as $itemA) {
                 switch ($itemA['pos']) {
開發者ID:jfanctil,項目名稱:lamoria,代碼行數:31,代碼來源:liste_protection.php


注:本文中的interPool::getGerantsComboBox方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。