<div class="form-group">
                                <input type="hidden" class="form-control" name="xAccion" id="xAccion" value="0" />
                                <input type="hidden" class="form-control" id="txtCveTipoTramite" name="txtCveTipoTramite" value="<?php 
echo $tipo_tramite->getCveTipoTramite();
?>
">
                            </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'] . "' " . ($tipo_tramite->getCveClasificacionTramite() != NULL ? $tipo_tramite->getCveClasificacionTramite()->getCveClasificacionTramite() == $row['cve_clasificacion_tramite'] ? "selected" : "" : "") . ">" . $row['nombre'] . "</option>";
}
$rst->closeCursor();
?>
                                </select>
                            </div>
                            <div class="form-group">
                                <label for="txtNombre">Nombre:</label>
                                <input type="text" class="form-control" id="txtNombre" name="txtNombre" placeholder="Escriba un nombre para tipo de trámite" value="<?php 
echo $tipo_tramite->getNombre();
?>
" maxlength="50">
                            </div> 
                            <div class="checkbox">
                                <label><input type="checkbox" id="cbxActivo" name="cbxActivo" <?php 
echo $tipo_tramite->getCveTipoTramite() != 0 ? $tipo_tramite->getActivo() ? "checked" : "" : "checked";
require_once '../clases/UtilDB.php';
require_once '../clases/ClasificacionTramite.php';
require_once '../clases/TipoTramite.php';
$sqL = "";
$rst = NULL;
$tipo_tramite = new TipoTramite((int) $_GET['xCveTipoTramite']);
?>
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title">Elija una categoria de trámite</h4>
</div>
<div class="modal-body">
    <div class="te">
        <p>Clasificación del trámite: <strong><?php 
echo $tipo_tramite->getCveClasificacionTramite()->getNombre();
?>
</strong></p>
        <p>Tipo trámite: <strong><?php 
echo $tipo_tramite->getNombre();
?>
</strong></p><br/><br/>
        <form role="form" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" name="frmCategoriaTramite" id="frmCategoriaTramite" method="post">
            <fieldset>
                <div class="form-group">
                    <label for="cmbCategoriaTramite">Categoria trámite</label>
                    <select name="cmbCategoriaTramite" id="cmbCategoriaTramite" class="form-control" onchange="getTramites(this.value);">
                        <option value="0">--------- SELECCIONE UNA OPCIÓN ---------</option>