file:///home/developper/svn/phpcompta/branches/rel510 ........ r3286 | danydb | 2010-06-12 19:24:49 +0200 (Sat, 12 Jun 2010) | 2 lines Check if database is valid ........ r3287 | danydb | 2010-06-12 20:41:47 +0200 (Sat, 12 Jun 2010) | 1 line Fix bug : when using twice the same accounting in operation, one of them is not visible in "impression->poste" ........ r3288 | danydb | 2010-06-12 21:04:36 +0200 (Sat, 12 Jun 2010) | 2 lines Cosmetic ........ r3289 | danydb | 2010-06-12 21:14:07 +0200 (Sat, 12 Jun 2010) | 1 line Cosmetic : fix CSS ........ r3290 | danydb | 2010-06-12 21:17:05 +0200 (Sat, 12 Jun 2010) | 2 lines Fix CSS ........ r3291 | danydb | 2010-06-12 21:48:52 +0200 (Sat, 12 Jun 2010) | 3 lines Cosmetic : fix CSS An user who is NOT admin and can access only ONE folder is automatically redirected to the plugins or the dashboard ........ r3292 | danydb | 2010-06-14 20:38:39 +0200 (Mon, 14 Jun 2010) | 2 lines Cosmetic highlight row for lettering ........ r3293 | danydb | 2010-06-14 20:38:52 +0200 (Mon, 14 Jun 2010) | 2 lines Highlight row of lettering ........ r3294 | danydb | 2010-06-14 20:41:53 +0200 (Mon, 14 Jun 2010) | 1 line Lettering : if an operation is removed : the lettering is also removed on both side ........ r3295 | danydb | 2010-06-14 20:43:50 +0200 (Mon, 14 Jun 2010) | 1 line rename upgrade80 ........ r3296 | danydb | 2010-06-14 20:49:40 +0200 (Mon, 14 Jun 2010) | 2 lines cosmetic : parameter -> societe align to right ........ r3297 | danydb | 2010-06-14 20:50:38 +0200 (Mon, 14 Jun 2010) | 2 lines width set auto for the table ........ r3298 | danydb | 2010-06-14 21:04:09 +0200 (Mon, 14 Jun 2010) | 1 line Lettering : if an operation is removed : the lettering is also removed on both side ........ r3299 | danydb | 2010-06-14 21:25:04 +0200 (Mon, 14 Jun 2010) | 2 lines Fix problem with offset unlimited ........ r3300 | danydb | 2010-06-14 21:57:45 +0200 (Mon, 14 Jun 2010) | 1 line Update the doc == Lettering : if an operation is removed : the lettering is also removed on both side ........ r3301 | danydb | 2010-06-15 23:57:55 +0200 (Tue, 15 Jun 2010) | 1 line Add bank CBC on line ........ r3302 | danydb | 2010-06-16 00:30:47 +0200 (Wed, 16 Jun 2010) | 2 lines Bug fix : when using a predefined operation, javascript for adding rows doesn't work properly ........
97 lines
2.5 KiB
PHP
97 lines
2.5 KiB
PHP
<?php
|
|
/*
|
|
* This file is part of PhpCompta.
|
|
*
|
|
* PhpCompta is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* PhpCompta is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with PhpCompta; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
|
|
|
/* $Revision$ */
|
|
|
|
/*! \file
|
|
* \brief Main page for accountancy
|
|
*/
|
|
require_once('class_dossier.php');
|
|
require_once('user_common.php');
|
|
|
|
$gDossier=dossier::id();
|
|
include_once ("ac_common.php");
|
|
$action=(isset($_REQUEST['p_action']))?$_REQUEST['p_action']:'';
|
|
$use_html=1;
|
|
if ( ! isset ($_SESSION['g_theme'])) {
|
|
echo '<h2 class="error">'._(' Vous êtes déconnecté').'</h2>';
|
|
redirect('index.php',1);
|
|
exit();
|
|
}
|
|
//----------------------------------------------------------------------
|
|
|
|
require_once('class_database.php');
|
|
/* Admin. Dossier */
|
|
$cn=new Database($gDossier);
|
|
|
|
|
|
require_once ('class_user.php');
|
|
$User=new User($cn);
|
|
$User->Check();
|
|
if ($User->check_dossier($gDossier)=='P') {
|
|
redirect("extension.php?".dossier::get(),0);
|
|
exit();
|
|
}
|
|
|
|
html_page_start($_SESSION['g_theme']);
|
|
|
|
include_once ("user_menu.php");
|
|
echo '<div class="u_tmenu">';
|
|
|
|
echo ShowMenuCompta("user_advanced.php?".dossier::get());
|
|
echo js_include('anc_script.js');
|
|
echo '</div>';
|
|
// Get action
|
|
|
|
// call impress sub-menu
|
|
if ( $action == 'impress' ) {
|
|
require_once('impress.inc.php');
|
|
}
|
|
|
|
if ( $action == 'fiche') {
|
|
|
|
require_once('fiche.inc.php');
|
|
}
|
|
|
|
if ( $action == 'stock') {
|
|
require_once('stock.inc.php');
|
|
}
|
|
if ( $action=='quick_writing') {
|
|
require_once ('quick_writing.inc.php');
|
|
}
|
|
if ( $action == 'gl' ) {
|
|
require_once ('user_action_gl.php');
|
|
}
|
|
if ( $action == 'ven' ||
|
|
$action == 'client') {
|
|
require_once ('compta_ven.inc.php');
|
|
}
|
|
if ( $action == 'ach' ||
|
|
$action == 'fournisseur') {
|
|
require_once ('compta_ach.inc.php');
|
|
}
|
|
if ( $action == 'fin') {
|
|
require_once ('compta_fin.inc.php');
|
|
}
|
|
if ($action == 'let') {
|
|
require_once('letter.inc.php');
|
|
}
|
|
html_page_stop();
|
|
?>
|