echo '<a id="btn_registrar" class="btn btn-success" href="?vista=archivo/registrar_instrumento"><i class="icon-plus icon-white"></i> Registrar instrumento</a>'; } ?> <table class="table table-striped table-hover table-bordered bootstrap-datatable datatable dataTable" id="filtro"> <thead> <th>Código</th><th>Nombre</th><th>Asignatura</th><th>Estatus</th><?php if ($consultar || $eliminar) { echo '<th>Acción</th>'; } ?> </thead> <tbody> <?php require_once '../clases/clase_instrumento.php'; $lobjInstrumento = new clsInstrumento(); $laInstrumentos = $lobjInstrumento->consultar_instrumentos_inactivas(); for ($i = 0; $i < count($laInstrumentos); $i++) { $dependencia = false; $lobjInstrumento->set_Instrumento($laInstrumentos[$i][0]); $dependencia = $lobjInstrumento->consultar_dependencia(); if ($laInstrumentos[$i][3]) { $laInstrumentos[$i][3] = 'Activo'; } elseif (!$laInstrumentos[$i][3]) { $laInstrumentos[$i][3] = 'Inactivo'; } echo '<tr>'; echo '<td>' . $laInstrumentos[$i][0] . '</td>'; echo '<td>' . $laInstrumentos[$i][1] . '</td>'; echo '<td>' . $laInstrumentos[$i][2] . '</td>'; echo '<td>' . $laInstrumentos[$i][3] . '</td>'; if ($consultar || $eliminar) {