Add Menu Search in Gestion

This commit is contained in:
sparkyx 2006-11-25 16:57:06 +00:00
parent 870c1e77a4
commit 9af9e4158a
4 changed files with 10 additions and 4 deletions

View file

@ -71,6 +71,7 @@ include_once("preference.php");
include_once("user_menu.php");
echo '<div class="u_tmenu">';
echo "<H2 class=\"info\">Commercial ".$_SESSION['g_name']." </H2>";
echo '<div align="right"><input type="IMAGE" src="image/search.png" onclick="openRecherche(\''.$_REQUEST['PHPSESSID'].'\','.$_SESSION['g_dossier'].');"></div> ';
$p_action=(isset ($_REQUEST['p_action']))?$_REQUEST['p_action']:"";
// TODO Menu with all the customer

View file

@ -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']);

View file

@ -41,11 +41,9 @@ $cn=DbConnect($_SESSION['g_dossier']);
include ('class_user.php');
$User=new cl_user($cn);
$User->Check();
echo '<div class="u_tmenu">';
echo ShowMenuCompta($_SESSION['g_dossier']);
echo '</div>';
// PhpSessid
$sessid=$_REQUEST['PHPSESSID'];
$sessid=$_REQUEST['PHPSESSID'];
// display a search box
$search_box=u_ShowMenuRecherche($cn,0,$sessid,$_GET);

View file

@ -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');
}