%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.26 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/ppaobm/backend/theme/adminlte/layouts/ |
Upload File : |
<?php
use yii\helpers\Html;
use yii\widgets\Menu;
use backend\modules\booking_data\models\BookingData;
$asset = new backend\theme\AdminlteAsset();
$asset::register($this);
$directoryAsset = Yii::$app->assetManager->getPublishedUrl($asset->sourcePath);
?>
<?php
$data = BookingData::find()->where(['status' => 0])->count();
if( $data > 0){
$alertin = '<span class="pull-right-container">
<small class="label pull-right bg-red">'. $data .'</small>
</span>';
}else{
$alertin = '';
}
?>
<aside class="main-sidebar">
<section class="sidebar">
<?php
echo Menu::widget([
'items' => [
[
'label' => 'เมนูหลัก',
'options' => [
'class' => 'header'
]
],
[
'label' => Html::tag('span', '', ['class' => 'fa fa-home']) . ' หน้าหลัก',
'url' => ['/site/index']
],
[
'label' => Html::tag('span', '', ['class' => 'fa fa-calendar-plus-o']) . ' บันทึกรายการใหม่',
'url' => ['/booking_data/bookingdata/create']
],
[
'label' => Html::tag('span', '', ['class' => 'fa fa-calendar-check-o']) . ' รายการขอใช้ห้องประชุม ' . $alertin,
'url' => ['/booking_data/bookingdata/index']
],
[
'label' => Html::tag('span', '', ['class' => 'fa fa-calendar']) . ' ปฏิทินการใช้ห้องประชุม',
'url' => ['/booking_data/bookingdata/calendar']
],
[
'label' => Html::tag('span', '', ['class' => 'fa fa-calendar']) . ' การใช้ห้องประชุมประจำสัปดาห์',
'url' => ['/booking_data/bookingdata/week']
],
[
'label' => Html::tag('span', '', ['class' => 'fa fa-book']) . ' รายงาน / Report' . Html::tag('span', '', ['class' => 'pull-right-container']). '<i class="fa fa-angle-left pull-right"></i>',
'url' => ['/#'],
'options' => [
'class' => 'treeview'
],
'submenuTemplate' => "\n<ul class='treeview-menu'>\n{items}\n</ul>\n",
'items' => [
['label' => Html::tag('span', '', ['class' => 'fa fa-circle-o']) . ' รายงานสรุปประจำเดือน', 'url' => ['/booking_data/bookingdata/reportmonth']],
['label' => Html::tag('span', '', ['class' => 'fa fa-circle-o']) . ' รายงานสรุปประจำปี', 'url' => ['/booking_data/bookingdata/reportyear']],
]
],
[
'label' => Html::tag('span', '', ['class' => 'fa fa-user']) . ' สำหรับผู้ดูแลระบบ' . Html::tag('span', '', ['class' => 'pull-right-container']). '<i class="fa fa-angle-left pull-right"></i>',
'url' => ['/#'],
'options' => [
'class' => 'treeview'
],
'submenuTemplate' => "\n<ul class='treeview-menu'>\n{items}\n</ul>\n",
'items' => [
['label' => Html::tag('span', '', ['class' => 'fa fa-circle-o']) . ' รายชื่อเจ้าหน้าที่', 'url' => ['/user/admin/index']],
['label' => Html::tag('span', '', ['class' => 'fa fa-circle-o']) . ' กำหนดสิทธิ (สำหรับ admin)', 'url' => ['/admin/assignment']],
],
'visible' => Yii::$app->user->can('admin')
],
[
'label' => Html::tag('span', '', ['class' => 'fa fa-sign-out']) . ' ออกจากระบบ',
'url' => ['/user/security/logout'],
'template' => '<a href="{url}" data-method="post">{label}</a>',
],
],
'options' => [
'style' => 'list-style: none;',
'class' => 'sidebar-menu',
'data-widget' => 'tree'
],
'activeCssClass' => 'active',
'encodeLabels' => false,
]);
?>
</section>
</aside>