function smarty_modifier_date_format3($sDatetime, $sFormat = false)
{
    //get datetime
    if (!$sDatetime) {
        return '';
    }
    return tpl::date_format3($sDatetime, $sFormat);
}
Beispiel #2
0
<?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">–&nbsp;' . $v['amount'] . '</b>' : '<b class="green">+&nbsp;' . $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'];
Beispiel #3
0
    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>';
Beispiel #4
0
    }
    ?>
 <?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'] . '&nbsp;&nbsp;' : '';
    echo !empty($i['contacts_email']) ? 'E-mail: ' . $i['contacts_email'] . '&nbsp;&nbsp;' : '';
    echo !empty($i['contacts_skype']) ? 'Skype: ' . $i['contacts_skype'] . '&nbsp;&nbsp;' : '';
    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 
Beispiel #5
0
</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;
Beispiel #6
0
</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" />&nbsp;&nbsp;поднятое ' . tpl::date_format3($publicated_order, 'd.m.Y');
        break;
    case Services::typeMark:
        echo '<img src="/img/mark.png" />&nbsp;&nbsp;выделенное до ' . tpl::date_format3($marked_to, 'd.m.Y');
        break;
    case Services::typePremium:
        echo '<img src="/img/premium.png" />&nbsp;&nbsp;премиум до ' . 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">  
Beispiel #7
0
          <p>
            Просмотры:<br/>
            всего: <?php 
echo $views_total;
?>
&nbsp;&nbsp;сегодня: <?php 
echo intval($views_today);
?>
          </p>
          <p>
            Публикуется:<br/>
            <span>с:</span> <?php 
echo tpl::date_format3($publicated, 'd.m.Y');
?>
&nbsp;&nbsp;<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