示例#1
0
	<title><?php 
echo CHtml::encode($this->pageTitle);
?>
</title>
</head>

<body>
<div class="container" id="page">

	<div id="header">
		
	</div>
	<div class="mymenu">
		<?php 
$this->widget('bootstrap.widgets.BootNavbar', array('fixed' => false, 'brand' => '', 'brandUrl' => '#', 'collapse' => true, 'items' => array(array('class' => 'bootstrap.widgets.BootMenu', 'items' => array(array('label' => 'Home', 'url' => array('aSite/index')), array('label' => Yii::t('adm/admin', 'mnu_system_config'), 'items' => array(array('label' => Yii::t('adm/admin', 'system_setting')), array('label' => Yii::t('adm/admin', 'mnu_system_user'), 'url' => array('/aSystemUser/admin'), 'visible' => AUserPermission::checkUserPermission('aSystemUser', 'del')), array('label' => Yii::t('adm/admin', 'group_user')), array('label' => Yii::t('adm/admin', 'mnu_group'), 'url' => array('/aSystemGroup/admin'), 'visible' => AUserPermission::checkUserPermission('aSystemGroup', 'del')), array('label' => Yii::t('adm/admin', 'mnu_create_group'), 'url' => array('/aSystemGroup/create'), 'visible' => AUserPermission::checkUserPermission('aSystemGroup', 'add')))), array('label' => Yii::t('adm/news', 'Trainer'), 'items' => array(array('label' => Yii::t('adm/news', 'List Trainer'), 'url' => array('/aUser/admin&group_id=1'), 'visible' => AUserPermission::checkUserPermission('aUser', 'del')), array('label' => Yii::t('adm/news', 'Create Trainer'), 'url' => array('/aUser/create&group_id=1'), 'visible' => AUserPermission::checkUserPermission('aUser', 'add')))), array('label' => 'Trainee', 'items' => array(array('label' => Yii::t('adm/news', 'List Trainee'), 'url' => array('/aUser/admin&group_id=2'), 'visible' => AUserPermission::checkUserPermission('aUser', 'del')), array('label' => Yii::t('adm/news', 'Create Trainee'), 'url' => array('/aUser/create&group_id=2'), 'visible' => AUserPermission::checkUserPermission('aUser', 'add')))), array('label' => 'Training Manager', 'items' => array(array('label' => Yii::t('adm/news', 'List Training Manager'), 'url' => array('/aUser/admin&group_id=3'), 'visible' => AUserPermission::checkUserPermission('aUser', 'del')), array('label' => Yii::t('adm/news', 'Create Training Manager'), 'url' => array('/aUser/create&group_id=3'), 'visible' => AUserPermission::checkUserPermission('aUser', 'add')))), array('label' => 'Team Leader', 'items' => array(array('label' => Yii::t('adm/news', 'List Team Leader'), 'url' => array('/aUser/admin&group_id=4'), 'visible' => AUserPermission::checkUserPermission('aUser', 'del')), array('label' => Yii::t('adm/news', 'Create Team Leader'), 'url' => array('/aUser/create&group_id=4'), 'visible' => AUserPermission::checkUserPermission('aUser', 'add')))), array('label' => 'Logout (' . Yii::app()->user->name . ')', 'url' => array('/aSite/logout'), 'visible' => !Yii::app()->user->isGuest))))));
?>
	</div>
	<?php 
if (isset($this->breadcrumbs)) {
    ?>
		<?php 
    $this->widget('bootstrap.widgets.BootBreadcrumbs', array('links' => $this->breadcrumbs));
    ?>
<!-- breadcrumbs -->
	<?php 
}
?>
	<?php 
$this->widget('bootstrap.widgets.BootAlert');
?>
示例#2
0
	<title><?php 
echo CHtml::encode($this->pageTitle);
?>
</title>
</head>

<body>
<div class="container" id="page">

	<div id="header">
		
	</div>
	<div class="mymenu">
		<?php 
$this->widget('bootstrap.widgets.BootNavbar', array('fixed' => false, 'brand' => 'Zicza', 'brandUrl' => '#', 'collapse' => true, 'items' => array(array('class' => 'bootstrap.widgets.BootMenu', 'items' => array(array('label' => 'Home', 'url' => '#', 'active' => true), array('label' => Yii::t('adm/admin', 'mnu_system_config'), 'items' => array(array('label' => Yii::t('adm/admin', 'mnu_system_setting'), 'url' => array('/aSystemSetting/admin'), 'visible' => AUserPermission::checkUserPermission('aSystemSetting', 'del')), array('label' => Yii::t('adm/admin', 'mnu_system_user'), 'url' => array('/aSystemUser/admin'), 'visible' => AUserPermission::checkUserPermission('aSystemUser', 'del')), array('label' => Yii::t('adm/admin', 'clearcache'), 'url' => array('/aClearCache/index'), 'visible' => AUserPermission::checkUserPermission('aClearCache', 'del')), array('label' => Yii::t('adm/admin', 'mnu_system_group'), null, 'visible' => AUserPermission::checkUserPermission('aSystemgroup', 'view'), 'items' => array(array('label' => Yii::t('adm/admin', 'mnu_group'), 'url' => array('/aSystemGroup/admin'), 'visible' => AUserPermission::checkUserPermission('aSystemGroup', 'del')), array('label' => Yii::t('adm/admin', 'mnu_create_group'), 'url' => array('/aSystemGroup/create'), 'visible' => AUserPermission::checkUserPermission('aSystemGroup', 'add')))))), array('label' => Yii::t('adm/menu', 'mnu_menu'), 'items' => array(array('label' => Yii::t('adm/menu', 'mnu_menu_types'), 'url' => array('/aMenuTypes/admin'), 'visible' => AUserPermission::checkUserPermission('aNewsCategories', 'del')), array('label' => Yii::t('adm/menu', 'mnu_listmenu'), 'url' => array('/aMenu/admin'), 'visible' => AUserPermission::checkUserPermission('aNews', 'del')))), array('label' => Yii::t('adm/news', 'mnu_info'), 'items' => array(array('label' => Yii::t('adm/news', 'mnu_cate_news'), 'url' => array('/aNewsCategories/admin'), 'visible' => AUserPermission::checkUserPermission('aNewsCategories', 'del')), array('label' => Yii::t('adm/news', 'mnu_news'), 'url' => array('/aNews/admin'), 'visible' => AUserPermission::checkUserPermission('aNews', 'del')))), array('label' => Yii::t('adm/useritem', 'Quản lý Shop'), 'items' => array(array('label' => Yii::t('adm/gallery', 'Danh sách Shop'), 'url' => array('/aUserItem/admin'), 'visible' => AUserPermission::checkUserPermission('aUserItem', 'del')))), array('label' => 'Logout (' . Yii::app()->user->name . ')', 'url' => array('/aSite/logout'), 'visible' => !Yii::app()->user->isGuest))), '<form class="navbar-search pull-left" action=""><input type="text" class="search-query span2" placeholder="Search"></form>')));
?>
	</div>
	<?php 
if (isset($this->breadcrumbs)) {
    ?>
		<?php 
    $this->widget('bootstrap.widgets.BootBreadcrumbs', array('links' => $this->breadcrumbs));
    ?>
<!-- breadcrumbs -->
	<?php 
}
?>
	<?php 
$this->widget('bootstrap.widgets.BootAlert');
?>