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