本文整理汇总了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"));
?>