/** * Runs the widget. */ public function run() { $links = $this->createPageLinks(); if (!empty($links)) { echo BsHtml::pagination($links, $this->htmlOptions); } }
public function run() { list($name, $id) = $this->resolveNameID(); if (isset($this->htmlOptions['id'])) { $id = $this->htmlOptions['id']; } else { $this->htmlOptions['id'] = $this->hidden ? $id . '_hidden' : $id; } if (isset($this->htmlOptions['name'])) { $name = $this->htmlOptions['name']; } else { $this->htmlOptions['name'] = $this->hidden ? $name . '_hidden' : $name; } if ($this->hasModel()) { echo $this->hidden ? BsHtml::activeHiddenField($this->model, $this->attribute, $this->htmlOptions) : BsHtml::activeTelFieldControlGroup($this->model, $this->attribute, $this->htmlOptions); } else { echo $this->hidden ? CHtml::hiddenField($name, $this->value, $this->htmlOptions) : CHtml::textField($name, $this->value, $this->htmlOptions); } $options = CJavaScript::encode($this->options); $js = "jQuery('#{$id}').{$this->mode}picker({$options});"; if (isset($this->language)) { $this->registerScriptFile($this->i18nScriptFile); $js = "jQuery('#{$id}').{$this->mode}picker(jQuery.extend({showMonthAfterYear:false}, jQuery.datepicker.regional['{$this->language}'], {$options}));"; } $cs = Yii::app()->getClientScript(); $assets = Yii::app()->getAssetManager()->publish(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'assets'); $cs->registerCssFile($assets . self::ASSETS_NAME . '.css'); $cs->registerScriptFile($assets . self::ASSETS_NAME . '.js', CClientScript::POS_END); $cs->registerScript(__CLASS__, $this->defaultOptions ? 'jQuery.{$this->mode}picker.setDefaults(' . CJavaScript::encode($this->defaultOptions) . ');' : ''); $cs->registerScript(__CLASS__ . '#' . $id, $js); }
/** * Renders a link button. * @param string $id the ID of the button * @param array $button the button configuration which may contain 'label', 'url', 'imageUrl' and 'options' elements. * @param integer $row the row number (zero-based) * @param mixed $data the data object associated with the row */ protected function renderButton($id, $button, $row, $data) { if (isset($button['visible']) && !$this->evaluateExpression($button['visible'], array('row' => $row, 'data' => $data))) { return; } $url = BsArray::popValue('url', $button, '#'); if ($url !== '#') { $url = $this->evaluateExpression($url, array('data' => $data, 'row' => $row)); } $imageUrl = BsArray::popValue('imageUrl', $button, false); $label = BsArray::popValue('label', $button, $id); $options = BsArray::popValue('options', $button, array()); BsArray::defaultValue('data-title', $label, $options); BsArray::defaultValue('title', $label, $options); BsArray::defaultValue('data-toggle', 'tooltip', $options); if ($icon = BsArray::popValue('icon', $button, false)) { echo CHtml::link(BsHtml::icon($icon), $url, $options); } else { if ($imageUrl && is_string($imageUrl)) { echo CHtml::link(CHtml::image($imageUrl, $label), $url, $options); } else { echo CHtml::link($label, $url, $options); } } }
/** * Renders the buttons in this form. * @return string the rendering result. */ public function renderButtons() { $buttons = array(); foreach ($this->getButtons() as $button) { $buttons[] = $this->renderElement($button); } return !empty($buttons) ? BsHtml::tag('div', array('class' => 'form-actions'), implode("\n", $buttons)) : ''; }
/** * Renders the data cell content. * @param integer $row the row number (zero-based). * @param mixed $data the data associated with the row. */ protected function renderDataCellContent($row, $data) { /* @var $am CAuthManager|AuthBehavior */ $am = Yii::app()->getAuthManager(); $labelType = $this->active || $am->hasParent($this->itemName, $data['name']) || $am->hasChild($this->itemName, $data['name']) ? 'info' : ''; /* @var $controller AuthItemController */ $controller = $this->grid->getController(); echo BsHtml::labelBs($controller->getItemTypeText($data['item']->type), array('color' => $labelType)); }
/** * Renders the content of a menu item. * Note that the container and the sub-menus are not rendered here. * @param array $item the menu item to be rendered. Please see {@link items} on what data might be in the item. * @return string * @since 1.1.6 */ protected function renderMenuItem($item) { $icon = isset($item['icon']) ? BsHtml::icon($item['icon']) . ' ' : ''; if (isset($item['url'])) { $label = $this->linkLabelWrapper === null ? $item['label'] : CHtml::tag($this->linkLabelWrapper, $this->linkLabelWrapperHtmlOptions, $item['label']); return CHtml::link($icon . $label, $item['url'], isset($item['linkOptions']) ? $item['linkOptions'] : array()); } else { return CHtml::tag('span', isset($item['linkOptions']) ? $item['linkOptions'] : array(), $icon . $item['label']); } }
/** * Renders the data cell content. * @param integer $row the row number (zero-based). * @param mixed $data the data associated with the row. */ protected function renderDataCellContent($row, $data) { /* @var $am CAuthManager|AuthBehavior */ $am = Yii::app()->getAuthManager(); if ($am->hasParent($this->itemName, $data['name'])) { echo BsHtml::linkButton(BsHtml::icon(BsHtml::GLYPHICON_REMOVE), array('color' => BsHtml::BUTTON_COLOR_LINK, 'size' => BsHtml::BUTTON_SIZE_MINI, 'url' => array('removeParent', 'itemName' => $this->itemName, 'parentName' => $data['name']), 'rel' => 'tooltip', 'title' => Yii::t('AuthModule.main', 'Remove'))); } else { if ($am->hasChild($this->itemName, $data['name'])) { echo BsHtml::linkButton(BsHtml::icon(BsHtml::GLYPHICON_REMOVE), array('color' => BsHtml::BUTTON_COLOR_LINK, 'size' => BsHtml::BUTTON_SIZE_MINI, 'url' => array('removeChild', 'itemName' => $this->itemName, 'childName' => $data['name']), 'rel' => 'tooltip', 'title' => Yii::t('AuthModule.main', 'Remove'))); } } }
/** * This function renders a built in button type. * The implementation is essentially a direct copy from * CFormButtonElement::render, the only difference is it uses BsHtml. * @return string the rendering result. */ public function renderCore() { $attributes = $this->attributes; $method = self::$coreTypes[$this->type]; if ($method === 'linkButton') { if (!isset($attributes['params'][$this->name])) { $attributes['params'][$this->name] = 1; } } elseif ($method === 'htmlButton') { $attributes['type'] = $this->type === 'htmlSubmit' ? 'submit' : ($this->type === 'htmlReset' ? 'reset' : 'button'); $attributes['name'] = $this->name; } else { $attributes['name'] = $this->name; } if ($method === 'imageButton') { return BsHtml::imageButton(isset($attributes['src']) ? $attributes['src'] : '', $attributes); } else { return BsHtml::$method($this->label, $attributes); } }
public function run() { $type = $this->type; echo BsHtml::openTag('div', array('id' => $this->id)); /*** Nav tabs ***/ echo BsHtml::$type($this->_labels); /*** Tab panes ***/ echo BsHtml::openTag('div', array('class' => 'tab-content')); foreach ($this->_content as $content) { $class = 'tab-pane' . ($content['active'] == true ? ' active' : ''); echo BsHtml::tag('div', array('class' => $class, 'id' => $content['id'], 'role' => 'tabpanel'), $content['content']); } echo BsHtml::closeTag('div'); echo BsHtml::closeTag('div'); /*** clientScript ***/ $cs = Yii::app()->getClientScript(); $navs = ' $("#' . $this->id . ' ul.nav a").on("click",function(e){ e.preventDefault(); $(this).tab("show"); }) '; $cs->registerScript("navs-" . $this->id, $navs); }
<?php /* @var $this SimplePageController */ /* @var $model SimplePage */ $this->menu = array(array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Создать страницу', 'url' => array('create'))); Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$('#simple-page-grid').yiiGridView('update', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n"); ?> <?php echo BsHtml::pageHeader('Управление текстовыми страницами'); ?> <div class="panel panel-default"> <!-- <div class="panel-heading">--> <!-- <h3 class="panel-title">--><?php //echo BsHtml::button('Advanced search',array('class' =>'search-button', 'icon' => BsHtml::GLYPHICON_SEARCH,'color' => BsHtml::BUTTON_COLOR_PRIMARY), '#'); ?> <!--</h3>--> <!-- </div>--> <div class="panel-body"> <!-- <p>--> <!-- You may optionally enter a comparison operator (<b><</b>, <b><=</b>, <b>></b>, <b>>=</b>, <b>--> <!-- <></b>--> <!-- or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.--> <!-- </p>--> <!-- <div class="search-form" style="display:none">--> <!-- --><?php //$this->renderPartial('_search',array( // 'model'=>$model, // )); ?>
<?php /* @var $this EmpresaController */ /* @var $model Empresa */ ?> <?php $this->breadcrumbs = array('Empresas' => array('index'), $model->emp_rut); $this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Empresa', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create Empresa', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-edit', 'label' => 'Update Empresa', 'url' => array('update', 'id' => $model->emp_rut)), array('icon' => 'glyphicon glyphicon-minus-sign', 'label' => 'Delete Empresa', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->emp_rut), 'confirm' => 'Are you sure you want to delete this item?')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Empresa', 'url' => array('admin'))); ?> <?php echo BsHtml::pageHeader('View', 'Empresa ' . $model->emp_rut); ?> <?php $this->widget('zii.widgets.CDetailView', array('htmlOptions' => array('class' => 'table table-striped table-condensed table-hover'), 'data' => $model, 'attributes' => array('emp_rut', 'tem_id', 'are_id', 'emp_nombre', 'emp_direccion', 'emp_fono', 'emp_email', 'emp_fecha_creacion', 'emp_desabilitado')));
<?php } ?> <?php } ?> </div> <div id="sidebar" class="col-lg-3"> <?php $this->beginWidget('bootstrap.widgets.BsPanel', array('title' => 'Menu', 'contentCssClass' => '', 'htmlOptions' => array('class' => 'panel sticky'), 'type' => BsHtml::PANEL_TYPE_PRIMARY)); ?> <div class="btn-group btn-group-vertical"> <?php echo BsHtml::submitButton(BsHtml::icon(BsHtml::GLYPHICON_THUMBS_UP) . ' Save'); ?> <?php $this->widget('application.widgets.SnapMenu', array('items' => $this->menu, 'htmlOptions' => array('class' => 'nav nav-stacked'))); ?> </div> <?php $this->endWidget(); ?> </div> </div>
<?php /* @var $this EvaluacionController */ /* @var $model Evaluacion */ ?> <?php $this->breadcrumbs = array('Evaluacions' => array('index'), $model->EVA_ID); $this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Evaluacion', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create Evaluacion', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-edit', 'label' => 'Update Evaluacion', 'url' => array('update', 'id' => $model->EVA_ID)), array('icon' => 'glyphicon glyphicon-minus-sign', 'label' => 'Delete Evaluacion', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->EVA_ID), 'confirm' => 'Are you sure you want to delete this item?')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Evaluacion', 'url' => array('admin'))); ?> <?php echo BsHtml::pageHeader('View', 'Evaluacion ' . $model->EVA_ID); ?> <?php $this->widget('zii.widgets.CDetailView', array('htmlOptions' => array('class' => 'table table-striped table-condensed table-hover'), 'data' => $model, 'attributes' => array('EVA_ID', 'TRA_ID', 'EMP_ID', 'MOD_ID', 'EVA_NOTA', 'EVA_FECHA', 'EVA_INICIO')));
<?php /* @var $this UsuarioController */ /* @var $model Usuario */ ?> <?php $this->breadcrumbs = array('Usuarios' => array('index'), 'Create'); $this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Usuario', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Usuario', 'url' => array('admin'))); ?> <?php echo BsHtml::pageHeader('Create', 'Usuario'); ?> <?php $this->renderPartial('_form', array('model' => $model));
<?php /* @var $this SurveyController */ /* @var $simplePage SimplePage */ /* @var $dataProvider MultiLocatedSurveysDataProvider */ $columns = array(array("name" => "Название проекта", 'type' => 'raw', 'value' => '$data->title'), array("name" => "Aнкета", 'type' => 'raw', 'value' => '\'<a href="\'.Yii::app()->createUrl(\'survey/view\', array(\'id\' => $data->sid, \'location\' => $data->location)).\'" target="_blank">Открыть</a>\''), array('class' => "QuotasInfoDataColumn", 'quotaType' => 'limit', "name" => "Требуется анкет"), array("name" => "Сделано анкет", 'class' => "QuotasInfoDataColumn", 'quotaType' => 'totalCount', 'needLink' => true, 'needShowQuotaType' => 'limit'), array("name" => "Массив данных в SPSS", 'type' => 'raw', 'value' => '\'<a href="\'.Yii::app()->createUrl(\'survey/exportSPSSStructure\', array(\'id\' => $data->sid, \'location\' => $data->location)).\'" target="_blank">Скачать синтаксис</a> <br/> <a href="\'.Yii::app()->createUrl(\'survey/exportSPSSData\', array(\'id\' => $data->sid, \'location\' => $data->location)).\'" target="_blank">Скачать данные</a>\''), array("name" => "Массив данных в Excel", 'type' => 'raw', 'value' => '\'<a href="\'.Yii::app()->createUrl(\'survey/exportExcel\', array(\'id\' => $data->sid, \'location\' => $data->location)).\'" target="_blank">Скачать</a>\''), array("name" => "Быстрая аналитика", 'type' => 'raw', 'value' => '\'<a href="\'.Yii::app()->createUrl(\'survey/quickAnalytics\', array(\'id\' => $data->sid, \'location\' => $data->location)).\'" target="_blank">Открыть</a>\''), array("name" => "Полная аналитика", 'class' => 'DownloadFilesColumn', 'fileType' => AttachedFile::FILE_TYPE_FULL_ANALYTICS, 'nullValue' => array('value' => '\'<a href="\'.Yii::app()->createUrl(\'survey/orderAnalytics\', array(\'id\' => $data->sid, \'location\' => $data->location)).\'" class="offer-analytics" target="_blank">Не предусмотрено, заказать</a>\'', 'type' => 'raw'), 'linkValue' => 'Посмотреть структуру будущего отчёта')); if (Yii::app()->user->checkAccess('survey.edit')) { $columns[] = array('name' => '', 'type' => 'raw', 'value' => '\'<a class="update" data-title="Редактировать" title="" data-toggle="tooltip" href="\'.Yii::app()->createUrl(\'survey/update\', array(\'id\' => $data->sid, \'location\' => $data->location)).\'" data-original-title="Редактировать"> <span class="glyphicon glyphicon-pencil"></span> </a>\'', 'htmlOptions' => array('class' => 'button-column')); } ?> <?php if ($simplePage) { echo '<h1>' . $simplePage->title . '</h1>'; echo BsHtml::tag('div', array('class' => 'page-text'), $simplePage->content); } else { echo '<h1>Активные проекты</h1>'; } $this->widget('bootstrap.widgets.BsGridView', array('id' => 'surveys-grid', 'dataProvider' => $dataProvider, 'columns' => $columns));
<?php /* @var $this PreguntaController */ /* @var $model Pregunta */ $this->breadcrumbs = array('Preguntas' => array('admin'), $model->pre_descripcion => array('view', 'id' => $model->pre_id), 'Editar'); $this->menu = array(array('label' => 'Registrar', 'url' => array('create')), array('label' => 'Cancelar', 'url' => array('admin'))); ?> <div class="row"> <div class="col-md-6 col-md-offset-3"> <?php if ($id == false) { echo BsHtml::alert(BsHtml::ALERT_COLOR_DANGER, BsHtml::bold('Campo faltante') . " " . 'Debe agregar un achivo de imagen.'); } ?> <?php echo BsHtml::pageHeader('Modificar', 'Pregunta'); ?> <?php $this->renderPartial('_form', array('model' => $model)); ?> </div> </div>
<?php /* @var $this PortfolioController */ /* @var $model Portfolio */ ?> <?php $this->breadcrumbs = array('Portfolios' => array('admin'), 'Create'); $this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Portfolio', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Portfolio', 'url' => array('admin'))); ?> <div class="box box-primary"> <div class="box-header"> <?php echo BsHtml::pageHeader('Create', 'Portfolio'); ?> </div> <?php $this->renderPartial('_form', array('model' => $model)); ?> </div>
<?php /* @var $this SkillController */ /* @var $model Skill */ ?> <?php $this->breadcrumbs = array('Skills' => array('admin'), $model->title => array('view', 'id' => $model->id_skill), 'Update'); $this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Skill', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create Skill', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-list-alt', 'label' => 'View Skill', 'url' => array('view', 'id' => $model->id_skill)), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Skill', 'url' => array('admin'))); ?> <div class="box box-primary"> <div class="box-header"> <?php echo BsHtml::pageHeader('Update', 'Skill ' . $model->id_skill); ?> </div> <?php $this->renderPartial('_form', array('model' => $model)); ?> </div>
<div class = "b-admin_menu"> <?php $this->widget('bootstrap.widgets.BsNavbar', array('collapse' => true, 'brandLabel' => BsHtml::icon(BsHtml::GLYPHICON_HOME), 'brandUrl' => Yii::app()->homeUrl, 'position' => BsHtml::NAVBAR_POSITION_STATIC_TOP, 'items' => array(array('class' => 'bootstrap.widgets.BsNav', 'type' => 'navbar', 'activateParents' => true, 'items' => array(array('label' => Yii::t('admin', 'Hello') . ', ' . Yii::app()->user->username . '!', 'url' => array('/user/profile'), 'items' => array(array('label' => Yii::t('admin', 'Change your password'), 'url' => array('/user/profile/changepassword'), 'icon' => BsHtml::GLYPHICON_PAPERCLIP), array('label' => Yii::t('admin', 'Your profile'), 'url' => array('/user/profile'), 'icon' => BsHtml::GLYPHICON_USER), array('label' => Yii::t('admin', 'User Management'), 'url' => array('/user/admin/admin'), 'icon' => BsHtml::GLYPHICON_COG), array('label' => Yii::t('admin', 'Add New User'), 'url' => array('/user/admin/create'), 'icon' => BsHtml::GLYPHICON_PLUS_SIGN), array('label' => Yii::t('admin', 'Add custom field'), 'url' => array('/user/profileField/create'), 'icon' => BsHtml::GLYPHICON_PLUS_SIGN), array('label' => Yii::t('admin', 'Manage fields'), 'url' => array('/user/profileField/admin'), 'icon' => BsHtml::GLYPHICON_LIST)), 'visible' => Yii::app()->user->checkAccess('admin')), array('label' => Yii::t('admin', 'Settings'), 'url' => array('/helper/settings/admin'), 'icon' => BsHtml::GLYPHICON_COG, 'visible' => Yii::app()->user->checkAccess('admin')), array('label' => Yii::t('admin', 'Messages'), 'url' => array('/emails/emails/admin'), 'items' => array(array('label' => Yii::t('admin', 'Management'), 'url' => array('/emails/emails/admin')), array('label' => Yii::t('admin', 'Add message'), 'url' => array('/emails/emails/create')), array('label' => Yii::t('admin', 'Send'), 'url' => array('/emails/emails/send'))), 'visible' => Yii::app()->user->checkAccess('user')))), array('class' => 'bootstrap.widgets.BsNav', 'type' => 'navbar', 'activateParents' => true, 'items' => array(array('label' => Yii::t('admin', 'Logout'), 'pull' => BsHtml::NAVBAR_NAV_PULL_RIGHT, 'url' => array('/user/logout'))), 'htmlOptions' => array('pull' => BsHtml::NAVBAR_NAV_PULL_RIGHT))))); ?> </div>
<?php /* @var $this RoleController */ /* @var $model Role */ /* @var $form BSActiveForm */ ?> <?php $form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('id' => 'role-form', 'enableAjaxValidation' => false)); ?> <div class="box-body"> <p class="help-block">Fields with <span class="required">*</span> are required.</p> <?php echo $form->errorSummary($model); ?> <?php echo $form->textFieldControlGroup($model, 'kd_role', array('maxlength' => 15)); ?> <?php echo $form->textFieldControlGroup($model, 'role_name', array('maxlength' => 30)); ?> </div> <div class="box-footer"> <?php echo BsHtml::submitButton('Submit', array('color' => BsHtml::BUTTON_COLOR_PRIMARY)); ?> </div> <?php $this->endWidget();
echo $form->dropDownListControlGroup($model, 'available_to', $model->getMonthList()); ?> <?php echo $form->dateFieldControlGroup($model, 'customer_available_from', array(), array('yearRange' => date('Y') . ':2050')); ?> <?php echo $form->dateFieldControlGroup($model, 'customer_available_to', array(), array('yearRange' => date('Y') . ':2050')); ?> <?php echo $form->textFieldControlGroup($model, 'item_sales_price'); ?> <?php echo $form->checkBoxControlGroup($model, 'available_in_shop'); ?> <h3>Categories</h3> <ul class="categories"> <?php echo Category::model()->getCategoryTreeForm(SnapUtil::config('boxomatic/supplier_product_root_id'), $model); ?> </ul> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button name="new_product" type="submit" class="btn btn-primary">Add Product</button> </div> <?php $form->layout = BsHtml::FORM_LAYOUT_HORIZONTAL; BsHtml::$formLayoutHorizontalLabelClass = 'control-label col-lg-2';
echo Yii::app()->request->baseUrl; ?> /css/style.css"> <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?> /css/form.css"> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <?php $this->widget('bootstrap.widgets.BsNavbar', array('collapse' => true, 'brandLabel' => BsHtml::icon(BsHtml::GLYPHICON_HOME), 'brandUrl' => Yii::app()->homeUrl, 'items' => array(array('class' => 'bootstrap.widgets.BsNav', 'type' => 'navbar', 'activateParents' => true, 'items' => array(array('label' => 'Portfolio', 'url' => array('/page/portfolio')), array('label' => 'Product', 'url' => array('/site/')), array('label' => 'Our Skill', 'url' => array('/site/')), array('label' => 'About', 'url' => array('/site/page', 'view' => 'about')), array('label' => 'Contact', 'url' => array('/site/contact')), array('label' => 'Admin', 'url' => array('#'), 'items' => array(array('label' => 'Backend', 'url' => array('/backend/'), 'icon' => BsHtml::GLYPHICON_USER)), 'visible' => !Yii::app()->user->isGuest), array('label' => 'Login', 'url' => array('/site/login'), 'visible' => Yii::app()->user->isGuest), array('label' => 'Logout (' . Yii::app()->user->name . ')', 'url' => array('/site/logout'), 'visible' => !Yii::app()->user->isGuest)))))); ?> <div class="container" id="page"> <?php if (isset($this->breadcrumbs)) { ?> <?php $this->widget('bootstrap.widgets.BsBreadCrumb', array('links' => $this->breadcrumbs, 'tagName' => 'ul', 'activeLinkTemplate' => '<li><a href="{url}">{label}</a></li>', 'inactiveLinkTemplate' => '<li>{label}</li>')); ?> <!-- breadcrumbs --> <?php } ?> <?php
<div class="row"> <div class="col col-md-3 col-lg-12"> <?php echo $form->textFieldControlGroup($model, 'login', array('maxlength' => 30)); ?> </div> <div class="col col-md-3 col-lg-12"> <?php echo $form->textFieldControlGroup($model, 'email', array('maxlength' => 30)); ?> </div> <div class="col col-md-3 col-lg-12"> <?php echo $form->dropDownListControlGroup($model, 'organization_id', Organization::getOptionLabelsForUsers(), array('class' => 'selectpicker show-tick', 'title' => __('Any Organization'))); ?> </div> <div class="col col-md-3 col-lg-12"> <?php echo $form->dropDownListControlGroup($model, 'role', User::getRolesArray(), array('class' => 'selectpicker show-tick', 'title' => __('Any Role'))); ?> </div> </div> <div class="form-actions pull-right"> <?php echo BsHtml::submitButton(__('Search'), array('color' => BsHtml::BUTTON_COLOR_PRIMARY)); ?> </div> <div class="clearfix"></div> <?php $this->endWidget();
<!-- * * Copyright 2015. * Creator by M.Syukri Khafidh * Frontend Developer * syukri.khafidh@gmail.com * --> <?php $this->beginContent('/layouts/main'); ?> <div class="row"> <div class="col-lg-12 col-md-12 col-xs-12 col-sm-12"> <?php echo BsHtml::pills(array(array('label' => 'Operations', 'url' => '#', 'items' => $this->menu, 'icon' => BsHtml::GLYPHICON_PLUS)), array('class' => 'sidebarMenu')); ?> <?php echo $content; ?> </div> <!-- <div class="col-lg-3 col-md-3 col-xs-12 col-sm-3 sidebar-offcanvas"> <div id="sidebar"> <?php $this->beginWidget('zii.widgets.CPortlet', array('title' => 'Operations')); $this->widget('zii.widgets.CMenu', array('items' => $this->menu, 'htmlOptions' => array('class' => 'operations'))); $this->endWidget(); ?> </div> </div> --> </div> <?php
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.errorbars.min.js', CClientScript::POS_END); $cs->registerScriptFile($themePath . '/assets/js/jquery.flot.fillbetween.min.js', CClientScript::POS_END); $cs->registerScriptFile($themePath . '/assets/js/jquery.flot.image.min.js', CClientScript::POS_END); $cs->registerScriptFile($themePath . '/assets/js/jquery.flot.navigate.min.js', CClientScript::POS_END); $cs->registerScriptFile($themePath . '/assets/js/jquery.flot.pie.min.js', CClientScript::POS_END); $cs->registerScriptFile($themePath . '/assets/js/jquery.flot.resize.min.js', CClientScript::POS_END); $cs->registerScriptFile($themePath . '/assets/js/jquery.flot.selection.min.js', CClientScript::POS_END); $cs->registerScriptFile($themePath . '/assets/js/jquery.flot.stack.min.js', CClientScript::POS_END); $cs->registerScriptFile($themePath . '/assets/js/jquery.flot.symbol.min.js', CClientScript::POS_END); $cs->registerScriptFile($themePath . '/assets/js/jquery.flot.threshold.min.js', CClientScript::POS_END); $cs->registerScriptFile($themePath . '/assets/js/jquery.flot.time.min.js', CClientScript::POS_END); $cs->registerScriptFile($themePath . '/assets/js/surveyQuickAnalytics.js', CClientScript::POS_END); ?> <?php echo BsHtml::pageHeader('Быстрая аналитика по опросу', $model->title); foreach ($model->groups as $i => $group) { ?> <?php foreach ($group->questions as $i => $question) { ?> <?php $chart = QuestionToChartAdapter::getChart($question); if ($chart == "") { continue; } ?> <div id="question-<?php echo $question->qid; ?> ">
<?php /* @var $this RoleController */ /* @var $dataProvider CActiveDataProvider */ ?> <?php $this->breadcrumbs = array('Roles'); $this->menu = array(array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create Role', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Role', 'url' => array('admin'))); ?> <?php echo BsHtml::pageHeader('Roles'); $this->widget('bootstrap.widgets.BsListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));
<?php /* @var $this UserController */ /* @var $model User */ ?> <?php $this->breadcrumbs = array('Users' => array('index'), 'Create'); $this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List User', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage User', 'url' => array('admin'))); ?> <div class="box box-primary"> <div class="box-header"> <?php echo BsHtml::pageHeader('Create', 'User'); ?> </div> <?php $this->renderPartial('_form', array('model' => $model)); ?> </div>
</div> </div> <div class="form-group"> <?php echo CHtml::label('Organic Status', 'organicStatus', array('class' => 'col-lg-2')); ?> <div class="col-lg-10 "> <?php echo CHtml::dropDownList('organicStatus', Yii::app()->request->getPost('organicStatus'), Supplier::getOSDropdownListItems(), array('prompt' => ' - Select - ', 'class' => 'form-control')); ?> </div> </div> <div class="form-group"> <div class="col-lg-10 col-lg-offset-2"> <?php echo BsHtml::submitButton('Box Sales', array('name' => 'boxSales', 'class' => 'button', 'color' => BsHtml::BUTTON_COLOR_PRIMARY)); ?> </div> </div> <?php $this->endWidget(); ?> <?php if ($series) { ?> <div class="row"> <div class="col-md-12"> <?php //print_r(CJSON::encode($series[0]['data'])); $this->Widget('boxomatic.extensions.highcharts.HighchartsWidget', array('options' => array('title' => array('text' => 'Box Sales'), 'xAxis' => array('type' => 'datetime'), 'yAxis' => $yAxis, 'series' => $series)));
<?php /* @var $this CategoryController */ /* @var $dataProvider CActiveDataProvider */ ?> <?php $this->breadcrumbs = array('Categories'); $this->menu = array(array('icon' => 'glyphicon-plus-sign', 'label' => 'Create Category', 'url' => array('create')), array('icon' => 'glyphicon-plus-briefcase', 'label' => 'Manage Category', 'url' => array('admin'))); echo BsHtml::pageHeader('Categories'); $this->widget('bootstrap.widgets.BsListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));
<?php /* @var $this UserController */ /* @var $model User */ $this->breadcrumbs = array('Users' => array('index'), 'Manage'); $this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List User', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create User', 'url' => array('create'))); Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$('#user-grid').yiiGridView('update', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n"); ?> <?php echo BsHtml::pageHeader('Manage', 'Users'); ?> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"><?php echo BsHtml::button('Advanced search', array('class' => 'search-button', 'icon' => BsHtml::GLYPHICON_SEARCH, 'color' => BsHtml::BUTTON_COLOR_PRIMARY), '#'); ?> </h3> </div> <div class="panel-body"> <p> You may optionally enter a comparison operator (<b><</b>, <b><=</b>, <b>></b>, <b>>=</b>, <b> <></b> or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done. </p> <div class="search-form" style="display:none"> <?php $this->renderPartial('_search', array('model' => $model)); ?> </div>