本文整理匯總了PHP中Languages::items方法的典型用法代碼示例。如果您正苦於以下問題:PHP Languages::items方法的具體用法?PHP Languages::items怎麽用?PHP Languages::items使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Languages
的用法示例。
在下文中一共展示了Languages::items方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
echo $form->labelEx($lang, 'languages_known3');
?>
<?php
echo $form->dropDownList($lang, 'languages_known3', Languages::items(), array('empty' => 'Select Language'));
?>
<span class="status"> </span>
<?php
echo $form->error($lang, 'languages_known3');
?>
</div>
<div class="row-right">
<?php
echo $form->labelEx($lang, 'languages_known4');
?>
<?php
echo $form->dropDownList($lang, 'languages_known4', Languages::items(), array('empty' => 'Select Language'));
?>
<span class="status"> </span>
<?php
echo $form->error($lang, 'languages_known4');
?>
</div>
</div>
<?php
if (Yii::app()->user->checkAccess('StudentTransaction.UpdateStudentData') || Yii::app()->user->checkAccess('StudentTransaction.*')) {
?>
<div class="row buttons">
<?php
echo CHtml::button('Save', array('submit' => $this->createUrl('updateprofiletab3', array('id' => $_REQUEST['id'])), 'class' => 'submit', 'id' => 'submitbut3'));
echo CHtml::button('Edit', array('class' => 'submit', 'id' => 'edit3'));
示例2: array
?>
<?php
echo $form->dropDownList($lang, 'languages_known1', Languages::items(), array('empty' => '-----------Select---------'));
?>
<span class="status"> </span>
<?php
echo $form->error($lang, 'languages_known1');
?>
</div>
<div class="row-right">
<?php
echo $form->labelEx($lang, 'languages_known2');
?>
<?php
echo $form->dropDownList($lang, 'languages_known2', Languages::items(), array('empty' => '-----------Select---------'));
?>
<span class="status"> </span>
<?php
echo $form->error($lang, 'languages_known2');
?>
</div>
</div>
<div class="row buttons">
<?php
echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save', array('class' => 'submit'));
?>
示例3: array
<?php
echo $form->dropDownList($lang, 'languages_known3', Languages::items(), array('empty' => '-----------Select---------', 'tabindex' => 9));
?>
<span class="status"> </span>
<?php
echo $form->error($lang, 'languages_known3');
?>
</div>
<div class="row-right">
<?php
echo $form->labelEx($lang, 'languages_known4');
?>
<?php
echo $form->dropDownList($lang, 'languages_known4', Languages::items(), array('empty' => '-----------Select---------', 'tabindex' => 10));
?>
<span class="status"> </span>
<?php
echo $form->error($lang, 'languages_known4');
?>
</div>
</div>
<div class="row">
<div class="row-left">
<?php
echo $form->labelEx($info, 'employee_reference');
?>
<?php
示例4: array
<?php echo $form->labelEx($lang,'languages_known2');?>
<?php echo $form->dropDownList($lang,'languages_known2',Languages::items(),array('empty'=>'Select Language')); ?><span class="status"> </span>
<?php echo $form->error($lang,'languages_known2'); ?>
</div>
</div>
<div class="row last">
<div class="row-left">
<?php echo $form->labelEx($lang,'languages_known3');?>
<?php echo $form->dropDownList($lang,'languages_known3',Languages::items(),array('empty'=>'Select Language')); ?><span class="status"> </span>
<?php echo $form->error($lang,'languages_known3'); ?>
</div>
<div class="row-right">
<?php echo $form->labelEx($lang,'languages_known4');?>
<?php echo $form->dropDownList($lang,'languages_known4',Languages::items(),array('empty'=>'Select Language')); ?><span class="status"> </span>
<?php echo $form->error($lang,'languages_known4');?>
</div>
</div> -->
<div class="row buttons last">
<?php
if(Yii::app()->user->checkAccess('StudentTransaction.UpdateStudentData') && (Yii::app()->user->getState('stud_id') == $_REQUEST['id']) || Yii::app()->user->checkAccess('StudentTransaction.UpdateAllStudentData'))
echo CHtml::submitButton('Save', array('class'=>'submit')); ?>
<?php echo CHtml::link('Cancel', array('update','id'=>$_REQUEST['id']), array('class'=>'btnCan')); ?>
</div>
<?php $this->endWidget(); ?>
</div>
</div>
</div>