本文整理汇总了PHP中app\func\Proc::FilterFieldSelectSingle方法的典型用法代码示例。如果您正苦于以下问题:PHP Proc::FilterFieldSelectSingle方法的具体用法?PHP Proc::FilterFieldSelectSingle怎么用?PHP Proc::FilterFieldSelectSingle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类app\func\Proc
的用法示例。
在下文中一共展示了Proc::FilterFieldSelectSingle方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Grupa
<div class="panel panel-<?php
echo Yii::$app->params['panelStyle'];
?>
panelblock">
<div class="panel-heading"><?php
echo Html::encode('Материальная ценность');
?>
</div>
<div class="panel-body">
<?php
echo $form->field($model, 'mol_fullname_material')->widget(Select2::classname(), array_merge(Proc::DGselect2(['model' => $model, 'resultmodel' => new \app\models\Config\Authuser(), 'placeholder' => 'Введите ФИО Материально-ответственного лица', 'setsession' => false, 'multiple' => ['multipleshowall' => false, 'idvalue' => 'auth_user_id'], 'fields' => ['keyfield' => 'mol_fullname_material', 'resultfield' => 'auth_user_fullname'], 'resultrequest' => 'Config/authuser/selectinput', 'thisroute' => $this->context->module->requestedRoute]), ['addon' => ['prepend' => ['content' => Proc::SetTemplateForActiveFieldWithNOT($form, $model, 'mol_fullname_material')], 'groupOptions' => ['class' => 'notforselect2']]]));
?>
<?php
echo Proc::FilterFieldSelectSingle($form, $model, 'material_writeoff', 'Выберете условие');
?>
<?php
echo $form->field($model, 'mat_id_grupa')->widget(Select2::classname(), array_merge(Proc::DGselect2(['model' => $model, 'resultmodel' => new Grupa(), 'placeholder' => 'Введите группу материальной ценности', 'setsession' => false, 'multiple' => ['multipleshowall' => false, 'idvalue' => 'grupa_id'], 'fields' => ['keyfield' => 'mat_id_grupa', 'resultfield' => 'grupa_name'], 'resultrequest' => 'Fregat/grupa/selectinput', 'thisroute' => $this->context->module->requestedRoute]), ['addon' => ['prepend' => ['content' => Proc::SetTemplateForActiveFieldWithNOT($form, $model, 'mat_id_grupa')], 'groupOptions' => ['class' => 'notforselect2']]]));
?>
</div>
</div>
<div class="panel panel-<?php
echo Yii::$app->params['panelStyle'];
?>
panelblock">
<div class="panel-heading"><?php
echo Html::encode('Перемещение материальных ценностей');
示例2: FillCity
?>
<?php
echo $form->field($model, 'patient_ot')->textInput(['maxlength' => true, 'class' => 'form-control inputuppercase']);
?>
<?php
echo Proc::FilterFieldDate($form, $model, 'patient_dr');
?>
<?php
echo Proc::FilterFieldIntCondition($form, $model, 'patient_vozrast', ['min' => 1, 'max' => 120, 'step' => 1, 'decimals' => 0]);
?>
<?php
echo Proc::FilterFieldSelectSingle($form, $model, 'patient_pol', 'Выберете пол пациента');
?>
<div class="panel panel-<?php
echo Yii::$app->params['panelStyle'];
?>
panelblock">
<div class="panel-heading"><?php
echo Html::encode('Адрес пациента');
?>
</div>
<div class="panel-body">
<?php
echo $form->field($model, 'fias_city')->widget(Select2::classname(), array_merge(Proc::DGselect2(['model' => $model, 'resultmodel' => new \app\models\Base\Fias(), 'fields' => ['keyfield' => 'fias_city'], 'placeholder' => 'Введите населенный пункт', 'resultrequest' => 'Base/fias/selectinputforcity', 'thisroute' => $this->context->module->requestedRoute, 'methodquery' => 'selectinputforcity']), ['pluginEvents' => ["select2:select" => "function() { FillCity(); }", "select2:unselect" => "function() { ClearCity(); }"]]))->label('Населенный пункт');
?>