本文整理汇总了PHP中tpl::date_format3方法的典型用法代码示例。如果您正苦于以下问题:PHP tpl::date_format3方法的具体用法?PHP tpl::date_format3怎么用?PHP tpl::date_format3使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tpl
的用法示例。
在下文中一共展示了tpl::date_format3方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: smarty_modifier_date_format3
function smarty_modifier_date_format3($sDatetime, $sFormat = false)
{
//get datetime
if (!$sDatetime) {
return '';
}
return tpl::date_format3($sDatetime, $sFormat);
}
示例2: extract
<?php
if (bff::$isAjax) {
extract($aData, EXTR_REFS);
}
foreach ($bills as $k => $v) {
?>
<tr>
<td class="date"><?php
echo tpl::date_format3($v['created'], 'd.m.Y в H:i');
?>
</td>
<td class="summ">
<?php
echo $v['type'] == Bills::typeOutService ? '<b class="red">– ' . $v['amount'] . '</b>' : '<b class="green">+ ' . $v['amount'] . '</b>';
?>
<span class="f10Up">$</span>
</td>
<td class="type">
<?php
if (!empty($v['details'])) {
?>
<a href="#" class="ajaxLink" onclick="$(this).next().toggle(); return false;"><?php
echo $v['description'];
?>
</a><span style="display: none;" class="desc"><br /><?php
echo $v['details'];
?>
</span><?php
} else {
echo $v['description'];
示例3: switch
echo $v['id'];
?>
">
<a name="comment<?php
echo $v['id'];
?>
" ></a>
<div class="name"><?php
if ($v['user_id'] > 0) {
echo '<a href="/items/user?id=' . $v['user_id'] . '">' . $v['name'] . '</a>';
} else {
echo $v['name'];
}
?>
<span class="date"><?php
echo tpl::date_format3($v['created']);
?>
</span></div>
<div class="comment<?php
echo $v['user_id'] == $user_id ? ' whiteBg' : '';
?>
">
<div class="top"></div>
<div class="msg"><?php
if ($v['deleted'] > 0) {
switch ($v['deleted']) {
case 1:
echo '<span class="deleted">Комментарий удален владельцем объявления</span>';
break;
case 2:
echo '<span class="deleted">Комментарий удален модератором</span>';
示例4: echo
}
?>
<?php
echo $i['cat_regions'] && !empty($i['descr_regions']) ? '/ ' . $i['descr_regions'] : '';
?>
</div>
<div class="contact"><?php
echo !empty($i['contacts_phone']) ? 'Тел: ' . $i['contacts_phone'] . ' ' : '';
echo !empty($i['contacts_email']) ? 'E-mail: ' . $i['contacts_email'] . ' ' : '';
echo !empty($i['contacts_skype']) ? 'Skype: ' . $i['contacts_skype'] . ' ' : '';
echo $i['contacts_name'];
?>
</div>
</div>
<div class="price"><span class="date"><?php
echo tpl::date_format3($i['publicated_from'], 'd.m.Y');
?>
</span><?php
if ($i['cat_prices']) {
?>
<b class="f18 orange"><?php
echo $i['price'];
?>
</b> <span class="f11Up orange">$</span><br/><?php
echo ($i['price_torg'] ? 'торг' : '') . ($i['price_bart'] ? ($i['price_torg'] ? ', ' : '') . 'бартер' : '');
}
?>
</div>
<div class="clear"></div>
</div>
<?php
示例5: echo
</div>
</div>
<?php
if ($bShowPrices) {
?>
<div class="price"><b class="f18 orange"><?php
echo $i['price'];
?>
</b> <span class="f11Up orange">$</span><br/><?php
echo ($i['price_torg'] ? 'торг' : '') . ($i['price_bart'] ? ($i['price_torg'] ? ', ' : '') . 'бартер' : '');
?>
</div><?php
}
?>
<div class="stat"><?php
echo tpl::date_format3($i['publicated']);
?>
</div>
<div class="clear h9"></div>
<?php
if ($my) {
?>
<div class="actionsLink hidden">
<?php
if (!$i['premium']) {
?>
<a href="/items/svc/<?php
echo $i['id'];
?>
/<?php
echo Services::typeUp;
示例6: switch
</tr>
<?php
}
?>
<tr class="row1">
<td class="field-title">Услуги:</td>
<td align="left"><?php
switch ($svc) {
case Services::typeUp:
echo '<img src="/img/putUp.png" /> поднятое ' . tpl::date_format3($publicated_order, 'd.m.Y');
break;
case Services::typeMark:
echo '<img src="/img/mark.png" /> выделенное до ' . tpl::date_format3($marked_to, 'd.m.Y');
break;
case Services::typePremium:
echo '<img src="/img/premium.png" /> премиум до ' . tpl::date_format3($premium_to, 'd.m.Y');
break;
default:
echo 'нет';
}
?>
</td>
</tr>
<tr>
<td class="row1"></td>
<td class="row2">
<div class="warnblock<?php
echo !$blocked ? ' hidden' : '';
?>
" id="i_blocked_error" style="margin-bottom:10px;">
<div class="warnblock-content">
示例7: intval
<p>
Просмотры:<br/>
всего: <?php
echo $views_total;
?>
сегодня: <?php
echo intval($views_today);
?>
</p>
<p>
Публикуется:<br/>
<span>с:</span> <?php
echo tpl::date_format3($publicated, 'd.m.Y');
?>
<span>по:</span> <?php
echo tpl::date_format3($publicated_to, 'd.m.Y');
?>
</p>
</div>
</div>
<div class="centerBlock">
<?php
echo $cat_regions && !empty($descr_regions) ? $descr_regions : '';
?>
<?php
if ($cat_prices) {
?>
<p><b class="orange f24"><?php
echo $price;
?>
</b><span class="orange f12Up">$</span><br/><?php