Main Page | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

user_impress.php

Go to the documentation of this file.
00001 <?
00002 /*
00003  *   This file is part of PhpCompta.
00004  *
00005  *   PhpCompta is free software; you can redistribute it and/or modify
00006  *   it under the terms of the GNU General Public License as published by
00007  *   the Free Software Foundation; either version 2 of the License, or
00008  *   (at your option) any later version.
00009  *
00010  *   PhpCompta is distributed in the hope that it will be useful,
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *   GNU General Public License for more details.
00014  *
00015  *   You should have received a copy of the GNU General Public License
00016  *   along with PhpCompta; if not, write to the Free Software
00017  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 */
00019 // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
00020 /* $Revision: 1.14 $ */
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 /* Admin. Dossier */
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 // show sub menu
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     /* Cannot Access */
00071     NoAccess();
00072   }
00073 }
00074 
00075 // something is choosen
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 ?>