public function actionAdmin() { $model = new VendorType('search'); $model->unsetAttributes(); if (isset($_GET['VendorType'])) { $model->setAttributes($_GET['VendorType']); } $this->render('admin', array('model' => $model)); }
<?php echo $form->labelEx($model, 'status_id'); ?> <?php echo $form->dropDownList($model, 'status_id', GxHtml::listDataEx(VendorStatus::model()->findAllAttributes(null, true))); ?> <?php echo $form->error($model, 'status_id'); ?> </div><!-- row --> <div class="row"> <?php echo $form->labelEx($model, 'type_id'); ?> <?php echo $form->dropDownList($model, 'type_id', GxHtml::listDataEx(VendorType::model()->findAllAttributes(null, true))); ?> <?php echo $form->error($model, 'type_id'); ?> </div><!-- row --> <div class="row"> <?php echo $form->labelEx($model, 'deleted_at'); ?> <?php echo $form->textField($model, 'deleted_at'); ?> <?php echo $form->error($model, 'deleted_at'); ?>
<?php $this->breadcrumbs = array(VendorType::label(2), Yii::t('app', 'Index')); $this->menu = array(array('label' => Yii::t('app', 'Create') . ' ' . VendorType::label(), 'url' => array('create')), array('label' => Yii::t('app', 'Manage') . ' ' . VendorType::label(2), 'url' => array('admin'))); ?> <h1><?php echo GxHtml::encode(VendorType::label(2)); ?> </h1> <?php $this->widget('zii.widgets.CListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));
echo $form->error($model, 'deleted_at'); ?> </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)); ?> <label><?php echo GxHtml::encode($model->getRelationLabel('vendorTypes')); ?> </label> <?php echo $form->checkBoxList($model, 'vendorTypes', GxHtml::encodeEx(GxHtml::listDataEx(VendorType::model()->findAllAttributes(null, true)), false, true)); ?> <label><?php echo GxHtml::encode($model->getRelationLabel('voucherTypes')); ?> </label> <?php echo $form->checkBoxList($model, 'voucherTypes', GxHtml::encodeEx(GxHtml::listDataEx(VoucherType::model()->findAllAttributes(null, true)), false, true)); ?> <?php echo GxHtml::submitButton(Yii::t('app', 'Save')); $this->endWidget(); ?> </div><!-- form -->
<div class="row"> <?php echo $form->label($model, 'status_id'); ?> <?php echo $form->dropDownList($model, 'status_id', GxHtml::listDataEx(VendorStatus::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'All'))); ?> </div> <div class="row"> <?php echo $form->label($model, 'type_id'); ?> <?php echo $form->dropDownList($model, 'type_id', GxHtml::listDataEx(VendorType::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'All'))); ?> </div> <div class="row"> <?php echo $form->label($model, 'deleted_at'); ?> <?php echo $form->textField($model, 'deleted_at'); ?> </div> <div class="row buttons"> <?php echo GxHtml::submitButton(Yii::t('app', 'Search'));