コード例 #1
0
ファイル: _form.php プロジェクト: jaradsee/faktharm
    </div>

    <div class="col-xs-6 col-sm-4 col-md-6">
    

    <?php 
echo $form->field($model, 'department')->widget(Select2::classname(), ['data' => ArrayHelper::map(Adddep::find()->all(), 'ADDDEP_ID', 'DEP_NAME'), 'options' => ['placeholder' => 'เลือกแแผนก ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
       </div>   
        
       

   <div class="col-xs-6 col-sm-6">
    
    <?php 
echo $form->field($model, 'clinictype')->widget(Select2::classname(), ['data' => ArrayHelper::map(Clinictype::find()->all(), 'CLINICTYPE_ID', 'CLINIC_NAME'), 'options' => ['placeholder' => 'เลือกประเภทความเสี่ยง ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
  
    </div>     
    
    <div class="col-xs-6 col-sm-6">
    <?php 
echo $form->field($model, 'place_id')->widget(Select2::classname(), ['data' => ArrayHelper::map(Riskplace::find()->all(), 'PLACE_ID', 'PLACE_NAME'), 'options' => ['placeholder' => 'เลือกสถานที่เกิดเหตุ ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
   
     
     </div>       
    </div>
    
  <?php 
echo $form->field($model, 'event_name')->textarea(['rows' => 3]);