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

jrn_update.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.16 $ */
00024 include_once ("ac_common.php");
00025 html_page_start($_SESSION['g_theme']);
00026 if ( ! isset ( $_SESSION['g_dossier'] ) ) {
00027   echo "You must choose a Dossier ";
00028   exit -2;
00029 }
00030 include_once ("postgres.php");
00031 /* Admin. Dossier */
00032 $rep=DbConnect();
00033 include_once ("class_user.php");
00034 $User=new cl_user($rep);
00035 $User->Check();
00036 
00037 include_once ("check_priv.php");
00038 
00039 include_once ("user_menu.php");
00040 
00041 echo '<div class="u_tmenu">';
00042 echo ShowMenuCompta($_SESSION['g_dossier'],"user_advanced.php");
00043 echo '</div>';
00044 
00045 
00046 $cn=DbConnect($_SESSION['g_dossier']);
00047 if ( $User->CheckAction($cn,GJRN) == 0 ) {
00048   /* Cannot Access */
00049   NoAccess();
00050   exit -1;                      
00051  }
00052 
00053 echo '<div class="u_subtmenu">';
00054 echo ShowMenuAdvanced("jrn_update.php");
00055 echo '</div>';
00056 echo '<div class="lmenu">';
00057 MenuJrn($_SESSION['g_dossier']);
00058 echo '</div>';
00059 html_page_stop();
00060 ?>