echo '<a class="btn btn-success" id="btn_registrar" href="?vista=seguridad/registrar_servicio"><i class="icon-plus icon-white"></i> Registrar servicio</a>'; } ?> <table class="table table-striped table-hover table-bordered bootstrap-datatable datatable dataTable" id="filtro"> <thead> <th>Codigo</th><th>Nombre</th><th>enlace</th><th>módulo</th><th>Estatus</th><?php if ($consultar || $eliminar) { echo '<th>Acción</th>'; } ?> </thead> <tbody> <?php require_once '../clases/clase_servicio.php'; $lobjServicio = new clsServicio(); $laServicios = $lobjServicio->consultar_servicios(); for ($i = 0; $i < count($laServicios); $i++) { $dependencia = false; $lobjServicio->set_Servicio($laServicios[$i][0]); $dependencia = $lobjServicio->consultar_dependencia(); if ($laServicios[$i][5]) { $laServicios[$i][5] = 'Activo'; } elseif (!$laServicios[$i][5]) { $laServicios[$i][5] = 'Inactivo'; } echo '<tr>'; echo '<td>' . $laServicios[$i][0] . '</td>'; echo '<td>' . $laServicios[$i][1] . '</td>'; echo '<td>' . $laServicios[$i][2] . '</td>'; echo '<td>' . $laServicios[$i][3] . '</td>'; echo '<td>' . $laServicios[$i][5] . '</td>';