public function run() { NavBar::begin(['brandLabel' => false, 'options' => ['class' => 'top-nav']]); echo NavX::widget(['items' => $this->topMenu(), 'options' => ['class' => 'nav navbar-nav navbar-left nav-pills main-nav'], 'encodeLabels' => false]); echo NavX::widget(['items' => $this->accountMenu(), 'options' => ['class' => 'nav navbar-nav navbar-right nav-pills account-top-nav'], 'encodeLabels' => false]); NavBar::end(); $view = $this->view; NavAsset::register($view); }
}, 'hAlign' => 'left', 'vAlign' => 'middle', 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '80px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(126, 189, 188, 0.9)']], 'contentOptions' => ['style' => ['text-align' => 'center', 'width' => '80px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt']]], ['class' => 'kartik\\grid\\ActionColumn', 'template' => '{view}{update}{edit}{alias}{update2}{type}', 'header' => 'Action', 'dropdown' => true, 'dropdownOptions' => ['class' => 'pull-right dropdown'], 'dropdownButton' => ['class' => 'btn btn-default btn-xs'], 'buttons' => ['view' => function ($url, $model, $key) { return '<li>' . Html::a('<span class="glyphicon glyphicon-eye-open"></span> ' . Yii::t('app', 'View'), ['viewcust', 'id' => $model->CUST_KD], ['data-toggle' => "modal", 'data-target' => "#view3", 'data-title' => $model->CUST_KD]) . '</li>'; }, 'update' => function ($url, $model, $key) { return '<li>' . Html::a('<span class="glyphicon glyphicon-user"></span>' . Yii::t('app', 'Update Alamat'), ['updatecus', 'id' => $model->CUST_KD], ['data-toggle' => "modal", 'data-target' => "#createcus", 'data-title' => $model->CUST_KD]) . '</li>'; }, 'type' => function ($url, $model, $key) { return '<li>' . Html::a('<span class="glyphicon glyphicon-user"></span>' . Yii::t('app', 'Update Kategori'), ['updatekat', 'id' => $model->CUST_KD], ['data-toggle' => "modal", 'data-target' => "#createcus", 'data-title' => $model->CUST_KD]) . '</li>'; }, 'update2' => function ($url, $model, $key) { return '<li>' . Html::a('<span class="glyphicon glyphicon-user"></span>' . Yii::t('app', 'Update Detail'), ['update-cust', 'id' => $model->CUST_KD], ['data-toggle' => "modal", 'data-target' => "#createcus", 'data-title' => $model->CUST_KD]) . '</li>'; }, 'edit' => function ($url, $model, $key) { return '<li>' . Html::a('<i class="glyphicon glyphicon-globe"></i>' . Yii::t('app', 'Create Map'), ['create-map', 'id' => $model->CUST_KD], []) . '</li>'; }, 'alias' => function ($url, $model, $key) { return '<li>' . Html::a('<span class="glyphicon glyphicon-pencil"></span>' . Yii::t('app', 'Set alias'), ['create-alias-customers-crm', 'id' => $model->CUST_KD], ['data-toggle' => "modal", 'data-target' => "#formalias", 'data-title' => $model->CUST_KD]) . '</li>'; }], 'headerOptions' => ['style' => ['text-align' => 'center', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(126, 189, 188, 0.9)']], 'contentOptions' => ['style' => ['text-align' => 'left', '//width' => '150px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt']]]], 'toolbar' => [''], 'panel' => ['before' => Html::a('<i class="glyphicon glyphicon-plus"></i> ' . Yii::t('app', 'Create ', ['modelClass' => 'Customers']), '/mastercrm/customers-crm/createcustomers', ['data-toggle' => "modal", 'id' => 'modcus', 'data-target' => "#createcus", 'class' => 'btn btn-success btn-sm']) . ' ' . Html::a('<i class="fa fa-history "></i> ' . Yii::t('app', 'Refresh', ['modelClass' => 'Customers1']), '/mastercrm/customers-crm', ['id' => 'refresh-cust', 'class' => 'btn btn-info btn-sm']) . ' ' . Html::a('<i class="fa fa-file-excel-o"></i> ' . Yii::t('app', 'Export'), '/export/export/export-data', ['id' => 'get-export', 'class' => 'btn btn-info btn-sm']) . ' ' . Html::a('<i class="fa fa-file-excel-o"></i> ' . Yii::t('app', 'Export selected'), '', ['id' => 'exportmodal', 'data-pjax' => true, 'data-toggle-export' => 'crm-customers-modal', 'class' => 'btn btn-success btn-sm'])], 'pjax' => true, 'pjaxSettings' => ['options' => ['enablePushState' => false, 'id' => 'gv-cus']], 'summary' => false, 'hover' => true, 'responsive' => true, 'responsiveWrap' => true, 'bordered' => true, 'striped' => '4px', 'autoXlFormat' => true, 'export' => ['fontAwesome' => true, 'showConfirmAlert' => false, 'target' => GridView::TARGET_BLANK]]); ?> <?php $navmenu = NavX::widget(['options' => ['class' => 'nav nav-tabs'], 'encodeLabels' => false, 'items' => [['label' => 'MENU', 'active' => true, 'items' => [['label' => '<span class="fa fa-user fa-md"></span>Customers', 'url' => '/mastercrm/customers-crm/index'], ['label' => '<span class="fa fa-cogs fa-md"></span>Alias Customers', 'url' => '/mastercrm/customers-crm/login-alias', 'linkOptions' => ['id' => 'performance', 'data-toggle' => 'modal', 'data-target' => '#formlogin']], '<li class="divider"></li>', ['label' => 'Properties', 'items' => [['label' => '<span class="fa fa-flag fa-md"></span>Kota', 'url' => '/mastercrm/kota-customers-crm/index'], ['label' => '<span class="fa fa-flag-o fa-md"></span>Province', 'url' => '/mastercrm/provinsi-customers-crm/index'], ['label' => '<span class="fa fa-table fa-md"></span>Category', 'url' => '/mastercrm/kategori-customers-crm/index'], '<li class="divider"></li>', ['label' => '<span class="fa fa-map-marker fa-md"></span>Customers Map', 'url' => '/mastercrm/customers-crm/crm-map']]]]]]]); ?> <div class="content"> <div class="row" style="padding-left:3px"> <div class="col-sm-12 col-md-12 col-lg-12" > <?php //echo $test; echo $navmenu; ?> <!-- CUTI !--> </div> <div class="col-sm-12"> <?php echo $tabcustomersData; ?> </div>
]); NavBar::end(); * */ ?> <?php // $logo1 = Html::img(Yii::getAlias('@web').'/images/museomoisesville.png', ['height'=>'30']); // $logo = Html::img('@web/gestion.png', ['width'=>'300']); NavBar::begin(['brandLabel' => '<img src="' . \Yii::getAlias('@web') . '/images/museomoisesville.png' . ' " width="8%" style="float:left;margin-top:-7px; margin-right:10px;"><img src="' . \Yii::getAlias('@web') . '/images/gestion.png' . ' " width="320" style="float:left;">', 'brandUrl' => 'index.php?r=site/index', 'brandOptions' => ['title' => 'Gestión de Colecciones', 'style' => 'width:auto'], 'options' => ['id' => 'top-menu', 'class' => 'navbar-inverse'], 'innerContainerOptions' => ['class' => 'kv-container'], 'renderInnerContainer' => true]); // *************************COMPONENT MenuHelper **************************************** //the menu will be displayed according to user permissions echo Nav::widget(['options' => ['class' => 'navbar-nav '], 'items' => MenuHelper::getAssignedMenu(Yii::$app->user->id)]); // *************************fin component MenuHelper **************************************** $itemsRight = [Yii::$app->user->isGuest ? ['label' => 'Ingresar', 'url' => ['/site/login']] : ['label' => 'Salir (' . Yii::$app->user->identity->username . ')', 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']]]; echo NavX::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => $itemsRight]); NavBar::end(); ?> <?php foreach (Yii::$app->session->getAllFlashes() as $message) { ?> <?php echo \kartik\widgets\Growl::widget(['type' => !empty($message['type']) ? $message['type'] : 'danger', 'title' => !empty($message['title']) ? Html::encode($message['title']) : 'Moisés Ville Museo', 'icon' => !empty($message['icon']) ? $message['icon'] : 'fa fa-info', 'body' => !empty($message['message']) ? Html::encode($message['message']) : ' ', 'showSeparator' => true, 'delay' => 1, 'pluginOptions' => ['delay' => !empty($message['duration']) ? $message['duration'] : 5000, 'placement' => ['from' => !empty($message['positonY']) ? $message['positonY'] : 'top', 'align' => !empty($message['positonX']) ? $message['positonX'] : 'right']]]); ?> <?php } ?> <div class="container">
?> <?php ActiveForm::end(); ?> </div> </div> </div> <?php if (Yii::$app->language == 'th-TH') { $type = 1; } else { $type = 7; } $menuItems = app\models\Menus::listMenus(0, 0, $type); echo NavX::widget(['options' => ['class' => 'nav-pills pull-right', 'style' => 'z-index: 1000; margin-right: 0px;'], 'encodeLabels' => false, 'items' => $menuItems]); ?> </div> </div> </div> <br/> <div class="wrap"> <div class="container"> <?php echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]); ?> <?php echo $content;
$gvfilter = true; $filterWidgetOpt = false; //$filterInputOpt=false; } $attDinamik[] = ['attribute' => $value[$key]['FIELD'], 'label' => $value[$key]['label'], 'filterType' => $gvfilterType, 'filter' => $gvfilter, 'filterWidgetOptions' => $filterWidgetOpt, 'hAlign' => 'right', 'vAlign' => 'middle', 'noWrap' => true, 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => $value[$key]['FIELD'], 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(97, 211, 96, 0.3)']], 'contentOptions' => ['style' => ['text-align' => $value[$key]['align'], 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt']], 'pageSummaryOptions' => ['style' => ['text-align' => 'right', 'font-family' => 'tahoma', 'font-size' => '8pt', 'text-decoration' => 'underline', 'font-weight' => 'bold', 'border-left-color' => 'transparant', 'border-left' => '0px']]]; } /*ACTION ATTRIBUTE*/ $attDinamik[] = ['class' => 'kartik\\grid\\ActionColumn', 'dropdown' => true, 'template' => '{view}{edit}{delete}', 'dropdownOptions' => ['class' => 'pull-right dropdown'], 'dropdownButton' => ['class' => 'btn btn-default btn-xs'], 'buttons' => ['edit' => function ($url, $model, $key) { return '<li>' . Html::a('<span class="fa fa-edit fa-dm"></span>' . Yii::t('app', 'Edit'), ['/master/customers/edit-layers', 'id' => $model->LAYER_ID], ['data-toggle' => "modal", 'data-target' => "#edit-layers", 'data-title' => $model->LAYER_ID]) . '</li>' . PHP_EOL; }, 'delete' => function ($url, $model, $key) { return '<li>' . Html::a('<span class="fa fa-trash fa-dm"></span>' . Yii::t('app', 'delete'), ['/master/customers/delete-layers', 'id' => $model->LAYER_ID]) . '</li>' . PHP_EOL; }, 'view' => function ($url, $model, $key) { return '<li>' . Html::a('<span class="fa fa-eye fa-dm"></span> ' . Yii::t('app', 'View'), ['/master/customers/view-layers', 'id' => $model->LAYER_ID], ['data-toggle' => "modal", 'data-target' => "#view-layers", 'data-title' => $model->LAYER_ID]) . '</li>' . PHP_EOL; }], 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '10px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '9pt', 'background-color' => 'rgba(97, 211, 96, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'center', 'width' => '10px', 'height' => '10px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '9pt']]]; $emp_active = GridView::widget(['id' => 'active-emp', 'dataProvider' => $dataProviderLayer, 'filterModel' => $searchModellayer, 'filterRowOptions' => ['style' => 'background-color:rgba(97, 211, 96, 0.3); align:center'], 'columns' => $attDinamik, 'toolbar' => ['{export}'], 'panel' => ['heading' => false, 'type' => 'warning', 'before' => Html::a('<i class="glyphicon glyphicon-plus"></i> ' . Yii::t('app', 'Create Layer ', ['modelClass' => 'Kategori']), '/master/customers/tambah-layers', ['data-toggle' => "modal", 'data-target' => "#modal-create", 'class' => 'btn btn-success btn-xs']) . ' ' . Html::a('<i class="fa fa-history "></i> ' . Yii::t('app', 'Refresh'), '/master/customers/esm-index-layer', ['class' => 'btn btn-info btn-xs']) . ' ' . Html::a('<i class="fa fa-file-excel-o"></i> ' . Yii::t('app', 'Export'), '/export/layer', ['class' => 'btn btn-info btn-xs']), 'showFooter' => false], 'pjax' => true, 'pjaxSettings' => ['options' => ['enablePushState' => false, 'id' => 'active-emp']], 'hover' => true, 'responsive' => true, 'bordered' => true, 'striped' => true, 'export' => ['fontAwesome' => true, 'showConfirmAlert' => false, 'target' => GridView::TARGET_BLANK], 'floatHeaderOptions' => ['scrollingTop' => '200']]); $navmenu = NavX::widget(['options' => ['class' => 'nav nav-tabs'], 'encodeLabels' => false, 'items' => [['label' => 'MENU', 'active' => true, 'items' => [['label' => '<span class="fa fa-user fa-md"></span>Customers', 'url' => '/master/customers/esm-index'], ['label' => '<span class="fa fa-cogs fa-md"></span>Alias Customers', 'url' => '/master/customers/index-alias'], '<li class="divider"></li>', ['label' => 'Properties', 'items' => [['label' => '<span class="fa fa-flag fa-md"></span>Kota', 'url' => '/master/kota-customers/esm-index-city'], ['label' => '<span class="fa fa-flag-o fa-md"></span>Province', 'url' => '/master/customers/esm-index-provinsi'], ['label' => '<span class="fa fa-table fa-md"></span>Category', 'url' => '/master/customers-kategori/esm-index-kategori'], ['label' => '<span class="fa fa-table fa-md"></span>Geografis', 'url' => '/master/customers/esm-index-geo'], ['label' => '<span class="fa fa-table fa-md"></span>Layers', 'url' => '/master/customers/esm-index-layer'], ['label' => '<span class="fa fa-table fa-md"></span>Layers Mutasi', 'url' => '/master/customers/esm-index-layermutasi'], '<li class="divider"></li>', ['label' => '<span class="fa fa-map-marker fa-md"></span>Customers Map', 'url' => '/master/customers/esm-map']]]]]]]); ?> <div class="content"> <div class="row" style="padding-left:3px"> <div class="col-sm-12 col-md-12 col-lg-12" > <!-- Menu !--> <?php echo $navmenu; ?> <!-- Customers !--> </div> <div class="col-sm-12"> <?php echo $emp_active; ?> </div>
} ?> </ul> </div> </div> <div class="col-md-10"> <div class="col-md-4"> <?php echo ButtonDropdown::widget(['label' => 'Новый расход', 'tagName' => 'a', 'options' => ['class' => 'btn-sm btn-success', 'href' => Yii::$app->urlManager->createUrl(['transaction/new'])], 'split' => true, 'dropdown' => ['items' => [['label' => 'Новый расход', 'url' => Yii::$app->urlManager->createUrl(['transaction/new'])], ['label' => 'Новый доход', 'url' => Yii::$app->urlManager->createUrl(['transaction/new-income'])], ['label' => 'Новый перевод', 'url' => Yii::$app->urlManager->createUrl(['transaction/transfer'])]]]]); ?> </div> <div class="col-md-8 periods-transactions"> <label class="pills">Период</label> <?php echo NavX::widget(['options' => ['class' => 'nav nav-pills small'], 'items' => [['label' => 'Сегодня', 'url' => Yii::$app->urlManager->createUrl([Yii::$app->request->pathInfo, 'period' => 'today']), 'active' => $period == 'today' ? true : false], ['label' => 'Вчера', 'url' => Yii::$app->urlManager->createUrl([Yii::$app->request->pathInfo, 'period' => 'yesterday']), 'active' => $period == 'yesterday' ? true : false], ['label' => 'В этом месяце', 'url' => Yii::$app->urlManager->createUrl([Yii::$app->request->pathInfo, 'period' => 'current_month']), 'active' => $period == 'current_month' || empty($period) ? true : false], ['label' => 'За все время', 'url' => Yii::$app->urlManager->createUrl([Yii::$app->request->pathInfo, 'period' => 'all']), 'active' => $period == 'all' ? true : false]]]); ?> </div> <?php if (isset($filterEnable)) { ?> <div> <?php echo Html::a('<i class="glyphicon glyphicon-remove"></i>Отменить примененный фильтр', Yii::$app->urlManager->createUrl(['transaction']), ['class' => 'clear-filter']); ?> </div> <?php } ?>
if ($_l == 'en_EN') { $type = 2; } else { if ($_l == 'lo_LO') { $type = 3; } else { if ($_l == 'vi_VI') { $type = 4; } else { $type = 1; } } } } $menuItems = app\models\Menus::listMenus(0, 0, $type); echo NavX::widget(['encodeLabels' => false, 'items' => $menuItems]); ?> <!-- Top Cart ============================================= --> <div id="top-cart"> <a href="#" id="top-cart-trigger" title="Choose language"><img src="<?php echo Yii::getAlias('@web') . '/images/lang-th.png'; ?> " /></a> <div class="top-cart-content"> <div class="top-cart-title"> <h4>Choose Language</h4> </div> <div class="top-cart-items"> <div class="top-cart-item clearfix">
<?php //var_dump($items); use kartik\nav\NavX; echo NavX::widget(['options' => ['class' => 'nav navbar-nav navbar-left menu-header-bottom'], 'items' => $items, 'activateParents' => true]);
['label' => 'Entrada', 'items' => [ ['label' => 'Cadastrar', 'url' => ['estoque/create']], ['label' => 'Consultar', 'url' => ['estoque/index']], ]], ['label' => 'Movimentação', 'url' => ['estoque/movimentacao']], ]], ['label' => 'Sair (' . Yii::$app->user->identity->username . ')','url' => ['/site/logout'],'linkOptions' => ['data-method' => 'post']], ] ]); } elseif(Yii::$app->user->identity->perfil == User::PERFIL_VENDEDOR){ echo NavX::widget([ 'options' => ['class' => 'navbar-nav navbar-right'], 'items' => [ ['label' => 'Início', 'url' => ['/site/index']], ['label' => 'Cadastro', 'items' => [ ['label' => 'Clientes', 'url' => ['cliente/create']], ]], ['label' => 'SGO-PDV', 'url' => ['venda/create']], ['label' => 'Sair (' . Yii::$app->user->identity->username . ')','url' => ['/site/logout'],'linkOptions' => ['data-method' => 'post']], ] ]); } NavBar::end(); ?> <div class="container"> <?= \app\widgets\Alert::widget() ?>
</div> <div class="pull-right"> <?php echo humanized\user\components\Authentication::widget(); ?> </div> </div> <?php NavBar::begin(['brandLabel' => '<strong>VIAJERO</strong><br> Location Management System', 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar navbar-default']]); $menuItems = [['label' => '<span class="glyphicon glyphicon-list-alt"></span><br>Contacts', 'url' => ['/contact/admin/index']], ['label' => '<span class="glyphicon glyphicon-globe"></span><br>Locations', 'url' => ['/location/admin/index']], ['label' => '<span class="glyphicon glyphicon-bullhorn"></span><br>Translations', 'url' => ['/translation/admin/index']], ['label' => '<span class="glyphicon glyphicon-user"></span><br>Account', 'visible' => NULL !== \Yii::$app->user->getId(), 'url' => ['/user/account/index', 'id' => \Yii::$app->user->getId()]], ['label' => '<span class="glyphicon glyphicon-book"></span><br>Docs', 'url' => ['/site/documentation']]]; echo NavX::widget(['encodeLabels' => FALSE, 'options' => ['class' => 'navbar-nav navbar-right'], 'items' => $menuItems]); NavBar::end(); ?> </div> </div> <div id="main" class="container"> <?php echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]); ?> <?php echo Alert::widget(); ?> <?php echo $content; ?>
</head> <body> <?php $this->beginBody(); ?> <div class="wrap"> <?php $session = Yii::$app->session; NavBar::begin(['brandLabel' => '<img src="css/img/logo_senac_topo.png"/>', 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]); if ($session['sess_codunidade'] == 7 && $session['sess_coddepartamento'] == 82) { //TEM QUE SER DO GRH E DO DEPARTAMENTO DE PROCESSO SELETIVO echo NavX::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => [['label' => 'Administração', 'items' => [['label' => 'Controle - Contração', 'items' => ['<li class="dropdown-header">Controle - Contração</li>', ['label' => 'Contratações Pendentes', 'url' => ['/contratacao-pendente/index']], ['label' => 'Contratações Em Andamento', 'url' => ['/contratacao-em-andamento/index']], ['label' => 'Contratações Encerradas', 'url' => ['/contratacao-encerrada/index']]]], '<li class="divider"></li>', ['label' => 'Processos Seletivos', 'items' => ['<li class="dropdown-header">Administração do site</li>', ['label' => 'Processos Seletivos', 'url' => ['/processo-seletivo/index']], ['label' => 'Listagem de Candidatos', 'url' => ['/curriculos-admin/index']]]], '<li class="divider"></li>', ['label' => 'Configuração', 'items' => ['<li class="dropdown-header">Cadastros</li>', ['label' => 'Cargos', 'url' => ['/cargos/index']], ['label' => 'Sistemas', 'url' => ['/sistemas/index']]]]]], ['label' => 'Solicitação de Contratação', 'url' => ['/contratacao/index']], ['label' => 'Sair', 'url' => 'http://portalsenac.am.senac.br/portal_senac/control_base_vermodulos/control_base_vermodulos.php']]]); } else { //OUTROS USUÁRIOS echo NavX::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => [['label' => 'Solicitação de Contratação', 'url' => ['/contratacao/index']], ['label' => 'Sair', 'url' => 'http://portalsenac.am.senac.br/portal_senac/control_base_vermodulos/control_base_vermodulos.php']]]); } NavBar::end(); ?> <div class="container"> <?php echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]); ?> <?php echo $content; ?> </div> </div> <footer class="footer">
?> </head> <body> <?php $this->beginBody(); ?> <div class="wrap"> <?php NavBar::begin(['brandLabel' => Html::img('images/logo.jpg'), 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar navbar-fixed-top']]); $itemsLeft = [['label' => ' Home', 'url' => ['/site/index']]]; $itemsLeft[] = ['label' => 'Services', 'items' => [['label' => 'Pumps for Industries Purpose', 'items' => [['label' => 'Hydro Pneumatic Systems', 'url' => 'site/hydro-pneumatic-systems'], '<li class="divider"></li>', ['label' => 'Hot and Cold Water Circulator Pumps', 'url' => 'site/hot-cold-water-ciculator-pumps']]], '<li class="divider"></li>', ['label' => 'Pumps for Domestic Purpose', 'items' => [['label' => 'Bore well pumps, Open well pumps', 'url' => 'site/bore-well-open-well-pumps'], '<li class="divider"></li>', ['label' => 'Pressure Boosting Systems', 'url' => 'site/pressure-boosting-systems'], '<li class="divider"></li>', ['label' => 'Home Boosters', 'url' => 'site/home-boosters'], '<li class="divider"></li>', ['label' => 'Hot and Cold Water Circulator Pumps', 'url' => 'site/hot-cold-water-ciculator-pumps']]], '<li class="divider"></li>', ['label' => 'Pumps for Residential / Commercial', 'items' => [['label' => 'Hydro Pneumatic Systems', 'url' => 'site/hydro-pneumatic-systems'], '<li class="divider"></li>', ['label' => 'Hot and Cold Water Circulator Pumps', 'url' => 'site/hot-cold-water-ciculator-pumps']]]]]; $itemsLeft[] = ['label' => 'Gallery', 'url' => ['site/gallery']]; $itemsLeft[] = ['label' => 'About', 'url' => ['site/about']]; $itemsLeft[] = ['label' => 'Contact', 'url' => ['site/contact']]; echo NavX::widget(['options' => ['class' => 'navbar-nav', 'id' => 'pfnav'], 'items' => $itemsLeft]); NavBar::end(); ?> <div class="container"> <?php echo $content; ?> </div> </div> <footer class="footer"> <div class="container"> <p class="pull-left">© PowerFlow <?php echo date('Y'); ?>
<?php use kartik\nav\NavX; /** @var $this yii\web\View */ /** @var $activeIncome boolean */ /** @var $activeExpense boolean */ echo NavX::widget(['options' => ['class' => 'nav nav-pills'], 'items' => [['label' => 'Все операции', 'url' => Yii::$app->urlManager->createUrl(['transaction']), 'active' => !$activeIncome && !$activeExpense ? true : false], ['label' => 'Доходы', 'url' => Yii::$app->urlManager->createUrl(['transaction/filter/income']), 'active' => $activeIncome ? true : false], ['label' => 'Расходы', 'url' => Yii::$app->urlManager->createUrl(['transaction/filter/expense']), 'active' => $activeExpense ? true : false]]]);
echo Html::encode($this->title); ?> </title> <?php $this->head(); ?> </head> <body> <?php $this->beginBody(); ?> <div class="wrap"> <?php NavBar::begin(['brandLabel' => Yii::$app->name, 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]); $menuItems = []; $menuItems[] = ['label' => \Yii::t('Navbar', 'Home'), 'url' => ['/site/index']]; $menuItems[] = ['label' => \Yii::t('Navbar', 'About'), 'url' => ['/site/about']]; $menuItems[] = ['label' => \Yii::t('Navbar', 'Contact'), 'url' => ['/site/contact']]; if (Yii::$app->params['hasLogin']) { if (!Yii::$app->user->isGuest) { $menuItems[] = ['label' => Yii::$app->user->identity->username, 'items' => [['label' => \Yii::t('Navbar', 'Account settings'), 'url' => ['/user/settings/profile']], ['label' => \Yii::t('Navbar', 'Logout'), 'url' => ['/user/security/logout'], 'linkOptions' => ['data-method' => 'post']]]]; } else { $menuItems[] = ['label' => \Yii::t('Navbar', 'Signup'), 'url' => ['/user/registration/register']]; $menuItems[] = ['label' => \Yii::t('Navbar', 'Login'), 'url' => ['/user/security/login']]; } } echo NavX::widget(['options' => ['class' => 'navbar-nav navbar-right nav nav-pills'], 'items' => $menuItems]); NavBar::end(); ?>
<?php // echo \yii\helpers\Json::encode($menuItems); if (Yii::$app->user->isGuest) { //$menuItemsNoLogin[] = ['label' => '<a data-toggle="modal" data-target="#modal" style="cursor: pointer">Click me gently!</a>' , 'url'=> ['/site/login5']]; $menuItemsNoLogin[] = ['label' => '', 'url' => ['#']]; $menuItemsNoLogin[] = ['label' => 'Home', 'url' => ['/site/index']]; $menuItemsNoLogin[] = ['label' => 'Struktur', 'url' => ['/front/struktur/index']]; $menuItemsNoLogin[] = ['label' => 'Reporting', 'url' => ['/front/report/index?id=11']]; $menuItemsNoLogin[] = ['label' => 'Galery', 'url' => ['/front/galeri/index']]; $menuItemsNoLogin[] = ['label' => 'Contact Us', 'url' => ['/front/contact/index']]; $menuItemsNoLogin[] = ['label' => '<div class="btn">LOGIN</div>', 'url' => ['/site/login']]; ?> <div class="navbar navbar-inverse navbar-fixed-top headroom" ></div> <?php NavBar::begin(['brandLabel' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/logo/ubudsatu.png', ['width' => '150px', 'height' => '90px']), 'options' => ['class' => 'navbar navbar-inverse navbar-fixed-top headroom']]); echo NavX::widget(['options' => ['class' => 'nav navbar-nav pull-right active'], 'items' => $menuItemsNoLogin, 'activateParents' => true, 'encodeLabels' => false]); NavBar::end(); } ?> </div> <!-- MENU SECTION END--> <div style="margin-top:100px"> <?php echo $content; ?> <div>
if ($_l == 'en_EN') { $type = 2; } else { if ($_l == 'lo_LO') { $type = 3; } else { if ($_l == 'vi_VI') { $type = 4; } else { $type = 1; } } } } $menuItems = app\models\Menus::listMenus(0, 0, $type); echo NavX::widget(['encodeLabels' => false, 'options' => ['class' => 'nav navbar-nav navbar-left pull-right'], 'items' => $menuItems]); ?> <!-- <ul class="nav navbar-nav navbar-right"> <li><a class="btn btn-success" href="list-property.html">Submit Property <i class="fa fa-chevron-circle-right"></i></a></li> </ul>--> </div> </nav> </div> </header><!-- end header --> <section class="section grey"> <div class="container"> <div class="row"> <div id="content" class="col-md-8 col-sm-8 col-xs-12"> <?php
?> <!-- LOGO --> LukisonGroup </a> <!-- <div class="navbar-custom-menu">!--> <?php // echo \yii\helpers\Json::encode($menuItems); if (!Yii::$app->user->isGuest) { //$menuItems = MenuHelper::getAssignedMenu(Yii::$app->user->id); $menuItems = MenuHelper::getAssignedMenu(Yii::$app->user->id, null, $callback); $menuItems[] = ['label' => Icon::show('power-off'), 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']]; NavBar::begin(['brandLabel' => '<!-- Sidebar toggle button--> <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button"> <span class="sr-only">Toggle Navigation</span> </a>', 'options' => ['class' => ['navbar navbar-inverse navbar-static-top', 'style' => 'background-color:#313131'], 'role' => 'button', 'style' => 'margin-bottom: 0']]); echo NavX::widget(['options' => ['class' => 'navbar-nav navbar-left'], 'items' => $menuItems, 'activateParents' => true, 'encodeLabels' => false]); NavBar::end(); } ?> <!-- </div>!--> </header> <aside class="main-sidebar"> <section class="sidebar"> <!-- User Login --> <div class="user-panel"> <div class="pull-left" style="text-align: left"> <img src="<?php echo Yii::getAlias('@HRD_EMP_UploadUrl') . '/' . $MainAvatar; ?> " class="img-circle" alt="Cinque Terre" width="80" height="80"/>
?> </head> <body> <?php $this->beginBody(); ?> <div class="wrap"> <?php NavBar::begin(['brandLabel' => 'My Company', 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]); if (Yii::$app->user->isGuest) { $menuItems[] = ['label' => 'Login', 'url' => ['/site/login']]; } else { $menuItems[] = ['label' => 'Logout (' . Yii::$app->user->identity->username . ')', 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']]; } echo NavX::widget(['options' => ['class' => 'navbar-nav'], 'items' => MenuHelper::getAssignedMenu(Yii::$app->user->id), 'activateParents' => true, 'encodeLabels' => false]); echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => $menuItems, 'activateParents' => true, 'encodeLabels' => false]); /*echo Nav::widget([ 'options' => ['class' => 'navbar-nav navbar-right'], 'items' => MenuHelper::getAssignedMenu(Yii::$app->user->id), ]);*/ NavBar::end(); ?> <div class="container"> <?php echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]); ?> <?php echo Alert::widget(); ?>