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"; ?> > Activo</label> </div> <button type="button" class="btn btn-primary" id="btnLimpiar" name="btnLimpiar" onclick="limpiar();">Limpiar</button> <button type="button" class="btn btn-success" id="btnGrabar" name="btnGrabar" onclick="grabar();">Enviar</button> </form> <br/> <br/> <table class="table table-bordered table-striped table-hover table-responsive"> <thead> <tr> <th>ID tipo trámite</th> <th>Nombre del trámite</th> <th>Clasificación trámite</th> <th>Imagen</th>