當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Organization::getTypesArray方法代碼示例

本文整理匯總了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>
開發者ID:nsarvar,項目名稱:performance,代碼行數:31,代碼來源:organizations.php

示例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) {
開發者ID:nsarvar,項目名稱:performance,代碼行數:31,代碼來源:index.php

示例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>
開發者ID:nsarvar,項目名稱:performance,代碼行數:31,代碼來源:_form.php


注:本文中的Organization::getTypesArray方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。