本文整理汇总了PHP中interPool::isFisrtDayOfPeriod方法的典型用法代码示例。如果您正苦于以下问题:PHP interPool::isFisrtDayOfPeriod方法的具体用法?PHP interPool::isFisrtDayOfPeriod怎么用?PHP interPool::isFisrtDayOfPeriod使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类interPool
的用法示例。
在下文中一共展示了interPool::isFisrtDayOfPeriod方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<div ID="top_page">
<?php
// Affichage du top de la page
$pool->affiche_top_page($id_pool, $id_saison, $sess, $str_fil_ariane, $dev);
?>
</div>
<!--
<div ID="contenu">
-->
<?php
if ($type_ballotage == "periode") {
echo "<p align=\"center\" STYLE=\"color:#FF0000; font-size:16px;\">{$message}</p>\n";
echo "<FORM NAME=\"ballotageForm\" METHOD=\"POST\" ACTION=\"" . $_SERVER['PHP_SELF'] . "\">\n";
echo "<INPUT TYPE=\"HIDDEN\" NAME=\"ballotage_id\"/>\n";
if (!$pool->isThereBallotage($id_pool, $id_saison, $periode_sel, $periode) || $pool->isFisrtDayOfPeriod($id_pool, $periode_sel, $id_saison) && $pool->todayDate->format('Y-m-d H:i:s') < $ballotage_hour_first_day) {
echo "<p align=\"center\">\n";
echo "<FONT style=\"padding-left:40px;font-family:Arial, Helvetica, sans-serif;font-size:16px;color:#FF3300;\">Aucun joueur soumis au ballottage</FONT>\n";
echo "</p>\n";
} else {
echo "<INPUT TYPE=\"HIDDEN\" ID=\"id_pool\" VALUE=\"{$id_pool}\" />\n";
echo "<INPUT TYPE=\"HIDDEN\" ID=\"saison_id\" VALUE=\"{$id_saison}\" />\n";
echo "<div class=\"jqmDetailPlayer\" id=\"div_jqmDetailPlayer\">\n";
echo "<div class=\"jqmnTitle\">\n";
echo "<h1>Détail du joueur</h1>\n";
echo "</div>\n";
echo "<div class=\"jqmnContent\" id=\"contentDetailPlayer\">\n";
echo "Please wait... <img src=\"/images/ajax-loader2.gif\" alt=\"loading\" />\n";
echo "</div>\n";
echo "<img src=\"/images/close_icon.png\" alt=\"close\" class=\"jqmClose\" />\n";
echo "</div>\n";
示例2: count
echo "<div class=\"div_display\" id=\"table_f2f_{$index_ajax}\">\n";
echo "<script TYPE=\"text/javascript\">\n";
echo "afficheFace2Face({$id_pool},{$id_saison},{$gerant},{$periode},'{$value}','live','table_f2f_{$index_ajax}',{$index_ajax},'{$dev}','non','{$poolName}');\n";
//echo "setInterval ( \"afficheFace2Face($id_pool,$id_saison,$gerant,$periode,'$value','live','table_f2f_${index_ajax}',$index_ajax,'$dev','non','$poolName')\", 60000 );\n";
echo "</script>\n";
echo "</div>\n";
echo "</div>\n";
$index_ajax++;
}
break;
case "hier":
// if ($gerant != 13) {
// echo "<center><h2>En Construction</h2></center>\n";
// return;
// }
if ($pool->isFisrtDayOfPeriod($id_pool, $periode, $id_saison)) {
$periode2use = $periode - 1;
} else {
$periode2use = $periode;
}
$dataMatchsA = $pool->getMatchs($id_pool, $periode2use, $nhl_team_as_gerant_name, $id_saison, $gerant);
$nbre_rows_matchs = count($dataMatchsA);
//$compteur_for_live_pts_td = 0;
$index_ajax = 0;
for ($k = 0; $k < $nbre_rows_matchs; $k++) {
unset($visitorJoueursA, $homeJoueursA);
$value = $dataMatchsA[$k];
$value = str_replace("'", "\\'", $value);
echo "<DIV ID=\"ajax_f2f\">\n";
echo "<div class=\"div_display\" id=\"table_f2f_{$index_ajax}\">\n";
echo "<script TYPE=\"text/javascript\">\n";
示例3: explode
<!--
<div ID="container">
-->
<div ID="top_page">
<?php
// Affichage du top de la page
$pool->affiche_top_page($id_pool, $id_saison, $sess, $str_fil_ariane, $dev);
?>
</div>
<!--
<div ID="contenu">
-->
<?php
// Affrontement de la période
if ($periode <= $nbre_periode && $pool->isFisrtDayOfPeriod($id_pool, $periode, $id_saison)) {
$dataA = $pool->getHoursMaxForPeriod($id_pool, $periode, $id_saison);
$hour_max_home = $dataA[1];
$hourA = explode(":", $hour_max_home);
$time_max_home = mktime($hourA[0], $hourA[1], $hourA[2]);
if (time() > $time_max_home) {
$affrontement_per = $periode;
} else {
$affrontement_per = $periode - 1;
}
} else {
if ($periode > $nbre_periode) {
$affrontement_per = $nbre_periode;
} else {
$affrontement_per = $periode;
}
示例4: foreach
-->
<div ID="top_page">
<?php
// Affichage du top de la page
$pool->affiche_top_page($id_pool, $id_saison, $sess, $str_fil_ariane, $dev);
?>
</div>
<!--
<div ID="contenu">
-->
<?php
if ($type_ballotage == "periode") {
echo "<FORM NAME=\"ballotageForm\" METHOD=\"POST\" ACTION=\"" . $_SERVER['PHP_SELF'] . "\">\n";
echo "<INPUT TYPE=\"HIDDEN\" NAME=\"ballotage_id\"/>\n";
if (!$pool->isThereBallotage($id_pool, $id_saison, $periode_sel, $periode) || $pool->isFisrtDayOfPeriod($id_pool, $periode_sel, $id_saison) && time() < $ballotage_hour_first_day) {
echo "<p align=\"center\">\n";
echo "<FONT style=\"padding-left:40px;font-family:Arial, Helvetica, sans-serif;font-size:16px;color:#FF3300;\">Aucun joueur soumis au ballottage</FONT>\n";
echo "</p>\n";
} else {
echo "<INPUT TYPE=\"HIDDEN\" ID=\"id_pool\" VALUE=\"{$id_pool}\" />\n";
echo "<INPUT TYPE=\"HIDDEN\" ID=\"saison_id\" VALUE=\"{$id_saison}\" />\n";
$dataBallotagesA = $pool->getBallotageAll($id_pool, $periode_sel, $periode, $gerant_sel, $id_saison);
$no_menu_contextuel = 0;
foreach ($dataBallotagesA as $item) {
$no_menu_contextuel++;
$itemA = explode(":", $item);
$id_ballotage = $itemA[0];
$id_gerant_soumetteur = $itemA[1];
$nickname = $itemA[2];
$id_player = $itemA[3];