示例#1
0
?>
                            <?php 
echo $form->error($model, 'num_doc');
?>
                        </td>
                    </tr>
			<tr>
                            <td>
                                <?php 
echo $form->labelEx($model, 'cod_dep');
?>
                                <?php 
if ($cod_dep != null && $cod_dep != "") {
    echo $form->dropDownList($model, 'cod_dep', CHtml::listData(DepartamentoCompleto::model()->findAll(), 'codigo', 'departamento'), array('class' => 'Ccombo', 'prompt' => 'Seleccione...', 'options' => array($cod_dep => array('selected' => true))));
} else {
    echo $form->dropDownList($model, 'cod_dep', CHtml::listData(DepartamentoCompleto::model()->findAll(), 'codigo', 'departamento'), array('class' => 'Ccombo', 'prompt' => 'Seleccione...', 'options' => array($modelold->cod_dep => array('selected' => true))));
}
?>
                                <?php 
echo $form->error($model, 'cod_dep');
?>
                            </td>
                            <td>
                                <?php 
echo $form->labelEx($model, 'cod_mun');
?>
                                <?php 
if ($cod_mun != null && $cod_mun != "") {
    echo $form->dropDownList($model, 'cod_mun', CHtml::listData(MunicipioCompleto::model()->findAll(), 'codigo_municipio', 'municipio'), array('class' => 'Ccombo', 'prompt' => 'Seleccione...', 'options' => array($cod_mun => array('selected' => true))));
} else {
    echo $form->dropDownList($model, 'cod_mun', CHtml::listData(MunicipioCompleto::model()->findAll(), 'codigo_municipio', 'municipio'), array('class' => 'Ccombo', 'prompt' => 'Seleccione...', 'options' => array($modelold->cod_mun => array('selected' => true))));
示例#2
0
                    </td>
                </tr>
                <tr>
                    <td>
                        <?php 
echo $form->labelEx($model, 'EXPEDICION_DOC_DPTO');
?>
                        <?php 
if ($model->EXPEDICION_DOC_DPTO != "") {
    $valtemp = $model->EXPEDICION_DOC_DPTO;
} elseif ($modelold->EXPEDICION_DOC_DPTO != "") {
    $valtemp = $modelold->EXPEDICION_DOC_DPTO;
} else {
    $valtemp = "";
}
echo $form->dropDownList($model, 'EXPEDICION_DOC_DPTO', CHtml::listData(DepartamentoCompleto::model()->findAll(), 'codigo', 'departamento'), array('prompt' => 'Seleccione...', 'class' => 'Ccombo', 'options' => array($valtemp => array('selected' => true))));
?>
                        <?php 
echo $form->error($model, 'EXPEDICION_DOC_DPTO');
?>
                    </td>
                    <td>
                        <?php 
echo $form->labelEx($model, 'EXPEDICION_DOC_MUN');
?>
                        <?php 
$munisel = "";
if (is_numeric($model->EXPEDICION_DOC_MUN)) {
    $valores = array($model->EXPEDICION_DOC_MUN => $model->EXPEDICION_DOC_MUN);
    $munisel = $model->EXPEDICION_DOC_MUN;
} elseif (is_numeric($modelold->EXPEDICION_DOC_MUN)) {