echo $form->labelEx($model, 'trans_via'); ?> <?php echo $form->textField($model, 'trans_via', array('maxlength' => 45)); ?> <?php echo $form->error($model, 'trans_via'); ?> </div> <!-- row --> <div class="span-8 last"> <?php echo $form->labelEx($model, 'pe_supplier_id'); ?> <?php echo $form->dropDownList($model, 'pe_supplier_id', GxHtml::listDataEx(PeSuppliers::model()->findAllAttributes(null, true))); ?> <?php echo $form->error($model, 'pe_supplier_id'); ?> </div> <!-- row --> <div class="span-8 last"> <?php echo $form->labelEx($model, 'pe_bank_accounts_id'); ?> <?php echo $form->dropDownList($model, 'pe_bank_accounts_id', GxHtml::listDataEx(PeBankAccounts::model()->findAllAttributes(null, true))); ?> <?php echo $form->error($model, 'pe_bank_accounts_id');
public function actionIndex() { if (isset($_POST['limit'])) { $limit = $_POST['limit']; } else { $limit = 20; } if (isset($_POST['start'])) { $start = $_POST['start']; } else { $start = 0; } //$model = new PeSuppliers('search'); //$model->unsetAttributes(); $criteria = new CDbCriteria(); //$criteria->limit = $limit; //$criteria->offset = $start; $model = PeSuppliers::model()->findAll($criteria); $total = PeSuppliers::model()->count($criteria); if (isset($_GET['PeSuppliers'])) { $model->attributes = $_GET['PeSuppliers']; } if (isset($_GET['output']) && $_GET['output'] == 'json') { $this->renderJson($model, $total); } else { $model = new PeSuppliers('search'); $model->unsetAttributes(); $this->render('admin', array('model' => $model)); } }
?> </div> <div class="span-8 last"> <?php echo $form->label($model, 'trans_via'); ?> <?php echo $form->textField($model, 'trans_via', array('maxlength' => 45)); ?> </div> <div class="span-8 last"> <?php echo $form->label($model, 'pe_supplier_id'); ?> <?php echo $form->dropDownList($model, 'pe_supplier_id', GxHtml::listDataEx(PeSuppliers::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'All'))); ?> </div> <div class="span-8 last"> <?php echo $form->label($model, 'pe_account_code'); ?> <?php echo $form->dropDownList($model, 'pe_account_code', GxHtml::listDataEx(PeChartMaster::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'All'))); ?> </div> <div class="span-8 last"> <?php echo $form->label($model, 'pe_bank_accounts_id'); ?> <?php