当前位置: 首页>>代码示例>>PHP>>正文


PHP TbHtml::listData方法代码示例

本文整理汇总了PHP中TbHtml::listData方法的典型用法代码示例。如果您正苦于以下问题:PHP TbHtml::listData方法的具体用法?PHP TbHtml::listData怎么用?PHP TbHtml::listData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TbHtml的用法示例。


在下文中一共展示了TbHtml::listData方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

<?php

/*
 *EDITOR DE SUBZONA
 */
?>

<div class='controles'>
<h2>Editor de subzona.</h2>
<?php 
echo TbHtml::dropDownList('SubzonaId', $subzona->SubzonaId, TbHtml::listData($subzona->hermanas, 'SubzonaId', 'nombre'), array('class' => 'input-medium panel-head'));
?>
<br />
    <?php 
echo TbHtml::buttonGroup(array(array('title' => 'Alinear todo a la izquierda', 'class' => 'fa fa-align-left fa-3x btn btn-large btn-alinear', 'url' => array('alinearSubzona', 'EventoId' => $subzona->EventoId, 'FuncionesId' => $subzona->FuncionesId, 'ZonasId' => $subzona->ZonasId, 'SubzonaId' => $subzona->SubzonaId, 'direccion' => 'izquierda')), array('title' => 'Alinear todo al centro', 'class' => 'fa fa-align-center fa-3x btn btn-large btn-alinear', 'url' => array('alinearSubzona', 'EventoId' => $subzona->EventoId, 'FuncionesId' => $subzona->FuncionesId, 'ZonasId' => $subzona->ZonasId, 'SubzonaId' => $subzona->SubzonaId, 'direccion' => 'centro')), array('title' => 'Alinear todo a la derecha', 'class' => 'fa fa-align-right fa-3x btn btn-large btn-alinear', 'url' => array('alinearSubzona', 'EventoId' => $subzona->EventoId, 'FuncionesId' => $subzona->FuncionesId, 'ZonasId' => $subzona->ZonasId, 'SubzonaId' => $subzona->SubzonaId, 'direccion' => 'derecha'))), array('vertical' => false));
?>
<br />
<?php 
echo TbHtml::link(' Regresar', array('editor', 'EventoId' => $subzona->EventoId, 'FuncionesId' => $subzona->FuncionesId, 'scenario' => 'editar', '#' => 'zona-' . $subzona->ZonasId), array('class' => 'btn fa fa-arrow-left', 'style' => 'margin:10px'));
?>

</div>
<div id='area-subzona'>
		<?php 
$this->renderPartial('_subzona', compact('subzona'));
?>
</div>
<br />
<style type="text/css" media="screen">
	table{background:#eeD}	
	th,td{margin:5px;padding:5px !important;}
开发者ID:cicb,项目名称:tpc,代码行数:31,代码来源:editorSubzona.php

示例2: array

<br><br/>

<?php
$this->widget('bootstrap.widgets.TbGridView', array(
    'id' => 'eams-framework-grid',
    'type' => TbHtml::GRID_TYPE_BORDERED,
    'dataProvider' => $dataProvider,
    'columns' => array(
        array(
            'header' => '#',
            'value' => '$this->grid->dataProvider->pagination->currentPage * $this->grid->dataProvider->pagination->pageSize + ($row+1)',
        ),
        array(
            'type' => 'html',
            'name' => 'framework_description',
            'value' => 'TbHtml::link($data->framework_description,Yii::app()->createUrl("/eamsFramework/admin",array("parent_id"=>$data->parent_id)))'
        ),
        array(
            'name' => 'type_id',
            'value' => '$data->type->description',
            'filter' => TbHtml::listData(EamsFrameworkType::model()->findAll(), "id", "description")
        ),
//		'parent_id',
        'guid',
        array(
            'class' => 'bootstrap.widgets.TbButtonColumn',
        ),
    ),
));
?>
开发者ID:robertgunze,项目名称:eams,代码行数:30,代码来源:eac_outcomes_admin.php

示例3: array

    <?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'id'=>'meac-office-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

    <p class="help-block">Fields with <span class="required">*</span> are required.</p>

    <?php echo $form->errorSummary($model); ?>

            <?php echo $form->textFieldControlGroup($model,'description',array('span'=>5,'maxlength'=>255)); ?>

            <?php echo $form->textFieldControlGroup($model,'abbrev',array('span'=>5,'maxlength'=>20)); ?>

            <?php echo $form->dropDownListControlGroup($model,'parent_id',TbHtml::listData(MeacOffice::model()->findAll(),'id','description'),array('prompt'=>'--select--','span'=>5)); ?>

            <?php echo $form->checkBoxControlGroup($model,'active',array('span'=>5)); ?>

        <div class="form-actions">
        <?php echo TbHtml::submitButton($model->isNewRecord ? 'Create' : 'Save',array(
		    'color'=>TbHtml::BUTTON_COLOR_SUCCESS,
		    'size'=>TbHtml::BUTTON_SIZE_DEFAULT,
		)); ?>
    </div>

    <?php $this->endWidget(); ?>

</div><!-- form -->
开发者ID:robertgunze,项目名称:eams,代码行数:31,代码来源:_form.php

示例4:

)); ?>

    <p class="help-block">Fields with <span class="required">*</span> are required.</p>

    <?php echo $form->errorSummary($model); ?>

            <?php echo $form->textFieldControlGroup($model,'description',array('span'=>5,'maxlength'=>255)); ?>

            <?php echo $form->textAreaControlGroup($model,'definition',array('rows'=>6,'span'=>8)); ?>

            <?php echo $form->textAreaControlGroup($model,'interpretation',array('rows'=>6,'span'=>8)); ?>

            <?php echo $form->textFieldControlGroup($model,'guid',array('span'=>5,'maxlength'=>7)); ?>
    
            <?php echo $form->dropDownListControlGroup($model, 'frequency', TbHtml::listData(Frequency::model()->findAll(),'id','description'));?>
     
            <?php echo $form->dropDownListControlGroup($model, 'indicatorUnit', TbHtml::listData(IndicatorUnit::model()->findAll(),'id','abbrev'));?>

            <?php echo $form->dropDownListControlGroup($model, 'indicatorDataSource', TbHtml::listData(IndicatorDataSource::model()->findAll(),'id','description'));?>

    
        <div class="form-actions">
        <?php echo TbHtml::submitButton($model->isNewRecord ? 'Create' : 'Save',array(
		    'color'=>TbHtml::BUTTON_COLOR_PRIMARY,
		    'size'=>TbHtml::BUTTON_SIZE_DEFAULT,
		)); ?>
    </div>

    <?php $this->endWidget(); ?>

</div><!-- form -->
开发者ID:robertgunze,项目名称:eams,代码行数:31,代码来源:_form.php

示例5: array

/* @var $model Ban */
/* @var $form CActiveForm */
?>

<div class="wide form">

<?php 
$form = $this->beginWidget('CActiveForm', array('action' => Yii::app()->createUrl($this->route), 'method' => 'get'));
?>
	
	<div class="row">
		<?php 
echo $form->labelEx($model, 'POSISI_BAN');
?>
		<?php 
$data = TbHtml::listData(PosisiBan::model()->findAll(), 'ID_POSISI', 'POSISI');
echo $form->dropDownList($model, 'ID_POSISI', $data, array('empty' => 'Pilih Posisi Ban'));
?>
		<?php 
echo $form->error($model, 'ID_POSISI');
?>
	</div>

	<div class="row">
		<?php 
echo $form->label($model, 'NOMOR_SERI');
?>
		<?php 
echo $form->textField($model, 'NOMOR_SERI', array('size' => 20, 'maxlength' => 20));
?>
	</div>
开发者ID:aunorafiq,项目名称:jks,代码行数:31,代码来源:_search.php

示例6:

<?php $this->widget('bootstrap.widgets.TbGridView',array(
	'id'=>'eams-files-import-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		//'id',
		array(
            'header' => '#',
            'value' => '$this->grid->dataProvider->pagination->currentPage * $this->grid->dataProvider->pagination->pageSize + ($row+1)',
        ),
		'name',
		//'mime_type',
		//'file_extension',
		//'file_size',
		array(
          'header'=>'Status',
          'name'=>'archived',
          'value'=>'$data->archived ? "ARCHIVED":"PENDING"',
          'filter' => TbHtml::listData([['id'=>0,'description'=>'PENDING'],['id'=>1,'description'=>'ARCHIVED']], "id", "description")
		),
		'date_created',
		/*
		'date_updated',
		*/
		array(
			'class'=>'bootstrap.widgets.TbButtonColumn',
			'template'=>'{view}'
		),
	),
)); ?>
开发者ID:robertgunze,项目名称:eams,代码行数:30,代码来源:admin.php

示例7: array

<div class="row">
		<span class="span2">
		<?php 
$this->widget('yiiwheels.widgets.select2.WhSelect2', array('asDropDownList' => true, 'name' => 'optvalsearch', 'model' => new Option(), 'attribute' => 'name', 'htmlOptions' => array('id' => 'optSelect'), 'data' => TbHtml::listData(Option::model()->findAll(), 'id', function ($data) {
    return $data->getName();
}), 'pluginOptions' => array('placeholder' => 'Enter Option', 'width' => '100%')));
?>
		</span>
		<span class="span2"><?php 
echo TbHtml::button(Yii::t('label', 'Add Option'), array('class' => 'add-opt', 'color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
</span>
	</div>
<div id="copyGrid" class="row hide">
<?php 
$this->widget('bootstrap.widgets.TbGridView', array('type' => array(TbHtml::GRID_TYPE_STRIPED, TbHtml::GRID_TYPE_BORDERED, TbHtml::GRID_TYPE_CONDENSED), 'dataProvider' => new CArrayDataProvider(array()), 'columns' => array('id', array('name' => 'option_value_id', 'header' => Yii::t('label', 'Option Value')), array('name' => 'quantity', 'header' => Yii::t('label', 'Quantity')), array('name' => 'subtract', 'header' => Yii::t('label', 'Subtract')), array('name' => 'price_prefix', 'header' => Yii::t('label', 'Price Operator')), array('name' => 'price', 'header' => Yii::t('label', 'Price')), array('name' => 'weight_prefix', 'header' => Yii::t('label', 'Weight Operator')), array('name' => 'weight', 'header' => Yii::t('label', 'Weight')), array('class' => 'bootstrap.widgets.TbButtonColumn', 'htmlOptions' => array('style' => 'width: 20px'), 'buttons' => array('delete' => array('label' => Yii::t('label', 'Delete'), 'options' => array("class" => "doptval", 'title' => Yii::t('label', 'Delete')))), 'template' => ' {delete}'))));
?>
<div class="row"><span class="span2 offset7"><?php 
echo TbHtml::button(Yii::t('label', 'Add Option Value'), array('class' => 'add-opval', 'color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
</span></div>
</div>
<div class="row optiontype hide"><?php 
echo TbHtml::dropDownList('option_type', '', TbHtml::listData(Option::model()->findAll(), 'id', 'type'), array('id' => 'option_type_list'));
?>
</div>
<?php 
$this->endWidget();
?>
<br/>
<br/>
开发者ID:Rudianasaja,项目名称:cycommerce,代码行数:31,代码来源:_option.php

示例8: array

                ),
		
		            'sex',
                'email',
                'phone',
                
              
                array(
                    'name'=>'meac_office_id',
                    'value'=>'!is_null($data->meacOffice)?$data->meacOffice->description:""',
                    'filter'=>TbHtml::listData(MeacOffice::model()->findAll(),"id","description")
                ),
                array(
                     'name'=>'mda_id',
                    'value'=>'!is_null($data->mda)?$data->mda->description:""',
                    'filter'=>TbHtml::listData(Mda::model()->findAll(),"id","description")
                ),
                array(
                    'name'=>'is_mda',
                    'value'=>'$data->is_mda?"Yes":"No"'
                ),
                array( 
                    'class' => 'editable.EditableColumn',
                    'name' => 'active',
                    'value'=>'$data->active?"Yes":"No"',
                    'editable' => array(
                      'type'     => 'select',
                      'url'      => $this->createUrl('user/ajaxUpdate'),
                      'source'=>array(0=>'Inactive',1=>'Active'),
                      'placement'=>'right',
开发者ID:robertgunze,项目名称:eams,代码行数:30,代码来源:admin.php

示例9: function

        ?>
</a></div></div>
			<?php 
    }
}
?>
			</div>
			<div class="clearfix"></div>
		</div><!-- row -->
		<div class="row">
		<?php 
echo $form->labelEx($model, 'parent_id');
?>
		<?php 
echo $form->dropDownList($model, 'parent_id', TbHtml::listData(Category::model()->with('categoryDescriptions')->findAll(array('order' => 'categoryDescriptions.name')), 'id', function ($data) {
    return CHtml::encode($data->getName());
}), array('empty' => '--Parent Category--'));
?>
		<?php 
echo $form->error($model, 'parent_id');
?>
		</div><!-- row -->
		<div class="row">
		<?php 
echo $form->labelEx($model, 'top');
?>
		<?php 
$this->widget('yiiwheels.widgets.switch.WhSwitch', array('attribute' => 'top', 'model' => $model, 'onColor' => 'success', 'offColor' => 'danger', 'onLabel' => Yii::t('label', 'ON'), 'offLabel' => Yii::t('label', 'OFF'), 'size' => null));
?>
		
		<?php 
开发者ID:Rudianasaja,项目名称:cycommerce,代码行数:31,代码来源:_form.php

示例10: array

<div class="row-fluid">
<?php 
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'order-product-grid', 'type' => array(TbHtml::GRID_TYPE_STRIPED, TbHtml::GRID_TYPE_BORDERED, TbHtml::GRID_TYPE_CONDENSED), 'dataProvider' => new CArrayDataProvider($orderproduct), 'columns' => array(array('name' => 'name', 'header' => Yii::t('label', 'Product')), array('name' => 'model', 'header' => Yii::t('label', 'Model')), array('header' => Yii::t('label', 'Options'), 'value' => array($this, 'optionDataColumn')), array('name' => 'quantity', 'header' => Yii::t('label', 'Quantity')), array('name' => 'price', 'header' => Yii::t('label', 'Price')), array('name' => 'total', 'header' => Yii::t('label', 'Total')), array('class' => 'bootstrap.widgets.TbButtonColumn', 'htmlOptions' => array('style' => 'width: 20px'), 'buttons' => array('delete' => array('label' => Yii::t('label', 'Delete'), 'options' => array("class" => "dorderline", 'title' => Yii::t('label', 'Delete')))), 'template' => ' {delete}'))));
?>
</div>
<div class="row-fluid">
	<div class="span7">
		<div class="row-fluid select-product">
			<span class="span3"><?php 
echo CHtml::label(Yii::t('label', 'Choose Product'), 'productSelect');
?>
</span>
			<span class="span5">
			<?php 
$this->widget('yiiwheels.widgets.select2.WhSelect2', array('asDropDownList' => true, 'name' => 'OrderProduct[id]', 'htmlOptions' => array('id' => 'productSelect'), 'data' => TbHtml::listData(Product::model()->findAll(), 'id', function ($data) {
    return $data->getName();
}), 'pluginOptions' => array('placeholder' => 'Select Product', 'width' => '100%')));
?>
			</span>
		</div>
		<?php 
if (!empty($orderoption)) {
    $this->renderPartial('_product_option', array('options' => $orderoption, 'options' => $options), false, true);
}
?>
		<div class="row-fluid">
			<span class="span3"><?php 
echo CHtml::label(Yii::t('label', 'Quantity'), 'product-quantity');
?>
</span>
			<span class="span5"><?php 
开发者ID:Rudianasaja,项目名称:cycommerce,代码行数:31,代码来源:_products.php

示例11: operator

echo Yii::t('info', 'You may optionally enter a comparison operator (&lt;, &lt;=, &gt;, &gt;=, &lt;&gt; or =) at the beginning of each of your search values to specify how the comparison should be done.');
?>
</p>

<?php 
echo TbHtml::linkButton(Yii::t('label', 'Advanced Search'), array('url' => '#', 'class' => 'search-button', 'color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
<div class="search-form hide">
<?php 
echo $this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'order-grid', 'type' => array(TbHtml::GRID_TYPE_STRIPED, TbHtml::GRID_TYPE_BORDERED, TbHtml::GRID_TYPE_CONDENSED), 'dataProvider' => $model->search(), 'filter' => $model, 'rowCssClassExpression' => '"items[]_{$data->id}"', 'columns' => array(array('class' => 'CCheckBoxColumn', 'id' => 'check', 'selectableRows' => 2), 'id', array('name' => 'payment_method', 'type' => 'raw', 'value' => function ($data) {
    $pay = PaymentMethod::model()->findByPk($data->payment_method);
    $name = !empty($pay) ? $pay->getName() : null;
    return $name;
}, 'filter' => CHtml::activeDropDownList($model, 'payment_method', TbHtml::listData(PaymentMethod::model()->findAll(), 'id', function ($data) {
    return $data->getName();
}), array('empty' => ''))), 'payment_code', 'store_name', 'firstname', 'lastname', 'email', 'telephone', array('name' => 'total', 'type' => 'raw', 'value' => 'UtilityHelper::formatPrice($data->total)'), array('name' => 'order_status_id', 'type' => 'raw', 'value' => '!empty($data->orderStatus)? TbHtml::encode($data->orderStatus->getName()) : null', 'filter' => CHtml::activeDropDownList($model, 'order_status_id', TbHtml::listData(OrderStatus::model()->findAll(), 'id', function ($data) {
    return $data->getName();
}), array('empty' => ''))), 'date_added', array('class' => 'bootstrap.widgets.TbButtonColumn', 'htmlOptions' => array('style' => 'width: 20px'), 'buttons' => array('delete' => array('label' => Yii::t('label', 'Delete'), 'options' => array("class" => "dlink", 'title' => Yii::t('label', 'Delete'))), 'update' => array('label' => Yii::t('label', 'Update'), 'options' => array("class" => "update vlink", 'title' => Yii::t('label', 'Update'))), 'view' => array('label' => Yii::t('label', 'View'), 'options' => array("class" => "view vlink", 'title' => Yii::t('label', 'View')))), 'template' => '{view} {update} {delete}')), 'afterAjaxUpdate' => 'js:reSortGrid'));
?>
<div class="hlinks hide">
<div class="uid"></div>
<div class="sortLink"><?php 
echo $this->createUrl('sort');
?>
</div>
</div>
开发者ID:Rudianasaja,项目名称:cycommerce,代码行数:31,代码来源:_manage.php

示例12: array

<?php

Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl . '/js/jquery-ui.min.js', CClientScript::POS_HEAD);
$this->widget('bootstrap.widgets.TbAlert');
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'order-grid', 'type' => array(TbHtml::GRID_TYPE_STRIPED, TbHtml::GRID_TYPE_BORDERED, TbHtml::GRID_TYPE_CONDENSED), 'dataProvider' => $dataProvider, 'rowCssClassExpression' => '"items[]_{$data->id}"', 'columns' => array(array('class' => 'CCheckBoxColumn', 'id' => 'check', 'selectableRows' => 2), 'id', array('name' => 'payment_method', 'type' => 'raw', 'value' => function ($data) {
    $pay = PaymentMethod::model()->findByPk($data->payment_method);
    $name = !empty($pay) ? $pay->getName() : null;
    return $name;
}, 'filter' => function ($data) {
    return CHtml::activeDropDownList($data, 'payment_method', TbHtml::listData(PaymentMethod::model()->findAll(), 'id', function ($data) {
        return $data->getName();
    }), array('empty' => ''));
}), 'payment_code', 'store_name', 'firstname', 'lastname', 'email', 'telephone', array('name' => 'total', 'type' => 'raw', 'value' => 'UtilityHelper::formatPrice($data->total)'), array('name' => 'order_status_id', 'type' => 'raw', 'value' => '!empty($data->orderStatus)? TbHtml::encode($data->orderStatus->getName()) : null'), 'date_added', array('class' => 'bootstrap.widgets.TbButtonColumn', 'htmlOptions' => array('style' => 'width: 40px'), 'buttons' => array('delete' => array('label' => Yii::t('label', 'Delete'), 'options' => array("class" => "dlink", 'title' => Yii::t('label', 'Delete'))), 'update' => array('label' => Yii::t('label', 'Update'), 'options' => array("class" => "update vlink", 'title' => Yii::t('label', 'Update'))), 'view' => array('label' => Yii::t('label', 'View'), 'options' => array("class" => "view vlink", 'title' => Yii::t('label', 'View')))), 'template' => '{view} {update} {delete}')), 'afterAjaxUpdate' => 'js:reSortGrid'));
?>
<div class="hlinks hide">
<div class="uid"></div>
<div class="sortLink"><?php 
echo $this->createUrl('sort');
?>
</div>
</div>
开发者ID:Rudianasaja,项目名称:cycommerce,代码行数:21,代码来源:_list.php

示例13: if

<?php $form = $this->beginWidget('bootstrap.widgets.TbActiveForm',array(
         'id'=>'upload_decisions-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
         'htmlOptions'=>array(
                 'enctype'=>'multipart/form-data'
          )
        
        ));?>
<fieldset>
    <legend>Upload Decisions</legend>
    <?php if(Yii::app()->user->hasFlash('success')):?>
    <?php echo TbHtml::alert(TbHtml::ALERT_COLOR_SUCCESS, Yii::app()->user->getFlash('success'))?>
    <?php endif;?>
    <?php echo $form->errorSummary($model); ?>
    <?php echo $form->dropDownListControlGroup($model,'decision_source',  TbHtml::listData(EacLookup::model()->findAll('type=:type',array(':type'=>  EacLookup::DECISION_SOURCE)),"id","description"),
                      array('prompt'=>'--select--')); ?>
    <?php echo $form->fileFieldControlGroup($model,'upload_file'); ?>
    <div class="form-actions">
        <?php echo TbHtml::submitButton('Import Decisions',array(
		    'color'=>TbHtml::BUTTON_COLOR_SUCCESS,
		    'size'=>TbHtml::BUTTON_SIZE_DEFAULT,
		)); ?>
    </div>
</fieldset>
<?php $this->endWidget();?>
</div>
开发者ID:robertgunze,项目名称:eams,代码行数:30,代码来源:_import_decision_form.php

示例14: array

echo $form->error($model, 'status');
?>
	</div>
	<br/>
	
	<div class="row">
		
        <?php 
//$gprofile = Profile::model()->with('groups')->findbyPk($model->id);
?>
		<?php 
echo $form->labelEx($profile, 'group_id');
?>
		
        <?php 
echo TbHtml::activeListBox($profile, 'group_id', TbHtml::listData(Group::model()->findAll(), 'id', 'name'), array('multiple' => 'multiple'));
?>
        <?php 
echo $form->error($profile, 'group_id');
?>
    </div>
	<br/>
<?php 
$profileFields = ProfileField::model()->forOwner()->sort()->findAll();
if ($profileFields) {
    foreach ($profileFields as $field) {
        if ($field->varname == 'branch_id') {
            ?>
			<div class="row">
				<?php 
            echo $form->labelEx($profile, $field->varname);
开发者ID:Rudianasaja,项目名称:cycommerce,代码行数:31,代码来源:_update.php

示例15: array

?>
		<?php 
echo $form->textField($description, 'name', array('size' => 60, 'maxlength' => 64));
?>
		<?php 
echo $form->error($description, 'name');
?>
	</div>
	
	<div class="row">
		<?php 
echo $form->labelEx($model, 'attribute_group_id');
?>
		<?php 
echo TbHtml::activeDropDownList($model, 'attribute_group_id', TbHtml::listData(AttributeGroup::model()->findAll(), 'id', function ($data) {
    return $data->getName();
}));
?>
		<?php 
echo $form->error($model, 'attribute_group_id');
?>
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'sort_order');
?>
		<?php 
echo $form->textField($model, 'sort_order');
?>
		<?php 
开发者ID:Rudianasaja,项目名称:cycommerce,代码行数:31,代码来源:_form.php


注:本文中的TbHtml::listData方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。