Esempio n. 1
0
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>
Esempio n. 2
0
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>