本文整理汇总了PHP中Settings::dateFormat方法的典型用法代码示例。如果您正苦于以下问题:PHP Settings::dateFormat方法的具体用法?PHP Settings::dateFormat怎么用?PHP Settings::dateFormat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Settings
的用法示例。
在下文中一共展示了Settings::dateFormat方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
</div>
<div class="col-9 tender__proposal__item__info">
<a href="/id<?php
echo $user->id;
?>
">
<h6><?php
echo $user->name;
?>
</h6>
</a>
<time style="float: right; padding-right: 30px;"><?php
echo $model->time_ans;
?>
<?php
echo Settings::dateFormat($model->date_ans);
?>
</time>
<p><?php
echo CHtml::encode($model->description);
?>
</p>
<?php
$gal = Files::model()->findAllByAttributes(array('uid' => $user->id, 'type' => 'photo'), array('limit' => '8'));
if (count($gal) > 0) {
echo '<ul class="tender__proposal__item__info__gal clfx">';
foreach ($gal as $photo) {
if (!is_file($_SERVER['DOCUMENT_ROOT'] . '/users/' . $photo->uid . '/83_' . $photo->file)) {
$ih = new CImageHandler();
$ih->load($_SERVER['DOCUMENT_ROOT'] . '/users/' . $photo->uid . '/' . $photo->file)->adaptiveThumb(83, 83)->save($_SERVER['DOCUMENT_ROOT'] . '/users/' . $photo->uid . '/83_' . $photo->file);
示例2:
?>
" alt="" />
<?php
} else {
?>
<img src="/img/zaglushka.png" alt="" />
<?php
}
?>
<div class="action__thumbnail-discount">- <?php
echo $data->sale;
?>
%</div>
<figcaption class="accaunt-gallery__thumbnail-overlay">
до <?php
echo Settings::dateFormat($data->date_end);
?>
</figcaption>
</figure></a>
</div>
<div class="col-8 pro__action__item__text">
<a href="/actions/<?php
echo $data->id;
?>
" class="cabinet__photo__item-view" style="top: 0px;"></a>
<a href="/my/actions/update/id/<?php
echo $data->id;
?>
" class="cabinet__photo__item-edit" style="top: 0px;"></a>
<a href="javascript:void(0)" class="cabinet__photo__item-delete" style="top: 0px;"></a>
<div class="delete__hidden">
示例3: time
</figcaption>
</figure>
</a>
<div class="mini__action__short-info__price">
<div class="mini__action__short-info__price-hot"><?php
echo $new_price_mini;
?>
грн</div>
<div class="mini__action__short-info__price-old"><?php
echo $action->price;
?>
грн</div>
</div>
<div class="mini__action__short-info__time">
<div class="mini__action__short-info__time-last-to">до <?php
echo Settings::dateFormat($action->date_end);
?>
</div>
<div class="mini__action__short-info__time-days"><?php
echo Settings::get_duration(date('Y-m-d', time()), $action->date_end);
?>
</div>
</div>
</div>
</div>
<?php
}
?>
</aside>
<?php
}
示例4: foreach
</div>
<div class="full__tender__info">
<div class="full__tender__item__price">
<span>Цена:</span><?php
echo CHtml::encode($model->price);
?>
грн
</div>
<div class="full__tender__item__time">
<i></i>осталось: <?php
echo Settings::getTimer($model->date_end);
?>
</div>
<div class="full__tender__item__date">
<i></i><?php
echo Settings::dateFormat($model->date_end);
?>
</div>
<div class="tender__reply__list clfx">
<?php
if ($model->ordersCount > 0) {
?>
<div class="tender__reply__list clfx">
<?php
$i = 1;
foreach ($model->orders as $item) {
echo Settings::smallAva($item->uid);
$i++;
if ($i == 11) {
break;
}
示例5: is_object
//echo CHtml::link('0','/my/messages');
echo '</div>';
}
?>
<div class="col-12 block__border__dashed"></div>
<div class="col-12">
<?php
if ($u->member == 1) {
?>
<div class="col-7 money__have">
На счету<a href="#" data-toggle="modal" data-target="#__accaunt_balans"><span><?php
echo is_object($u->balans) ? $u->balans->balans : 0;
?>
грн.</span></a>
<?php
echo is_object($u->balans) && ($u->balans->end != '' || !is_null($u->balans->end)) ? '<br /><span style="color: #272a33; font-size: 15px;">оплачен до ' . Settings::dateFormat($u->balans->end, '%d-%m-%Y') . '</span>' : '';
?>
</div>
<?php
} else {
?>
<div class="col-7 money__have"></div>
<?php
}
?>
<div class="col-5 client__id">
Ваш <a href="/id<?php
echo Yii::app()->user->id;
?>
"><span>(ID: <?php
echo Yii::app()->user->id;