Exemplo n.º 1
0
    echo '<a id="btn_registrar" class="btn btn-success" href="?vista=persona/registrar_familiar"><i class="icon-plus icon-white"></i> Registrar familiar</a>';
}
?>
        <table class="table table-striped table-hover table-bordered bootstrap-datatable datatable dataTable" id="filtro">
            <thead>
                <th>Cédula</th><th>Apellido Nombre</th><th>Dirección</th><th>Telefono</th><th>Estatus</th><?php 
if ($consultar || $eliminar) {
    echo '<th>Acción</th>';
}
?>
            </thead>
            <tbody>
            <?php 
require_once '../clases/clase_familiar.php';
$lobjFamiliar = new clsFamiliar();
$lafamiliares = $lobjFamiliar->consultar_familiares_inactivos();
for ($i = 0; $i < count($lafamiliares); $i++) {
    if ($lafamiliares[$i][11]) {
        $lafamiliares[$i][11] = 'Activo';
    } elseif (!$lafamiliares[$i][11]) {
        $lafamiliares[$i][11] = 'Inactivo';
    }
    echo '<tr>';
    echo '<td>' . $lafamiliares[$i][0] . '</td>';
    echo '<td>' . $lafamiliares[$i][3] . ' ' . $lafamiliares[$i][1] . '</td>';
    echo '<td>' . $lafamiliares[$i][7] . '</td>';
    echo '<td>' . $lafamiliares[$i][8] . '</td>';
    echo '<td>' . $lafamiliares[$i][11] . '</td>';
    if ($consultar || $eliminar) {
        echo '<td>';
        if ($consultar && $lafamiliares[$i][11] == 'Activo') {