00001 <?
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00025 include_once ("ac_common.php");
00026 html_page_start($_SESSION['g_theme']);
00027 if ( ! isset ( $_SESSION['g_dossier'] ) ) {
00028 echo "You must choose a Dossier ";
00029 exit -2;
00030 }
00031 include_once ("postgres.php");
00032
00033 $cn=DbConnect($_SESSION['g_dossier']);
00034
00035
00036 include ('class_user.php');
00037 $User=new cl_user($cn);
00038 $User->Check();
00039
00040 include ("check_priv.php");
00041 include_once ("user_menu.php");
00042 echo '<div class="u_tmenu">';
00043
00044 echo ShowMenuCompta($_SESSION['g_dossier']);
00045 echo '</div>';
00046
00047
00048 echo "<DIV class=\"u_subtmenu\">";
00049
00050
00051 $p_array=array(array ("user_impress.php?type=jrn","Journaux"),
00052 array("user_impress.php?type=poste","Poste"),
00053 array("user_impress.php?type=fiche","Fiche"),
00054 array("user_impress.php?type=rapport","Rapport"),
00055 array('user_impress.php?type=bal','Balance des comptes'),
00056 array("user_impress.php?type=bilan","Bilan"),
00057 array("user_impress.php?type=list_client","Liste Clients Assujettis")
00058 );
00059 $default=( isset ($_GET['type']))?"user_impress.php?type=".$_GET['type']:"";
00060 $result=ShowItem($p_array,'H',"cell","mtitle",$default);
00061 echo $result;
00062
00063 echo "</DIV>";
00064
00065
00066 include_once("impress_inc.php");
00067
00068 if ( $User->admin == 0 ) {
00069 if (CheckAction($_SESSION['g_dossier'],$_SESSION['g_user'],IMP) == 0 ){
00070
00071 NoAccess();
00072 }
00073 }
00074
00075
00076 $default=( isset ($_REQUEST['type']))?$_REQUEST['type']:"";
00077 switch ($default) {
00078 case "jrn":
00079 include ("impress_jrn.php");
00080 break;
00081 case "poste":
00082 include ("impress_poste.php");
00083 break;
00084 case "rapport":
00085 include ("impress_rapport.php");
00086 break;
00087 case "bilan":
00088 include ("impress_bilan.php");
00089 break;
00090
00091 case "bal":
00092 include ("balance.php");
00093 break;
00094 case "fiche":
00095 include ("impress_fiche.php");
00096 break;
00097 case "list_client":
00098 include ("impress_listing_client.php");
00099 break;
00100
00101 }
00102
00103 html_page_stop();
00104 ?>