Esempio n. 1
0

    <?php 
echo $form->field($model, 'risk_again')->textInput(['maxlength' => true]);
?>



    <?php 
echo $form->field($model, 'risk_ref_no')->textInput(['maxlength' => true]);
?>
        
        
        <div class="col-sm-6 col-md-6">
       <?php 
echo $form->field($model, 'prohead')->dropdownList(ArrayHelper::map(Prohead::find()->all(), 'PROHEAD_ID', 'PROHEAD_NAME'), ['id' => 'ddl-prohead', 'prompt' => 'เลือกโปรแกรมความเสี่ยง']);
?>
    </div>
     <div class="col-sm-6 col-md-6">
       <?php 
echo $form->field($model, 'prodetail')->widget(DepDrop::classname(), ['options' => ['id' => 'ddl-prodetail'], 'data' => $prodetail, 'pluginOptions' => ['depends' => ['ddl-prohead'], 'placeholder' => 'เลือกหัวข้ออุบัติการณ์...', 'url' => Url::to(['/riskhead/get-prodetail'])]]);
?>
    </div>

    <div class="col-sm-6 col-md-6 col-md-6">
    <?php 
echo $form->field($model, 'program_text')->textInput(['maxlength' => true]);
?>
  </div>
    
    <div class="col-sm-6 col-md-6">
Esempio n. 2
0
 public function getProheads()
 {
     return @$this->hasOne(Prohead::className(), ['PROHEAD_ID' => 'prohead']);
 }