当前位置: 首页>>代码示例>>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;未经允许,请勿转载。