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


PHP Languages::items方法代碼示例

本文整理匯總了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">&nbsp;</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">&nbsp;</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'));
開發者ID:sharmarakesh,項目名稱:edusec-college-management-system,代碼行數:31,代碼來源:_form.php

示例2: array

?>
			<?php 
echo $form->dropDownList($lang, 'languages_known1', Languages::items(), array('empty' => '-----------Select---------'));
?>
<span class="status">&nbsp;</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">&nbsp;</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'));
?>
開發者ID:sharmarakesh,項目名稱:EduSec2.0.0,代碼行數:31,代碼來源:_tab1.php

示例3: array

		<?php 
echo $form->dropDownList($lang, 'languages_known3', Languages::items(), array('empty' => '-----------Select---------', 'tabindex' => 9));
?>
<span class="status">&nbsp;</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">&nbsp;</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 
開發者ID:sharmarakesh,項目名稱:edusec-college-management-system,代碼行數:31,代碼來源:_tab2.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">&nbsp;</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">&nbsp;</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">&nbsp;</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>
開發者ID:rinodung,項目名稱:EduSec3.0.0,代碼行數:31,代碼來源:updateproftab3+(copy).php


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