diff --git a/html/commercial.php b/html/commercial.php index e979c5783..3298495d3 100644 --- a/html/commercial.php +++ b/html/commercial.php @@ -71,6 +71,7 @@ include_once("preference.php"); include_once("user_menu.php"); echo '
'; echo "

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

"; +echo '
'; $p_action=(isset ($_REQUEST['p_action']))?$_REQUEST['p_action']:""; // TODO Menu with all the customer diff --git a/html/compta.php b/html/compta.php index 153fb4236..858f12bda 100644 --- a/html/compta.php +++ b/html/compta.php @@ -28,6 +28,7 @@ if ( ! isset ( $_SESSION['g_dossier'] ) ) { echo "You must choose a Dossier "; exit -2; } + include_once ("postgres.php"); /* Admin. Dossier */ $cn=DbConnect($_SESSION['g_dossier']); diff --git a/html/recherche.php b/html/recherche.php index 424666dcd..e2f5bfc5d 100644 --- a/html/recherche.php +++ b/html/recherche.php @@ -41,11 +41,9 @@ $cn=DbConnect($_SESSION['g_dossier']); include ('class_user.php'); $User=new cl_user($cn); $User->Check(); -echo '
'; -echo ShowMenuCompta($_SESSION['g_dossier']); -echo '
'; + // PhpSessid - $sessid=$_REQUEST['PHPSESSID']; +$sessid=$_REQUEST['PHPSESSID']; // display a search box $search_box=u_ShowMenuRecherche($cn,0,$sessid,$_GET); diff --git a/html/scripts.js b/html/scripts.js index ef298f994..517b01d85 100755 --- a/html/scripts.js +++ b/html/scripts.js @@ -64,3 +64,9 @@ function HandleSubmit(e) { return true; } } +/* + * Open the search screen + */ +function openRecherche(p_sessid,p_dossier) { + var w=window.open("recherche.php?p_dossier="+p_dossier+"&PHPSESSID="+p_sessid,'','scrollbar=yes,toolbar=no'); +} \ No newline at end of file