Beispiel #1
0
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]);
Beispiel #2
0
<?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;