本文整理汇总了PHP中Division::items方法的典型用法代码示例。如果您正苦于以下问题:PHP Division::items方法的具体用法?PHP Division::items怎么用?PHP Division::items使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Division
的用法示例。
在下文中一共展示了Division::items方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
echo $form->dropDownList($model, 'branch_id', CHtml::listData(Branch::model()->findAll(array('condition' => 'branch_organization_id=' . $org_id)), 'branch_id', 'branch_name'), array('prompt' => 'Select Branch', 'ajax' => array('type' => 'POST', 'url' => CController::createUrl('dependent/getBatchItemName1'), 'update' => '#Batch_div_id')));
?>
<span class="status"> </span>
</div>
<div class="row1">
<?php
echo $form->labelEx($model, 'div_id');
?>
<?php
echo $form->error($model, 'div_id');
?>
<?php
echo $form->dropDownList($model, 'div_id', Division::items(), array('empty' => 'Select Division'));
?>
<span class="status"> </span>
</div>
<!--
<div class="row1">
<?php
echo $form->labelEx($model, 'batch_organization_id');
?>
<?php
echo $form->dropDownList($model, 'batch_organization_id', Organization::items());
?>
<?php
echo $form->error($model, 'batch_organization_id');
?>
示例2: array
echo $form->error($model, 'branch_id');
?>
</div>
<div class="row">
<?php
echo $form->labelEx($model, 'div_id');
?>
<?php
//echo $form->textField($model,'div_id');
?>
<?php
//echo $form->dropDownList($model,'div_id', CHtml::listData(Division::model()->findAll(), 'division_id', 'division_name'));
?>
<?php
echo $form->dropDownList($model, 'div_id', Division::items(), array('empty' => '---------------Select-------------', 'tabindex' => 5));
?>
<span class="status"> </span>
<?php
echo $form->error($model, 'div_id');
?>
</div>
<div class="row">
<?php
echo $form->labelEx($model, 'sub_id');
?>
<?php
//echo $form->textField($model,'sub_id');
?>
<?php
示例3: array
}')));
?>
<span class="status"> </span>
<?php
echo $form->error($model, 'student_transaction_branch_id');
?>
</div>
<!--
<div class="row-right">
<?php
echo $form->labelEx($model, 'student_transaction_division_id');
?>
<?php
echo $form->dropDownList($model, 'student_transaction_division_id', Division::items(), array('empty' => '-----------Select---------', 'tabindex' => 4));
?>
<span class="status"> </span>
<?php
echo $form->error($model, 'student_transaction_division_id');
?>
</div>-->
<div class="row-right">
<?php
echo $form->labelEx($model, 'student_transaction_division_id');
?>
<?php
//echo $form->dropDownList($model,'div_id',Division::items(), array('empty' => '---------------Select-------------','tabindex'=>5));
?>