From 773a6de04e5e9b9e6fee2b426a7609de2e463ff6 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Thu, 17 Jan 2008 17:28:09 +0000 Subject: [PATCH] Change icon by SELECT --- html/commercial.php | 59 ++++++++++++++++++++++++++++++++---- html/control.php | 66 +++++++++++++++++++++++++++++++++++++++++ include/user_common.php | 3 ++ 3 files changed, 122 insertions(+), 6 deletions(-) create mode 100644 html/control.php diff --git a/html/commercial.php b/html/commercial.php index ef43d66a8..107c832b6 100644 --- a/html/commercial.php +++ b/html/commercial.php @@ -65,18 +65,62 @@ if ( ! isset ( $gDossier ) ) { echo "Vous devez choisir un dossier "; exit -2; } - +require_once('class_widget.php'); include_once("preference.php"); include_once("user_menu.php"); $str_dossier=dossier::get(); echo '
'; -echo '
'; +<<<<<<< commercial.php +echo '
'; +echo '
'; echo "

Commercial ".dossier::name()."

"; echo '
'; -echo '
- - +/* echo '
*/ +/* */ +/* */ +/* */ + +/* */ +/* */ +/* */ + +/*
'; */ + +echo '
'; + + +$amodule=array( + array('value'=>'budget','label'=>'Budget'), + array('value'=>'compta','label'=>'Comptabilite'), + array('value'=>'analytic','label'=>'Compt. Analytique'), + array('value'=>'home','label'=>'Accueil'), + array('value'=>'param','label'=>'Parametre'), + array('value'=>'logout','label'=>'Sortir') + ); + +echo '
'; +$w=new widget('select'); +$w->name='m'; +$w->value=$amodule; +echo ''; +echo ''; +echo dossier::hidden(); +echo ''; +echo '
'; +echo ''. +'Recheche'.$w->IOValue().''.widget::submit('','Acces Direct').'
'; +echo '
'; +echo '
'; +======= +echo '
'; +echo "

Commercial ".dossier::name()."

"; +>>>>>>> 1.35 +echo '
'; + +<<<<<<< commercial.php +echo '
'; +======= @@ -84,10 +128,12 @@ echo '
'; +>>>>>>> 1.35 $p_action=(isset ($_REQUEST['p_action']))?$_REQUEST['p_action']:""; // TODO Menu with all the customer - +//echo '
'; +echo '
'; echo ShowItem(array( array('?p_action=client&'.$str_dossier,'Client'), array('?p_action=facture&'.$str_dossier,'Vente/Facture'), @@ -109,6 +155,7 @@ echo ShowItem(array( // echo '
'; + $cn=DbConnect($gDossier); $User->can_request($cn,SEC_GESTION); echo JS_VIEW_JRN_MODIFY; diff --git a/html/control.php b/html/control.php new file mode 100644 index 000000000..dae586d74 --- /dev/null +++ b/html/control.php @@ -0,0 +1,66 @@ +'. */ +/* 'openRecherche(\''.$_REQUEST['PHPSESSID'].'\','.$dossier::id().');"'. */ +/* ''; */ + + case 'logout': + get_redirect('logout.php'); +} + diff --git a/include/user_common.php b/include/user_common.php index 58eda977b..b051c52b4 100644 --- a/include/user_common.php +++ b/include/user_common.php @@ -1187,4 +1187,7 @@ function CleanUrl() }// if return $url; } +function get_redirect($p_string) { + echo ' Connecting... '; +} ?>