本文整理汇总了PHP中interPool::getDatesPeriode方法的典型用法代码示例。如果您正苦于以下问题:PHP interPool::getDatesPeriode方法的具体用法?PHP interPool::getDatesPeriode怎么用?PHP interPool::getDatesPeriode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类interPool
的用法示例。
在下文中一共展示了interPool::getDatesPeriode方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: exit
echo "\nUsage: " . $_SERVER['argv'][0] . " -p id_pool -s id_saison\n\n";
exit(1);
}
$upd = new updateClass();
$pool = new interPool();
$pool->dbConnect();
// nom du pool selon son id...
$query = "select name from pools where id = {$id_pool}";
$resultID = mysql_query($query, $pool->handle);
$data = mysql_fetch_array($resultID, MYSQL_ASSOC);
mysql_free_result($resultID);
$poolName = $data['name'];
$pool->dbClose();
$pool->dbConnect(strtolower($poolName));
$periode = $pool->getPeriode($id_pool, $id_saison);
$datesPeriode = $pool->getDatesPeriode($id_pool, $periode, $id_saison);
$dateDebutPeriode = $datesPeriode["date_begin"];
$nbre_per = $pool->getNombrePeriodes($id_pool, $id_saison);
$periode_ori = $periode;
if ($periode > $nbre_per) {
$periode = $nbre_per;
}
$dates = $pool->getDatesPeriode($id_pool, $periode, $id_saison);
$date_debut = $dates["date_begin"];
$date_end = $dates["date_end"];
if ($periode_ori > $nbre_per) {
$date = $date_debut;
} else {
$date = $pool->today;
}
$show_per_prec = FALSE;
示例2: interPool
$poolName = $_GET["poolName"];
$gerant_sel = $gerant;
$pool = new interPool();
$pool->dbConnect(strtolower($poolName));
$nhl_team_as_gerant_name = "Y";
$data = $pool->getConfigPool($id_pool, $id_saison);
$nbre_periodes = $data["nbre_periodes"];
if ($periode > $nbre_periodes) {
$periode_sel = $nbre_periodes;
} else {
$periode_sel = $periode;
}
if ($periode_sel >= $periode) {
$date_injury = $pool->today;
} else {
$datesA = $pool->getDatesPeriode($id_pool, $periode_sel, $id_saison);
$date_injury = $datesA[0];
}
// pour les accents français
header("Content-Type:application/xhtml+xml; charset=ISO-8859-1");
echo "<INPUT TYPE=\"HIDDEN\" ID=\"id_pool\" VALUE=\"{$id_pool}\" />\n";
echo "<INPUT TYPE=\"HIDDEN\" ID=\"saison_id\" VALUE=\"{$id_saison}\" />\n";
echo "<INPUT TYPE=\"HIDDEN\" ID=\"periode\" VALUE=\"{$periode}\" />";
$hist_window_width = 800;
$hist_window_height = 600;
// enlever les backslash des apostrophes dans les nickanmes (entre autres...)
$data2 = str_replace("\\", "", $data2);
?>
<!-- div pour afficher le popup de la page web www.goaliestatus.com -->
<div class="jqmWindow" id="jqmGoalieStatus">
Please wait... <img src="/images/ajax-loader2.gif" alt="loading" />
示例3: explode
echo "</tr>\n";
echo "<tr>\n";
$nbre_trade_row = 1;
}
$tradeA = explode(";", $item);
$id_trade = $tradeA[0];
$id_gerant1 = $tradeA[1];
$liste_joueurs_gerant1 = $tradeA[2];
$id_gerant2 = $tradeA[3];
$liste_joueurs_gerant2 = $tradeA[4];
$periode_activation = $tradeA[5];
$liste_picks_gerant1 = $tradeA[6];
$liste_picks_gerant2 = $tradeA[7];
$gerant1Profil = $pool->getGerantProfil($id_pool, $id_gerant1, $id_saison);
$gerant2Profil = $pool->getGerantProfil($id_pool, $id_gerant2, $id_saison);
$datesPeriodeA = $pool->getDatesPeriode($id_pool, $periode_activation, $id_saison);
$dateDebPer = $datesPeriodeA["date_begin"];
if ($nhl_team_as_gerant_name == "Y") {
$gerant1_team = $gerant1Profil["nhl_team"];
$query = "SELECT logo,abbr FROM teams WHERE id = {$gerant1_team}";
$resultID = mysql_query($query, $pool->handle);
$data = mysql_fetch_array($resultID);
mysql_free_result($resultID);
$gerant1_logo = $data["logo"];
$gerant1_team_abbr = $data["abbr"];
$gerant2_team = $gerant2Profil["nhl_team"];
$query = "SELECT logo,abbr FROM teams WHERE id = {$gerant2_team}";
$resultID = mysql_query($query, $pool->handle);
$data = mysql_fetch_array($resultID);
mysql_free_result($resultID);
$gerant2_logo = $data["logo"];