當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Settings::dateFormat方法代碼示例

本文整理匯總了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;
?>
&nbsp;&nbsp;&nbsp;<?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);
開發者ID:schur-maksim,項目名稱:happymoments.ua,代碼行數:31,代碼來源:_order.php

示例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">
開發者ID:schur-maksim,項目名稱:happymoments.ua,代碼行數:31,代碼來源:_view.php

示例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 
}
開發者ID:schur-maksim,項目名稱:happymoments.ua,代碼行數:31,代碼來源:view.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;
        }
開發者ID:schur-maksim,項目名稱:happymoments.ua,代碼行數:31,代碼來源:_view.php

示例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;
開發者ID:schur-maksim,項目名稱:happymoments.ua,代碼行數:31,代碼來源:main.php


注:本文中的Settings::dateFormat方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。