function smarty_modifier_date_format3($sDatetime, $sFormat = false) { //get datetime if (!$sDatetime) { return ''; } return tpl::date_format3($sDatetime, $sFormat); }
<?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'];
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>';
} ?> <?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
</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;
</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">
<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