Beispiel #1
0
                                    <?php 
echo $form->labelEx($model, 'kodepos');
?>
                                     <div class="mws-form-item ">                                            
                                    <?php 
echo $form->textField($model, 'kodepos', array('size' => 8, 'maxlength' => 50));
?>
                                      </div>
                            </div>
                           <div class="mws-form-row">
                                    <?php 
echo $form->labelEx($model, 'propinsi_id');
?>
                                     <div class="mws-form-item ">                                            
                                    <?php 
echo $form->dropDownList($model, 'propinsi_id', CHtml::listData(KPropinsiM::model()->findAll(), 'propinsi_id', 'propinsi_nama'), array('empty' => '', 'style' => 'width:200px;'));
?>
                                      </div>
                            </div>        
                            <div class="mws-form-row">
                                    <?php 
echo $form->labelEx($model, 'kabupatenkota_id');
?>
                                     <div class="mws-form-item ">                                            
                                    <?php 
echo $form->dropDownList($model, 'kabupatenkota_id', CHtml::listData(KKabupatenkotaM::model()->findAll(), 'kabupatenkota_id', 'kabupatenkota_nama'), array('empty' => '', 'style' => 'width:200px;'));
?>
                                      </div>
                            </div>
                            <div class="mws-form-row">
                                    <?php 
Beispiel #2
0
?>
                                    <div class="mws-form-item ">                                            
                                    <?php 
//echo $form->dropDownList($model,'propinsi_id',  CHtml::listData(KPropinsiM::model()->findAll(), 'propinsi_id', 'propinsi_nama'),array('empty'=>'','style'=>'width:150px','empty'=>'--Pilih--'));
echo $form->dropDownList($model, 'propinsi_id', CHtml::listData(KPropinsiM::model()->getPropinsiItems(), 'propinsi_id', 'propinsi_nama'), array('style' => 'width:120px', 'empty' => '-- Pilih --', 'onkeypress' => "return \$(this).focusNextInputField(event)", 'ajax' => array('type' => 'POST', 'url' => Yii::app()->createUrl('ActionDynamic/GetKabupaten', array('encode' => false, 'namaModel' => get_class($model), 'attr' => 'propinsi_id')), 'update' => '#KPelamarT_kabupatenkota_id')));
?>
                                      </div>
                            </div>
                            <div class="mws-form-row">
                                    <?php 
echo $form->labelEx($model, 'kabupatenkota_id');
?>
                                     <div class="mws-form-item ">                                            
                                    <?php 
//echo $form->dropDownList($model,'kabupatenkota_id',  CHtml::listData(KKabupatenkotaM::model()->findAll(), 'kabupatenkota_id', 'kabupatenkota_nama'),array('empty'=>'','style'=>'width:150px','empty'=>'--Pilih--'));
echo $form->dropDownList($model, 'kabupatenkota_id', CHtml::listData(KPropinsiM::model()->getKabupatenItems($model->propinsi_id), 'kabupatenkota_id', 'kabupatenkota_nama'), array('style' => 'width:120px', 'empty' => '-- Pilih --', 'onkeypress' => "return \$(this).focusNextInputField(event)", 'ajax' => array('type' => 'POST')));
?>
                                  </div>
                            </div> 
                               
                             <div class="mws-form-row">
                                    <?php 
echo $form->labelEx($model, 'warganegara_pelamar');
?>
                                     <div class="mws-form-item ">                                            
                                    <?php 
echo $form->dropDownList($model, 'warganegara_pelamar', CHtml::listData(Params::getLookup(Params::WARGANEGARA), 'lookup_nama', 'lookup_nama'), array('empty' => '--Pilih--', 'style' => 'width:100px', 'onkeypress' => "return \$(this).focusNextInputField(event)"));
?>
                                      </div>
                            </div>