$form = ActiveForm::begin(['id' => 'info-form', 'enableAjaxValidation' => true]); ?> <?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, '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]);
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]; ?>