Exemplo n.º 1
0
function doBrowseTermsFromUser($user_id, $ord = "")
{
    global $MONTHS;
    $sql = SQLlistTermsfromUser($user_id, $ord);
    $rows .= '<table cellpadding="0" cellspacing="0" summary="' . ucfirst(LABEL_auditoria) . '">';
    $rows .= '<tbody>';
    while ($array = mysqli_fetch_array($sql[datos])) {
        $user_id = $array[id_usuario];
        $apellido = $array[apellido];
        $nombres = $array[nombres];
        $fecha_termino = do_fecha($array[cuando]);
        $rows .= '<tr>';
        $rows .= '<td class="izq"><a href="index.php?tema=' . $array[id_tema] . '" title="' . LABEL_verDetalle . LABEL_Termino . '">' . $array[tema] . '</a></td>';
        $rows .= '<td>' . $fecha_termino[dia] . ' / ' . $fecha_termino[descMes] . ' / ' . $fecha_termino[ano] . '</td>';
        $rows .= '</tr>';
    }
    $rows .= '</tbody>';
    $rows .= '<thead>';
    $rows .= '<tr>';
    $rows .= '<th class="izq" colspan="3"><a href="sobre.php">' . ucfirst(LABEL_auditoria) . '</a> &middot; <a href="admin.php?user_id=' . $user_id . '"  title="' . LABEL_verDetalle . $apellido . ', ' . $nombres . '">' . $apellido . ', ' . $nombres . '</a>: ' . $sql[cant] . ' ' . LABEL_Terminos . '.</th>';
    $rows .= '</tr>';
    $rows .= '<tr>';
    $rows .= '<th><a href="sobre.php?user_id=' . $user_id . '&ord=T" title="' . LABEL_ordenar . ' ' . LABEL_Termino . '">' . ucfirst(LABEL_Termino) . '</a></th>';
    $rows .= '<th><a href="sobre.php?user_id=' . $user_id . '&ord=F" title="' . LABEL_ordenar . ' ' . LABEL_Fecha . '">' . ucfirst(LABEL_Fecha) . '</a></th>';
    $rows .= '</tr>';
    $rows .= '</thead>';
    $rows .= '<tfoot>';
    $rows .= '<tr>';
    $rows .= '<td class="izq">' . ucfirst(LABEL_TotalTerminos) . '</td>';
    $rows .= '<td>' . $sql[cant] . '</td>';
    $rows .= '</tr>';
    $rows .= '</tfoot>';
    $rows .= '</table>        ';
    return $rows;
}
function doBrowseTermsFromUser($user_id, $ord = "")
{
    global $MONTHS;
    $sql = SQLlistTermsfromUser($user_id, $ord);
    $rows .= '<div class="table-responsive"> ';
    $rows .= '<table class="table table-striped table-bordered table-condensed table-hover" summary="' . ucfirst(LABEL_auditoria) . '">';
    $rows .= '<tbody>';
    while ($array = $sql->FetchRow()) {
        $user_id = $array["id_usuario"];
        $apellido = $array["apellido"];
        $nombres = $array["nombres"];
        $fecha_termino = do_fecha($array["cuando"]);
        $rows .= '<tr>';
        $rows .= '<td class="izq"><a href="index.php?tema=' . $array["id_tema"] . '" title="' . LABEL_verDetalle . LABEL_Termino . '">' . $array[tema] . '</a></td>';
        $rows .= '<td>' . $fecha_termino["dia"] . ' / ' . $fecha_termino["descMes"] . ' / ' . $fecha_termino["ano"] . '</td>';
        $rows .= '</tr>';
    }
    $rows .= '</tbody>';
    $rows .= '<thead>';
    $rows .= '<tr>';
    $rows .= '<th class="izq" colspan="3"><a href="sobre.php">' . ucfirst(LABEL_auditoria) . '</a> &middot; <a href="admin.php?user_id=' . $user_id . '"  title="' . LABEL_verDetalle . $apellido . ', ' . $nombres . '">' . $apellido . ', ' . $nombres . '</a>: ' . SQLcount($sql) . ' ' . LABEL_Terminos . '.</th>';
    $rows .= '</tr>';
    $rows .= '<tr>';
    $rows .= '<th><a href="sobre.php?user_id=' . $user_id . '&ord=T" title="' . LABEL_ordenar . ' ' . LABEL_Termino . '">' . ucfirst(LABEL_Termino) . '</a></th>';
    $rows .= '<th><a href="sobre.php?user_id=' . $user_id . '&ord=F" title="' . LABEL_ordenar . ' ' . LABEL_Fecha . '">' . ucfirst(LABEL_Fecha) . '</a></th>';
    $rows .= '</tr>';
    $rows .= '</thead>';
    $rows .= '<tfoot>';
    $rows .= '<tr>';
    $rows .= '<td class="izq">' . ucfirst(LABEL_TotalTerminos) . '</td>';
    $rows .= '<td>' . SQLcount($sql) . '</td>';
    $rows .= '</tr>';
    $rows .= '</tfoot>';
    $rows .= '</table> </div>       ';
    return $rows;
}