echo $form->field($model, 'name', ['inputOptions' => ['placeholder' => '统计表名']]); ?> <?php echo $form->field($model, 'text', ['inputOptions' => ['placeholder' => '主标题']]); ?> <?php echo $form->field($model, 'sub_text', ['inputOptions' => ['placeholder' => '副标题']]); ?> <?php echo $form->field($model, 'limit', ['inputOptions' => ['placeholder' => '每页显示多少条']])->dropDownList(Dictionary::getPageSize()); ?> <?php echo $form->field($model, 'class', ['inputOptions' => ['placeholder' => '图表类别']])->dropDownList(Dictionary::getChartClass()); ?> <?php echo $form->field($model, 'direction', ['inputOptions' => ['placeholder' => '图表方向']])->dropDownList(Dictionary::getDirection()); ?> <?php echo $form->field($model, 'condition', ['inputOptions' => ['placeholder' => 'channel = "360"']]); ?> <?php echo $form->field($model, 'summary', ['inputOptions' => ['placeholder' => '汇总方式']])->textarea(['rows' => 3]); ?> <?php echo $form->field($model, 'summary_group', ['inputOptions' => ['placeholder' => '汇总分组字段']])->textarea(['rows' => 3]); ?> <?php echo $form->field($model, 'summary_order', ['inputOptions' => ['placeholder' => '汇总排序方式']])->textarea(['rows' => 3]); ?> <?php echo $form->field($model, 'summary_limit', ['inputOptions' => ['placeholder' => '汇总显示数量']])->textarea(['rows' => 3]);
echo Html::dropDownList('province', '', [], ['id' => 'province' . $table->id, 'tid' => $table->id, 'class' => 'form-control province', 'style' => 'width: auto;', 'prompt' => '省份']); echo Html::dropDownList('city', '', [], ['id' => 'city' . $table->id, 'tid' => $table->id, 'class' => 'form-control city', 'style' => 'width: auto;', 'prompt' => '城市']); echo Html::hiddenInput('area_id', 0, ['id' => 'area_id' . $table->id]); echo '</div>'; break; default: break; } echo " "; } echo Html::button('搜索', ['class' => 'btn btn-success search-button']); ?> </div> <div style="float: right"> <?php echo Html::dropDownList('page_size', $table->fdLimit, Dictionary::getPageSize(), ['class' => 'form-control', 'style' => 'width: auto;']); ?> <?php echo Html::button('导出数据', ['class' => 'btn btn-default export']); ?> </div> <div style ="clear: both"></div> </div> <br/> <div id="content_<?php echo $table->id; ?> " class="content"> <?php echo $content[$table->id]; ?>
echo $form->field($model, 'id', ['template' => '{input}'])->hiddenInput(['id' => 'entity-id']); ?> <?php echo $form->field($model, 'name', ['inputOptions' => ['placeholder' => '目录名']]); ?> <?php echo $form->field($model, 'class', ['inputOptions' => ['placeholder' => '统计类别']])->dropDownList(Dictionary::getMenuClass()); ?> <?php echo $form->field($model, 'privilege', ['inputOptions' => ['placeholder' => '需要权限']]); ?> <?php echo $form->field($model, 'order', ['inputOptions' => ['placeholder' => '顺序']]); ?> <?php echo $form->field($model, 'disabled', ['inputOptions' => ['placeholder' => '状态']])->dropDownList(Dictionary::getMenuStatus()); ?> <?php echo SelectWidget::widget(["title" => "对应统计表", "input_name" => "tables", "selected_items" => $model->tables, "form" => "MenuForm", "search_url" => "//table/search"]); ?> <hr/> <div id="tip"></div> <div class="form-group"> <?php echo Html::submitButton('保存', ['class' => 'btn btn-success', 'id' => 'info-button']); ?> </div> <?php ActiveForm::end(); ?> </div>
use backend\components\Dictionary; /* @var $this yii\web\View */ /* @var $form yii\bootstrap\ActiveForm */ /* @var $search_model \backend\models\OperatorSearchForm */ $this->params = ['menu' => 'system']; $this->title = '选择框列表'; ?> <h3>选择框列表</h3> <?php $form = ActiveForm::begin(['id' => 'search-form', 'options' => ['role' => 'form', 'class' => 'form-inline'], 'fieldConfig' => ['template' => "{label}\n{input}\n"]]); ?> <?php echo $form->field($search_model, 'name'); ?> <?php echo $form->field($search_model, 'disabled', ['template' => "{input}\n"])->dropDownList(Dictionary::getMenuStatus(), ["prompt" => "状态"]); ?> <?php echo Html::submitButton('搜索', ['class' => 'btn btn-success', 'id' => 'search-button']); ?> <a class="btn btn-default" style="float: right;" target="_blanck" href="<?php echo Url::toRoute(["//select/info"]); ?> " role="button">添加</a> <?php ActiveForm::end(); ?> <div id="search-content"><?php echo $content; ?> </div>
$menuItems[] = ['label' => '退出 (' . Yii::$app->user->identity->username . ')', 'url' => ['/login/logout'], 'linkOptions' => ['data-method' => 'post']]; } echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => $menuItems, 'activateParents' => true]); NavBar::end(); ?> <div class="container-fluid"> <div class="row"> <?php if (!Yii::$app->user->isGuest) { ?> <div onselectstart="return false" class="col-sm-3 col-md-2 sidebar"> <?php $items = ArrayHelper::getValue(Dictionary::getMenu(), $this->params['menu'] . '.items'); if (empty($items)) { $items = ArrayHelper::getValue(Dictionary::getMenu(), $this->params['menu'] . '.inner_items'); } echo Menu::widget(['items' => $items, 'options' => ['class' => 'nav nav-sidebar'], 'labelTemplate' => '<span class="memnu_item"><span class="glyphicon glyphicon-th-large"></span> {label}</span>']); ?> </div> <?php } ?> <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main"> <?php echo $content; ?> </div> </div> </div> <!-- 弹出 -->
?> </td> <td><?php echo Html::activeDropDownList($column, 'fdSelectID', Dictionary::getSelectID()); ?> </td> <td><?php echo Html::activeDropDownList($column, 'fdOrderType', Dictionary::getOrderType()); ?> </td> <td><?php echo Html::activeDropDownList($column, 'fdChartDisplay', Dictionary::getChartDisplay()); ?> </td> <td><?php echo Html::activeDropDownList($column, 'fdTableDisplay', Dictionary::getTableDisplay()); ?> </td> <td><?php echo Html::activeInput('text', $column, 'fdFormatter', ['style' => 'width: 80px;']); ?> </td> <td> <a href="javascript:void(0);" action="updateRow" value="<?php echo $column->id; ?> " class="btn btn-default btn-xs" role="button">提交</a> <?php if ($column->id > 0) { ?> <a href="javascript:void(0);" action="deleteRow" value="<?php
<?php use yii\helpers\Html; use yii\helpers\Url; use yii\bootstrap\ActiveForm; use backend\components\Dictionary; $chart_class = Dictionary::getChartClass(); $direction = Dictionary::getDirection(); /* @var $this yii\web\View */ /* @var $form yii\bootstrap\ActiveForm */ /* @var $pages yii\data\Pagination */ ?> <table class="table table-hover table-responsive table-bordered table-striped"> <thead> <tr> <th>ID</th> <th>标题</th> <th>副标题</th> <th>关联表</th> <th>图表类型</th> <th>图表方向</th> <th>操作</th> </tr> </thead> <tbody> <?php foreach ($datas as $data) { ?> <tr> <td><?php echo $data->id;
$this->title = '查询详情'; ?> <h3>查询详情</h3> <div class="row"> <div class="col-lg-5"> <?php $form = ActiveForm::begin(['id' => 'info-form', 'enableAjaxValidation' => false]); ?> <?php echo $form->field($model, 'id', ['template' => '{input}'])->hiddenInput(['id' => 'entity-id']); ?> <?php echo $form->field($model, 'name', ['inputOptions' => ['placeholder' => '标题']]); ?> <?php echo $form->field($model, 'db_name', ['inputOptions' => ['placeholder' => '数据库名']])->dropDownList(Dictionary::getDBConnection()); ?> <?php echo $form->field($model, 'db_sql', ['inputOptions' => ['placeholder' => 'SQL查询']])->textarea(['rows' => 10]); ?> <hr/> <div id="tip"></div> <div class="form-group"> <?php echo Html::submitButton('保存', ['class' => 'btn btn-success', 'id' => 'info-button']); ?> <?php echo Html::button('运行', ['class' => 'btn btn-warning', 'id' => 'run-button']); ?> </div> <?php