本文整理汇总了PHP中BsHtml::dropDownListControlGroup方法的典型用法代码示例。如果您正苦于以下问题:PHP BsHtml::dropDownListControlGroup方法的具体用法?PHP BsHtml::dropDownListControlGroup怎么用?PHP BsHtml::dropDownListControlGroup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BsHtml
的用法示例。
在下文中一共展示了BsHtml::dropDownListControlGroup方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<div class="form-group">
<?php
echo $form->label($model, 'tags', array('class' => 'control-label col-lg-2'));
?>
<div class="col-lg-10">
<?php
echo $form->hiddenField($model, 'tag_names');
?>
</div>
</div>
<?php
if (Yii::app()->user->checkAccess('Admin')) {
?>
<?php
echo BsHtml::dropDownListControlGroup('role', $model->getRole(), CHtml::listData(Yii::app()->authManager->getRoles(), 'name', 'name'), array('formLayout' => $form->layout, 'label' => 'Role'));
?>
<fieldset>
<legend>Delivery Addresses</legend>
<?php
echo $form->dropDownListControlGroup($model, 'delivery_location_key', $model->getDeliveryLocations(), array('help' => 'Changing this will update all your order locations'));
?>
<div class="row">
<div class="col-md-offset-2 col-md-10">
<p><?php
echo CHtml::link('Add a location', array('userLocation/create', 'custId' => $model->id), array('class' => 'btn btn-sm btn-primary'));
?>
</p>
<div class="row">
示例2: array
</a>
<div id="repeat-order" class="panel-collapse collapse">
<div class="panel-body">
<?php
$form = $this->beginWidget('CActiveForm', array('id' => 'checkout-form', 'enableAjaxValidation' => false));
?>
<div class="dropDownPanel" id="repeatOrderDropdown">
<div class="row">
<div class="col-md-4">
<?php
echo BsHtml::dropDownListControlGroup('months_advance', null, array(1 => '1 Month', 3 => '3 Months', 6 => '6 Months'), array('label' => 'Order in advance for', 'prompt' => 'Don\'t order in advance'));
?>
</div>
<div class="col-md-3">
<?php
echo BsHtml::dropDownListControlGroup('every', 1, array('week' => 'week', 'fortnight' => 'fortnight'), array('label' => 'Every'));
?>
</div>
<div class="col-md-2">
<div class="form-group no-label">
<?php
echo CHtml::submitButton('Update order', array('name' => 'btn_recurring', 'class' => 'btn btn-default', 'id' => 'btn-recurring'));
?>
</div>
</div>
</div>
</div>
<?php
if ($BoxoCart->DeliveryDate) {
?>
<p class="help-block">This form will copy your order from <strong><?php