"; } $func = new functions(); $connexion = new dbquery(); $sec = new security(); $connexion->connect(); $table = $_SESSION['ressources'][0]['tablename']; if ($_GET['id'] <> '') { $s_id = $_GET['id']; $connexion->query("SELECT CUSTOM_T5, CUSTOM_T6, CUSTOM_T7, CUSTOM_T15, CUSTOM_T16, CUSTOM_T17, CUSTOM_T18, CUSTOM_T19, CUSTOM_T20,CUSTOM_T8, CUSTOM_T1, STATUS FROM ".$table." where RES_ID = ".$s_id); $details = $connexion->fetch_object(); $courrier = $details -> CUSTOM_T5; $direct = $details -> CUSTOM_T6; $mail = $details -> CUSTOM_T7; $courrierAR = $details -> CUSTOM_T15; $fax = $details -> CUSTOM_T16; $norep = $details -> CUSTOM_T17;$noresp = $details -> CUSTOM_T17; //Compatibility Debug $autre = $details -> CUSTOM_T8; $notes = $details->CUSTOM_T1; $status = $details->STATUS; $arrondissement = $details->CUSTOM_T18; $canton = $details->CUSTOM_T19; $epci = $details->CUSTOM_T20; $connexion->query(" SELECT date(CREATION_DATE) as CREATION_DATE, RES_ID, TITLE, u.FIRSTNAME AS SIGN_FIRSTNAME,u.LASTNAME AS SIGN_LASTNAME, u2.FIRSTNAME AS AUTHOR_FIRSTNAME, u2.LASTNAME AS AUTHOR_LASTNAME FROM ".$table." LEFT JOIN ".$_SESSION["tablename"]["users"]." u ON ( u.USER_ID = ".$table.".SIGNING ) LEFT JOIN ".$_SESSION["tablename"]["users"]." u2 ON ( u2.USER_ID = ".$table.".TYPIST ) WHERE ".$table.".STATUS <> 'MEL' AND ".$table.".RELATION=".$s_id." order by CREATION_DATE desc"); $rep = array(); while($line = $connexion->fetch_object()) { array_push($rep, array( "ID" => $line->RES_ID, "DATE" => $connexion->inverse_date($line->CREATION_DATE), "TITLE" => $line->TITLE, "SIGN_FIRSTNAME" => $line->SIGN_FIRSTNAME, "SIGN_LASTNAME" => $line->SIGN_LASTNAME , "AUTHOR_FIRSTNAME" => $line->AUTHOR_FIRSTNAME, "AUTHOR_LASTNAME" => $line->AUTHOR_LASTNAME )); } } else { echo "ERROR"; exit(); } //AFFICHAGE DES INFOS COURRIER PRIS EN CHARGE OU COURRIER CLOTURE //if( $status=="COU" || $status == "END") if(1==1) { ?>

false && $courrier <>'false') { $types_rep_courrier = "checked=\"checked\""; } if($courrierAR <> false && $courrierAR <>'false') { $types_rep_courrierAR = "checked=\"checked\""; } if($direct <> false && $direct <>'false') { $types_rep_direct = "checked=\"checked\""; } if($mail <> false && $mail <> 'false') { $types_rep_mail = "checked=\"checked\""; } if($fax <> false && $fax <>'false') { $types_rep_fax = "checked=\"checked\""; } if($noresp <> false && $norep <>'false') { $types_rep_noresp = "checked=\"checked\""; } if($autre <> false && $autre <>'false') { $types_rep_autre = "checked=\"checked\""; } $types_rep = ereg_replace(', $', '', $types_rep); ?>

 

/>

/>

/>

/>

/>

/>

/>

 

 

 

 


:

0) { ?> "._SIGNING.""; ?> cut_string($func->show( $rep[$i]['DATE'],$what), 17); $title_value = $func->cut_string($func->show( $rep[$i]['TITLE'],$what), 150); ?> >
 

> class="title" alt="" title="" > class="title" alt="" title="" > class="title" alt="" title="" > class="title" alt="" title="" >
"._ACTUALLY_NO_ANSWER.""; } ?>

 

 

 


:

:   :
: