Example #1
0
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new VwDespachogeneral('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['VwDespachogeneral'])) {
         $model->attributes = $_GET['VwDespachogeneral'];
     }
     $this->render('admin', array('model' => $model));
 }
Example #2
0
<div class="division">
	<div class="wide form">


		<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'guia-form', 'enableClientValidation' => true, 'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => true), 'enableAjaxValidation' => false));
?>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'hidvale');
?>
		<?php 
$datos1 = CHtml::listData(VwDespachogeneral::model()->findAll(), 'hidvale', 'numvale');
echo $form->DropDownList($model, 'c_motivo', $datos1, array('empty' => '--Seleccione un despacho--'));
?>
	</div>

		<?php 
$this->endWidget();
?>
	</div>
</div>