本文整理匯總了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>
示例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>
示例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