本文整理汇总了PHP中interPool::writeBallotageReponse方法的典型用法代码示例。如果您正苦于以下问题:PHP interPool::writeBallotageReponse方法的具体用法?PHP interPool::writeBallotageReponse怎么用?PHP interPool::writeBallotageReponse使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类interPool
的用法示例。
在下文中一共展示了interPool::writeBallotageReponse方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
$nhl_team_as_gerant_name = $data["nhl_team_as_gerant_name"];
$nbre_periodes = $data[nbre_periodes];
$joueur_blesse_ballotage = $data["joueur_blesse_ballotage"];
$ballotage_hour_first_day = $pool->today . " " . $data["ballotage_hour_first_day"];
$salary_cap_enabled = $data["enable_salary_cap"];
$salary_cap = $data["salary_cap"];
$salary_floor = $data["salary_floor"];
$hour_max_last_day = $pool->today . " " . $data["ballotage_hour_last_day"];
$str = "";
// Traitement du formulaire
if (isset($_REQUEST["submit"])) {
$ballotage_id = $_REQUEST["ballotage_id"];
$reponseGerant = $_REQUEST["choixBallotage{$ballotage_id}"];
if ($reponseGerant != "") {
if ($reponseGerant == 2) {
$pool->writeBallotageReponse($id_pool, $ballotage_id, "N", $gerant, $id_saison, $periode, -1, $salary_cap_enabled, $salary_cap, $salary_floor);
} else {
$id_player_retour = $_REQUEST["cb_ballotage{$ballotage_id}"];
if ($id_player_retour != "") {
$rtn = $pool->writeBallotageReponse($id_pool, $ballotage_id, "Y", $gerant, $id_saison, $periode, $id_player_retour, $salary_cap_enabled, $salary_cap, $salary_floor);
if ($rtn == "non") {
$message = "La récupération d'un joueur au ballotage a été refusé, car le plafond ou le plancher salarial n'était pas respecté.";
}
}
}
}
}
if ($pool->isLastDayOfPeriod($id_pool, $periode, $id_saison) && $pool->todayDate->format('Y-m-d H:i:s') > $hour_max_last_day) {
$disabled = "disabled";
}
// update du champ ballotage_vu de la table accounts_detail
示例2: explode
if ($gerant_sel != $gerant) {
$disabled = "disabled";
}
if ($periode_sel < $periode) {
$disabled = "disabled";
}
if ($disabled == "disabled") {
$cb_disable = "disabled";
}
// Traitement du formulaire
if (isset($_REQUEST["submit"])) {
$ballotage_id = $_REQUEST["ballotage_id"];
$reponseGerant = $_REQUEST["choixBallotage{$ballotage_id}"];
if ($reponseGerant != "") {
if ($reponseGerant == 2) {
$pool->writeBallotageReponse($id_pool, $ballotage_id, "N", $gerant, $id_saison, $periode);
} else {
$id_player_retour = $_REQUEST["cb_ballotage{$ballotage_id}"];
if ($id_player_retour != "") {
$pool->writeBallotageReponse($id_pool, $ballotage_id, "Y", $gerant, $id_saison, $periode, $id_player_retour);
}
}
}
}
// rיcupיrer certaines informations du pool
$data = $pool->getConfigPool($id_pool, $id_saison);
$nhl_team_as_gerant_name = $data["nhl_team_as_gerant_name"];
$nbre_periodes = $data[nbre_periodes];
$joueur_blesse_ballotage = $data["joueur_blesse_ballotage"];
$ballotage_hour_first_day = $data["ballotage_hour_first_day"];
$hourA = explode(":", $ballotage_hour_first_day);