?> <?php echo $form->textFieldRow($model, 'placa_cod', array('style' => 'width:60px')); ?> <?php echo $form->textFieldRow($model, 'interno_cod', array('style' => 'width:60px')); ?> <b><?php echo $form->labelEx($model, 'id_proyecto'); ?> </b> <?php echo $form->dropDownList($model, 'id_proyecto', CHtml::listData(Sproyecto::model()->findAll(), 'id_proyecto', 'descripcion_proyecto'), array('empty' => '-- Seleccionar --')); ?> <b><?php echo $form->labelEx($model, 'id_persona'); ?> </b> <?php echo $form->dropDownList($model, 'id_persona', CHtml::listData(Spersona::model()->findAll(), 'id_persona', 'personaNombreCompleto'), array('empty' => '-- Seleccionar --')); ?> <?php echo CHtml::hiddenField('id_persona'); ?> <b><?php echo $form->labelEx($model, 'activo_cod_obj_venta');
/** * 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 = Sproyecto::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }