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


PHP GxHtml::listDataEx方法代码示例

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


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

示例1: getMultiModelForm

 public function getMultiModelForm()
 {
     $criteria = new CDbCriteria();
     $criteria->order = 'nombre ASC';
     $memberFormConfig = array('elements' => array('id_detalle_reparacion' => array('type' => 'dropdownlist', 'items' => array('' => '---') + GxHtml::listDataEx(DetalleReparacion::model()->findAllAttributes(null, true, $criteria))), 'id_marca' => array('type' => 'dropdownlist', 'items' => array('' => '---') + GxHtml::listDataEx(MarcasRepuestos::model()->findAllAttributes(null, true))), 'precio_unitario' => array('type' => 'text', 'maxlength' => 11, 'size' => 12, 'onblur' => 'subtotal()', 'onkeypress' => 'if (event.keyCode == 13){subtotal()};'), 'cantidad' => array('type' => 'text', 'maxlength' => 7, 'size' => 7, 'onblur' => 'subtotal();', 'onkeypress' => 'if (event.keyCode == 13){subtotal()};'), 'subtotal' => array('type' => 'text', 'maxlength' => 11, 'size' => 11), 'observacion' => array('type' => 'textarea', 'cols' => 15, 'row' => 3)));
     return $memberFormConfig;
 }
开发者ID:dev-lav,项目名称:htdocs,代码行数:7,代码来源:BaseOrdenTrabajo.php

示例2: getMultiModelForm

 public function getMultiModelForm()
 {
     $criteria = new CDbCriteria();
     $criteria->order = 'patente ASC';
     $detfactcomb = array('elements' => array('id_vehiculo' => array('type' => 'dropdownlist', 'items' => array('' => '---') + GxHtml::listDataEx(Vehiculos::model()->findAllAttributes(null, true, $criteria))), 'nro_guia' => array('type' => 'text'), 'litros' => array('type' => 'text', 'onblur' => 'totallitros(),calcularTotal();', 'onkeypress' => 'if (event.keyCode == 13){totallitros(),calcularTotal()};')));
     return $detfactcomb;
 }
开发者ID:dev-lav,项目名称:htdocs,代码行数:7,代码来源:BaseFacturaCombustible.php

示例3: related_opts

 /**
  * Returns options for the related model multiple select
  * @param string $model
  * @return  string options for relate model  multiple select
  * @since 1.0
  */
 public function related_opts($model)
 {
     $relatedPKs = Student::extractPkValue($model->students);
     $options = '';
     $products = GxHtml::listDataEx(Student::model()->findAllAttributes(null, true));
     foreach ($products as $value => $text) {
         if (!$model->isNewRecord) {
             in_array($value, $relatedPKs) ? $options .= '<option selected="selected" value=' . $value . '>' . $text . '</option>\\n' : ($options .= '<option  value=' . $value . '>' . $text . '</option>\\n');
         } else {
             $options .= '<option  value=' . $value . '>' . $text . '</option>\\n';
         }
     }
     echo $options;
 }
开发者ID:nov072008,项目名称:yiitesting,代码行数:20,代码来源:ClassroomController.php

示例4: array

        //'htmlOptions' => array(
        //                        'style' => 'overflow-y:auto;'
        //                                   .'table-layout:fixed;'
        //                                   .'white-space:nowrap;'
        //                                   ),       
	'columns' => array(
		array(
                        'name' => 'id',
                        //'header'=>'id',
                        //'value' => '($model->id',
                        //'htmlOptions'=>array('style'=>'min-width: 50px; max-width: 100px; white-space:nowrap;'),
                     ),
		array(
                        'name'=>'categoria_id',
                        'value'=>'GxHtml::valueEx($data->categoria)',
                        'filter'=>GxHtml::listDataEx(Categoria::model()->findAllAttributes(null, true)),
                        //'htmlOptions'=>array('style'=>'min-width: 50px; max-width: 100px; white-space:nowrap;'),
                     ),
		array(
                        'name' => 'nombre',
                        //'header'=>'nombre',
                        //'value' => '($model->nombre',
                        //'htmlOptions'=>array('style'=>'min-width: 50px; max-width: 100px; white-space:nowrap;'),
                     ),
		array(
                        'name' => 'descripcion',
                        //'header'=>'descripcion',
                        //'value' => '($model->descripcion',
                        //'htmlOptions'=>array('style'=>'min-width: 50px; max-width: 100px; white-space:nowrap;'),
                     ),
                array(
开发者ID:rapbore,项目名称:comar,代码行数:31,代码来源:admin.php

示例5: array

<?php

$this->breadcrumbs = array('Pah Donaturs' => array('index'), Yii::t('app', 'Manage'));
$this->menu = array(array('label' => Yii::t('app', 'List') . ' PahDonatur', 'url' => array('index')), array('label' => Yii::t('app', 'Create') . ' PahDonatur', 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('pah-donatur-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<h1><?php 
echo Yii::t('app', 'Manage');
?>
 Pah Donaturs</h1>

<p style="display:none">
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 GxHtml::link(Yii::t('app', 'Advanced Search'), '#', array('class' => 'search-button'));
?>
<div class="search-form" style="display:none">
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'pah-donatur-grid', 'dataProvider' => $model->search(), 'itemsCssClass' => 'table', 'filter' => $model, 'columns' => array('id', 'name', 'phone', 'alamat', array('name' => 'inactive', 'value' => '($data->inactive === 0) ? Yii::t(\'app\', \'No\') : Yii::t(\'app\', \'Yes\')', 'filter' => array('0' => Yii::t('app', 'No'), '1' => Yii::t('app', 'Yes'))), array('name' => 'pah_chart_master_account_code', 'value' => 'GxHtml::valueEx($data->pahChartMasterAccountCode)', 'filter' => GxHtml::listDataEx(PahChartMaster::model()->findAllAttributes(null, true))), array('class' => 'CButtonColumn'))));
开发者ID:saifulihsan,项目名称:gkkd-jogja,代码行数:27,代码来源:admin.php

示例6:

            class="required">*</span> <?php 
echo Yii::t('app', 'are required');
?>
.
    </p>

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

    <div class="span-8 last">
        <?php 
echo $form->labelEx($model, 'jemaat_nij');
?>
        <?php 
echo $form->dropDownList($model, 'jemaat_nij', GxHtml::listDataEx(Jemaat::model()->findAllAttributes(null, true)));
?>
        <?php 
echo $form->error($model, 'jemaat_nij');
?>
    </div>
    <!-- row -->
    <div class="span-8 last">
        <?php 
echo $form->labelEx($model, 'inactive');
?>
        <?php 
echo $form->textField($model, 'inactive');
?>
        <?php 
echo $form->error($model, 'inactive');
开发者ID:saifulihsan,项目名称:gkkd-jogja,代码行数:31,代码来源:_form.php

示例7: array

<?php

$this->breadcrumbs = array($model->label(2) => array('index'), Yii::t('app', 'Manage'));
$this->menu = array(array('label' => Yii::t('app', 'List') . ' ' . $model->label(2), 'url' => array('index')), array('label' => Yii::t('app', 'Create') . ' ' . $model->label(), 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\r\n\$('.search-button').click(function(){\r\n\t\$('.search-form').slideToggle();\r\n\treturn false;\r\n});\r\n\$('.search-form form').submit(function(){\r\n\t\$.fn.yiiGridView.update('pedido-grid', {\r\n\t\tdata: \$(this).serialize()\r\n\t});\r\n\treturn false;\r\n});\r\n");
?>

<h1><?php 
echo Yii::t('app', 'Manage') . ' ' . GxHtml::encode($model->label(2));
?>
</h1>

<p>
<?php 
echo Yii::t('app', 'Text Option Search');
?>
</p>

<?php 
$this->widget('bootstrap.widgets.TbMenu', array('type' => 'pills', 'items' => array(array('label' => Yii::t('app', 'Search'), 'icon' => 'icon-search', 'url' => '#', 'linkOptions' => array('class' => 'search-button')), array('label' => Yii::t('app', 'Export to Excel'), 'icon' => 'icon-download', 'url' => Yii::app()->controller->createUrl('GenerateExcel'), 'linkOptions' => array('target' => '_blank'), 'visible' => true))));
?>

<div class="search-form">
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'pedido-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'type' => 'striped bordered condensed', 'template' => "{summary}{items}{pager}", 'columns' => array('id', array('name' => 'user_id', 'value' => 'GxHtml::valueEx($data->user)', 'filter' => GxHtml::listDataEx(User::model()->findAllAttributes(null, true))), array('name' => 'producto_id', 'value' => 'GxHtml::valueEx($data->producto)', 'filter' => GxHtml::listDataEx(Producto::model()->findAllAttributes(null, true))), 'cantidad', 'total', 'estado', array('class' => 'bootstrap.widgets.TbButtonColumn', 'htmlOptions' => array('style' => 'min-width: 50px')))));
开发者ID:rapbore,项目名称:rch2,代码行数:30,代码来源:admin.php

示例8:

		<?php 
echo $form->labelEx($model, 'user_id');
?>
		<?php 
echo $form->dropDownList($model, 'user_id', GxHtml::listDataEx(User::model()->findAllAttributes(null, true)));
?>
		<?php 
echo $form->error($model, 'user_id');
?>
		</div><!-- row -->
		<div class="row">
		<?php 
echo $form->labelEx($model, 'producto_id');
?>
		<?php 
echo $form->dropDownList($model, 'producto_id', GxHtml::listDataEx(Producto::model()->findAllAttributes(null, true)));
?>
		<?php 
echo $form->error($model, 'producto_id');
?>
		</div><!-- row -->
		<div class="row">
		<?php 
echo $form->labelEx($model, 'cantidad');
?>
		<?php 
echo $form->textField($model, 'cantidad');
?>
		<?php 
echo $form->error($model, 'cantidad');
?>
开发者ID:rapbore,项目名称:rch2,代码行数:31,代码来源:_form.php

示例9: array

/* @var $this AntraegeController */
/* @var $model Antrag */
$this->breadcrumbs = array(Yii::t('app', 'Administration') => $this->createUrl('/admin/index'), $model->label(2) => array('index'), "Durchsuchen");
$this->menu = array(array('label' => $model->label(2), 'url' => array('index'), "icon" => "home"));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('antrag-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<h1><?php 
echo GxHtml::encode($model->label(2)) . ' ' . Yii::t('app', 'Manage');
?>
</h1>

<p>
	<?php 
Yii::t('app', '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 GxHtml::link(Yii::t('app', 'Advanced Search'), '#', array('class' => 'search-button'));
?>
<div class="search-form">
	<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'antrag-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array('id', array('name' => 'veranstaltung', 'value' => 'GxHtml::valueEx($data->veranstaltung)', 'filter' => GxHtml::listDataEx(Veranstaltung::model()->findAllAttributes(null, true))), array('name' => 'abgeleitet_von', 'value' => 'GxHtml::valueEx($data->abgeleitetVon)', 'filter' => GxHtml::listDataEx(Antrag::model()->findAllAttributes(null, true))), 'typ', 'name', 'revision_name', array('class' => 'CButtonColumn', 'template' => '{update}'))));
开发者ID:andi98,项目名称:antragsgruen,代码行数:29,代码来源:admin.php

示例10: array

<?php

$this->breadcrumbs = array($model->label(2) => array('index'), Yii::t('app', 'Manage'));
$this->menu = array(array('label' => Yii::t('app', 'List') . ' ' . $model->label(2), 'url' => array('index')), array('label' => Yii::t('app', 'Create') . ' ' . $model->label(), 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('voucher-type-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<h1><?php 
echo Yii::t('app', 'Manage') . ' ' . GxHtml::encode($model->label(2));
?>
</h1>

<p>
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 GxHtml::link(Yii::t('app', 'Advanced Search'), '#', array('class' => 'search-button'));
?>
<div class="search-form">
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'voucher-type-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array('id', 'name', 'create_date', 'deleted_at', array('name' => 'program_id', 'value' => 'GxHtml::valueEx($data->program)', 'filter' => GxHtml::listDataEx(Program::model()->findAllAttributes(null, true))), 'arabic_text', array('class' => 'CButtonColumn'))));
开发者ID:hanihh,项目名称:vvs_v2,代码行数:27,代码来源:admin.php

示例11: array

echo $form->labelEx($model, 'amount');
?>
        <?php 
echo $form->textField($model, 'amount');
?>
        <?php 
echo $form->error($model, 'amount');
?>
    </div>
    <!-- row -->
    <div class="span-8 last">
        <?php 
echo $form->labelEx($model, 'account_code');
?>
        <?php 
echo $form->dropDownList($model, 'account_code', GxHtml::listDataEx(PeChartMaster::model()->findAllAttributes(null, true)));
?>
        <?php 
echo $form->error($model, 'account_code');
?>
    </div>
    <!-- row -->
    <!-- june -->
    <div class="row"></div>
    <!-- june -->
    <!--label--><!--/label-->

    <?php 
echo GxHtml::Button(Yii::t('app', 'Cancel'), array('submit' => array('peanggarandetil/admin')));
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
开发者ID:saifulihsan,项目名称:gkkd-jogja,代码行数:31,代码来源:_form.php

示例12: array

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

		<div class="row">
		<?php 
echo $form->labelEx($model, 'nombre');
?>
		<?php 
echo $form->textField($model, 'nombre', array('maxlength' => 40, 'size' => '50'));
?>
		<?php 
echo $form->error($model, 'nombre');
?>
		</div><!-- row -->
		<div class="row">
		<?php 
echo $form->labelEx($model, 'id_area_empresa');
?>
		<?php 
echo $form->dropDownList($model, 'id_area_empresa', GxHtml::listDataEx(AreasEmpresa::model()->findAllAttributes(null, true)));
?>
		<?php 
echo $form->error($model, 'id_area_empresa');
?>
		</div><!-- row -->

<?php 
echo GxHtml::submitButton(Yii::t('app', 'Guardar'), array('class' => 'boton'));
$this->endWidget();
?>
</div><!-- form -->
开发者ID:dev-lav,项目名称:htdocs,代码行数:31,代码来源:_form.php

示例13: array

	<div class="span-8 last">
		<?php 
echo $form->label($model, 'desc');
?>
		<?php 
echo $form->textArea($model, 'desc');
?>
	</div>

	<div class="span-8 last">
		<?php 
echo $form->label($model, 'account_code');
?>
		<?php 
echo $form->dropDownList($model, 'account_code', GxHtml::listDataEx(PahChartMaster::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'All')));
?>
	</div>

	<div class="span-8 last">
		<?php 
echo $form->label($model, 'inactive');
?>
		<?php 
echo $form->dropDownList($model, 'inactive', array('0' => Yii::t('app', 'No'), '1' => Yii::t('app', 'Yes')), array('prompt' => Yii::t('app', 'All')));
?>
	</div>

	<div class="row buttons">
		<?php 
echo GxHtml::submitButton(Yii::t('app', 'Search'));
开发者ID:saifulihsan,项目名称:gkkd-jogja,代码行数:30,代码来源:_search.php

示例14: array

<?php

$this->breadcrumbs = array('Lớp học' => array('admin'), 'Quản lý');
$this->menu = array(array('label' => 'Danh sách', 'url' => array('admin')), array('label' => 'Tạo mới', 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('class-guitar-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<h1>Các lớp học</h1>
<?php 
echo GxHtml::link(Yii::t('app', 'Tìm kiếm'), '#', array('class' => 'search-button'));
?>
<div class="search-form">
    <?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'class-guitar-grid', 'dataProvider' => $model->search(), 'columns' => array('sku', 'title', array('name' => 'tid', 'value' => 'GxHtml::valueEx($data->t)', 'filter' => GxHtml::listDataEx(Training::model()->findAllAttributes(null, true))), array('name' => 'cid', 'value' => 'GxHtml::valueEx($data->c)', 'filter' => GxHtml::listDataEx(Center::model()->findAllAttributes(null, true))), array('name' => 'start_time', 'value' => 'date("d/m/Y",$data->start_time)'), array('name' => 'end_time', 'value' => 'date("d/m/Y",$data->end_time)'), array('class' => 'CButtonColumn'))));
开发者ID:ngdvan,项目名称:lntguitar,代码行数:19,代码来源:admin.php

示例15: array

<?php

$this->menu = array(array('label' => Yii::t('app', 'Amamaza') . ' ' . IguClientProduct::label(), 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('igu-client-product-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
$this->beginWidget('zii.widgets.CPortlet', array('htmlOptions' => array('class' => '')));
$this->widget('bootstrap.widgets.TbMenu', array('type' => 'pills', 'items' => array(array('label' => 'Amamaza', 'icon' => 'icon-plus', 'url' => Yii::app()->controller->createUrl('create'), 'linkOptions' => array()), array('label' => 'Ibicuruzwa', 'icon' => 'icon-search', 'url' => Yii::app()->controller->createUrl('admin'), 'active' => true, 'linkOptions' => array()))));
$this->endWidget();
?>

<h3><?php 
echo Yii::t('app', '') . ' ' . GxHtml::encode($model->label(2));
?>
</h3>


<?php 
echo GxHtml::link(Yii::t('app', 'Advanced Search'), '#', array('class' => 'search-button'));
?>
<div class="search-form" style='display:none'>
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'igu-client-product-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array(array('class' => 'IndexColumn'), array('name' => 'idproduct', 'value' => 'GxHtml::valueEx($data->idproduct0)', 'filter' => GxHtml::listDataEx(IguProducts::model()->findAllAttributes(null, true))), 'currentprice', 'quantity', 'mesure', 'totalamount', 'creationdate', array('class' => 'CButtonColumn'))));
开发者ID:cntabana,项目名称:inyungu,代码行数:26,代码来源:admin.php


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