本文整理匯總了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