當前位置: 首頁>>代碼示例>>PHP>>正文


PHP interPool::conv_mois_numeric_to_text方法代碼示例

本文整理匯總了PHP中interPool::conv_mois_numeric_to_text方法的典型用法代碼示例。如果您正苦於以下問題:PHP interPool::conv_mois_numeric_to_text方法的具體用法?PHP interPool::conv_mois_numeric_to_text怎麽用?PHP interPool::conv_mois_numeric_to_text使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在interPool的用法示例。


在下文中一共展示了interPool::conv_mois_numeric_to_text方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

<input type="hidden" name="old_id_proposition" value="<?php 
echo $old_id_proposition;
?>
" />

<?php 
if ($periode > $last_periode_trades) {
    echo "\n          <BR>\n               <CENTER>\n                    <FONT STYLE=\"font-family:Tahoma, Verdana;font-size:18px\">La période limite des transactions est passée.</FONT>\n               </CENTER>\n     ";
    return;
}
//if ($gerant != 1) {
if ($trade_before_draft == "Y") {
    if ($pool->today < $trade_before_draft_dateBegin) {
        $_mydate = Datetime::createFromFormat('Y-m-d', $trade_before_draft_dateBegin, $pool->timeZone);
        $dateBeginMonth = $_mydate->format('m');
        $dateBeginMonth = $pool->conv_mois_numeric_to_text($dateBeginMonth);
        $dateBeginDay = $_mydate->format('j');
        $dateBeginDayText = $_mydate->format('l');
        $dateBeginDayText = $pool->date_getJour($dateBeginDayText);
        $dateBeginText = "{$dateBeginDayText}, {$dateBeginDay} {$dateBeginMonth}";
        $_mydate = Datetime::createFromFormat('Y-m-d', $trade_before_draft_dateEnd, $pool->timeZone);
        $dateEndMonth = $_mydate->format('m');
        $dateEndMonth = $pool->conv_mois_numeric_to_text($dateEndMonth);
        $dateEndDay = $_mydate->format('j');
        $dateEndDayText = $_mydate->format('l');
        $dateEndDayText = $pool->date_getJour($dateEndDayText);
        $dateEndText = "{$dateEndDayText}, {$dateEndDay} {$dateEndMonth}";
        echo "\n               <BR>\n                    <CENTER>\n                         <FONT STYLE=\"font-family:Tahoma, Verdana;font-size:18px\">La période de transaction 'avant repêchage' aura lieu du <font style=\"color:red;\">{$dateBeginText}.</font> au <font style=\"color:red;\">{$dateEndText}.</font></FONT>\n                    </CENTER>\n          ";
        return;
    }
    if ($pool->today > $trade_before_draft_dateEnd && $pool->today < $trade_date_debut) {
開發者ID:jfanctil,項目名稱:lamoria,代碼行數:31,代碼來源:tradecenter.php

示例2: foreach

echo "<br>\n";
echo "<input type=\"hidden\" id=\"aff_transactions_history_{$id_player}\" value=0 />";
echo "<a class=\"transactions_history\" href=\"a\" onclick=\"javascript:display_transactions_history({$id_player});return false;\">" . "<img id=\"img_transactions_history_{$id_player}\" src=\"/images/s_asc.png\" border=0 style=\"padding-top:10px;\" />" . "<font style=\"padding-left:5px;font-size:11px\">Transactions</font></a>\n";
echo "<div id=\"transactionsHistory_{$id_player}\" style=\"display:none;margin-top:3px;\">\n";
echo "<TABLE ALIGN=\"CENTER\" border=0 cellpadding=0 cellspacing=0 width=100%>\n";
unset($dataA);
$dataA = $pool->joueur_transactions_hist($id_player);
if (count($dataA) == 0) {
    echo "<tr><td style=\"padding-left:10px;\">Aucune transaction</td></tr>\n";
} else {
    foreach ($dataA as $item) {
        $date = $item['date'];
        $transaction = $item['transaction'];
        // manipulation de la date
        list($year, $month, $day) = split("-", $date);
        $month = $pool->conv_mois_numeric_to_text($month);
        $date = "{$day} {$month} {$year}";
        echo "<tr>\n";
        echo "<td nowrap class=\"tableCellRidge1\" style=\"padding: 3px 3px 3px 3px;font-size:10px;\">{$date}</td>\n";
        echo "<td class=\"tableCellRidge2\" style=\"padding: 3px 3px 3px 3px;font-size:10px;\">{$transaction}</td>\n";
        echo "</tr>\n";
    }
    echo "<tr><td class=\"tableCellRidge7\" colspan=50>&nbsp;</td></tr>\n";
}
echo "</table>\n";
echo "</div>\n";
// Game Log
echo "<br>\n";
echo "<input type=\"hidden\" id=\"aff_game_log_{$id_player}\" value=0 />";
echo "<a class=\"game_log\" href=\"a\" onclick=\"javascript:display_game_log({$id_player});return false;\">" . "<img id=\"img_game_log_{$id_player}\" src=\"/images/s_asc.png\" border=0 style=\"padding-top:10px;\" />" . "<font style=\"padding-left:5px;font-size:11px\">Game Log</font></a>\n";
echo "<div id=\"gameLog_{$id_player}\" style=\"display:none;margin-top:3px;\">\n";
開發者ID:jfanctil,項目名稱:lamoria,代碼行數:31,代碼來源:menu_contextuel.php


注:本文中的interPool::conv_mois_numeric_to_text方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。