echo $form->hiddenField($model, 'journaldetailid'); echo $form->hiddenField($model, 'genjournalid'); ?> <div class="row"> <?php echo $form->labelEx($model, 'accountid'); echo $form->hiddenField($model, 'accountid'); ?> <input type="text" name="account_name" id="account_name" title="Account name" readonly value="<?php echo Account::model()->findByPk($model->accountid) !== null ? Account::model()->findByPk($model->accountid)->accountname : ''; ?> "> <?php $this->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'account_dialog', 'options' => array('title' => Yii::t('app', 'Account'), 'width' => 'auto', 'autoOpen' => false, 'modal' => true))); $account = new Account('searchwstatus'); $account->unsetAttributes(); // clear any default values if (isset($_GET['Account'])) { $account->attributes = $_GET['Account']; } $this->widget('zii.widgets.grid.CGridView', array('id' => 'account-grid', 'dataProvider' => $account->Searchwstatus(), 'filter' => $account, 'template' => '{summary}{pager}<br>{items}{pager}{summary}', 'columns' => array(array('header' => '', 'type' => 'raw', 'value' => 'CHtml::Button("V", array("name" => "send_absschedule", "id" => "send_absschedule", "onClick" => "$(\\"#account_dialog\\").dialog(\\"close\\"); $(\\"#account_name\\").val(\\"$data->accountname\\"); $(\\"#Journaldetail_accountid\\").val(\\"$data->accountid\\"); "))'), array('name' => 'accountid', 'visible' => false, 'value' => '$data->accountid', 'htmlOptions' => array('width' => '1%')), 'accountcode', 'accountname'))); $this->endWidget('zii.widgets.jui.CJuiDialog'); echo CHtml::Button('...', array('onclick' => '$("#account_dialog").dialog("open"); return false;')); ?> <?php echo $form->error($model, 'accountid');
/** * Manages all models. */ public function actionAdmin() { $model = new Account('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Account'])) { $model->attributes = $_GET['Account']; } $this->render('admin', array('model' => $model)); }
/** * Manages all models. */ public function actionAdmin() { $model = new Account('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Account'])) { $model->attributes = $_GET['Account']; } }
/** * Manages all models. */ public function actionAdmin() { // is current user has the required privilege ? if (!Yii::app()->user->checkAccess('account_admin')) { throw new CHttpException(403, 'You are not authorized to perform this action.'); } $model = new Account('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Account'])) { $model->attributes = $_GET['Account']; } $this->render('admin', array('model' => $model)); }
/** * Lists all models. */ public function actionIndex() { parent::actionIndex(); $this->lookupdata(); $model = new Account('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Account'])) { $model->attributes = $_GET['Account']; } if (isset($_GET['pageSize'])) { Yii::app()->user->setState('pageSize', (int) $_GET['pageSize']); unset($_GET['pageSize']); // would interfere with pager and repetitive page size change } $this->render('index', array('model' => $model, 'parentaccount' => $this->parentaccount, 'currency' => $this->currency, 'accounttype' => $this->accounttype)); }
/** * Lists all models. */ public function actionIndex() { $this->title = 'Daftar Akun'; $model = new Account('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Account'])) { $model->attributes = $_GET['Account']; } $this->render('index', array('model' => $model)); }