Пример #1
0
 /**
  * Finds the SystemLog model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param integer $id
  * @return SystemLog the loaded model
  * @throws NotFoundHttpException if the model cannot be found
  */
 protected function findModel($id)
 {
     if (($model = SystemLog::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }
Пример #2
0
 /**
  * Creates data provider instance with search query applied
  * @return ActiveDataProvider
  */
 public function search($params)
 {
     $query = SystemLog::find();
     $dataProvider = new ActiveDataProvider(['query' => $query]);
     if (!($this->load($params) && $this->validate())) {
         return $dataProvider;
     }
     $query->andFilterWhere(['id' => $this->id, 'level' => $this->level, 'log_time' => $this->log_time, 'message' => $this->message]);
     $query->andFilterWhere(['like', 'category', $this->category])->andFilterWhere(['like', 'prefix', $this->prefix]);
     return $dataProvider;
 }
Пример #3
0
?>
</p>
						<a href="<?php 
echo Url::to(['/sign-in/profile']);
?>
">
							<i class="fa fa-circle text-success"></i>
							<?php 
echo Yii::$app->formatter->asDatetime(time());
?>
						</a>
					</div>
				</div>
				<!-- sidebar menu: : style can be found in sidebar.less -->
				<?php 
echo Menu::widget(['options' => ['class' => 'sidebar-menu'], 'linkTemplate' => '<a href="{url}">{icon}<span>{label}</span>{right-icon}{badge}</a>', 'submenuTemplate' => "\n<ul class=\"treeview-menu\">\n{items}\n</ul>\n", 'activateParents' => true, 'items' => [['label' => Yii::t('backend', 'Main'), 'options' => ['class' => 'header']], ['label' => Yii::t('backend', 'Timeline'), 'icon' => '<i class="fa fa-bar-chart-o"></i>', 'url' => ['/timeline-event/index'], 'badge' => TimelineEvent::find()->today()->count(), 'badgeBgClass' => 'label-success'], ['label' => Yii::t('backend', 'Content'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', 'Static pages'), 'url' => ['/page/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Articles'), 'url' => ['/article/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Article Categories'), 'url' => ['/article-category/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Text Widgets'), 'url' => ['/widget-text/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Menu Widgets'), 'url' => ['/widget-menu/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Carousel Widgets'), 'url' => ['/widget-carousel/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', 'Index'), 'url' => '#', 'icon' => '<i class="fa fa-file"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('common', 'Index Slide'), 'url' => ['/index-slide/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'Player Albums'), 'url' => ['/player-album/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'Friends Links'), 'url' => ['/friends-links/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('common', 'Game'), 'url' => '#', 'icon' => '<i class="fa fa-desktop"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('common', 'Game Category'), 'url' => ['/game-category/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'Game'), 'url' => ['/game/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'Game Server'), 'url' => ['/game-server/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'Game Gift'), 'url' => ['/game-gift/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'Recharge'), 'url' => ['/recharge/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('common', 'Activity'), 'url' => '#', 'icon' => '<i class="fa fa-cube"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('common', 'Activity Category'), 'url' => ['/activity-category/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'Activity'), 'url' => ['/activity/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'Site Messages'), 'url' => ['/message/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('common', 'Product'), 'url' => '#', 'icon' => '<i class="fa fa-shopping-cart"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('common', 'Shop Category'), 'url' => ['/shop-category/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'Shop Product'), 'url' => ['/shop-product/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'Shop Order'), 'url' => ['/shop-order/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('common', 'Kefu'), 'url' => '#', 'icon' => '<i class="fa fa-android"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('common', 'Kefu Faq Cat'), 'url' => ['/kefu-faq-cat/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'Kefu Faq'), 'url' => ['/kefu-faq/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'Kefu Selfservice Cat'), 'url' => ['/kefu-selfservice-cat/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'Kefu Selfservice'), 'url' => ['/kefu-selfservice/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'Kefu QQ'), 'url' => ['/kefu-qq/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'Kefu Account Repair'), 'url' => ['/kefu-account-repair/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'Security Questions'), 'url' => ['/security-questions/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', 'System'), 'options' => ['class' => 'header']], ['label' => Yii::t('common', 'Users'), 'url' => '#', 'icon' => '<i class="fa fa-users"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('common', 'Administrator'), 'url' => ['/user/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'Admin Login Log'), 'url' => ['/user-logs/admin-login-log'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'Admin Log'), 'url' => ['/user-logs/admin-log'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', ''), 'options' => ['class' => 'header']], ['label' => Yii::t('common', 'User Login Log'), 'url' => ['/user-logs/user-login-log'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'User Log'), 'url' => ['/user-logs/user-log'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'User History'), 'url' => ['/user-history/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'Frontend User'), 'url' => ['/frontend-user/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']], 'visible' => Yii::$app->user->can('administrator')], ['label' => Yii::t('common', 'Settings'), 'url' => '#', 'icon' => '<i class="fa fa-pencil"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('common', 'Application settings'), 'url' => ['/site/settings'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'SEO Settings'), 'url' => ['/site/seo-settings'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'Mail Settings'), 'url' => ['/site/mail-settings'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'Basic Settings'), 'url' => ['/site/basic-settings'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('common', 'Others Settings'), 'url' => ['/site/others-settings'], 'icon' => '<i class="fa fa-angle-double-right"></i>']], 'visible' => Yii::$app->user->can('administrator')], ['label' => Yii::t('backend', 'Other'), 'url' => '#', 'icon' => '<i class="fa fa-cogs"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', 'i18n'), 'url' => '#', 'icon' => '<i class="fa fa-flag"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', 'i18n Source Message'), 'url' => ['/i18n/i18n-source-message/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'i18n Message'), 'url' => ['/i18n/i18n-message/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', 'Key-Value Storage'), 'url' => ['/key-storage/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'File Storage'), 'url' => ['/file-storage/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Cache'), 'url' => ['/cache/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'File Manager'), 'url' => ['/file-manager/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'System Information'), 'url' => ['/system-information/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Logs'), 'url' => ['/log/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>', 'badge' => \backend\models\SystemLog::find()->count(), 'badgeBgClass' => 'label-danger']], 'visible' => Yii::$app->user->can('administrator')]]]);
?>
			</section>
			<!-- /.sidebar -->
		</aside>

		<!-- Right side column. Contains the navbar and content of the page -->
		<aside class="content-wrapper">
			<!-- Content Header (Page header) -->
			<section class="content-header">
				<h1>
					<?php 
echo $this->title;
?>
					<?php 
if (isset($this->params['subtitle'])) {
Пример #4
0
?>
</p>
                    <a href="<?php 
echo Url::to(['/sign-in/profile']);
?>
">
                        <i class="fa fa-circle text-success"></i>
                        <?php 
echo Yii::$app->formatter->asDatetime(time());
?>
                    </a>
                </div>
            </div>
            <!-- sidebar menu: : style can be found in sidebar.less -->
            <?php 
echo Menu::widget(['options' => ['class' => 'sidebar-menu'], 'labelTemplate' => '<a href="#">{icon}<span>{label}</span>{right-icon}{badge}</a>', 'linkTemplate' => '<a href="{url}">{icon}<span>{label}</span>{right-icon}{badge}</a>', 'submenuTemplate' => "\n<ul class=\"treeview-menu\">\n{items}\n</ul>\n", 'activateParents' => true, 'items' => [['label' => Yii::t('backend', 'Timeline'), 'icon' => '<i class="fa fa-bar-chart-o"></i>', 'url' => ['/timeline-event/index'], 'badge' => TimelineEvent::find()->today()->count(), 'badgeBgClass' => 'label-success'], ['label' => Yii::t('backend', 'Content'), 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', 'Pages'), 'url' => ['/page/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Blog'), 'url' => ['/article/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Cases'), 'url' => ['/project/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Clients'), 'url' => ['/client/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Members'), 'url' => ['/member/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Blog Categories'), 'url' => ['/article-category/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Case Categories'), 'url' => ['/project-category/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Footer'), 'url' => ['widget-text/index?WidgetTextSearch%5Bid%5D=&WidgetTextSearch%5Bkey%5D=footer'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', 'Users'), 'icon' => '<i class="fa fa-users"></i>', 'url' => ['/user/index'], 'visible' => Yii::$app->user->can('administrator')], ['label' => Yii::t('backend', 'System'), 'icon' => '<i class="fa fa-cogs"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', 'i18n'), 'icon' => '<i class="fa fa-flag"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', 'i18n Source Message'), 'url' => ['/i18n/i18n-source-message/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'i18n Message'), 'url' => ['/i18n/i18n-message/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', 'Key-Value Storage'), 'url' => ['/key-storage/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'File Storage'), 'url' => ['/file-storage/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Cache'), 'url' => ['/cache/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'File Manager'), 'url' => ['/file-manager/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'System Information'), 'url' => ['/system-information/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Logs'), 'url' => ['/log/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>', 'badge' => \backend\models\SystemLog::find()->count(), 'badgeBgClass' => 'label-danger'], ['label' => Yii::t('backend', 'Sitemap'), 'url' => Url::to('@frontendUrl/sitemap.xml', 1), 'icon' => '<i class="fa fa-angle-double-right"></i>']]]]]);
?>
        </section>
        <!-- /.sidebar -->
    </aside>

    <!-- Right side column. Contains the navbar and content of the page -->
    <aside class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                <?php 
echo $this->title;
?>
                <?php 
if (isset($this->params['subtitle'])) {
Пример #5
0
?>
</p>
                        <a href="<?php 
echo Url::to(['/sign-in/profile']);
?>
">
                            <i class="fa fa-circle text-success"></i>
                            <?php 
echo Yii::$app->formatter->asDatetime(time());
?>
                        </a>
                    </div>
                </div>
                <!-- sidebar menu: : style can be found in sidebar.less -->
                <?php 
echo Menu::widget(['options' => ['class' => 'sidebar-menu'], 'linkTemplate' => '<a href="{url}">{icon}<span>{label}</span>{right-icon}{badge}</a>', 'submenuTemplate' => "\n<ul class=\"treeview-menu\">\n{items}\n</ul>\n", 'activateParents' => true, 'items' => [['label' => Yii::t('backend', 'Main'), 'options' => ['class' => 'header']], ['label' => Yii::t('backend', 'Timeline'), 'icon' => '<i class="fa fa-bar-chart-o"></i>', 'url' => ['/timeline-event/index'], 'badge' => TimelineEvent::find()->today()->count(), 'badgeBgClass' => 'label-success'], ['label' => Yii::t('backend', 'Content'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', 'Static pages'), 'url' => ['/page/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Articles'), 'url' => ['/article/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Article Categories'), 'url' => ['/article-category/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Text Widgets'), 'url' => ['/widget-text/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Menu Widgets'), 'url' => ['/widget-menu/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Carousel Widgets'), 'url' => ['/widget-carousel/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', 'System'), 'options' => ['class' => 'header']], ['label' => Yii::t('backend', 'Users'), 'icon' => '<i class="fa fa-users"></i>', 'url' => ['/user/index'], 'visible' => Yii::$app->user->can('administrator')], ['label' => Yii::t('backend', 'Other'), 'url' => '#', 'icon' => '<i class="fa fa-cogs"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', 'i18n'), 'url' => '#', 'icon' => '<i class="fa fa-flag"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', 'i18n Source Message'), 'url' => ['/i18n/i18n-source-message/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'i18n Message'), 'url' => ['/i18n/i18n-message/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', 'Key-Value Storage'), 'url' => ['/key-storage/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'File Storage'), 'url' => ['/file-storage/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Cache'), 'url' => ['/cache/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'File Manager'), 'url' => ['/file-manager/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'System Information'), 'url' => ['/system-information/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Logs'), 'url' => ['/log/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>', 'badge' => \backend\models\SystemLog::find()->count(), 'badgeBgClass' => 'label-danger']]]]]);
?>
            </section>
            <!-- /.sidebar -->
        </aside>

        <!-- Right side column. Contains the navbar and content of the page -->
        <aside class="content-wrapper">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>
                    <?php 
echo $this->title;
?>
                    <?php 
if (isset($this->params['subtitle'])) {
Пример #6
0
                            <span class="label label-danger">
                                <?php 
echo \backend\models\SystemLog::find()->count();
?>
                            </span>
                            </a>
                            <ul class="dropdown-menu">
                                <li class="header"><?php 
echo Yii::t('backend', 'You have {num} log items', ['num' => \backend\models\SystemLog::find()->count()]);
?>
</li>
                                <li>
                                    <!-- inner menu: contains the actual data -->
                                    <ul class="menu">
                                        <?php 
foreach (\backend\models\SystemLog::find()->orderBy(['log_time' => SORT_DESC])->limit(5)->all() as $logEntry) {
    ?>
                                            <li>
                                                <a href="<?php 
    echo Yii::$app->urlManager->createUrl(['/admin/log/view', 'id' => $logEntry->id]);
    ?>
">
                                                    <i class="fa fa-warning <?php 
    echo $logEntry->level == \yii\log\Logger::LEVEL_ERROR ? 'text-red' : 'text-yellow';
    ?>
"></i>
                                                    <?php 
    echo $logEntry->category;
    ?>
                                                </a>
                                            </li>
                        <a href="<?php 
echo Url::to(['/sign-in/profile']);
?>
">
                            <i class="fa fa-circle text-success"></i>
                           <!--  <?php 
echo Yii::$app->formatter->asDatetime(time());
?>
 -->
                           马欢
                        </a>
                    </div>
                </div>
                <!-- sidebar menu: : style can be found in sidebar.less -->
                <?php 
echo Menu::widget(['options' => ['class' => 'sidebar-menu'], 'linkTemplate' => '<a href="{url}">{icon}<span>{label}</span>{right-icon}{badge}</a>', 'submenuTemplate' => "\n<ul class=\"treeview-menu\">\n{items}\n</ul>\n", 'activateParents' => true, 'items' => [['label' => Yii::t('backend', '项目管理'), 'options' => ['class' => 'header']], ['label' => Yii::t('backend', '仪器项目管理'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', '仪器名称'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', '仪器列表'), 'url' => ['/article/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '添加仪器'), 'url' => ['/article-category/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', '分布店面'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', '地图定位'), 'url' => ['/article/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', '使用频率'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', '每季度操作时间'), 'url' => ['/article/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '每月操作时间'), 'url' => ['/article/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '每日操作时间'), 'url' => ['/article/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '每年操作时间'), 'url' => ['/article/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', '库存'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', '仪器数量'), 'url' => ['/article/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '库存预警'), 'url' => ['/article/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', '成本'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', '仪器选购成本'), 'url' => ['/article/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', '出货量'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', '每日购买量'), 'url' => ['/article/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '每月购买量'), 'url' => ['/article/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '每季度购买量'), 'url' => ['/article/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '每年购买量'), 'url' => ['/article/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]]]], ['label' => Yii::t('backend', '护理项目管理'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', '顾客使用情况'), 'url' => ['/article/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '预约系统'), 'url' => ['/article/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', '养生项目管理'), 'icon' => '<i class="fa fa-users"></i>', 'url' => ['/learn/index'], 'visible' => Yii::$app->user->can('administrator')], ['label' => Yii::t('backend', '产品管理'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', '产品发布'), 'url' => ['/produce/publish'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '产品列表'), 'url' => ['/produce/list'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '产品审核'), 'url' => ['/produce/care'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', '订单管理'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', '销售列表'), 'url' => ['/order/sale_list'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '订单详情'), 'url' => ['/order/sale_detail'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', '顾客管理'), 'options' => ['class' => 'header']], ['label' => Yii::t('backend', '顾客分级系统'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', '顾客级别设置'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', '设置消费级别'), 'url' => ['/customer/set_level'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '自动升级'), 'url' => ['/customer/auto_update'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '不同级别折扣'), 'url' => ['/customer/level_sale'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]]]], ['label' => Yii::t('backend', '营销管理系统'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', '营销活动'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', '首次免单'), 'url' => ['/sale/first_free'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '节日折扣'), 'url' => ['/sale/holiday_sale'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '赠品活动'), 'url' => ['/sale/free_gift'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]]]], ['label' => Yii::t('backend', '横向管理'), 'options' => ['class' => 'header']], ['label' => Yii::t('backend', '店铺OA'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', '员工考勤'), 'url' => ['/shop/daliy'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '绩效考核'), 'url' => ['/shop/mechine'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '员工信息'), 'url' => ['/shop/yuangong'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', '店铺介绍'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', '环境介绍'), 'url' => ['/shop_set/enviroment'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '一键拨号'), 'url' => ['/shop_set/phone'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '地址信息'), 'url' => ['/shop_set/addr'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '环境介绍'), 'url' => ['/shop_set/enviroment'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '一键拨号'), 'url' => ['/shop_set/phone'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '地址信息'), 'url' => ['/shop_set/addr'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '店铺展示'), 'url' => ['/shop_set/show'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '联系方式'), 'url' => ['/shop_set/cantact'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '公司展示'), 'url' => ['/shop_set/show_company'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', '纵向管理'), 'options' => ['class' => 'header']], ['label' => Yii::t('backend', '信息推送'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', '产品通知'), 'url' => ['/message/produce'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '会议通知'), 'url' => ['/message/meeting'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '培训通知'), 'url' => ['/message/study'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '系统通知'), 'url' => ['/message/system'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '活动通知'), 'url' => ['/message/activity'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', '权限管理'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', '设备管理'), 'url' => ['/manage/manchine'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '操作员管理'), 'url' => ['/manage/sys'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '用户管理'), 'url' => ['/manage/customer'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '数据管理'), 'url' => ['/manage/data'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', '系统管理'), 'options' => ['class' => 'header']], ['label' => Yii::t('backend', '用户管理'), 'icon' => '<i class="fa fa-users"></i>', 'url' => ['/user/index'], 'visible' => Yii::$app->user->can('administrator')], ['label' => Yii::t('backend', '其他设置'), 'url' => '#', 'icon' => '<i class="fa fa-cogs"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', '键值设置'), 'url' => ['/key-storage/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '文件存储'), 'url' => ['/file-storage/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '缓存'), 'url' => ['/cache/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '文件管理'), 'url' => ['/file-manager/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '系统信息'), 'url' => ['/system-information/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '日志'), 'url' => ['/log/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>', 'badge' => \backend\models\SystemLog::find()->count(), 'badgeBgClass' => 'label-danger']]]]]);
?>
            </section>
            <!-- /.sidebar -->
        </aside>

        <!-- Right side column. Contains the navbar and content of the page -->
        <aside class="content-wrapper">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>
                    <?php 
echo $this->title;
?>
                    <?php 
if (isset($this->params['subtitle'])) {
Пример #8
0
?>
</p>
                        <a href="<?php 
echo Url::to(['/sign-in/profile']);
?>
">
                            <i class="fa fa-circle text-success"></i>
                            <?php 
echo Yii::$app->formatter->asDatetime(time());
?>
                        </a>
                    </div>
                </div>
                <!-- sidebar menu: : style can be found in sidebar.less -->
                <?php 
echo Menu::widget(['options' => ['class' => 'sidebar-menu'], 'linkTemplate' => '<a href="{url}">{icon}<span>{label}</span>{right-icon}{badge}</a>', 'submenuTemplate' => "\n<ul class=\"treeview-menu\">\n{items}\n</ul>\n", 'activateParents' => true, 'items' => [['label' => Yii::t('backend', 'Main'), 'options' => ['class' => 'header']], ['label' => Yii::t('backend', 'Timeline'), 'icon' => '<i class="fa fa-bar-chart-o"></i>', 'url' => ['/timeline-event/index'], 'badge' => TimelineEvent::find()->today()->count(), 'badgeBgClass' => 'label-success'], ['label' => Yii::t('backend', 'Page configuration'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', 'Menu Settings'), 'url' => ['/widget-menu/index'], 'icon' => '<i class="fa fa-navicon"></i>', 'active' => Yii::$app->controller->id == 'widget-menu'], ['label' => Yii::t('backend', 'Text Widgets'), 'url' => ['/widget-text/index'], 'icon' => '<i class="fa fa-align-left"></i>', 'active' => Yii::$app->controller->id == 'widget-text'], ['label' => Yii::t('backend', 'Static Pages'), 'url' => ['/page/index'], 'icon' => '<i class="fa fa-file-text-o"></i>', 'active' => Yii::$app->controller->id == 'page']]], ['label' => Yii::t('backend', 'Profile info'), 'url' => '#', 'icon' => '<i class="fa fa-user"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', 'My Skills'), 'url' => ['/skills/index'], 'icon' => '<i class="fa fa-hand-peace-o"></i>', 'active' => Yii::$app->controller->id == 'skills'], ['label' => Yii::t('backend', 'My Employers'), 'url' => ['/employers/index'], 'icon' => '<i class="fa fa-building"></i>', 'active' => Yii::$app->controller->id == 'employers'], ['label' => Yii::t('backend', 'My Projects'), 'url' => ['/projects/index'], 'icon' => '<i class="fa fa-laptop"></i>', 'active' => Yii::$app->controller->id == 'projects'], ['label' => Yii::t('backend', 'My Hobbies'), 'url' => ['/hobbies/index'], 'icon' => '<i class="fa fa-bicycle"></i>', 'active' => Yii::$app->controller->id == 'hobbies']]], ['label' => Yii::t('backend', 'System'), 'icon' => '<i class="fa fa-dashboard"></i>', 'url' => '#', 'items' => [['label' => Yii::t('backend', 'Logs'), 'url' => ['/log/index'], 'icon' => '<i class="fa fa-user-secret"></i>', 'badge' => \backend\models\SystemLog::find()->count(), 'badgeBgClass' => 'label-danger'], ['label' => Yii::t('backend', 'Files'), 'url' => '#', 'icon' => '<i class="fa fa-file"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', 'File Storage'), 'url' => ['/file-storage/index'], 'icon' => '<i class="fa fa-file-picture-o"></i>'], ['label' => Yii::t('backend', 'File Manager'), 'url' => ['/file-manager/index'], 'icon' => '<i class="fa fa-object-ungroup"></i>']]], ['label' => Yii::t('backend', 'Users'), 'icon' => '<i class="fa fa-users"></i>', 'url' => ['/user/index'], 'visible' => Yii::$app->user->can('administrator'), 'active' => Yii::$app->controller->id == 'user'], ['label' => Yii::t('backend', 'Languages settings'), 'url' => '#', 'icon' => '<i class="fa fa-flag-o"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', 'Languages'), 'url' => ['/languages/index'], 'icon' => '<i class="fa fa-language"></i>', 'active' => Yii::$app->controller->id == 'languages'], ['label' => Yii::t('backend', 'i18n Source Message'), 'url' => ['/i18n/i18n-source-message/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>', 'active' => Yii::$app->controller->id == 'i18n-source-message'], ['label' => Yii::t('backend', 'i18n Message'), 'url' => ['/i18n/i18n-message/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>', 'active' => Yii::$app->controller->id == 'i18n-message']]], ['label' => Yii::t('backend', 'Key-Value Storage'), 'url' => ['/key-storage/index'], 'icon' => '<i class="fa fa-hdd-o"></i>'], ['label' => Yii::t('backend', 'Cache'), 'url' => ['/cache/index'], 'icon' => '<i class="fa fa-database"></i>'], ['label' => Yii::t('backend', 'System Information'), 'url' => ['/system-information/index'], 'icon' => '<i class="fa fa-info"></i>']]]]]);
?>
            </section>
            <!-- /.sidebar -->
        </aside>

        <!-- Right side column. Contains the navbar and content of the page -->
        <aside class="content-wrapper">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>
                    <?php 
echo $this->title;
?>
                    <?php 
if (isset($this->params['subtitle'])) {
Пример #9
0
                        <a href="<?php 
echo Url::to(['/sign-in/profile']);
?>
">
                            <i class="fa fa-circle text-success"></i>
                           <!--  <?php 
echo Yii::$app->formatter->asDatetime(time());
?>
 -->
                           光磊科技
                        </a>
                    </div>
                </div>
                <!-- sidebar menu: : style can be found in sidebar.less -->
                <?php 
echo Menu::widget(['options' => ['class' => 'sidebar-menu'], 'linkTemplate' => '<a href="{url}">{icon}<span>{label}</span>{right-icon}{badge}</a>', 'submenuTemplate' => "\n<ul class=\"treeview-menu\">\n{items}\n</ul>\n", 'activateParents' => true, 'items' => [['label' => Yii::t('backend', '功能管理'), 'options' => ['class' => 'header']], ['label' => Yii::t('backend', '事件'), 'icon' => '<i class="fa fa-bar-chart-o"></i>', 'url' => ['/timeline-event/index'], 'badge' => TimelineEvent::find()->today()->count(), 'badgeBgClass' => 'label-success'], ['label' => Yii::t('backend', '文章管理'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', '文章管理'), 'url' => ['/article/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '文章目录'), 'url' => ['/article-category/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', '新手学堂'), 'icon' => '<i class="fa fa-users"></i>', 'url' => ['/learn/index'], 'visible' => Yii::$app->user->can('administrator')], ['label' => Yii::t('backend', '佣金管理'), 'icon' => '<i class="fa fa-money"></i>', 'url' => ['/user-commission/index'], 'visible' => Yii::$app->user->can('administrator')], ['label' => Yii::t('backend', '广告管理'), 'icon' => '<i class="fa fa-money"></i>', 'url' => ['/ad/index'], 'visible' => Yii::$app->user->can('administrator')], ['label' => Yii::t('backend', '系统管理'), 'options' => ['class' => 'header']], ['label' => Yii::t('backend', '用户管理'), 'icon' => '<i class="fa fa-users"></i>', 'url' => ['/user/index'], 'visible' => Yii::$app->user->can('administrator')], ['label' => Yii::t('backend', '其他设置'), 'url' => '#', 'icon' => '<i class="fa fa-cogs"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', '键值设置'), 'url' => ['/key-storage/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '文件存储'), 'url' => ['/file-storage/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '缓存'), 'url' => ['/cache/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '文件管理'), 'url' => ['/file-manager/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '系统信息'), 'url' => ['/system-information/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', '日志'), 'url' => ['/log/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>', 'badge' => \backend\models\SystemLog::find()->count(), 'badgeBgClass' => 'label-danger']]]]]);
?>
            </section>
            <!-- /.sidebar -->
        </aside>

        <!-- Right side column. Contains the navbar and content of the page -->
        <aside class="content-wrapper">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>
                    <?php 
echo $this->title;
?>
                    <?php 
if (isset($this->params['subtitle'])) {
Пример #10
0
                    <?php 
    $forms = ['label' => Yii::t('backend', 'Forms'), 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', 'Subscribes'), 'url' => ['/subscribes/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Corporate Sales'), 'url' => ['/corporate/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]];
    $feedbacks = ['label' => Yii::t('backend', 'Feedback'), 'icon' => '<i class="fa fa-envelope-o"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', 'Emails'), 'url' => ['/emailf/index'], 'icon' => '<i class="fa fa-at"></i>'], ['label' => Yii::t('backend', 'Questions'), 'url' => ['/feedback/index'], 'icon' => '<i class="fa fa-comments-o"></i>']]];
    ?>

                <?php 
} else {
    ?>
                    <?php 
    $feedbacks = ['label' => Yii::t('backend', 'Feedback'), 'icon' => '<i class="fa fa-envelope-o"></i>', 'options' => ['class' => 'treeview'], 'url' => ['/feedback/index']];
    ?>
                <?php 
}
?>
                <?php 
echo Menu::widget(['options' => ['class' => 'sidebar-menu'], 'labelTemplate' => '<a href="#">{icon}<span>{label}</span>{right-icon}{badge}</a>', 'linkTemplate' => '<a href="{url}">{icon}<span>{label}</span>{right-icon}{badge}</a>', 'submenuTemplate' => "\n<ul class=\"treeview-menu\">\n{items}\n</ul>\n", 'activateParents' => true, 'items' => [['label' => Yii::t('backend', 'Timeline'), 'icon' => '<i class="fa fa-bar-chart-o"></i>', 'url' => ['/timeline-event/index'], 'badge' => TimelineEvent::find()->today()->count(), 'badgeBgClass' => 'label-success'], ['label' => Yii::t('backend', 'Content'), 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', 'Pages'), 'url' => ['/page/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>', 'active' => preg_match('/^page/', Yii::$app->request->pathinfo)], ['label' => Yii::t('backend', 'News'), 'url' => ['/article/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>', 'active' => preg_match('/^article/', Yii::$app->request->pathinfo)], ['label' => Yii::t('backend', 'Promo'), 'url' => ['/promo/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>', 'active' => preg_match('/^promo/', Yii::$app->request->pathinfo)], ['label' => Yii::t('backend', 'Models'), 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', 'Categories'), 'url' => ['/model-category/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'List'), 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => Model::getLeftMenuListItems()], ['label' => Yii::t('backend', 'Pages'), 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => Model::getLeftMenuPageItems()]]], $forms, ['label' => Yii::t('backend', 'Service pages'), 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => Service::getLeftMenuItems()], ['label' => Yii::t('backend', 'About pages'), 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => About::getLeftMenuItems()], ['label' => Yii::t('backend', 'Finance pages'), 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => Finance::getLeftMenuItems()], ['label' => Yii::t('backend', 'Common blocks'), 'url' => ['/block/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', 'SEO'), 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', 'robots.txt'), 'url' => ['widget-text/update?id=frontend.web.robots.txt'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'sitemap.xml'), 'url' => Domain::getFrontendUrl() . '/sitemap.xml', 'icon' => '<i class="fa fa-angle-double-right"></i>', 'template' => '<a href="{url}" target="_blank"><i class="fa fa-angle-double-right"></i><span>{label}</span></a>'], ['label' => Yii::t('backend', 'Third-party code'), 'url' => ['custom-code/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], $feedbacks, ['label' => Yii::t('backend', 'Domains'), 'icon' => '<i class="fa fa-university"></i>', 'url' => ['/domain/index'], 'visible' => Yii::$app->user->can('administrator')], ['label' => Yii::t('backend', 'Users'), 'icon' => '<i class="fa fa-users"></i>', 'url' => ['/user/index'], 'visible' => Yii::$app->user->can('administrator')], ['label' => Yii::t('backend', 'System'), 'icon' => '<i class="fa fa-cogs"></i>', 'options' => ['class' => 'treeview'], 'visible' => Yii::$app->user->can('administrator'), 'items' => [['label' => Yii::t('backend', 'i18n'), 'icon' => '<i class="fa fa-flag"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', 'i18n Source Message'), 'url' => ['/i18n/i18n-source-message/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'i18n Message'), 'url' => ['/i18n/i18n-message/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', 'Key-Value Storage'), 'url' => ['/key-storage/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'File Storage'), 'url' => ['/file-storage/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Cache'), 'url' => ['/cache/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'File Manager'), 'url' => ['/file-manager/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Widgets list'), 'url' => ['/site/widgets'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Logs'), 'url' => ['/log/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>', 'badge' => \backend\models\SystemLog::find()->count(), 'badgeBgClass' => 'label-danger']]]]]);
?>
            </section>
            <!-- /.sidebar -->
        </aside>

        <!-- Right side column. Contains the navbar and content of the page -->
        <aside class="content-wrapper">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>
                    <?php 
echo $this->title;
?>
                    <?php 
if (isset($this->params['subtitle'])) {
Пример #11
0
?>
</p>
                        <a href="<?php 
echo Url::to(['/sign-in/profile']);
?>
">
                            <i class="fa fa-circle text-success"></i>
                            <?php 
echo Yii::$app->formatter->asDatetime(time());
?>
                        </a>
                    </div>
                </div>
                <!-- sidebar menu: : style can be found in sidebar.less -->
                <?php 
echo Menu::widget(['options' => ['class' => 'sidebar-menu'], 'linkTemplate' => '<a href="{url}">{icon}<span>{label}</span>{right-icon}{badge}</a>', 'submenuTemplate' => "\n<ul class=\"treeview-menu\">\n{items}\n</ul>\n", 'activateParents' => true, 'items' => [['label' => Yii::t('backend', 'Main'), 'options' => ['class' => 'header']], ['label' => Yii::t('backend', 'Content'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', 'Static pages'), 'url' => ['/page/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>', 'visible' => Yii::$app->user->can(User::ROLE_CONTENT)], ['label' => Yii::t('backend', 'Articles'), 'url' => ['/article/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>', 'visible' => Yii::$app->user->can(User::ROLE_CONTENT)], ['label' => Yii::t('backend', 'Article Categories'), 'url' => ['/article-category/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>', 'visible' => Yii::$app->user->can(User::ROLE_CONTENT)], ['label' => Yii::t('backend', 'Text Widgets'), 'url' => ['/widget-text/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>', 'visible' => Yii::$app->user->can(User::ROLE_ADMIN)], ['label' => Yii::t('backend', 'Menu Widgets'), 'url' => ['/widget-menu/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>', 'visible' => Yii::$app->user->can(User::ROLE_ADMIN)], ['label' => Yii::t('backend', 'Carousel Widgets'), 'url' => ['/widget-carousel/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>', 'visible' => Yii::$app->user->can(User::ROLE_ADMIN)]]], ['label' => Yii::t('backend', 'Pets'), 'url' => '#', 'icon' => '<i class="fa fa-paw"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', 'Pet categories'), 'icon' => '<i class="fa fa-angle-double-right"></i>', 'url' => ['/pet-category/index'], 'visible' => Yii::$app->user->can(User::ROLE_CONTENT)], ['label' => Yii::t('backend', 'Private ads'), 'icon' => '<i class="fa fa-angle-double-right"></i>', 'url' => ['/user-advert/index']]], 'visible' => Yii::$app->user->can(User::ROLE_USER)], ['label' => Yii::t('backend', 'Shops'), 'icon' => '<i class="fa fa-shopping-cart"></i>', 'url' => ['/shop/index'], 'items' => [['label' => Yii::t('backend', 'Shop settings'), 'icon' => '<i class="fa fa-angle-double-right"></i>', 'url' => ['/pet-category/index'], 'visible' => Yii::$app->user->can(User::ROLE_SHOP)], ['label' => Yii::t('backend', 'Product categories'), 'icon' => '<i class="fa fa-angle-double-right"></i>', 'url' => ['/product-category/index'], 'visible' => Yii::$app->user->can(User::ROLE_CONTENT)], ['label' => Yii::t('backend', 'Products'), 'icon' => '<i class="fa fa-angle-double-right"></i>', 'url' => ['/product/index'], 'visible' => Yii::$app->user->can(User::ROLE_CONTENT)], ['label' => Yii::t('backend', 'Products by shop'), 'icon' => '<i class="fa fa-angle-double-right"></i>', 'url' => ['/product-by-shop/index'], 'visible' => Yii::$app->user->can(User::ROLE_SHOP)]], 'visible' => Yii::$app->user->can(User::ROLE_SHOP)], ['label' => Yii::t('backend', 'VetClinic'), 'icon' => '<i class="fa fa-heartbeat"></i>', 'url' => ['/vet-clinic/index'], 'visible' => Yii::$app->user->can(User::ROLE_CONTENT)], ['label' => Yii::t('backend', 'Hairdresser'), 'icon' => '<i class="fa fa-scissors"></i>', 'url' => ['/hairdresser/index'], 'visible' => Yii::$app->user->can(User::ROLE_CONTENT)], ['label' => Yii::t('backend', 'Users'), 'icon' => '<i class="fa fa-users"></i>', 'url' => ['/user/index'], 'visible' => Yii::$app->user->can(User::ROLE_ADMIN)], ['label' => Yii::t('backend', 'System'), 'options' => ['class' => 'header'], 'visible' => Yii::$app->user->can(User::ROLE_ADMIN)], ['label' => Yii::t('backend', 'Timeline'), 'icon' => '<i class="fa fa-bar-chart-o"></i>', 'url' => ['/timeline-event/index'], 'badge' => TimelineEvent::find()->today()->count(), 'badgeBgClass' => 'label-success', 'visible' => Yii::$app->user->can(User::ROLE_ADMIN)], ['label' => Yii::t('backend', 'Seo Pages'), 'icon' => '<i class="fa fa-google"></i>', 'url' => ['/seo-pages/index'], 'visible' => Yii::$app->user->can(User::ROLE_CONTENT)], ['label' => Yii::t('backend', 'Settings'), 'url' => '#', 'icon' => '<i class="fa fa-cogs"></i>', 'options' => ['class' => 'treeview'], 'visible' => Yii::$app->user->can(User::ROLE_ADMIN), 'items' => [['label' => Yii::t('backend', 'i18n'), 'url' => '#', 'icon' => '<i class="fa fa-flag"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('backend', 'i18n Source Message'), 'url' => ['/i18n/i18n-source-message/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'i18n Message'), 'url' => ['/i18n/i18n-message/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('backend', 'Key-Value Storage'), 'url' => ['/key-storage/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'File Storage'), 'url' => ['/file-storage/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Cache'), 'url' => ['/cache/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'File Manager'), 'url' => ['/file-manager/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'System Information'), 'url' => ['/system-information/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('backend', 'Logs'), 'url' => ['/log/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>', 'badge' => \backend\models\SystemLog::find()->count(), 'badgeBgClass' => 'label-danger']]]]]);
?>
            </section>
            <!-- /.sidebar -->
        </aside>

        <!-- Right side column. Contains the navbar and content of the page -->
        <aside class="content-wrapper">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>
                    <?php 
echo $this->title;
?>
                    <?php 
if (isset($this->params['subtitle'])) {