Esempio n. 1
0
// +-------------------------------------------------+
// $Id: audit.php,v 1.4.10.2 2014-09-22 14:16:41 ngantier Exp $
// définition du minimum nécéssaire
$base_path = ".";
$base_auth = "CATALOGAGE_AUTH";
$base_title = "\$msg[audit_titre]";
require_once "{$base_path}/includes/init.inc.php";
switch ($pmb_type_audit) {
    case '1':
        $audit = new audit($type_obj, $object_id);
        $audit->get_all();
        if (count($audit->all_audit) == 1) {
            $all[0] = $audit->get_creation();
        } else {
            $all[0] = $audit->get_creation();
            $all[1] = $audit->get_last();
        }
        break;
    case '2':
        $audit = new audit($type_obj, $object_id);
        $audit->get_all();
        $all = $audit->all_audit;
        break;
    default:
    case '0':
        echo "<script> self.close(); </script>";
        break;
}
$audit_list = "<script type='text/javascript' src='./javascript/sorttable.js'></script>\n<table class='sortable' ><tr><th>" . $msg['audit_col_userid'] . "</th><th>" . $msg['audit_col_username'] . "</th><th>" . $msg['audit_col_type_action'] . "</th><th>" . $msg['audit_col_date_heure'] . "</th><th>" . $msg['audit_col_nom'] . "</th><th>" . $msg['audit_comment'] . "</th></tr>";
while (list($cle, $valeur) = each($all)) {
    //user_id, user_name, type_modif, quand, concat(prenom, ' ', nom) as prenom_nom