<?php /** * Страница платных услуг. * @var yii\web\View $this */ use yii\helpers\Url; use app\assets\AppAsset; $this->registerCssFile('@web/css/paidServices.css', ['depends' => [AppAsset::className()]]); ?> <h2>Дополнительные услуги</h2> <div id="services-wrapper"> <div id="main-col"> <p> Здесь представлены платные услуги по продвижению своего ателье/магазина и размещенных в нем товаров. </p> <ul> <li> <div class="icon-circle up"><i></i></div> <div class="service-body"> <h3><a href="">Продвижение ателье/магазина</a></h3> <p> При активации данной услуги ваше ателье (магазин) окажется на главной странице сайта. Оно будет добавлено в карусель ателье/магазинов и пробудет там в течении определенного времени. </p> </div> </li> <li> <div class="icon-circle good-green"><i></i></div> <div class="service-body">
<?php use yii\web\View; use yii\helpers\Url; use yii\helpers\Html; use app\assets\AppAsset; use yii\widgets\LinkPager; AppAsset::register($this); AppAsset::addScript($this, '@web/static/js/jqueryExtend.js'); AppAsset::addScript($this, '@web/static/js/jqueryFnExtend.js'); $this->title = '编辑竞猜问题'; $js = "\n" . 'var url="' . Url::toRoute(['/que/checkinfo'], true) . '?zhi_id=' . $zhi_id . '";'; $js .= "\n" . 'var edit_url="' . Url::toRoute(['/que/edit'], true) . '";'; $js .= "\n" . 'var del_url="' . Url::toRoute(['/que/del'], true) . '";'; $js .= "\n" . 'var check_url="' . Url::toRoute(['/que/check'], true) . '";'; $js .= "\n" . 'var remove_url="' . Url::toRoute(['/que/remove'], true) . '";'; $js .= "\n" . 'var Answer_url="' . Url::toRoute(['/que/answer'], true) . '";'; $js .= "\n" . 'var lottery_url="' . Url::toRoute(['/que/lottery'], true) . '";'; $js .= "\n" . 'var lotteryRe_url="' . Url::toRoute(['/que/lotteryrestart'], true) . '";'; $js .= "\n"; $js .= <<<JS \$(function(){ getTable1(url); }); function getTable1(url,params){ var columns=[[ {field:'ck',checkbox:true }, {field:'type_name',title:'体育类型',width:60,align:'center'}, {field:'group_name',title:'问题形式',width:60,align:'center'}, {field:'que_content',title:'问题',width:400,align:'center'},
<title><?php echo Html::encode($this->title); ?> </title> <?php $this->head(); ?> </head> <body> <div class="app container-menu"> <div class="menu-wrap"> <nav class="menu"> <div class="icon-list"> <?php echo AppAsset::createMenu(); ?> </div> </nav> <button class="close-button" id="close-button">Close Menu</button> <div class="morph-shape" id="morph-shape" data-morph-open="M-1,0h101c0,0,0-1,0,395c0,404,0,405,0,405H-1V0z"> <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 100 800" preserveAspectRatio="none"> <path d="M-1,0h101c0,0-97.833,153.603-97.833,396.167C2.167,627.579,100,800,100,800H-1V0z"/> </svg> </div> </div> <!--<button class="menu-button" id="open-button">Open Menu</button>--> <div class="content-wrap"> <div class="la-anim-1"></div> <div class="content-elastic">
<?php /** * Страница создания товара. * @var yii\web\View $this * @var yii\widgets\ActiveForm $form * @var app\modules\cabinet\models\GoodForm $GoodForm */ use yii\widgets\ActiveForm; use yii\helpers\Url; use yii\helpers\Html; use yii\helpers\ArrayHelper; use app\assets\AppAsset; $this->registerCssFile('@web/css/cabinet-studio-addGood.css', ['depends' => [AppAsset::className()]]); $this->registerJsFile('@web/js/cabinet-studio-addGood.js', ['depends' => [AppAsset::className()]]); $fieldTemplate = '<div class="left-col">{label}</div><div class="center-col">{input}<div class="help-block"></div></div>'; $requiredFieldTemplate = '<div class="left-col"><i class="icon asterisk"></i>{label}</div><div class="center-col">{input}<div class="help-block"></div></div>'; $selectTemplate = '<div class="left-col"><i class="icon asterisk"></i>{label}</div><div class="center-col"><div class="select category">{input}<div class="select-button"><span class="caret"></span></div></div><div class="help-block"></div></div>'; ?> <div class="panel width-panel"> <?php $form = ActiveForm::begin(['id' => 'good-form', 'fieldConfig' => ['template' => $fieldTemplate]]); ?> <div class="panel-header"> <div class="icon-circle good"><i></i></div><h2>Добавление товара</h2> </div> <div class="panel-body"> <ul> <li> <?php echo $form->errorSummary($GoodForm, ['header' => '']);
<?php use yii\helpers\Url; use app\widgets\panelWidgets\PersonalIndexUserOrders; use app\widgets\panelWidgets\PersonalIndexUserBasket; use app\widgets\panelWidgets\PersonalIndexUserRating; use app\assets\AppAsset; $this->registerCssFile('@web/css/cabinet-index.css', ['depends' => [AppAsset::className()]]); ?> <div class="float"> <h4><a href="" class="big-red-medium">Заказы</a></h4> <?php echo PersonalIndexUserOrders::widget(); ?> <h4><a href="" class="big-red-medium">Корзина</a></h4> <?php echo PersonalIndexUserBasket::widget(); ?> </div> <div class="float"> <div class="inline-vidget small-widget"> <h4><a href="" class="big-red-medium">Репутация</a></h4> <?php echo PersonalIndexUserRating::widget(); ?> </div> <div class="open-owner-studio"> <p> Откройте свой собственный магазин или ателье </p> <div id="owner-studio-button" class="button">
<?php /** * Страница восстановления пароля * @var yii\web\View $this * @var yii\widgets\ActiveForm $form * @var app\modules\users\models\RepairPassForm $RepairPassForm */ use yii\widgets\ActiveForm; use yii\captcha\Captcha; use app\assets\AppAsset; $this->registerCssFile('@web/css/repair-password.css', ['depends' => [AppAsset::className()]]); $fieldTemplate = '<div class="left-col">{label}</div><div class="center-col">{input}<div class="help-block"></div></div>'; ?> <main> <div class="panel big-panel"> <?php $form = ActiveForm::begin(['fieldConfig' => ['template' => $fieldTemplate]]); ?> <div class="panel-header"> <div class="icon-circle key"><i></i></div><h2>Восстановление пароля</h2> </div> <div class="panel-body"> <p class="instruction italic"> Вам на почту будет высланы инструкции по восстановлению пароля. Просто следуйте им. </p> <ul> <li> <?php echo $form->errorSummary($RepairPassForm, ['header' => '']);
<?php /** * Страница редактирования данных студии. * @var yii\web\View $this * @var yii\widgets\ActiveForm $form * @var app\modules\cabinet\models\StudioForm $StudioForm */ use yii\widgets\ActiveForm; use yii\jui\AutoComplete; use yii\web\JsExpression; use yii\helpers\Html; use yii\helpers\Url; use app\assets\AppAsset; $this->registerCssFile('@web/css/cabinet-personal-redact.css', ['depends' => [AppAsset::className()]]); $this->registerJsFile('@web/js/checkCity.js', ['depends' => [AppAsset::className()]]); $fieldTemplate = '<div class="left-col">{label}</div><div class="center-col">{input}<div class="help-block"></div></div>'; $requiredFieldTemplate = '<div class="left-col"><i class="icon asterisk"></i>{label}</div><div class="center-col">{input}<div class="help-block"></div></div>'; ?> <div class="panel width-panel"> <?php $form = ActiveForm::begin(['id' => 'studio-form', 'fieldConfig' => ['template' => $fieldTemplate]]); ?> <div class="panel-header"> <div class="icon-circle redact"><i></i></div><h2>Редактирование данных <?php echo $studioType; ?> </h2> </div> <div class="panel-body"> <ul>
/** * */ public function registerClientScript() { $view = $this->getView(); if ($this->language !== null) { $this->clientOptions['locale'] = $this->language; AppAsset::register($view)->js[] = $this->localePath . $this->language . '.js'; } else { AppAsset::register($view); } $id = $this->options['id']; $selector = "jQuery('#{$id}')"; if (strpos($this->template, '{button}') !== false) { $selector .= ".parent()"; } $options = !empty($this->clientOptions) ? Json::encode($this->clientOptions) : ''; $js[] = "{$selector}.datetimepicker({$options});"; if (!empty($this->clientEvents)) { foreach ($this->clientEvents as $event => $handler) { $js[] = "{$selector}.on('{$event}', {$handler});"; } } $view->registerJs(implode("\n", $js)); }
public static function addCss($view, $cssfile) { $view->registerCssFile($cssfile, [AppAsset::className(), 'depends' => 'app\\assets\\AppAsset']); }
<?php use app\assets\AppAsset; use app\widgets\ImagesGallery; use yii\helpers\Html; AppAsset::register($this); $this->registerJs(AppAsset::customJs()); $this->beginPage(); ?> <!DOCTYPE html> <html lang="<?php echo Yii::$app->language; ?> "> <head> <meta charset="<?php echo Yii::$app->charset; ?> "/> <meta name="viewport" content="width=device-width, initial-scale=1"> <?php echo Html::csrfMetaTags(); ?> <title><?php echo Html::encode($this->title); ?> </title> <?php $this->head(); ?> </head>
<?php use yii\web\View; use yii\helpers\Url; use yii\helpers\Html; use app\assets\AppAsset; use yii\widgets\LinkPager; AppAsset::register($this); AppAsset::addCss($this, '@web/static/css/buff.css'); // echo Html::cssFile('@web/static/css/buff.css'); $js = "\n" . 'var buff_url = "' . Url::toRoute(['/buff/checkbuff']) . '";'; $js .= "\n" . 'var comment_url = "' . Url::toRoute(['/buff/checkcomment']) . '";'; $js .= "\n" . 'var check_url = "' . Url::toRoute(['/buff/checkpass']) . '";'; $js .= "\n" . 'var top_url = "' . Url::toRoute(['/buff/checktop']) . '";'; $js .= "\n" . 'var search_url = "' . Url::toRoute(['/buff/index']) . '";'; $js .= "\n" . 'var start_time = "' . ($search['start_time'] ? $search['start_time'] : '') . '";'; $js .= "\n" . 'var end_time = "' . ($search['end_time'] ? $search['end_time'] : '') . '";'; $js .= <<<JS var top_num = null; function checkbox(){ //点击td选中input \$('.checkbox-out-td').click(function(){ var obj=\$(this); var input=obj.children('input'); if (input.prop('checked')) { input.prop('checked',false); } else{ input.prop('checked',true); } if (obj.attr('id')=='checkall-out-td') {
<?php /** * Страница конкретной новости. * @var yii\web\View $this */ use yii\helpers\Url; use app\assets\AppAsset; $this->registerCssFile('@web/css/newsInstance.css', ['depends' => [AppAsset::className()]]); ?> <main class="left float"> <h2>Осенняя мода 2014: обновляем гардероб</h2> <time class="news-date" datetime="2014-08-08">08.08.2014</time> <div id="news-wrapper"> <img src="/photos/good/1/2.jpg"> <p> Юбка-солнце. Посадка на талии. Длина ок. 65 см. Юбка выкроена без шва, на всю ширину ткани. Пояс шириной ок. 6 см, из плотного трикотажного полотна вязанного резинкой (рибаны), продублирован резинкой эластичной. Легко одевается без всяких молний)) </p> <p> По желанию можно любую длину. В зависимости от длины юбки и обхвата талии могут быть предусмотрены боковые швы на юбке. </p> На фото - размер юбки 42-44. Стоимость указана вместе с данным на фото используемым материалом для данного размера. Окончательная стоимость зависит от расхода выбранного материала и его стоимости. <p> Юбка-солнце. Посадка на талии. Длина ок. 65 см. Юбка выкроена без шва, на всю ширину ткани. Пояс шириной ок. 6 см, из плотного трикотажного полотна вязанного резинкой (рибаны), продублирован резинкой эластичной. Легко одевается без всяких молний)) Юбка-солнце. Посадка на талии. Длина ок. 65 см. Юбка выкроена без шва, на всю ширину ткани. Пояс шириной ок. 6 см, из плотного трикотажного полотна вязанного резинкой (рибаны), продублирован резинкой эластичной. Легко одевается без всяких молний)) </p> <p> По желанию можно любую длину. В зависимости от длины юбки и обхвата талии могут быть предусмотрены боковые швы на юбке. </p>
<?php /** * @var app\modules\users\models\User $User */ use yii\widgets\ActiveForm; use app\assets\AppAsset; $this->registerCssFile('@web/css/cabinet-personal-redact.css', ['depends' => [AppAsset::className()]]); $fieldTemplate = '<div class="left-col">{label}</div><div class="center-col">{input}<div class="help-block"></div></div>'; ?> <div class="panel width-panel"> <?php $form = ActiveForm::begin(['id' => 'user-form', 'fieldConfig' => ['template' => $fieldTemplate]]); ?> <div class="panel-header"> <div class="icon-circle redact"><i></i></div><h2>Редактирование персональных данных</h2> </div> <div class="panel-body"> <ul> <li> <?php echo $form->errorSummary($User, ['header' => '']); ?> </li> <li class="pass-field"> <?php echo $form->field($User, 'oldPassword')->passwordInput(); ?> </li> <li class="pass-field"> <?php
public function init() { AppAsset::register($this->getView()); NotifyJsAsset::register($this->getView()); }
<?php $this->title = 'Экспертно-профильные группы'; $this->registerJsFile('/js/attestacionnayaKomissiya.js'); $this->registerJsFile('/js/angular.min.js'); $this->registerCssFile('css/attestacionnayaKomissiya.css', ['depends' => [\app\assets\AppAsset::className()]]); echo '<h2>Экспертно-профильные группы</h2><p> </p>'; ?> <div ng-app="komissii" class="komissii-content hidden" id="komissii"> <div class="col-md-6" ng-controller="KomissiiListController as komissii"> <form ng-submit="komissii.addKomissiyu()" class="form-inline"> <input type="text" ng-model="komissii.newNazvanie" size="25" placeholder="Название новой комиссии" class="form-control"> <input class="btn btn-primary" type="submit" value="Добавить"> </form> <br> <table class="att-tb" style="width: 100%"> <tr class="thead"> <td style="width: 70%">Название</td> <td></td> </tr> <tr ng-class="item.is_selected ? 'selected_komissiya' : ''" ng-repeat="item in komissii.list | orderBy:nazvanie"> <td> <span ng-hide="item.is_edit" class="komissiya{{item.id}}">{{item.nazvanie}}</span> <div ng-show="item.is_edit" class="form-inline"> <input style="width: 100%" class="form-control" ng-model="item.nazvanie_copy" id="input_nazvanie{{item.id}}" value="" type="text"> </div>
<?php use yii\helpers\Html; use yii\helpers\Url; use app\assets\AppAsset; use yii\bootstrap\Nav; use yii\bootstrap\NavBar; use yii\widgets\Breadcrumbs; use app\widgets\Alert; use app\helpers\Bugitor; AppAsset::register($view); $view->beginPage();
</div> <button type="submit" class="btn">登录</button> <?php ActiveForm::end(); ?> </div> </div> </div> </div> </div> </div> <?php AppAsset::addPageScript($this, "@web/login/js/jquery-1.11.1.min.js"); AppAsset::addPageScript($this, "@web/login/bootstrap/js/bootstrap.min.js"); AppAsset::addPageScript($this, "@web/login/js/jquery.backstretch.min.js"); AppAsset::addPageScript($this, "@web/login/js/scripts.js"); $this->registerJsFile('@web/login/js/placeholder.js', ['condition' => 'lt IE 10']); ?> <?php $this->endBody(); ?> </body> </html> <?php $this->endPage();
<?php use yii\helpers\Html; use app\assets\AppAsset; $this->title = '用户管理'; ?> <a class="btn btn-success" href="user/create"> <span class="glyphicon glyphicon-plus"></span> 新建 </a> <table id="myTable" class="dataTable"> <thead> <tr> <th>姓名</th> <th>公司</th> <th>操作</th> </tr> </thead> <tbody> <!--<tr> <td>分类1</td> <td>分类0</td> <td><a href="templates/backend/proCategoryUpdate.html">修改</a></td> </tr>--> </tbody> </table> <?php $this->registerJsFile("@web/js/src/userMgr.js", ['depends' => [app\assets\AppAsset::className()]]);
<?php /** * Страница оформления заказов. * @var yii\web\View $this */ use yii\helpers\Url; use app\assets\AppAsset; $this->registerCssFile('@web/css/placeOrder.css', ['depends' => [AppAsset::className()]]); ?> <h2>Оформление заказа</h2> <p class="page-help bigger italic">С каждым ателье и/или магазином у вас будет оформлен отдельный заказ.</p> <div class="order"> <div class="icon-circle atelier"><i></i></div><h3 class="order-studio">Заказ у <a href="" target="_blank" class="big-red-medium">Brasletiki-spb</a></h3> <div class="panel width-panel"> <div class="panel-body"> <ul class="good-list"> <li> <a href="" target="_blank" class="img-link"><img src="/photos/good/1/1_small.jpeg" width="48" height="48"></a><div class="name-box"> <a href="" target="_blank" class="bigger">Платье “Осень, Зима, Весна”</a> </div><div class="price-box"> <span class="price-normal">3 210</span> руб. </div><div class="counter"> <span>Кол-во:</span> <span class="price-normal">3 999</span> </div><div class="end-price"> <span class="price-bigger">3 210</span> руб. </li> <li> <a href="" target="_blank" class="img-link"><img src="/photos/good/1/1_small.jpeg" width="48" height="48"></a><div class="name-box">
<?php /* @var $this \yii\web\View */ /* @var $content string */ use yii\helpers\Html; use yii\bootstrap\Nav; use yii\bootstrap\NavBar; use yii\widgets\Breadcrumbs; use app\assets\AppAsset; AppAsset::register($this); $this->beginPage(); ?> <!DOCTYPE html> <html lang="<?php echo Yii::$app->language; ?> "> <head> <meta charset="<?php echo Yii::$app->charset; ?> "> <meta name="viewport" content="width=device-width, initial-scale=1"> <?php echo Html::csrfMetaTags(); ?> <title><?php echo Html::encode($this->title); ?> </title> <?php
<?php use yii\widgets\ActiveForm; use app\models\Terminal; /* @var $this yii\web\View */ $this->title = Yii::$app->name; $this->registerJsFile('@web/js/textarea-caret-position-master/index.js', ['depends' => \app\assets\AppAsset::className()]); $this->registerJsFile('@web/js/terminal.js', ['depends' => \app\assets\AppAsset::className()]); \yii\jui\JuiAsset::register($this); /** * @var Terminal $model */ ?> <div id="content"> <input id="terminal-search" /> <?php $form = ActiveForm::begin(['options' => ['name' => 'terminal', 'onkeydown' => "if (event.ctrlKey && event.keyCode == 13) \$(this).submit();", 'onsubmit' => '$.post("", $(this).serialize()) .done(function(data){$("#results").html(data);}) .fail(function(data){$("#results").html(data.responseText);}); return false;']]); ?> <textarea name="Terminal[content]" id="terminal-input"><?php echo $model->content; ?> </textarea> <input type="hidden" name="Terminal[speed]" /> <input class="submit" type="submit" value=">" /> <?php $form::end(); ?> <div id="results">
<?php use app\assets\AppAsset; use yii\helpers\Html; /* @var $this \yii\web\View */ /* @var $content string */ if (class_exists('backend\\assets\\AppAsset')) { backend\assets\AppAsset::register($this); } else { app\assets\AppAsset::register($this); } dmstr\web\AdminLteAsset::register($this); $this->beginPage(); ?> <!DOCTYPE html> <html lang="<?php echo Yii::$app->language; ?> "> <head> <meta charset="<?php echo Yii::$app->charset; ?> "/> <meta name="viewport" content="width=device-width, initial-scale=1"> <?php echo Html::csrfMetaTags(); ?> <title><?php echo Html::encode($this->title); ?>
<?php use app\models\Checklist; $this->registerJsFile('/web/js/editable-checklist.js', ['depends' => [\app\assets\AppAsset::className()]]); ?> <div class="block"> <!-- Checklist Title --> <div class="block-title dropdown"> <div class="block-options pull-right"> <button class="btn btn-sm btn-alt btn-default dropdown-toggle" type="button" id="dropdownChecklist" data-toggle="dropdown" aria-expanded="true"> Choose Checklist <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownChecklist" id="choose-checklists"> <?php $checklists = Checklist::getChecklistBelong($belong_to); if ($checklists) { foreach ($checklists as $key => $checklist) { if (!empty($checklist->cschedule)) { ?> <li role="presentation"> <a data-toggle="modal" href="#modal-checklist-add" class="btn-pop-add-checklist" data-checklist-id="<?php echo $checklist->id; ?> "><?php echo $checklist->title; ?> </a> </li> <?php
?> </button> </div> </div> </div> </div> <div class="modal fade" id="post-detail" tabindex="-1"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"> <span aria-hidden="true">×</span> </button> <h4 class="modal-title">{{ main.posts[main.selectedPost].title}}</h4> </div> <div class="modal-body"> <em>{{ main.posts[main.selectedPost].summary}}</em> <div ng-bind-html="main.posts[main.selectedPost].content"></div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo Yii::t('app', 'Close'); ?> </button> </div> </div> </div> </div> <?php $this->registerJsFile('http://maps.googleapis.com/maps/api/js', ['depends' => AppAsset::className()]); $this->registerJs("\n function initialize() {\n var myLatlng = new google.maps.LatLng(10.8444856, 106.6722255);\n var mapProp = {\n center: myLatlng,\n zoom: 18,\n scrollwheel: false,\n mapTypeId: google.maps.MapTypeId.ROADMAP\n };\n var map = new google.maps.Map(document.getElementById('googleMap'), mapProp);\n var marker = new google.maps.Marker({\n position: myLatlng,\n map: map,\n title: 'Pinut',\n icon: '/images/logo-map.png'\n });\n }\n google.maps.event.addDomListener(window, 'load', initialize);\n");
<?php use yii\helpers\Html; use yii\grid\GridView; use yii\widgets\ActiveForm; use app\models\Users; use app\assets\AppAsset; /* @var $this yii\web\View */ /* @var $form yii\bootstrap\ActiveForm */ /* @var $model app\models\LoginForm */ $this->title = 'Class List'; // $this->params['breadcrumbs'][] = $this->title; $bundle = AppAsset::register($this); ?> <div class="site-list"> <h1><?php echo Html::encode($this->title); ?> </h1> <?php // echo $this->render('_search', ['model' => $searchModel]); ?> <p> <?php echo Html::a('Create Users', ['create'], ['class' => 'btn btn-success']); ?> </p> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'StudentNumber', 'FirstName', 'MiddleName', 'LastName', 'ClassSection', ['class' => 'yii\\grid\\ActionColumn']]]);
/** * @inheritdoc */ public function behaviors() { return ['access' => ['class' => AccessControl::className(), 'only' => ["bulkDelete", "create", "delete", "index", "update", "view"], 'rules' => [['actions' => ["bulkDelete", "create", "delete", "index", "update", "view"], 'allow' => AppAsset::getAccess("state"), 'roles' => ['@']]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post'], 'bulk-delete' => ['post']]]]; }
<?php /** * Страница авторизации пользователя. * @var yii\web\View $this * @var yii\widgets\ActiveForm $form * @var app\modules\users\models\User $model */ use yii\widgets\ActiveForm; use app\assets\AppAsset; $this->registerCssFile('@web/css/login.css', ['depends' => [AppAsset::className()]]); $this->title = 'Авторизация'; $this->params['breadcrumbs'][] = $this->title; $this->params['page-id'] = 'login'; $fieldTemplate = '<div class="left-col">{label}</div><div class="center-col">{input}<div class="help-block"></div></div>'; ?> <div class="panel big-panel"> <?php $form = ActiveForm::begin(['fieldConfig' => ['template' => $fieldTemplate]]); ?> <div class="panel-header"> <div class="icon-circle person-green"><i></i></div><h2>Авторизация</h2> </div> <div class="panel-body"> <ul> <li> <?php echo $form->errorSummary($model, ['header' => '']); ?>
use yii\helpers\Html; use yii\web\View; use yii\helpers\ArrayHelper; //use kartik\grid\GridView; use kartik\select2\Select2; use app\modules\main\models\Products; use app\components\grid\ActionProductsColumn; use app\assets\AppAsset; use app\components\widgets\InputWithClose; //var_dump($f); /* @var $this yii\web\View */ /* @var $searchModel app\modules\main\models\ProductsSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ /* @var $orderedProducts app\modules\main\models\OrderedProduct */ /* @var $model app\modules\main\models\Products */ $this->registerJsFile('js/ordered.js', ['depends' => AppAsset::className(), 'position' => View::POS_END]); $this->title = 'Остатки товаров'; $this->params['breadcrumbs'][] = $this->title; $this->params['menu'] = 1; $columns = [['attribute' => 'tn', 'value' => function ($model, $key, $index, $column) { return Html::a($model->tn, ['#'], ['class' => 'green-link desc-link']); }, 'format' => 'html', 'label' => 'Торговое<br>наименование', 'encodeLabel' => false, 'headerOptions' => ['class' => 'abc']], ['attribute' => 'nshort3', 'value' => function ($model, $key, $index, $column) { return Html::a($model->nshort3, ['#'], ['class' => 'desc-link']); }, 'format' => 'html', 'label' => 'Форма<br>выпуска', 'encodeLabel' => false], ['attribute' => 'mnn', 'value' => function ($model, $key, $index, $column) { return Html::a($model->mnn, ['#'], ['class' => 'desc-link']); }, 'label' => 'Международное<br>наименование', 'encodeLabel' => false, 'format' => 'html'], ['attribute' => 'namepr', 'value' => function ($model, $key, $index, $column) { return Html::a($model->namepr, ['#'], ['class' => 'desc-link']); }, 'label' => 'Наименование<br>производителя', 'encodeLabel' => false, 'format' => 'html'], ['attribute' => 'country', 'value' => function ($model, $key, $index, $column) { return Html::a($model->country, ['#'], ['class' => 'desc-link']); }, 'label' => 'Страна<br>производства', 'encodeLabel' => false, 'format' => 'html'], ['attribute' => 'goden_do', 'value' => function ($model, $key, $index, $column) { return Html::a(Yii::$app->formatter->asDate($model->goden_do), ['#'], ['class' => 'desc-link']);
} ?> <div class="form-group"> <label for="name" class="control-label col-md-2">标题*</label> <div class="col-md-8"> <input type="text" class="form-control" value="<?php echo $model->community_title; ?> " name="community_title"> </div> </div> <div class="form-group"> <label class="control-label col-md-2">内容*</label> <div class="col-md-8"> <textarea class="form-control" name="community_content" rows="3" id="content"><?php echo $model->community_content; ?> </textarea> </div> </div> <div class="form-group"> <div class="col-md-offset-2 col-md-8"> <button type="submit" class="btn btn-success form-control">确定</button> </div> </div> </form> <?php $this->registerJsFile("@web/js/src/communityCreateOrUpdate.js", ['depends' => [app\assets\AppAsset::className()]]);
<?php use yii\helpers\Html; use yii\helpers\Url; use yii\widgets; $this->registerAssetBundle(\yii\web\YiiAsset::className(), \yii\web\View::POS_HEAD); $this->registerAssetBundle(\yii\bootstrap\BootstrapAsset::className(), \yii\web\View::POS_HEAD); $this->registerAssetBundle(\app\assets\AppAsset::className(), \yii\web\View::POS_HEAD); $this->beginPage(); ?> <!DOCTYPE html> <html lang="<?php echo Yii::$app->language; ?> "> <head> <meta charset="<?php echo Yii::$app->charset; ?> "/> <link rel="icon" type="image/png" href="/img/fav.png" /> <title><?php echo Html::encode($this->title); ?> </title> <?php $this->head(); ?> <?php echo Html::csrfMetaTags(); ?>