[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4257 - phpcompta/trunk/html
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4257 - phpcompta/trunk/html |
Date: |
Fri, 28 Oct 2011 23:57:46 +0200 (CEST) |
Author: danydb
Date: 2011-10-28 23:57:45 +0200 (Fri, 28 Oct 2011)
New Revision: 4257
Removed:
phpcompta/trunk/html/commercial.php
phpcompta/trunk/html/comptanalytic.php
phpcompta/trunk/html/parametre.php
Log:
remove obsolete
Deleted: phpcompta/trunk/html/commercial.php
===================================================================
--- phpcompta/trunk/html/commercial.php 2011-10-28 21:56:12 UTC (rev 4256)
+++ phpcompta/trunk/html/commercial.php 2011-10-28 21:57:45 UTC (rev 4257)
@@ -1,239 +0,0 @@
-<?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
-*/
-
-/* $Revision$ */
-
-// Copyright Author Dany De Bontridder address@hidden
-/*! \file
- * \brief Base of the module "Gestion", the p_action indicates what
- * file must included and this file will manage the request
- * (customer, supplier, contact,...)
- */
-include_once ("ac_common.php");
-require_once("constant.php");
-require_once('class_database.php');
-require_once('class_dossier.php');
-require_once('function_javascript.php');
-echo load_all_script();
-
-$gDossier=dossier::id();
-
-$g_name=dossier::name();
-
-
-require_once('class_database.php');
-/* Admin. Dossier */
-$rep=new Database($gDossier);
-require_once ("class_user.php");
-$User=new User($rep);
-$User->Check();
-if ($User->check_dossier($gDossier)=='P')
-{
- redirect("extension.php?".dossier::get(),0);
- exit();
-}
-
-//-----------------------------------------------------
-// update preference
-//-----------------------------------------------------
-if ( isset ( $_POST['style_user']) )
-{
- $User->update_global_pref('THEME',$_POST['style_user']);
- $_SESSION['g_theme']=$_POST['style_user'];
-
-}
-// Met a jour le pagesize
-if ( isset ( $_POST['p_size']) )
-{
- $User->update_global_pref('PAGESIZE',$_POST['p_size']);
- $_SESSION['g_pagesize']=$_POST['p_size'];
-
-}
-
-///
-html_page_start($_SESSION['g_theme'],"","");
-
-if ( ! isset ( $gDossier ) )
-{
- echo _("Vous devez choisir un dossier ");
- exit -2;
-}
-include_once("user_menu.php");
-$str_dossier=dossier::get();
-
-$p_action=(isset ($_REQUEST['p_action']))?$_REQUEST['p_action']:"";
-echo '<div class="u_tmenu">';
-echo menu_tool('commercial.php');
-
-echo '<div class="topmenu">';
-$def=0;
-if ( isset($_REQUEST['p_action']))
-{
- switch($_REQUEST['p_action'])
- {
- case'tdb':
- $def=1;
- break;
- case'client':
- $def=2;
- break;
- case'tdb':
- $def=1;
- break;
- case'supplier':
- $def=3;
- break;
- case'adm':
- $def=4;
- break;
- case'stock':
- $def=5;
- break;
- case'fiche':
- $def=6;
- break;
- case'prev':
- $def=7;
- break;
- case'suivi_courrier':
- $def=8;
- break;
- case'impress':
- $def=9;
- break;
-
- }
-}
-echo ShowItem(array(
- array('?p_action=client&'.$str_dossier,_('Client'),'',2),
-
array('?p_action=supplier&'.$str_dossier,_('Fournisseur'),'',3),
-
array('?p_action=adm&'.$str_dossier,_('Administration'),'',4),
-
array('?p_action=impress&'.$str_dossier,_('Impression'),'',9),
- array('?p_action=stock&'.$str_dossier,_('Stock'),'',5),
- array('?p_action=fiche&'.$str_dossier,_('Fiche'),'',6),
- array('?p_action=prev&'.$str_dossier,_('Prevision'),'',7),
-
array('?p_action=suivi_courrier&my_action&'.$str_dossier,_('Suivi'),'',8),
- ),
- 'H',"mtitle","mtitle",$def,' style="width:100%"');
-
-echo '</div>';
-echo '</div>';
-
-$cn=new Database($gDossier);
-
-//-----------------------------------------------------
-// p_action == pref
-//-----------------------------------------------------
-if ( $p_action == "pref" )
-{
- require_once("pref.inc.php");
-}
-//-----------------------------------------------------
-// p_action == impression
-//-----------------------------------------------------
-if ( $p_action == "impress" )
-{
- require_once("impress.inc.php");
-}
-
-
-//-----------------------------------------------------
-// p_action == adm
-//-----------------------------------------------------
-if ( $p_action == "adm" )
-{
- $User->can_request(GEADM,1);
- require_once("adm.inc.php");
-}
-//-----------------------------------------------------
-// p_action == client
-//-----------------------------------------------------
-if ( $p_action == "client" )
-{
- $User->can_request(GECUST,1);
- require_once("client.inc.php");
-}
-// $p_action == fournisseur
-//-----------------------------------------------------
-// Fournisseur
-if ( $p_action == 'supplier')
-{
- $User->can_request(GESUPPL,1);
- require_once("supplier.inc.php");
-}
-
-//-----------------------------------------------------
-// action
-if ( $p_action == 'suivi_courrier')
-{
- $User->can_request(GECOUR,1);
- require_once("action.inc.php");
-}
-//-----------------------------------------------------
-// Contact
-if ( $p_action == 'fiche')
-{
- require_once("fiche.inc.php");
-}
-//-----------------------------------------------------
-// Impression
-if ( $p_action == 'impress')
-{
- if ( $User->check_action(IMPRAP)==1 ||
- $User->check_action(IMPJRN)==1 ||
- $User->check_action(IMPFIC)==1 ||
- $User->check_action(IMPPOSTE)==1 ||
- $User->check_action(IMPBIL)==1 )
- require_once("impress.inc.php");
- else
- $User->can_request(9999,1);
-}
-if ( $p_action == 'fiche')
-{
- require_once('fiche.inc.php');
-}
-if ( $p_action == 'stock')
-{
- require_once('stock.inc.php');
-}
-if ( $p_action=='periode')
-{
- if ( $User->check_action(PARPER)==1 ||
- $User->check_action(PARCLO)==1)
- require_once ('periode.inc.php');
- else
- $User->can_request(9999,1);
-}
-//-----------------------------------------------------
-// Expense
-if ( $p_action == 'defreport')
-{
- $User->can_request(PARPREDE,1);
- require_once("report.inc.php");
-}
-/*----------------------------------------------------------------------
- * Prevision
- *
- *----------------------------------------------------------------------*/
-if ( $p_action=='prev')
-{
- $User->can_request(PREVCON,1);
- require_once ('forecast.inc.php');
-}
-?>
\ No newline at end of file
Deleted: phpcompta/trunk/html/comptanalytic.php
===================================================================
--- phpcompta/trunk/html/comptanalytic.php 2011-10-28 21:56:12 UTC (rev
4256)
+++ phpcompta/trunk/html/comptanalytic.php 2011-10-28 21:57:45 UTC (rev
4257)
@@ -1,151 +0,0 @@
-<?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
-*/
-/* $Revision$ */
-
-// Copyright Author Dany De Bontridder address@hidden
-
-/*!\file
- * \brief Main page for the analytic module
- */
-
-/*! \brief Analytic accountancy
- *
- */
-require_once("constant.php");
-require_once('class_database.php');
-require_once("ac_common.php");
-require_once('class_dossier.php');
-require_once('function_javascript.php');
-
-$gDossier=dossier::id();
-$str_dossier=dossier::get();
-$cn=new Database($gDossier);
-require_once ("class_user.php");
-require_once ('user_menu.php');
-$User=new User($cn);
-$User->Check();
-if ($User->check_dossier($gDossier) == 'P') exit();
-
-load_all_script();
-
-html_page_start($_SESSION['g_theme']);
-/* javascript file */
-//-----------------------------------------------------------------
-//Header
-echo '<div class="u_tmenu">';
-//-----------------------------------------------------------------
-echo menu_tool('comptanalytic.php');
-$def=-1;
-if ( isset ($_REQUEST['p_action']))
-{
- switch ($_REQUEST['p_action'])
- {
- case 'ca_pa':
- $def=0;
- break;
- case 'ca_od':
- $def=1;
- break;
- case 'ca_imp':
- $def=2;
- break;
- case 'ca_groupe':
- $def=3;
- break;
- }
-}
-echo '<div class="topmenu">';
-echo ShowItem(array(
- array('?p_action=ca_pa&'.$str_dossier,'Plan
Analytique',"Plan Analytique",0),
- array('?p_action=ca_od&'.$str_dossier,'Opérations
Diverses',"Permet d'enregistrer des operations sur la compta analytique",1),
- array('?p_action=ca_groupe&'.$str_dossier,'Groupe','Regroupe
les postes analytiques',3),
-
array('?p_action=ca_imp&'.$str_dossier,'Impression',"impression de rapport",2)
- ),
- 'H',"mtitle","mtitle",$def,' style="width:75%;margin-left:12%"');
-echo '</div>';
-echo '</div>';
-echo '</div>';
-if ( isset ($_REQUEST['p_action']))
-{
- switch ($_REQUEST['p_action'])
- {
- case 'ca_pa':
- $User->can_request(CAPA,1);
- $def=0;
- break;
- case 'ca_od':
- $User->can_request(CAOD,1);
- $def=1;
- break;
- case 'ca_imp':
- $User->can_request(CAIMP,1);
- $def=2;
- break;
- case 'ca_groupe':
- $User->can_request(CAGA,1);
- $def=3;
- break;
- }
-}
-
-if ( !isset($_REQUEST['p_action']))
- exit();
-
-//-----------------------------------------------------
-// p_action == pref
-//-----------------------------------------------------
-if ( $_REQUEST['p_action'] == "pref" )
-{
- require_once("pref.inc.php");
- exit();
-}
-
-//---------------------------------------------------------------------------
-// p_action
-//---------------------------------------------------------------------------
-// Plan Analytique
-if ($_REQUEST['p_action'] == 'ca_pa' )
-{
- require_once('anc_pa.inc.php');
- exit();
-}
-
-// Operations Diverses
-if ($_REQUEST['p_action'] == 'ca_od' )
-{
- require_once('anc_od.inc.php');
- exit();
-}
-// Impression
-if ($_REQUEST['p_action'] == 'ca_groupe' )
-{
- require_once('anc_group.inc.php');
- exit();
-}
-
-// Impression
-if ($_REQUEST['p_action'] == 'ca_imp' )
-{
- echo '<div class="content">';
-
- require_once('anc_imp.inc.php');
- echo '</div>';
-
- exit();
-}
Deleted: phpcompta/trunk/html/parametre.php
===================================================================
--- phpcompta/trunk/html/parametre.php 2011-10-28 21:56:12 UTC (rev 4256)
+++ phpcompta/trunk/html/parametre.php 2011-10-28 21:57:45 UTC (rev 4257)
@@ -1,424 +0,0 @@
-<?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
-*/
-/* $Revision$ */
-// Copyright Author Dany De Bontridder address@hidden
-/* $Revision$ */
-/*! \file
- * \brief Parametre module
- */
-
-include_once ("ac_common.php");
-require_once('class_database.php');
-require_once("class_iselect.php");
-require_once("class_itext.php");
-require_once('class_dossier.php');
-require_once('class_iposte.php');
-echo load_all_script();
-
-$gDossier=dossier::id();
-
-require_once('class_database.php');
-/* Admin. Dossier */
-$cn=new Database($gDossier);
-include_once ("class_user.php");
-$User=new User($cn);
-$User->Check();
-$User->check_dossier($gDossier);
-
-html_page_start($_SESSION['g_theme']);
-
-include_once("user_menu.php");
-echo '<div class="u_tmenu">';
-
-echo menu_tool('parametre.php');
-
-echo '<div class="topmenu">';
-
-
-$authorized =0;
-foreach ( array(PARCA,PARPER,PARFIC,PARDOC,PARJRN,PARTVA,
- PARMP, PARPOS,PARCOORD,PARSEC,EXTENSION,PARPER,PARCLO)
- as $a)
-{
- if ( $User->check_action($a) == 1 )
- {
- $authorized=1;
- break;
- }
-}
-
-if ($authorized==0)
- $User->can_request(9999,1);
-
-// First action
-$p_action="";
-if ( isset($_REQUEST["p_action"]) )
-{
- $p_action=$_REQUEST["p_action"];
-}
-switch ($p_action)
-{
-case 'periode':
- $default=25;
- break;
-
-case 'ext':
- $default=3;
- break;
-case 'jrn':
- $default=10;
- break;
-case 'pcmn':
- $default=11;
- break;
-case 'company':
- $default=1;
- break;
-case 'divers':
- $default=2;
- break;
-case 'fiche':
- $default=5;
- break;
-case 'sec':
- $default=8;
- break;
-
-case 'document':
- $default=7;
- break;
-case 'company':
- $default=1;
- break;
-case 'preod':
- $default=12;
- break;
-default:
- $default="parametre.php?p_action=".$p_action;
-}
-
-echo ShowMenuParam($default);
-echo '</div>';
-echo '</div>';
-
-// sub action
-$action="";
-if ( isset ($_POST['action']) )
-{
- $action=$_POST['action'];
-}
-
-//-----------------------------------------------------
-// divers
-//-----------------------------------------------------
-if ( $p_action == 'divers')
-{
- $s=dossier::get();
-
- $array = array (
- array('parametre.php?p_action=divers&sa=mp&'.$s,_('Moyen de
paiement'),_('Moyen de paiement'),2),
-
array('parametre.php?p_action=divers&sa=tva&'.$s,_('Tva'),_('Taux et poste
comptable tva'),4),
- array('parametre.php?p_action=divers&sa=poste&'.$s,_('Poste
Comptable'),_('Poste comptable constant'),7),
-
array('parametre.php?p_action=divers&sa=fiche&'.$s,_('Catégorie de
fiche'),_('Modifie les classe de base, les attribut,...'),5),
-
array('parametre.php?p_action=divers&sa=cdoc&'.$s,_('Catégorie de
documents'),_('Ajoute des catégories de documents,...'),6),
- array('parametre.php?p_action=divers&sa=fat&'.$s,_('Attribut
de fiche'),_('Modifie les attributs des catégories de fiches'),10)
- );
- $sa=(isset($_REQUEST['sa']))?$_REQUEST['sa']:'';
- $sb=(isset($_REQUEST['sb']))?$_REQUEST['sb']:'';
- $def=0;
- switch ($sa)
- {
- case 'mp':
- $def=2;
- break;
- case 'tva':
- $def=4;
- break;
- case 'poste':
- $def=7;
- break;
- case 'fiche':
- $def=5;
- break;
- case 'cdoc':
- $def=6;
- break;
- case 'fat':
- $def=10;
- break;
- }
- echo '<div class="lmenu">';
- echo ShowItem($array,'H','mtitle','mtitle',$def);
- echo '</div>';
-
- if ( $sa=='mp')
- {
- $User->can_request(PARMP,1);
- require_once('payment_middle.inc.php');
- exit;
- }
-
//---------------------------------------------------------------------------
- // Add or remove attribut of card
-
//---------------------------------------------------------------------------
- if ( $sa=='fat')
- {
- $User->can_request('FICCAT');
- require_once('card_attr.inc.php');
- exit();
- }
- //-----------------------------------------------------
- // TVA RATE
- //-----------------------------------------------------
- if ( $sa == "tva" )
- {
- echo '</div>';
- $User->can_request(PARTVA,1);
- require_once("tva.inc.php");
- //
- }
- //-----------------------------------------------------
- // Accounting item
- //-----------------------------------------------------
- if ( $sa == "poste" )
- {
- $User->can_request(PARPOS,1);
- require_once('poste.inc.php');
-
- }
- //-----------------------------------------------------
- // fiche
- //-----------------------------------------------------
- if ( $sa == "fiche" )
- {
- $User->can_request(PARFIC,1);
- require_once('fiche_def.inc.php');
- return;
- }
- //----------------------------------------------------
- // Cat. Document
- //----------------------------------------------------
- if ( $def== 6)
- {
- $User->can_request(PARCATDOC,1);
- require_once('cat_document.inc.php');
- return;
- }
-
-}
-//-----------------------------------------------------
-// Extension
-//-----------------------------------------------------
-
-if ( $p_action=='ext')
-{
- $User->can_request(EXTENSION,1);
- require_once('extension.inc.php');
- exit;
-}
-//-----------------------------------------------------
-// Coord societe
-//-----------------------------------------------------
-if ( $p_action=='company')
-{
- $User->can_request(PARCOORD,1);
- echo '<div class="content">';
- require_once("class_own.php");
- if ( isset ($_POST['record_company'] ))
- {
- $m=new Own($cn);
- extract($_POST);
- $m->MY_NAME=$p_name;
- $m->MY_TVA=$p_tva;
- $m->MY_STREET=$p_street;
- $m->MY_NUMBER=$p_no;
- $m->MY_CP=$p_cp;
- $m->MY_COMMUNE=$p_Commune;
- $m->MY_TEL=$p_tel;
- $m->MY_FAX=$p_fax;
- $m->MY_PAYS=$p_pays;
- $m->MY_CHECK_PERIODE=$p_check_periode;
- $m->MY_DATE_SUGGEST=$p_date_suggest;
- if ( $User->check_action(PARCA)!=0)$m->MY_ANALYTIC=$p_compta;
- if ( $User->check_action(PARSTR)!=0) $m->MY_STRICT=$p_strict;
- if ( $User->check_action(PARTVA)!=0)$m->MY_TVA_USE=$p_tva_use;
- $m->MY_PJ_SUGGEST=$p_pj;
- $m->MY_ALPHANUM=$p_alphanum;
- $m->Update();
- }
-
- $my=new Own($cn);
- ///// Compta analytic
- $array=array (
- array("value"=>"ob",'label'=>_("obligatoire")),
- array("value"=>"op",'label'=>_("optionnel")),
- array("value"=>"nu",'label'=>_("non utilisé"))
- );
- $strict_array=array(
- array('value'=>'N','label'=>_('Non')),
- array('value'=>'Y','label'=>_('Oui'))
- );
- $alpha_num_array[0]=array('value'=>'N','label'=>_('Non'));
- $alpha_num_array[1]=array('value'=>'Y','label'=>_('Oui'));
-
- $compta=new ISelect();
- $compta->table=1;
- $compta->selected=$my->MY_ANALYTIC;
-
- $strict=new ISelect();
- $strict->table=1;
- $strict->selected=$my->MY_STRICT;
-
- $tva_use=new ISelect();
- $tva_use->table=1;
- $tva_use->selected=$my->MY_TVA_USE;
-
- $pj_suggest=new ISelect();
- $pj_suggest->table=1;
- $pj_suggest->selected=$my->MY_PJ_SUGGEST;
-
- $date_suggest=new ISelect();
- $date_suggest->table=1;
- $date_suggest->selected=$my->MY_DATE_SUGGEST;
-
- $check_periode=new ISelect();
- $check_periode->table=1;
- $check_periode->selected=$my->MY_CHECK_PERIODE;
-
- $alpha_num=new ISelect();
- $alpha_num->table=1;
- $alpha_num->value=$alpha_num_array;
- $alpha_num->selected=$my->MY_ALPHANUM;
-
- // other parameters
- $all=new IText();
- $all->table=1;
- echo '<form method="post" action="?p_action=company">';
- echo dossier::hidden();
- echo "<table class=\"result\" style=\"width:auto\">";
- echo "<tr>".td(_('Nom
société'),'style="text-align:right"').$all->input("p_name",$my->MY_NAME)."</tr>";
- $all->value='';
- echo
"<tr>".td(_("Téléphone"),'style="text-align:right"').$all->input("p_tel",$my->MY_TEL)."</tr>";
- $all->value='';
- echo
"<tr>".td(_("Fax"),'style="text-align:right"').$all->input("p_fax",$my->MY_FAX)."</tr>";
- $all->value='';
- echo "<tr>".td(_("Rue
"),'style="text-align:right"').$all->input("p_street",$my->MY_STREET)."</tr>";
- $all->value='';
- echo
"<tr>".td(_("Numéro"),'style="text-align:right"').$all->input("p_no",$my->MY_NUMBER)."</tr>";
- $all->value='';
- echo "<tr>".td(_("Code
Postal"),'style="text-align:right"').$all->input("p_cp",$my->MY_CP)."</tr>";
- $all->value='';
- echo
"<tr>".td(_("Commune"),'style="text-align:right"').$all->input("p_Commune",$my->MY_COMMUNE)."</tr>";
- $all->value='';
- echo
"<tr>".td(_("Pays"),'style="text-align:right"').$all->input("p_pays",$my->MY_PAYS)."</tr>";
- $all->value='';
- echo "<tr>".td(_("Numéro de
Tva"),'style="text-align:right"').$all->input("p_tva",$my->MY_TVA)."</tr>";
- if ( $User->check_action(PARCA)==0) $compta->setReadonly(true);
- echo "<tr>".td(_("Utilisation de la compta.
analytique"),'style="text-align:right"').$compta->input("p_compta",$array)."</tr>";
- if ( $User->check_action(PARSTR)==0) $strict->setReadonly(true);
- echo "<tr>".td(_("Utilisation du mode strict
"),'style="text-align:right"').$strict->input("p_strict",$strict_array)."</tr>";
- if ( $User->check_action(PARTVA)==0) $tva_use->setReadonly(true);
- echo "<tr>".td(_("Assujetti à la
tva"),'style="text-align:right"').$tva_use->input("p_tva_use",$strict_array)."</tr>";
- echo "<tr>".td(_("Suggérer le numéro de pièce
justificative"),'style="text-align:right"').$pj_suggest->input("p_pj",$strict_array)."</tr>";
- echo "<tr>".td(_("Suggérer la
date"),'style="text-align:right"').$date_suggest->input("p_date_suggest",$strict_array)."</tr>";
- echo '<tr>'.td(_('Afficher la période comptable pour éviter les erreurs de
date'),'style="text-align:right"').$check_periode->input('p_check_periode',$strict_array).'</tr>';
- echo '<tr>'.td(_('Utilisez des postes comptables
alphanumérique'),'style="text-align:right"').$alpha_num->input('p_alphanum').'</tr>';
- echo "</table>";
- echo HtmlInput::submit("record_company",_("Sauve"));
- echo "</form>";
- echo '</div>';
- exit();
-}
-//-----------------------------------------------------
-// Document
-//-----------------------------------------------------
-echo "</DIV>";
-if ( $p_action == 'document' )
-{
- $User->can_request(PARDOC,1);
- echo '<div class="content">';
- require_once('document_modele.inc.php');
- echo '</div>';
-}
-//----------------------------------------------------------------------
-// Plan Comptable
-//----------------------------------------------------------------------
-if ( $p_action == 'pcmn' )
-{
- $User->can_request(PARPCMN,1);
- require_once('param_pcmn.inc.php');
-}
-//----------------------------------------------------------------------
-// Security
-//----------------------------------------------------------------------
-if ( $p_action == 'sec' )
-{
- $User->can_request(PARSEC,1);
- require_once('param_sec.inc.php');
-}
-//----------------------------------------------------------------------
-// Predefined operation
-//----------------------------------------------------------------------
-if ( $p_action == 'preod' )
-{
- $User->can_request(PARPREDE,1);
- require_once('preod.inc.php');
-}
-
-//---------------------------------------------------------------------------
-// Definition of report
-//---------------------------------------------------------------------------
-if ( $p_action == 'defrapport' )
-{
- $User->can_request(PARRAP,1);
- require_once('report.inc.php');
-}
-//---------------------------------------------------------------------------
-// Periode management
-//---------------------------------------------------------------------------
-
-if ($p_action == "periode" )
-{
-
- if ( $User->check_action(PARPER) == 0 && $User->check_action(PARCLO) == 0 )
- NoAccess();
-
- $p_action=$_REQUEST['p_action'];
- include_once("periode.inc.php");
-}
-//----------------------------------------------------------------------
-// Ledger parameter
-//----------------------------------------------------------------------
-if ( $p_action == 'jrn' )
-{
- $User->can_request(PARJRN,1);
- $sa=(isset($_REQUEST['sa']))?$_REQUEST['sa']:"";
- // echo '<div class="content">';
- if ( $sa == "add")
- require_once 'param_jrn_add.inc.php';
- elseif ($sa=='detail')
- require_once ('param_jrn_detail.inc.php');
- else
- require_once('param_jrn.inc.php');
- // echo '</div>';
-}
-
-
-
-html_page_stop();
-?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4257 - phpcompta/trunk/html,
phpcompta-dev <=