本文整理汇总了PHP中interPool::date_getMois方法的典型用法代码示例。如果您正苦于以下问题:PHP interPool::date_getMois方法的具体用法?PHP interPool::date_getMois怎么用?PHP interPool::date_getMois使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类interPool
的用法示例。
在下文中一共展示了interPool::date_getMois方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: list
if ($pays != "") {
$infoPaysA = $pool->getPaysInfo($pays);
echo "<img src=\"{$infoPaysA['image']}\" class=\"autoTooltip\" title=\"{$infoPaysA['pays']}\"\n style=\"padding-right:5px;padding-top:3px;\" />";
}
if ($jn != 0) {
echo "<font style=\"font-size:16px;vertical-align:20%;\">{$jn} - </font>\n";
}
echo "<font style=\"font-size:16px;vertical-align:20%;\">{$first_name} {$last_name}</font>\n";
if ($pos != "") {
echo "<font style=\"font-size:16px;vertical-align:20%;\"> ({$pos})</font>\n";
}
if ($birthday != "0000-00-00") {
$_mydate = Datetime::createFromFormat('Y-m-d', $birthday, $pool->timeZone);
$age = $_mydate->diff($pool->todayDate)->y;
$month = $_mydate->format('F');
$mois = $pool->date_getMois($month);
$day = $_mydate->format('j');
$year = $_mydate->format('Y');
echo "<br>Age: {$age} ans\n";
echo "<br>Date de naissance: {$day} {$mois} {$year}\n";
} else {
echo "<br>Age: N/A\n";
echo "<br>Date de naissance: N/A\n";
}
if ($pays != "") {
echo "<br>Lieu de naissance: {$birth_place}\n";
echo "<br>Pays: {$pays}\n";
list($pieds, $pouces) = split("-", $grandeur);
//echo "<br>Grandeur: $pieds pieds, ";
echo "<br>Grandeur: {$pieds}' ";
if ($pouces > 0) {
示例2: list
<!--
<div ID="contenu">
-->
<?php
flush();
switch ($tab) {
case "pred_classements_old":
if ($fantasy_pred_clas_date_fin > $pool->today) {
// conversion de la date limite dans un langage humain
list($my_year, $my_month, $my_day) = split("-", $fantasy_pred_clas_date_fin);
$date = mktime(12, 0, 0, $my_month, $my_day, $my_year);
$day = date("j", $date);
$month = date("F", $date);
$month = $pool->date_getMois($month);
$year = date("Y", $date);
$str = "{$day} {$month} {$year}";
echo "<center><font size=+1>Date limite pour soumettre vos prédictions: <b>{$str}</b></font></center>\n";
// prédictions du gérant...
//$team_already_selected[1] = "0";
//$team_already_selected[2] = "0";
$query = "select * from fantasy_pred_classement\n where id_pool = {$id_pool}\n and saison_id = {$id_saison}\n and gerant = {$gerant_sel}";
$resultID = mysql_query($query, $pool->handle);
while ($data = mysql_fetch_array($resultID, MYSQL_ASSOC)) {
$conference = $data[conference];
$rang = $data[rang];
$id_team = $data[id_team];
$predictionsGerantA[$conference][$rang] = $id_team;
//$team_already_selected[$conference] .= ",$id_team";
}
示例3:
*/
if ($pool->today > $date_fin_protection) {
echo "\n <BR>\n <CENTER>\n <FONT STYLE=\"font-family:Tahoma, Verdana;font-size:18px\">La période de protection des joueurs est terminée.</FONT>\n </CENTER>\n ";
return;
}
?>
<div align="center" style="padding-top:10px;">
<input type="button" class="Btn1" value="Gérer ma liste de protection" id="btn_gerer_liste_prot" />
<input type="button" class="Btn1" value="Liste des joueurs non protégés" id="btn_voir_liste_joueurs_non_prot" />
<input type="button" class="Btn1" value="Tableau des masses salariales des gérants" id="btn_voir_masse_salariale_gerants" />
<br>
<?php
$_mydate = Datetime::createFromFormat('Y-m-d', $date_fin_protection, $pool->timeZone);
$jour = $pool->date_getJour($_mydate->format('l'));
$mois = $pool->date_getMois($_mydate->format('F'));
echo "<font style=\"font-size:15px;\">Date limite pour soumettre votre liste de protection: <strong>{$jour} " . $_mydate->format('d') . " {$mois} " . $_mydate->format('Y') . "</strong></font>\n";
?>
</div>
<hr style="width:80%;margin-top:10px;margin-bottom:10px;">
<?php
echo "<div id=\"div_gererListeProt\">\n";
// Affichage de la table de sélection du gérant
$pool->affiche_selection_gerant($id_pool, $id_saison, $gerant_sel);
?>
<TABLE cellpadding=5 cellspacing=3 border=0 width="90%"> <!-- table pour le positionnement des tableaux -->
<tr>
<td style="vertical-align:top;width:50%">