echo "<option value='" . $row['cve_dependencia'] . "' " . ($tramite->getCveDependencia() != NULL ? $tramite->getCveDependencia()->getCveDependencia() == $row['cve_dependencia'] ? "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 el trámite" value="<?php echo $tramite->getNombre(); ?> " maxlength="50"> </div> <div class="checkbox"> <label><input type="checkbox" id="cbxActivo" name="cbxActivo" <?php echo $tramite->getCveTramite() != 0 ? $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 trámite</th> <th>Categoria</th> <th>Dependencia</th> <th>Nombre</th>