00001 <?
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 include_once("ac_common.php");
00022 include("user_menu.php");
00023 include_once ("constant.php");
00024 include_once("jrn.php");
00025 include_once("user_common.php");
00026 include_once("class_widget.php");
00031 html_page_start($_SESSION['g_theme']);
00032 if ( ! isset ( $_SESSION['g_dossier'] ) ) {
00033 echo "You must choose a Dossier ";
00034 exit -2;
00035 }
00036 include_once ("postgres.php");
00037 include_once ("check_priv.php");
00038
00039
00040 $cn=DbConnect($_SESSION['g_dossier']);
00041 include ('class_user.php');
00042 $User=new cl_user($cn);
00043 $User->Check();
00044 echo '<div class="u_tmenu">';
00045 echo ShowMenuCompta($_SESSION['g_dossier']);
00046 echo '</div>';
00047
00048 $sessid=$_REQUEST['PHPSESSID'];
00049
00050
00051 $search_box=u_ShowMenuRecherche($cn,0,$sessid,$_GET);
00052 echo '<DIV class="lextmenu">';
00053 echo $search_box;
00054 echo "</div>";
00055
00056
00057
00058 if ( isset ($_GET['viewsearch'])) {
00059
00060 $step=$_SESSION['g_pagesize'];
00061 $page=(isset($_GET['offset']))?$_GET['page']:1;
00062 $offset=(isset($_GET['offset']))?$_GET['offset']:0;
00063 if (count ($_GET) == 0)
00064 $array=null;
00065 else
00066 $array=$_GET;
00067
00068 list($max_line,$a)=ListJrn($cn,0,"",$array,$offset,2);
00069 $bar=jrn_navigation_bar($offset,$max_line,$step,$page);
00070
00071 echo '<div class="u_redcontent">';
00072 echo $bar;
00073 echo $a;
00074 echo $bar;
00075 echo '</div>';
00076 }
00077 echo '</DIV>';
00078
00079 ?>