當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Params::getLookup方法代碼示例

本文整理匯總了PHP中Params::getLookup方法的典型用法代碼示例。如果您正苦於以下問題:PHP Params::getLookup方法的具體用法?PHP Params::getLookup怎麽用?PHP Params::getLookup使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Params的用法示例。


在下文中一共展示了Params::getLookup方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

echo $form->labelEx($model, 'notelp_karyawan');
?>
                                     <div class="mws-form-item ">                                            
                                    <?php 
echo $form->textField($model, 'notelp_karyawan', array('size' => 15, 'maxlength' => 50));
?>
                                      </div>
                            </div>

                            <div class="mws-form-row">
                                    <?php 
echo $form->labelEx($model, 'warganegara_karyawan');
?>
                                     <div class="mws-form-item ">                                            
                                    <?php 
echo $form->dropDownList($model, 'warganegara_karyawan', CHtml::listData(Params::getLookup(Params::WARGANEGARA), 'lookup_nama', 'lookup_nama'), array('empty' => '', 'style' => 'width:120px;'));
?>
                                      </div>
                            </div>

                                
                            <div class="mws-form-row">
                                    <?php 
$form->labelEx($model, 'kategorikaryawan');
?>
                                     <div class="mws-form-item ">                                            
                                    <?php 
$form->textField($model, 'kategorikaryawan', array('size' => 15, 'maxlength' => 10));
?>
                                      </div>
                            </div>
開發者ID:nelitaaas,項目名稱:Tugas-Besar,代碼行數:31,代碼來源:_form.php

示例2: array

                                    <?php 
echo $form->labelEx($modelp, 'nilai_ipk');
?>
                                     <div class="mws-form-item ">                                            
                                    <?php 
echo $form->textField($modelp, 'nilai_ipk', array('maxlength' => 50, 'style' => 'width:130px;', 'onkeypress' => "return \$(this).focusNextInputField(event)"));
?>
                                      </div>
                            </div>
                            <div class="mws-form-row">
                                    <?php 
echo $form->labelEx($modelp, 'gradelulus');
?>
                                     <div class="mws-form-item ">                                            
                                    <?php 
echo $form->dropDownList($modelp, 'gradelulus', CHtml::listData(Params::getLookup(Params::GRADE), 'lookup_nama', 'lookup_nama'), array('empty' => '', 'style' => 'width:160px;', 'empty' => '--Pilih--', 'onkeypress' => "return \$(this).focusNextInputField(event)"));
?>
                                      </div>
                            </div>
                            <div class="mws-form-row">
                                    <?php 
echo $form->labelEx($modelp, 'keterangan');
?>
                                     <div class="mws-form-item ">                                            
                                    <?php 
echo $form->textArea($modelp, 'keterangan', array('rows' => 6, 'cols' => 50, 'style' => 'width:180px;', 'onkeypress' => "return \$(this).focusNextInputField(event)"));
?>
                                      </div>
                            </div>
                              </td>
                            </tr>
開發者ID:nelitaaas,項目名稱:Tugas-Besar,代碼行數:31,代碼來源:_formPendidikan.php

示例3: array

echo $form->labelEx($model, 'npwp');
?>
                                     <div class="mws-form-item ">                                            
                                    <?php 
echo $form->textField($model, 'npwp', array('onKeyUp' => 'checkInput(this);', 'maxlength' => 50, 'style' => 'width:180px', 'onkeypress' => "return \$(this).focusNextInputField(event)"));
?>
                                      </div>
                            </div>

                            <div class="mws-form-row">
                                    <?php 
echo $form->labelEx($model, 'golongandarah');
?>
                                     <div class="mws-form-item ">                                            
                                    <?php 
echo $form->dropDownList($model, 'gelardepan', CHtml::listData(Params::getLookup(Params::GOLONGANDARAH), 'lookup_nama', 'lookup_nama'), array('empty' => '--Pilih--', 'style' => 'width:100px', 'onkeypress' => "return \$(this).focusNextInputField(event)"));
?>
                                      </div>
                            </div>

                            <div class="mws-form-row">
                                    <?php 
echo $form->labelEx($model, 'rhesus');
?>
                                     <div class="mws-form-item ">                                            
                                    <?php 
//echo $form->dropDownList($model,'gelardepan', CHtml::listData(Params::getLookup(Params::RHESUS), 'lookup_nama', 'lookup_nama'),array('empty'=>''));
?>
                                       <table>
                                           <tr>
                                            <?php 
開發者ID:nelitaaas,項目名稱:Tugas-Besar,代碼行數:31,代碼來源:updatekaryawan.php


注:本文中的Params::getLookup方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。