本文整理汇总了PHP中Quota::getAllQuota方法的典型用法代码示例。如果您正苦于以下问题:PHP Quota::getAllQuota方法的具体用法?PHP Quota::getAllQuota怎么用?PHP Quota::getAllQuota使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Quota
的用法示例。
在下文中一共展示了Quota::getAllQuota方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
?>
</div>
<div class="span2">
<?php
echo $form->labelEx($model, 'BudgetPlaces');
?>
<?php
echo $form->textField($model, 'BudgetPlaces', array('class' => 'span12'));
?>
<?php
echo $form->error($model, 'BudgetPlaces');
?>
</div>
<div class="span1">
<input type="hidden" name="SpecialityQuotesCreate" value="1" />
<?php
echo CHtml::label('OK', 'SpecialityQuotesCreateButton');
$this->widget("bootstrap.widgets.TbButton", array('buttonType' => 'submit', 'type' => 'primary', 'icon' => 'star', 'id' => 'SpecialityQuotesCreateButton'));
?>
</div>
</div>
<?php
$this->endWidget();
?>
</div><!-- form -->
</div>
<?php
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'specialityquotes-grid', 'type' => 'striped bordered condensed', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array(array("name" => 'idSpecialityQuotes', 'htmlOptions' => array('class' => 'span1'), 'headerHtmlOptions' => array('class' => 'span1')), array('class' => 'bootstrap.widgets.TbEditableColumn', 'name' => 'SpecialityID', 'editable' => array('url' => $this->createUrl('specialityquotes/xedit'), 'type' => 'select', 'source' => Specialities::getAllSpecs(), 'placement' => 'right', 'inputclass' => 'span3'), 'htmlOptions' => array('class' => 'span5'), 'headerHtmlOptions' => array('class' => 'span5')), array('class' => 'bootstrap.widgets.TbEditableColumn', 'name' => 'QuotaID', 'editable' => array('url' => $this->createUrl('specialityquotes/xedit'), 'type' => 'select', 'source' => Quota::getAllQuota(), 'placement' => 'right', 'inputclass' => 'span3'), 'htmlOptions' => array('class' => 'span4'), 'headerHtmlOptions' => array('class' => 'span4')), array('class' => 'bootstrap.widgets.TbEditableColumn', 'name' => 'BudgetPlaces', 'editable' => array('url' => $this->createUrl('specialityquotes/xedit'), 'type' => 'text', 'placement' => 'right', 'inputclass' => 'span3'), 'htmlOptions' => array('class' => 'span2'), 'headerHtmlOptions' => array('class' => 'span2')), array('class' => 'bootstrap.widgets.TbButtonColumn'))));
示例2: array
?>
<?php
echo $form->dropDownList($model, 'SpecialityID', Specialities::getAllSpecs(), array('class' => 'span12'));
?>
<?php
echo $form->error($model, 'SpecialityID');
?>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<?php
echo $form->labelEx($model, 'QuotaID');
?>
<?php
echo $form->dropDownList($model, 'QuotaID', Quota::getAllQuota(), array('class' => 'span12'));
?>
<?php
echo $form->error($model, 'QuotaID');
?>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<?php
echo $form->labelEx($model, 'BudgetPlaces');
?>
<?php
echo $form->textField($model, 'BudgetPlaces');
?>
<?php