/** * Returns the data model based on the primary key given in the GET variable. * If the data model is not found, an HTTP exception will be raised. * @param integer the ID of the model to be loaded */ public function loadModel($id) { $model = AccId6111::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }
?> <?php echo $form->textFieldRow($model, 'pay_terms', array('maxlength' => 40)); ?> <?php echo $form->labelEx($model, 'src_date'); ?> <?php $this->widget('application.extensions.CJuiDateTimePicker.CJuiDateTimePicker', array('model' => $model, 'attribute' => 'src_date', 'mode' => 'date', 'language' => substr(Yii::app()->language, 0, 2), 'options' => array('showAnim' => 'fold', 'dateFormat' => Yii::app()->locale->getDateFormat('short')))); ?> <?php echo $form->error($model, 'src_date'); ?> <?php $id6111 = CHtml::listData(AccId6111::model()->findAll(), 'id', 'name'); $id6111[0] = Yii::t('app', 'None'); echo $form->dropDownListRow($model, 'id6111', $id6111); ?> <?php $this->endWidget(); ?> </div> <div class="col-md-4 col-sm-6"> <?php $this->beginWidget('TbPanel', array('header' => Yii::t('app', "Contact Person Details"))); ?> <?php