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 "" ; break; } $audit_list = ""; while(list($cle, $valeur) = each($all)) { //user_id, user_name, type_modif, quand, concat(prenom, ' ', nom) as prenom_nom $audit_list .= " "; } $audit_list .= "
".$msg['audit_col_userid']."".$msg['audit_col_username']."".$msg['audit_col_type_action']."".$msg['audit_col_date_heure']."".$msg['audit_col_nom']."
$valeur->user_id $valeur->user_name ".$msg['audit_type'.$valeur->type_modif]." $valeur->aff_quand $valeur->prenom_nom
"; echo $audit_list ; mysql_close($dbh);