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; }
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; }
/** * 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; }
//'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(
<?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 (<, <=, >, >=, <> 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'))));
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');
<?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')))));
<?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'); ?>
/* @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 (<, <=, >, >=, <> 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}'))));
<?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 (<, <=, >, >=, <> 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'))));
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();
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 -->
<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'));
<?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'))));
<?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'))));
<?php $this->breadcrumbs = array('Bitacorases' => array('index'), 'Administrar'); $this->menu = array(array('label' => 'Listar Bitacoras', 'url' => array('index')), array('label' => 'Agregar Bitacoras', '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('bitacoras-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n"); ?> <h1>Administrar Bitacoras</h1> <?php echo CHtml::link('Busqueda Avanzada', '#', 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' => 'bitacoras-grid', 'dataProvider' => $model->search(), 'emptyText' => 'No hay resultados', 'summaryText' => 'Mostrando del {start} al {end} de {count} resultado(s).', 'pager' => array('header' => '', 'prevPageLabel' => 'Anterior', 'nextPageLabel' => 'Siguiente'), 'filter' => $model, 'columns' => array(array('name' => 'id_vehiculo', 'value' => 'GxHtml::valueEx($data->idVehiculo)', 'filter' => GxHtml::listDataEx(Vehiculos::model()->findAllAttributes(null, true)), 'htmlOptions' => array('width' => '85')), 'fecha', 'kilometraje_inicial', 'kilometraje_final', 'litros_adicionales', array('class' => 'CButtonColumn', 'header' => 'Opciones', 'htmlOptions' => array('width' => 120), 'template' => '{view}{update}{delete}', 'buttons' => array('view' => array('label' => 'Ver', 'url' => 'Yii::app()->createUrl("bitacoras/view", array("id"=>$data->id))', 'imageUrl' => Yii::app()->baseUrl . '/images/ver.png'), 'update' => array('label' => 'Editar', 'url' => 'Yii::app()->createUrl("bitacoras/update", array("id"=>$data->id))', 'imageUrl' => Yii::app()->baseUrl . '/images/editar.png'), 'delete' => array('label' => 'Borrar', 'url' => 'Yii::app()->createUrl("bitacoras/delete", array("id"=>$data->id))', 'imageUrl' => Yii::app()->baseUrl . '/images/delete.png'))))));
<?php $this->breadcrumbs = array('Pah Members' => array('index'), Yii::t('app', 'Manage')); $this->menu = array(array('label' => Yii::t('app', 'List') . ' PahMember', 'url' => array('index')), array('label' => Yii::t('app', 'Create') . ' PahMember', '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-member-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n"); ?> <h1><?php echo Yii::t('app', 'Manage'); ?> Pah Members</h1> <p style="display:none"> You may optionally enter a comparison operator (<, <=, >, >=, <> 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-member-grid', 'dataProvider' => $model->search(), 'itemsCssClass' => 'table', 'filter' => $model, 'columns' => array('id', array('name' => 'jemaat_nij', 'value' => 'GxHtml::valueEx($data->jemaatNij)', 'filter' => GxHtml::listDataEx(Jemaat::model()->findAllAttributes(null, true))), 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('class' => 'CButtonColumn'))));
<?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('mensaje-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' => 'mensaje-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'type' => 'striped bordered condensed', 'template' => "{summary}{items}{pager}", 'columns' => array('id', array('name' => 'user_emisor', 'value' => 'GxHtml::valueEx($data->userEmisor)', 'filter' => GxHtml::listDataEx(User::model()->findAllAttributes(null, true))), array('name' => 'user_receptor', 'value' => 'GxHtml::valueEx($data->userReceptor)', 'filter' => GxHtml::listDataEx(User::model()->findAllAttributes(null, true))), 'fecha', 'mensaje', 'estado', array('class' => 'bootstrap.widgets.TbButtonColumn', 'htmlOptions' => array('style' => 'min-width: 50px')))));
<?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('district-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 (<, <=, >, >=, <> 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' => 'district-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array('id', 'code', 'ar_name', 'en_name', array('name' => 'governerate_id', 'value' => 'GxHtml::valueEx($data->governerate)', 'filter' => GxHtml::listDataEx(Governorate::model()->findAllAttributes(null, true))), array('class' => 'CButtonColumn'))));
<?php $this->breadcrumbs = array('Pe Gl Trans' => array('index'), Yii::t('app', 'Manage')); $this->menu = array(array('label' => Yii::t('app', 'List') . ' PeGlTrans', 'url' => array('index')), array('label' => Yii::t('app', 'Create') . ' PeGlTrans', '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('pe-gl-trans-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n"); ?> <h1><?php echo Yii::t('app', 'Manage'); ?> Pe Gl Trans</h1> <p style="display:none"> You may optionally enter a comparison operator (<, <=, >, >=, <> 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' => 'pe-gl-trans-grid', 'dataProvider' => $model->search(), 'itemsCssClass' => 'table', 'filter' => $model, 'columns' => array('counter', 'type', 'type_no', 'tran_date', array('name' => 'account', 'value' => 'GxHtml::valueEx($data->account0)', 'filter' => GxHtml::listDataEx(PeChartMaster::model()->findAllAttributes(null, true))), 'memo_', array('class' => 'CButtonColumn'))));
echo $form->labelEx($model, 'trans_date'); ?> <?php $form->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'attribute' => 'trans_date', 'value' => $model->trans_date, 'options' => array('showButtonPanel' => true, 'changeYear' => true, 'dateFormat' => 'yy-mm-dd'))); ?> <?php echo $form->error($model, 'trans_date'); ?> </div> <!-- row --> <div class="span-8 last"> <?php echo $form->labelEx($model, 'users_id'); ?> <?php echo $form->dropDownList($model, 'users_id', GxHtml::listDataEx(Users::model()->findAllAttributes(null, true))); ?> <?php echo $form->error($model, 'users_id'); ?> </div> <!-- row --> <!-- june --> <div class="row"></div> <!-- june --> <!--label--><!--/label--> <?php echo GxHtml::Button(Yii::t('app', 'Cancel'), array('submit' => array('peanggaran/admin'))); echo GxHtml::submitButton(Yii::t('app', 'Save')); $this->endWidget();
<?php $this->breadcrumbs = array(Yii::t('app', 'Manage')); $this->menu = array(array('label' => Yii::t('app', 'Create') . ' ' . $model->label(), 'url' => array('crear'))); 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('publicidad-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' => 'publicidad-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))), 'mensaje', 'estado', array('class' => 'bootstrap.widgets.TbButtonColumn', 'htmlOptions' => array('style' => 'width: 50px'), 'template' => '{view} {update} {delete}', 'buttons' => array('view' => array('label' => 'Ver Publicidad', 'url' => 'Yii::app()->createUrl("publicidad/ver", array("id"=>$data->id))'), 'update' => array('label' => 'Actualizar Publicidad', 'url' => 'Yii::app()->createUrl("publicidad/actualizar", array("id"=>$data->id))'), 'delete' => array('label' => 'Eliminar Publicidad', 'url' => 'Yii::app()->createUrl("publicidad/eliminar", array("id"=>$data->id))'))))));
<div class="wide form"> <?php $form = $this->beginWidget('GxActiveForm', array('action' => Yii::app()->createUrl($this->route), 'method' => 'get')); ?> <div class="row"> <?php echo $form->label($model, 'CODDPTO'); ?> <?php echo $form->dropDownList($model, 'CODDPTO', GxHtml::listDataEx(Departamento::model()->findAll(), 'codigo', 'departamento'), array('prompt' => 'Seleccione...', 'class' => 'Ccombo')); ?> </div> <div class="row"> <?php echo $form->label($model, 'CODMUN'); ?> <?php echo $form->dropDownList($model, 'CODMUN', array(), array('prompt' => 'Seleccione...', 'class' => 'Ccombo')); ?> </div> <div class="row"> <?php echo $form->label($model, 'CODIGO_DANE_ESTABLEDUCATIVO'); ?> <?php echo $form->dropDownList($model, 'CODIGO_DANE_ESTABLEDUCATIVO', array(), array('prompt' => 'Seleccione...', 'class' => 'Ccombo')); ?>
<?php $this->breadcrumbs = array($model->label(2) => array('index'), Yii::t('app', 'Manage')); 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-products-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n"); $this->menu = array(array('label' => Yii::t('app', 'Manage') . ' ' . IguProducts::label(2), 'url' => array('admin'))); $this->beginWidget('zii.widgets.CPortlet', array('htmlOptions' => array('class' => ''))); $this->widget('bootstrap.widgets.TbMenu', array('type' => 'pills', 'items' => array(array('label' => 'Create', 'icon' => 'icon-plus', 'url' => Yii::app()->controller->createUrl('create'), 'linkOptions' => array()), array('label' => 'List', 'icon' => 'icon-th-list', 'url' => Yii::app()->controller->createUrl('index'), 'linkOptions' => array()), array('label' => 'Manage', 'icon' => 'icon-search', 'url' => Yii::app()->controller->createUrl('admin'), 'active' => true, 'linkOptions' => array('class' => 'search-button')), array('label' => 'Export to PDF', 'icon' => 'icon-download', 'url' => Yii::app()->controller->createUrl('GeneratePdf'), 'linkOptions' => array('target' => '_blank'), 'visible' => true), array('label' => 'Export to Excel', 'icon' => 'icon-download', 'url' => Yii::app()->controller->createUrl('GenerateExcel'), 'linkOptions' => array('target' => '_blank'), 'visible' => true)))); $this->endWidget(); ?> <h3><?php echo Yii::t('app', 'Manage') . ' ' . 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-products-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array('id', array('name' => 'idsouscategory', 'value' => 'GxHtml::valueEx($data->idsouscategory0)', 'filter' => GxHtml::listDataEx(IguSousCategory::model()->findAllAttributes(null, true))), 'productname', array('class' => 'CButtonColumn'))));
echo $form->labelEx($model, 'tid'); ?> <?php echo $form->dropDownList($model, 'tid', GxHtml::listDataEx(Training::model()->findAllAttributes(null, true))); ?> <?php echo $form->error($model, 'tid'); ?> </div> <!-- row --> <div class="row"> <?php echo $form->labelEx($model, 'cid'); ?> <?php echo $form->dropDownList($model, 'cid', GxHtml::listDataEx(Center::model()->findAllAttributes(null, true))); ?> <?php echo $form->error($model, 'cid'); ?> </div> <!-- row --> <div class="row"> <?php echo $form->labelEx($model, 'start_time'); ?> <?php //echo $form->textField($model, 'start_time'); $this->widget('zii.widgets.jui.CJuiDatePicker', array('name' => 'ClassGuitar[start_time]', 'language' => 'vi', 'options' => array('showAnim' => 'fold'), 'value' => date('d/m/Y', $model->start_time ? $model->start_time : time()), 'htmlOptions' => array('style' => 'height:20px;'))); ?> <?php
<?php echo $form->labelEx($model, 'apellido_mat'); ?> <?php echo $form->textField($model, 'apellido_mat', array('maxlength' => 50)); ?> <?php echo $form->error($model, 'apellido_mat'); ?> </div><!-- row --> <?php $criteria = new CDbCriteria(); $criteria->order = 'nombre ASC'; ?> <div class="row"> <?php echo $form->labelEx($model, 'id_cargo_empresa'); ?> <?php echo $form->dropDownList($model, 'id_cargo_empresa', GxHtml::listDataEx(CargosEmpresa::model()->findAllAttributes(null, true, $criteria))); ?> <?php echo $form->error($model, 'id_cargo_empresa'); ?> </div><!-- row --> <?php echo GxHtml::submitButton(Yii::t('app', 'Guardar'), array('class' => 'boton')); $this->endWidget(); ?> </div><!-- form -->
<div class="span-8 last"> <?php echo $form->label($model, 'pah_bank_accounts_id'); ?> <?php echo $form->dropDownList($model, 'pah_bank_accounts_id', GxHtml::listDataEx(PahBankAccounts::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'All'))); ?> </div> <div class="span-8 last"> <?php echo $form->label($model, 'users_id'); ?> <?php echo $form->dropDownList($model, 'users_id', GxHtml::listDataEx(Users::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'All'))); ?> </div> <div class="row buttons"> <?php echo GxHtml::submitButton(Yii::t('app', 'Search')); ?> </div> <?php $this->endWidget(); ?> </div><!-- search-form -->
<?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('vendor-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 (<, <=, >, >=, <> 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' => 'vendor-type-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array('id', 'name', array('name' => 'program_id', 'value' => 'GxHtml::valueEx($data->program)', 'filter' => GxHtml::listDataEx(Program::model()->findAllAttributes(null, true))), 'code', 'create_date', array('name' => 'internal', 'value' => '($data->internal === 0) ? Yii::t(\'app\', \'No\') : Yii::t(\'app\', \'Yes\')', 'filter' => array('0' => Yii::t('app', 'No'), '1' => Yii::t('app', 'Yes'))), array('class' => 'CButtonColumn'))));
echo $form->textArea($model, 'slogan_en'); ?> <?php echo $form->error($model, 'slogan_en'); ?> </div><!-- row --> <div class="row"> <?php echo $form->labelEx($model, 'slogan_ar'); ?> <?php echo $form->textArea($model, 'slogan_ar'); ?> <?php echo $form->error($model, 'slogan_ar'); ?> </div><!-- row --> <label><?php echo GxHtml::encode($model->getRelationLabel('distributions')); ?> </label> <?php echo $form->checkBoxList($model, 'distributions', GxHtml::encodeEx(GxHtml::listDataEx(Distribution::model()->findAllAttributes(null, true)), false, true)); ?> <?php echo GxHtml::submitButton(Yii::t('app', 'Save')); $this->endWidget(); ?> </div><!-- form -->
<?php $this->breadcrumbs = array('Ver Local' => array('local/verLocalCliente', 'id' => $id_local), Yii::t('app', 'Manage')); Yii::app()->clientScript->registerScript('search', "\r\n\$('.search-button').click(function(){\r\n\t\$('.search-form').toggle();\r\n\treturn false;\r\n});\r\n\$('.search-form form').submit(function(){\r\n\t\$.fn.yiiGridView.update('recarga-grid', {\r\n\t\tdata: \$(this).serialize()\r\n\t});\r\n\treturn false;\r\n});\r\n"); ?> <pre> <?php $publicidad = Publicidad::model()->random()->find(); echo $publicidad->mensaje; ?> </pre> <h1><?php echo Yii::t('app', 'Historial de Recargas'); ?> </h1> <?php /*echo GxHtml::link(Yii::t('app', 'Busqueda Avanzada'), '#', array('class' => 'search-button')); ?> <div class="search-form"> <?php $this->renderPartial('_search', array( 'model' => $model, )); */ ?> </div><!-- search-form --> <?php $this->widget('bootstrap.widgets.TbExtendedGridView', array('id' => 'recarga-grid', 'dataProvider' => new CArrayDataProvider($model, array('pagination' => array('pageSize' => 50))), 'type' => 'striped bordered condensed', 'template' => "{extendedSummary}\n{items}{pager}", 'columns' => array(array('name' => 'user_id', 'value' => 'GxHtml::valueEx($data->user)', 'filter' => GxHtml::listDataEx(User::model()->findAllAttributes(null, true))), array('name' => 'local_id', 'value' => 'GxHtml::valueEx($data->local)', 'filter' => GxHtml::listDataEx(Local::model()->findAllAttributes(null, true))), 'celular', 'fecha', 'compania', 'monto', 'comentario', 'estado'), 'extendedSummary' => array('title' => 'TOTAL RECARGAS', 'columns' => array('monto' => array('label' => '$', 'class' => 'TbSumOperation'))), 'extendedSummaryOptions' => array('class' => 'well pull-right')));