本文整理汇总了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 = "";
示例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\"> </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']) {