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; }
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($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('user-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n"); $this->menu = array(array('label' => Yii::t('app', 'Manage') . ' ' . $model->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('createAdmin'), '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' => 'user-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array('id', 'username', 'status', array('class' => 'CButtonColumn'))));
//'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($model->label(2) => array('index'), GxHtml::valueEx($model)); $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')), array('label' => Yii::t('app', 'Update') . ' ' . $model->label(), 'url' => array('update', 'id' => $model->id)), array('label' => Yii::t('app', 'Delete') . ' ' . $model->label(), 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?')), array('label' => Yii::t('app', 'Manage') . ' ' . $model->label(2), 'url' => array('admin'))); ?> <h1><?php echo Yii::t('app', 'View') . ' ' . GxHtml::encode($model->label()) . ' ' . GxHtml::encode(GxHtml::valueEx($model)); ?> </h1> <?php $this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('id', 'name', 'email', 'tel', 'birthday', array('name' => 'class', 'type' => 'raw', 'value' => $model->class !== null ? GxHtml::link(GxHtml::encode(GxHtml::valueEx($model->class)), array('classGuitar/view', 'id' => GxActiveRecord::extractPkValue($model->class, true))) : null), 'user_id', 'comment'))); ?>
<?php $this->breadcrumbs = array('Pah Sub Aktivitases' => array('index'), GxHtml::valueEx($model) => array('view', 'id' => GxActiveRecord::extractPkValue($model, true)), Yii::t('app', 'Update')); $this->menu = array(array('label' => Yii::t('app', 'List') . ' PahSubAktivitas', 'url' => array('index')), array('label' => Yii::t('app', 'Create') . ' PahSubAktivitas', 'url' => array('create')), array('label' => Yii::t('app', 'View') . ' PahSubAktivitas', 'url' => array('view', 'id' => GxActiveRecord::extractPkValue($model, true)))); ?> <h1><?php echo Yii::t('app', 'Update'); ?> PahSubAktivitas #<?php echo GxHtml::encode(GxHtml::valueEx($model)); ?> </h1> <?php $this->renderPartial('_form', array('model' => $model));
<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 -->
?> </div><!-- row --> <div class="row"> <?php echo $form->labelEx($model, 'total'); ?> <?php echo $form->textField($model, 'total'); ?> <?php echo $form->error($model, 'total'); ?> </div><!-- row --> <div class="row"> <?php echo $form->labelEx($model, 'estado'); ?> <?php echo $form->textField($model, 'estado', array('maxlength' => 45)); ?> <?php echo $form->error($model, 'estado'); ?> </div><!-- row --> <?php echo GxHtml::submitButton(Yii::t('app', 'Save'), array('onClick' => "this.disabled=true;this.value='" . Yii::t('app', 'Enviando') . "';this.form.submit();")); $this->endWidget(); ?> </div><!-- 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('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 echo GxHtml::link(GxHtml::encode($data->id), array('view', 'id' => $data->id)); ?> <br /> <?php echo GxHtml::encode($data->getAttributeLabel('idclient')); ?> : <?php echo GxHtml::encode(GxHtml::valueEx($data->idclient0)); ?> <br /> <?php echo GxHtml::encode($data->getAttributeLabel('datepaiement')); ?> : <?php echo GxHtml::encode($data->datepaiement); ?> <br /> <?php echo GxHtml::encode($data->getAttributeLabel('vouchernumber')); ?> : <?php echo GxHtml::encode($data->vouchernumber); ?> <br /> </div>
<?php $this->breadcrumbs = array('Pe Kas Keluars' => array('index'), GxHtml::valueEx($model)); $this->menu = array(array('label' => Yii::t('app', 'List') . ' PeKasKeluar', 'url' => array('index')), array('label' => Yii::t('app', 'Create') . ' PeKasKeluar', 'url' => array('create')), array('label' => Yii::t('app', 'Update') . ' PeKasKeluar', 'url' => array('update', 'id' => $model->kas_keluar_id)), array('label' => Yii::t('app', 'Delete') . ' PeKasKeluar', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->kas_keluar_id), 'confirm' => 'Are you sure you want to delete this item?'))); ?> <h1><?php echo Yii::t('app', 'View'); ?> PeKasKeluar #<?php echo GxHtml::encode(GxHtml::valueEx($model)); ?> </h1> <?php $this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('kas_keluar_id', 'doc_ref', 'no_bukti', 'amount', 'entry_time', 'trans_date', 'trans_via', array('label' => 'PeSuppliers', 'type' => 'raw', 'value' => GxHtml::link(GxHtml::encode(GxHtml::valueEx($model->peSupplier)), array('peSuppliers/view', 'id' => GxActiveRecord::extractPkValue($model->peSupplier, true)))), array('label' => 'PeChartMaster', 'type' => 'raw', 'value' => GxHtml::link(GxHtml::encode(GxHtml::valueEx($model->peAccountCode)), array('peChartMaster/view', 'id' => GxActiveRecord::extractPkValue($model->peAccountCode, true)))), array('label' => 'PeBankAccounts', 'type' => 'raw', 'value' => GxHtml::link(GxHtml::encode(GxHtml::valueEx($model->peBankAccounts)), array('peBankAccounts/view', 'id' => GxActiveRecord::extractPkValue($model->peBankAccounts, true)))), array('label' => 'Users', 'type' => 'raw', 'value' => GxHtml::link(GxHtml::encode(GxHtml::valueEx($model->users)), array('users/view', 'id' => GxActiveRecord::extractPkValue($model->users, true))))), 'itemTemplate' => "<tr class=\"{class}\"><td style=\"width: 120px\"><b>{label}</b></td><td>{value}</td></tr>\n", 'htmlOptions' => array('class' => 'table'))); ?>
/** * Renders a checkbox list for a model attribute. * This method is a wrapper of {@link GxHtml::activeCheckBoxList}. * #MethodTracker * This method is based on {@link CActiveForm::checkBoxList}, from version 1.1.7 (r3135). Changes: * <ul> * <li>Uses GxHtml.</li> * </ul> * @see CActiveForm::checkBoxList * @param CModel $model The data model. * @param string $attribute The attribute. * @param array $data Value-label pairs used to generate the check box list. * @param array $htmlOptions Addtional HTML options. * @return string The generated check box list. */ public function checkBoxList($model, $attribute, $data, $htmlOptions = array()) { return GxHtml::activeCheckBoxList($model, $attribute, $data, $htmlOptions); }
/* @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}'))));
/** * @static * @param $antrag Antrag|Aenderungsantrag * @param $unterstuetzerIn_rel string * @return string */ public static function printUnterstuetzerInnenWidget($antrag, $unterstuetzerIn_rel) { $neustr = '<div class="unterstuetzerInnenwidget_adder" style="margin-top: 20px;">'; /* $neustr .= '<select name="' . get_class($antrag) . '[unterstuetzerIn_neu][person][]" class="person_selector">'; $neustr .= '<option value="neu"> - neue Person anlegen -</option>'; if ($antrag->getVeranstaltungsreihe()->getEinstellungen()->antrag_neu_nur_namespaced_accounts) { $pers = Person::model()->findAllByAttributes(array("veranstaltungsreihe_namespace" => $antrag->getVeranstaltungsreihe()->id), array("order" => "name")); } else { $pers = Person::model()->findAllAttributes("name", true, array("order" => "name")); } foreach ($pers as $p) { /* @var $p Person / $neustr .= '<option value="' . $p->id . '">' . CHtml::encode($p->name) . '</option>'; } $neustr .= "</select>"; * */ $neustr .= '<input type="hidden" name="' . get_class($antrag) . '[unterstuetzerIn_neu][person][]" value="neu">'; $neustr .= '<label style="display: inline-block; width: 220px;">'; $neustr .= 'Rolle:<br>'; $neustr .= '<select name="' . get_class($antrag) . '[unterstuetzerIn_neu][rolle][]" required>'; $neustr .= '<option value=""> - </option>'; foreach (IUnterstuetzerInnen::$ROLLEN as $key => $val) { $neustr .= '<option value="' . $key . '">' . CHtml::encode($val) . "</option>\n"; } $neustr .= '</select></label>'; $neustr .= '<label style="display: inline-block; width: 220px;" class="unterstuetzerIn_neu_holder">Personen-Typ:<br>'; $neustr .= "<select name='" . get_class($antrag) . "[unterstuetzerIn_neu][person_typ][]'>"; foreach (Person::$TYPEN as $key => $val) { $neustr .= "<option value='{$key}'>" . GxHtml::encode($val) . "</option>\n"; } $neustr .= "</select></label>"; $neustr .= "<label style='display: inline-block; width: 220px;'>Name:<br>"; $neustr .= "<input type='text' style='width: 187px;' name='" . get_class($antrag) . "[unterstuetzerIn_neu][person_name][]' value='' placeholder='Name'>"; $neustr .= '</label>'; $neustr .= "<label style='display: inline-block; width: 220px;'>Organisation (bei nat. P.):<br>"; $neustr .= "<input type='text' style='width: 187px;' name='" . get_class($antrag) . "[unterstuetzerIn_neu][person_organisation][]' value='' placeholder='KV, LAG, ...'>"; $neustr .= '</label>'; $neustr .= "<label style='display: inline-block; width: 220px;'>Beschlussdatum (bei jur. P.):<br>"; $neustr .= "<input type='text' style='width: 187px;' name='" . get_class($antrag) . "[unterstuetzerIn_neu][beschlussdatum][]' value='' placeholder='TT.MM.YYYY'>"; $neustr .= '</label>'; $neustr .= '</div>'; $str = '<div class="unterstuetzerInnenwidget" data-neutemplate="' . CHtml::encode($neustr) . '">'; $unterstuetzerInnen = $antrag->{$unterstuetzerIn_rel}; foreach ($unterstuetzerInnen as $unt) { /** @var AntragUnterstuetzerInnen $unt */ $str .= '<div style="vertical-align: top;">'; $str .= '<span style="display: inline-block; width: 250px; overflow: hidden; vertical-align: top;" class="sort_handle">' . $unt->getNameMitBeschlussdatum(true) . '</span>'; $str .= '<input type="hidden" name="' . get_class($antrag) . '[unterstuetzerInnen][person_id][]" value="' . $unt->person->id . '">'; $str .= '<input type="hidden" name="' . get_class($antrag) . '[unterstuetzerInnen][beschlussdatum][]" value="' . CHtml::encode($unt->beschlussdatum) . '">'; $str .= '<select name="' . get_class($antrag) . '[unterstuetzerInnen][rolle][]" style="vertical-align: top;">'; $str .= '<option value="del"> - ' . Yii::t('app', 'löschen') . ' - </option>'; foreach (IUnterstuetzerInnen::$ROLLEN as $key => $val) { $str .= '<option value="' . $key . '" '; if ($unt->rolle == $key) { $str .= "selected='selected'"; } $str .= ">" . CHtml::encode($val) . "</option>\n"; } $str .= '</select>'; $str .= '</div>'; } $str .= '<div class="unterstuetzerInnenwidget_add_caller" style="margin-top: 20px;"><a href="#">Neue hinzufügen</a></div>'; $str .= "</div>"; return $str; }
<?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'))));
<?php $this->breadcrumbs = array($model->label(2) => array('index'), GxHtml::valueEx($model)); $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')), array('label' => Yii::t('app', 'Update') . ' ' . $model->label(), 'url' => array('update', 'id' => $model->id)), array('label' => Yii::t('app', 'Delete') . ' ' . $model->label(), 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?')), array('label' => Yii::t('app', 'Manage') . ' ' . $model->label(2), 'url' => array('admin'))); ?> <h1><?php echo Yii::t('app', 'View') . ' ' . GxHtml::encode($model->label()) . ' ' . GxHtml::encode(GxHtml::valueEx($model)); ?> </h1> <?php $this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('id', array('name' => 'idclient0', 'type' => 'raw', 'value' => $model->idclient0 !== null ? GxHtml::link(GxHtml::encode(GxHtml::valueEx($model->idclient0)), array('iguRegistration/view', 'id' => GxActiveRecord::extractPkValue($model->idclient0, true))) : null), 'idproduct', 'cashinvested', 'cashprofit', 'year'))); ?>
echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('actor/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true))); echo GxHtml::closeTag('li'); } echo GxHtml::closeTag('ul'); ?> <h2><?php echo GxHtml::encode($model->getRelationLabel('categories')); ?> </h2> <?php echo GxHtml::openTag('ul'); foreach ($model->categories as $relatedModel) { echo GxHtml::openTag('li'); echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('category/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true))); echo GxHtml::closeTag('li'); } echo GxHtml::closeTag('ul'); ?> <h2><?php echo GxHtml::encode($model->getRelationLabel('inventories')); ?> </h2> <?php echo GxHtml::openTag('ul'); foreach ($model->inventories as $relatedModel) { echo GxHtml::openTag('li'); echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('inventory/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true))); echo GxHtml::closeTag('li'); } echo GxHtml::closeTag('ul');
<?php $this->breadcrumbs = array($model->label(2) => array('index'), GxHtml::valueEx($model) => array('view', 'id' => GxActiveRecord::extractPkValue($model, true)), Yii::t('app', 'Update')); $this->menu = array(array('label' => Yii::t('app', 'Amamaza ') . ' ' . IguClientProduct::label(), 'url' => array('create'))); $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'), 'linkOptions' => array())))); $this->endWidget(); ?> <h3><?php echo Yii::t('app', 'Guhindura') . ' ' . GxHtml::encode($model->label()); ?> </h3> <?php $this->renderPartial('_form', array('model' => $model));
: <?php echo GxHtml::encode($data->action_date); ?> <br /> <?php echo GxHtml::encode($data->getAttributeLabel('deleted_at')); ?> : <?php echo GxHtml::encode($data->deleted_at); ?> <br /> <?php echo GxHtml::encode($data->getAttributeLabel('parameters')); ?> : <?php echo GxHtml::encode($data->parameters); ?> <br /> <?php echo GxHtml::encode($data->getAttributeLabel('result')); ?> : <?php echo GxHtml::encode($data->result); ?> <br /> </div>
?> : <?php echo GxHtml::encode($data->valid); ?> <br /> <?php echo GxHtml::encode($data->getAttributeLabel('security_level')); ?> : <?php echo GxHtml::encode($data->security_level); ?> <br /> <?php echo GxHtml::encode($data->getAttributeLabel('family')); ?> : <?php echo GxHtml::encode($data->family); ?> <br /> <?php /* <?php echo GxHtml::encode($data->getAttributeLabel('deleted_at')); ?>: <?php echo GxHtml::encode($data->deleted_at); ?> <br /> */ ?> </div>
<?php $this->breadcrumbs = array(DistributionStatus::label(2), Yii::t('app', 'Index')); $this->menu = array(array('label' => Yii::t('app', 'Create') . ' ' . DistributionStatus::label(), 'url' => array('create')), array('label' => Yii::t('app', 'Manage') . ' ' . DistributionStatus::label(2), 'url' => array('admin'))); ?> <h1><?php echo GxHtml::encode(DistributionStatus::label(2)); ?> </h1> <?php $this->widget('zii.widgets.CListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));
?> : <?php echo GxHtml::encode($data->periode_tahun); ?> <br/> <?php echo GxHtml::encode($data->getAttributeLabel('trans_date')); ?> : <?php echo GxHtml::encode($data->trans_date); ?> <br/> <?php echo GxHtml::encode($data->getAttributeLabel('lock')); ?> : <?php echo GxHtml::encode($data->lock); ?> <br/> <?php echo GxHtml::encode($data->getAttributeLabel('users_id')); ?> : <?php echo GxHtml::encode(GxHtml::valueEx($data->users)); ?> <br/> </div>
<?php $this->breadcrumbs = array($model->label(2) => array('index'), GxHtml::valueEx($model) => array('view', 'id' => GxActiveRecord::extractPkValue($model, true)), Yii::t('app', 'Update')); $this->menu = array(array('label' => Yii::t('app', 'Manage') . ' ' . IguCompanytype::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'), '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', 'Update') . ' ' . GxHtml::encode($model->label()) . ' ' . GxHtml::encode(GxHtml::valueEx($model)); ?> </h3> <?php $this->renderPartial('_form', array('model' => $model));
<?php $this->breadcrumbs = array(Category::label(2), 'Index'); $this->menu = array(array('label' => 'Create' . ' ' . Category::label(), 'url' => array('create')), array('label' => 'Manage' . ' ' . Category::label(2), 'url' => array('admin'))); ?> <h1><?php echo GxHtml::encode(Category::label(2)); ?> </h1> <?php $this->widget('zii.widgets.CListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));
<?php $this->breadcrumbs = array('Quản lý video' => array('admin'), Yii::t('app', 'Sửa')); $this->menu = array(array('label' => 'Danh sách', 'url' => array('admin')), array('label' => 'Tạo mới', 'url' => array('create'))); ?> <h1><?php echo Yii::t('app', 'Sửa: ') . ' ' . GxHtml::encode(GxHtml::valueEx($model)); ?> </h1> <?php $this->renderPartial('_form', array('model' => $model));
<?php $this->breadcrumbs = array(Student::label(2), Yii::t('app', 'Index')); $this->menu = array(array('label' => Yii::t('app', 'Create') . ' ' . Student::label(), 'url' => array('create')), array('label' => Yii::t('app', 'Manage') . ' ' . Student::label(2), 'url' => array('admin'))); ?> <h1><?php echo GxHtml::encode(Student::label(2)); ?> </h1> <?php $this->widget('zii.widgets.CListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));
?> <br/> <?php echo GxHtml::encode($data->getAttributeLabel('trans_date')); ?> : <?php echo GxHtml::encode($data->trans_date); ?> <br/> <?php echo GxHtml::encode($data->getAttributeLabel('trans_via')); ?> : <?php echo GxHtml::encode($data->trans_via); ?> <br/> <?php /* <?php echo GxHtml::encode($data->getAttributeLabel('pe_donatur_id')); ?>: <?php echo GxHtml::encode(GxHtml::valueEx($data->peDonatur)); ?> <br /> <?php echo GxHtml::encode($data->getAttributeLabel('pe_bank_accounts_id')); ?>: <?php echo GxHtml::encode(GxHtml::valueEx($data->peBankAccounts)); ?> <br /> <?php echo GxHtml::encode($data->getAttributeLabel('users_id')); ?>: <?php echo GxHtml::encode(GxHtml::valueEx($data->users)); ?> <br /> */ ?>
<?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')))));