* @author Claire Figueras */ include("session.php"); require("class_functions.php"); require_once("class_db.php"); $db = new dbquery(); $db->connect(); if(file_exists($_SESSION['config']['lang'].'.php')) { include($_SESSION['config']['lang'].'.php'); } else { $_SESSION['error'] = "Language file missing...
"; } $func = new functions(); if(isset($_GET['id'])) { $s_id = $_GET['id']; } else { $s_id = ""; } $s_id = $func->wash($_GET['id'], "num", _THE_DOC); if(!empty($_SESSION['error'])) { header("location: index.php"); exit; } $table = "res_x"; $db = new dbquery(); $db->connect(); $db->query("SELECT CUSTOM_T16, CUSTOM_T17, CUSTOM_T2, CUSTOM_T3, CUSTOM_T4, DESTINATION, DEST_USER, RES_ID, IDENTIFIER, date (CUSTOM_D1) as D1, date (CUSTOM_D2) as D2, date (CREATION_DATE) as D3,AUTHOR, TYPE_ID, DESCRIPTION, date(DOC_DATE) as DC, CUSTOM_T5, CUSTOM_T6, CUSTOM_T7, CUSTOM_T8, CUSTOM_T15, CUSTOM_T1, CUSTOM_T9, CUSTOM_T10, CUSTOM_T11, CUSTOM_T12, CUSTOM_T13, CUSTOM_T14, date(CREATION_DATE) as CD, PRIORITY, SOCIETE FROM ".$table." WHERE RES_ID=".$s_id); $line = $db->fetch_object(); $_SESSION['mini_detail']['res_id'] = $line->RES_ID; $_SESSION['mini_detail']['identifier'] = $line->IDENTIFIER; $_SESSION['mini_detail']['author'] = stripslashes($line->AUTHOR); $_SESSION['mini_detail']['type_id'] = $line->TYPE_ID; $_SESSION['mini_detail']['description'] = stripslashes($line->DESCRIPTION); $_SESSION['mini_detail']['identifier'] = $line->IDENTIFIER; $_SESSION['mini_detail']['date_arrivee'] = $db->inverse_date($line->CD); $_SESSION['mini_detail']["doc_date"] = $db->inverse_date($line->DC); $_SESSION['mini_detail']['rep_courrier_simple'] = $line->CUSTOM_T5; $_SESSION['mini_detail']['rep_AR'] = $line->CUSTOM_T15; $_SESSION['mini_detail']['rep_direct'] = $line->CUSTOM_T6; $_SESSION['mini_detail']['rep_mail'] = $line->CUSTOM_T7; $_SESSION['mini_detail']['rep_autre'] = $line->CUSTOM_T8; $_SESSION['mini_detail']['rep_fax'] = $line->CUSTOM_T16; $_SESSION['mini_detail']['no_rep'] = $line->CUSTOM_T17; $_SESSION['mini_detail']['notes'] = stripslashes($line->CUSTOM_T1); $_SESSION['mini_detail']['qualite'] = stripslashes($line->CUSTOM_T9); $_SESSION['mini_detail']['num_rue'] = stripslashes($line->CUSTOM_T10); $_SESSION['mini_detail']['rue'] = stripslashes($line->CUSTOM_T11); $_SESSION['mini_detail']['ville'] = stripslashes($line->CUSTOM_T12); $_SESSION['mini_detail']['code'] = $line->CUSTOM_T13; $_SESSION['mini_detail']['quartier'] = stripslashes($line->CUSTOM_T14); $_SESSION['mini_detail']['nature'] = stripslashes($line->CUSTOM_T2); $_SESSION['mini_detail']['civ'] = stripslashes($line->CUSTOM_T3); $_SESSION['mini_detail']['prenom'] = stripslashes($line->CUSTOM_T4); $_SESSION['mini_detail']['service'] = $line->DESTINATION; $_SESSION['mini_detail']['dest'] = $line->DEST_USER; $_SESSION['mini_detail']['prio'] = $line->PRIORITY; $_SESSION['mini_detail']['societe'] = $line->SOCIETE; $func = new functions(); $time = $func->get_session_time_expire(); ?> <?php echo Maarch;?>

:
:
:
:
:
:
: