*/ include("session.php"); require_once("class_functions.php"); require_once("class_db.php"); if(file_exists($_SESSION['config']['lang'].'.php')) { include($_SESSION['config']['lang'].'.php'); } else { $_SESSION['error'] = "Language file missing...
"; } $func = new functions(); $users = array(); $what = "A"; $where = ""; $is_service = false; if(isset($_GET['what']) && !empty($_GET['what'])) { $what = addslashes($func->wash($_GET['what'], "no", "", "no")); if($_GET['service'] == "true") { if($what <> 'all') { $where = " and (u.DEPARTMENT like '".strtolower($what)."%' or u.DEPARTMENT like '".strtoupper($what)."%') ORDER BY u.DEPARTMENT asc, u.LASTNAME asc "; } else { $where = ' ORDER BY u.DEPARTMENT asc, u.LASTNAME asc'; } } else { if($what <> 'all') { $where = " and (u.LASTNAME like '".strtolower($what)."%' or u.LASTNAME like '".strtoupper($what)."%') ORDER BY u.LASTNAME asc"; } else { $where = ' ORDER BY u.LASTNAME asc'; } } } else { $where = " and( u.LASTNAME like '".strtolower($what)."%' or u.LASTNAME like '".strtoupper($what)."%') ORDER BY u.LASTNAME asc"; } if(empty($where)) { $where = " order by u.LastName "; } $db = new dbquery(); $db->connect(); $db->query("select u.USER_ID, u.FIRSTNAME, u.LASTNAME, u.DEPARTMENT, u.MAIL, s.SERVICE from ".$_SESSION['tablename']['users']." u, ".$_SESSION['tablename']['services']." s where u.DEPARTMENT = s.ID and STATUS <> 'DEL' ".$where); //$db->query("select USER_ID, FIRSTNAME, LASTNAME, DEPARTMENT, MAIL from ".$_SESSION['tablename']['users']." where STATUS <> 'DEL' ".$where); $i=1; while($line = $db->fetch_object()) { $users[$i] = array("ID" => $line->USER_ID, "PRENOM" => $line->FIRSTNAME, "NOM" => $line->LASTNAME, "DEP" => $line->SERVICE, "MAIL" => $line->MAIL); $i++; } if(isset($_GET['user']) && !empty($_GET['user'])) { $_SESSION['courrier']['id_expediteur'] = $_GET['user']; $db->query("select LASTNAME, FIRSTNAME from ".$_SESSION['tablename']['users']." where USER_ID = '".$_GET['user']."'"); $res = $db->fetch_object(); $_SESSION['courrier']['nom_expediteur'] = $res->FIRSTNAME.' '.$res->LASTNAME; $_SESSION['courrier']['sender_nom'] = $res->LASTNAME; $_SESSION['courrier']['sender_prenom'] = $res->FIRSTNAME; ?> get_session_time_expire(); ?> <? echo _CHOOSE_SHIPPER2;?>
:  
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z -
:  
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z -


>
 


:


.
.