Beispiel #1
0
                    <!-- /.col-lg-12 -->
                </div>
                <div class="row">
                    <div class="col-md-12 text-center"><a href="cat_tipos_tramite.php">Tipos de trámites</a> | <a href="cat_categorias_tramite.php">Categorias de trámites</a></div>
                </div>
                <div class="row" >
                    <div class="col-sm-4">&nbsp;</div>                    
                    <div class="col-sm-4">
                        <form role="form" name="frmTramite" id="frmTramite" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" method="POST">
                            <div class="form-group">
                                <input type="hidden" class="form-control" name="xAccion" id="xAccion" value="0" />
                                <input type="hidden" class="form-control" id="txtCveTramite" name="txtCveTramite" value="<?php 
echo $tramite->getCveTramite();
?>
">
                            </div>
                            <div class="form-group">
                                <label for="cmbClasificacionTramite">Clasificación trámite</label>
                                <select name="cmbClasificacionTramite" id="cmbClasificacionTramite" class="form-control">
                                    <option value="0">--------- SELECCIONE UNA OPCIÓN ---------</option>
                                    <?php 
$sql = "SELECT * FROM clasificaciones_tramites where activo = 1 ORDER BY nombre";
$rst = UtilDB::ejecutaConsulta($sql);
foreach ($rst as $row) {
    echo "<option value='" . $row['cve_clasificacion_tramite'] . "' " . ($tramite->getCveCategoriaTramite() != NULL ? $tramite->getCveCategoriaTramite()->getCveTipoTramite()->getCveClasificacionTramite()->getCveClasificacionTramite() == $row['cve_clasificacion_tramite'] ? "selected" : "" : "") . ">" . $row['nombre'] . "</option>";
}
$rst->closeCursor();
?>