本文整理匯總了PHP中Subjects::DropDown方法的典型用法代碼示例。如果您正苦於以下問題:PHP Subjects::DropDown方法的具體用法?PHP Subjects::DropDown怎麽用?PHP Subjects::DropDown使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Subjects
的用法示例。
在下文中一共展示了Subjects::DropDown方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
?>
<?php
echo CHtml::activeTextField($model, 'Exam2Ball', array('class' => "span12", "disabled" => $model->EntranceTypeID == 1 ? "disabled" : ""));
?>
<?php
//echo $form->error($model,'Exam2Ball');
?>
</div>
</div>
<div class="row-fluid">
<div class="span6">
<?php
//echo $form->labelEx($model,'Exam3ID');
?>
<?php
echo CHtml::activeDropDownList($model, 'Exam3ID', Subjects::DropDown($specialityid, 3), array('empty' => '', 'class' => "span12", "disabled" => $model->EntranceTypeID == 1 ? "disabled" : ""));
?>
<?php
//echo $form->error($model,'Exam3ID');
?>
</div>
<div class="span6">
<?php
//echo $form->labelEx($model,'Exam3Ball');
?>
<?php
echo CHtml::activeTextField($model, 'Exam3Ball', array('class' => "span12", "disabled" => $model->EntranceTypeID == 1 ? "disabled" : ""));
?>
<?php
//echo $form->error($model,'Exam3Ball');
示例2: array
<?php
//echo $form->errorSummary($model);
?>
<div class ="span4">
<?php
echo $form->hiddenField($model, "[{$i}]idDocumentSubject");
echo $form->hiddenField($model, "[{$i}]deleted", array('class' => 'deleted'));
?>
<?php
//echo ($i==0) ? $form->labelEx($model,"[$i]SubjectID"):"";
?>
<?php
echo $form->dropDownList($model, "[{$i}]SubjectID", Subjects::DropDown(), array("class" => "span12"));
?>
</div>
<!--<div class ="span3">
<?php
//echo ($i==0) ? $form->labelEx($model,"[$i]DateGet"):"";
?>
<?php
//echo $form->textField($model,"[$i]DateGet",array("class"=>"span12 datepicker","maxlength"=>10));
?>
</div> -->
<div class ="span3">
<?php
//echo ($i==0) ? $form->labelEx($model,"[$i]SubjectValue"):"";
?>
<?php
echo $form->textField($model, "[{$i}]SubjectValue", array("class" => "span12", "maxlength" => 15));
示例3: array
<?php
echo $form->labelEx($model, 'Subjects2ID');
?>
<?php
echo $form->dropDownList($model, 'Subjects2ID', Subjects::DropDown(), array("class" => "span12"));
?>
<?php
//echo $form->error($model, 'Subjects2ID');
?>
</div>
<div class="span4">
<?php
echo $form->labelEx($model, 'Subjects3ID');
?>
<?php
echo $form->dropDownList($model, 'Subjects3ID', Subjects::DropDown(), array("class" => "span12"));
?>
<?php
//echo $form->error($model, 'Subjects3ID');
?>
</div>
</div>
<div class="row-fluid">
<div class='span4'>
<?php
echo $form->labelEx($model, 'SubjectsDate1');
?>
<?php
echo $form->textField($model, 'SubjectsDate1', array("class" => "span12 datepicker"));
?>