echo '<a id="btn_registrar" class="btn btn-success" href="?vista=archivo/registrar_item"><i class="icon-plus icon-white"></i>Registrar Criterio</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>Descripción</th><th>Estatus</th><?php if ($consultar || $eliminar) { echo '<th>Acción</th>'; } ?> </thead> <tbody> <?php require_once '../clases/clase_item.php'; $lobjItem = new clsItem(); $laItems = $lobjItem->consultar_items_inactivas(); for ($i = 0; $i < count($laItems); $i++) { $dependencia = false; $lobjItem->set_Item($laItems[$i][0]); $dependencia = $lobjItem->consultar_dependencia(); if ($laItems[$i][4]) { $laItems[$i][4] = 'Activo'; } elseif (!$laItems[$i][4]) { $laItems[$i][4] = 'Inactivo'; } echo '<tr>'; echo '<td>' . $laItems[$i][0] . '</td>'; echo '<td>' . $laItems[$i][1] . '</td>'; echo '<td>' . $laItems[$i][3] . '</td>'; echo '<td>' . $laItems[$i][4] . '</td>'; if ($consultar || $eliminar) {