当前位置: 首页>>代码示例>>PHP>>正文


PHP Helper::dateConverter方法代码示例

本文整理汇总了PHP中app\helpers\Helper::dateConverter方法的典型用法代码示例。如果您正苦于以下问题:PHP Helper::dateConverter方法的具体用法?PHP Helper::dateConverter怎么用?PHP Helper::dateConverter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在app\helpers\Helper的用法示例。


在下文中一共展示了Helper::dateConverter方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: explode

<? use app\helpers\Helper ?>
<? $usersActivity = $this->getWidgetsData()['activity'] ?>
<? Helper::g($this->getWidgetsData()['activity'])?>
<section class="content">
    <div class="box">
        <div class="box-body">
            <ul class="timeline timeline-inverse">
            <!-- timeline time label -->
            <? if (is_array($usersActivity) && !empty($usersActivity)): ?>
                 <? foreach ($usersActivity as $ua): ?>
                     <li class="time-label">
                         <span class="bg-red">
                             <?php 
echo explode(' ', Helper::dateConverter($ua['time']))[0];
?>
                         </span>
                     </li>
                     <!-- /.timeline-label -->
                     <? if (is_array($ua['records']) && !empty($ua['records'])): ?>
                         <? foreach ($ua['records'] as $r): ?>
                             <? list($activDate, $ativTime) = explode(' ', $r['time']) ?>
                             <!-- timeline item -->
                             <li>
                                 <i class="<?php 
echo Helper::getIconForUserProfileBYAdmin($r['operation']);
?>
"></i>
                                 <div class="timeline-item">
                                     <span class="time"><i class="fa fa-clock-o"></i> <?php 
echo $ativTime;
?>
开发者ID:ralf000,项目名称:newshop,代码行数:31,代码来源:activity.php

示例2:

echo $a['title'];
?>
 <a href="/admin/profile/id/<?php 
echo $a['author'];
?>
"><span class="label label-primary pull-right"> Автор: <?php 
echo $a['author_name'];
?>
</span></a>
                                         <span class="product-description">
                                             Создана: <?php 
echo Helper::dateConverter($a['created_time']);
?>
<br>
                                             Обновлена: <?php 
echo Helper::dateConverter($a['updated_time']);
?>
                                         </span>
                                 </div>
                             </li><!-- /.item -->
                         <? endforeach; ?>
                    </ul>
                </div><!-- /.box-body -->
                <div class="box-footer text-center">
                    <a href="/admin/blog" class="uppercase">Все статьи</a>
                </div><!-- /.box-footer -->
            </div>

            <div class="box box-danger">
                <div class="box-header with-border">
                    <h3 class="box-title">Менеджеры</h3>
开发者ID:ralf000,项目名称:newshop,代码行数:31,代码来源:index.php

示例3:

echo Helper::dateConverter($product['updated_time']);
?>
</span>
                            </li>
                        </ul>
<!--                        <div class="form-group">
                            <label for="title">Дата публикации</label>
                            <input type="text" name="created_time" id="created_time" class="form-control" value="<?php 
echo Helper::dateConverter($product['created_time']);
?>
"/>
                        </div>
                        <div class="form-group">
                            <label for="title">Дата обновления</label>
                            <input type="text" name="updated_time" id="updated_time" class="form-control" value="<?php 
echo Helper::dateConverter($product['updated_time']);
?>
"/>
                        </div>-->
                    </div><!-- /.box-body -->
                </div><!-- /.box -->
            </div><!-- /.col -->
            <div class="col-md-9">
                <div class="box box-warning">
                    <div class="box-header with-border ui-sortable-handle" style="cursor: move;">
                        <h3 class="box-title">Полное описание</h3>
                    </div><!-- /.box-header -->
                    <div class="box-body">
                        <div class="form-group">
                            <label for="desc">Описание</label>
                            <textarea name="desc" id="desc"  class="ckeditor form-control" rows="10" cols="80"><?php 
开发者ID:ralf000,项目名称:newshop,代码行数:31,代码来源:edit.php

示例4: if

<? use app\helpers\Helper; ?>

<? $articles = $this->getData()[1]['articles'] ?>
<div class="col-sm-9">
    <div class="blog-post-area">
        <h2 class="title text-center">Статьи</h2>
        <? if (is_array($articles) && !empty($articles)): ?>
     <? foreach ($articles as $a): ?>
         <? list($date, $time) = explode(' ', Helper::dateConverter($a['created_time']))?>
                 <div class="single-blog-post">
                     <h3><?php 
echo $a['title'];
?>
</h3>
                     <div class="post-meta">
                         <ul>
                             <li><i class="fa fa-user"></i> <?php 
echo $a['author_name'];
?>
</li>
                             <li><i class="fa fa-clock-o"></i> <?php 
echo $time;
?>
</li>
                             <li><i class="fa fa-calendar"></i> <?php 
echo $date;
?>
</li>
                         </ul>
                     </div>
                     <a href="">
开发者ID:ralf000,项目名称:newshop,代码行数:31,代码来源:blog.php

示例5:

?>
</td>
                                                 <td><?php 
echo $user['email'];
?>
</td>
                                                 <td><?php 
echo $user['validated'];
?>
</td>
                                                 <td><?php 
echo Helper::dateConverter($user['create_time']);
?>
</td>
                                                 <td><?php 
echo Helper::dateConverter($user['update_time']);
?>
</td>
                                                 <td>
                                                     <a href="/admin/profile/id/<?php 
echo $user['id'];
?>
" class="admin-data-control"><span class="glyphicon glyphicon-eye-open"></span></a>
                                                     <a href="/admin/editUser/id/<?php 
echo $user['id'];
?>
" class="admin-data-control"><span class="glyphicon glyphicon-pencil"></span></a>
                                                     <a href="<?php 
echo $user['id'];
?>
" class="deleteUser admin-data-control"><span class="glyphicon glyphicon-minus"></span></a>
开发者ID:ralf000,项目名称:newshop,代码行数:31,代码来源:allUsers.php

示例6:

                    <label for="deliveryDate">Желаемая дата доставки</label>
                    <p><?php 
echo $order['delivery_date'] ? $order['delivery_date'] : 'Дата не указана';
?>
</p>
                </div>
                <div class="form-group">
                    <label for="deliveryTime">Желаемое время доставки</label>
                    <p><?php 
echo $order['delivery_time'] ? $order['delivery_time'] : 'Время не указано';
?>
</p>
                </div>
                <div class="form-group">
                    <label for="orderStatusList">Статус заказа</label>
                    <select name="orderStatusList" data-status="<?php 
echo $order['status']['status'];
?>
" class="form-control orderStatusList"></select>
                </div>
                <p>Добавлен: <?php 
echo Helper::dateConverter($order['created_time']);
?>
</p>
            </div>
        </form>
    </div>
</section>
<? require Path::PATH_TO_INC . 'addProductInOrder.inc.php' ?>
<script type="text/javascript" src="/app/template/backend/js/orders/orders.js"></script>
<script type="text/javascript" src="/app/template/backend/js/orders/editOrder.js"></script>
开发者ID:ralf000,项目名称:newshop,代码行数:31,代码来源:editorder.php


注:本文中的app\helpers\Helper::dateConverter方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。