本文整理汇总了PHP中Region::getOptionLabels方法的典型用法代码示例。如果您正苦于以下问题:PHP Region::getOptionLabels方法的具体用法?PHP Region::getOptionLabels怎么用?PHP Region::getOptionLabels使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Region
的用法示例。
在下文中一共展示了Region::getOptionLabels方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<div class="modal-body form-task-organizations-search">
<?php
$form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('action' => Yii::app()->createUrl('task/organizations'), 'method' => 'get'));
?>
<div class="row">
<?php
echo $form->hiddenField($search, 'so_ids');
?>
<div class="col col-md-3">
<?php
echo $form->dropDownListControlGroup($search, 'type', Organization::getTypesArray(), array('class' => 'selectpicker show-tick', 'title' => 'Type'));
?>
</div>
<div class="col col-md-3">
<?php
echo $form->dropDownListControlGroup($search, 'region_id', Region::getOptionLabels(), array('class' => 'selectpicker show-tick', 'title' => 'Region'));
?>
</div>
<div class="col col-md-6">
<label class="control-label required">Name</label>
<div class="input-group" style="width: 100%;">
<?php
echo $form->textField($search, 'name');
?>
<span class="input-group-btn">
<?php
echo BsHtml::submitButton('Search', array('color' => BsHtml::BUTTON_COLOR_PRIMARY));
?>
</span>
</div>
</div>
示例2: array
echo $form->textFieldControlGroup($model, 'phone', array('maxlength' => 255));
?>
</div>
<div class="col col-xs-6">
<?php
echo $form->textFieldControlGroup($model, 'email', array('maxlength' => 64));
?>
</div>
</div>
</div>
<div class="col col-sm-6">
<?php
echo $form->textFieldControlGroup($model, 'description', array('maxlength' => 255));
?>
<?php
echo $form->dropDownListControlGroup($model, 'region_id', Region::getOptionLabels(), array('class' => 'selectpicker show-tick', 'title' => __('Choose Region')));
?>
<?php
echo $form->textAreaControlGroup($model, 'address', array('maxlength' => 255));
?>
<?php
echo $form->textFieldControlGroup($model, 'web_site', array('maxlength' => 255));
?>
</div>
</div>
<hr>
<p class="text-muted pull-left"><?php
echo __('Fields with <span class="required">*</span> are required.');
?>
</p>
<p class="pull-right">