From f6cba252194dc63581ea032d66301ce7742ff459 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sat, 15 Apr 2006 01:27:54 +0000 Subject: [PATCH] task 5410 Suivi client --- html/commercial.php | 76 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 html/commercial.php diff --git a/html/commercial.php b/html/commercial.php new file mode 100644 index 000000000..775c3b61e --- /dev/null +++ b/html/commercial.php @@ -0,0 +1,76 @@ +Check(); + +include("preference.php"); +include_once("user_menu.php"); + +echo "

Commercial ".$_SESSION['g_name']."

"; + +$p_action=(isset ($_REQUEST['p_action']))?$_REQUEST['p_action']:""; +// TODO Menu with all the customer +echo ShowItem(array( + array('?p_action=client','Client'), + array('?p_action=fournisseur','Fournisseur'), + array('login.php','Accueil',"Accueil"), + array('logout.php','logout',"Sortie") + ), + 'H',"mtitle","mtitle","?p_action=$p_action"); + + + // + + +$cn=DbConnect($_SESSION['g_dossier']); +//////////////////////////////////////////////////////////////////////////////// +// p_action == client +//////////////////////////////////////////////////////////////////////////////// +if ( $p_action == "client" ) +{ + require_once("client.inc.php"); +}// $p_action == fournisseur +//////////////////////////////////////////////////////////////////////////////// +// Fournisseur +if ( $p_action == 'fournisseur') +{ + require_once("fournisseur.inc.php"); +} \ No newline at end of file