本文整理汇总了PHP中Organization::getTypesArray方法的典型用法代码示例。如果您正苦于以下问题:PHP Organization::getTypesArray方法的具体用法?PHP Organization::getTypesArray怎么用?PHP Organization::getTypesArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Organization
的用法示例。
在下文中一共展示了Organization::getTypesArray方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: __
<?php
/* @var $this SiteController */
$this->pageTitle = Yii::app()->name;
$types = Organization::getTypesArray(false);
$organizations = Organization::getListByType();
?>
<ol class="breadcrumb">
<li><a href="/"><?php
echo __('Home');
?>
</a></li>
<li><?php
echo __('Organizations');
?>
</li>
</ol>
<div class="page-header">
<h3>
<i class="fa fa-university"></i> <?php
echo __('Organizations');
?>
</h3>
</div>
<ul class="nav nav-tabs" role="tablist">
<?php
foreach ($types as $type => $label) {
示例3: array
$form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('id' => 'organization-form', 'enableAjaxValidation' => true, 'enableClientValidation' => true, 'clientOptions' => array('validateOnSubmit' => true)));
echo $form->errorSummary($model);
?>
<div class="row">
<div class="col col-sm-6">
<?php
echo $form->textFieldControlGroup($model, 'name', array('maxlength' => 255));
?>
<?php
echo $form->textFieldControlGroup($model, 'short_name', array('maxlength' => 30));
?>
<?php
echo $form->dropDownListControlGroup($model, 'parent_id', Organization::getOptionLabels(false), array('class' => 'selectpicker show-tick', 'title' => 'Choose Parent Organization'));
?>
<?php
echo $form->dropDownListControlGroup($model, 'type', Organization::getTypesArray(false), array('class' => 'selectpicker show-tick', 'title' => 'Choose Type'));
?>
<hr>
<div class="row">
<div class="col col-xs-6">
<?php
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>