From c4d3152ebff2a3dbb6a2488c99ee1ed1db682661 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Thu, 10 Jan 2008 21:35:22 +0000 Subject: [PATCH] Move ledger, accountancy plan and sec here --- html/parametre.php | 78 +++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 73 insertions(+), 5 deletions(-) diff --git a/html/parametre.php b/html/parametre.php index 5597e8ec3..b820ca503 100644 --- a/html/parametre.php +++ b/html/parametre.php @@ -39,14 +39,18 @@ $User->Check(); include_once("preference.php"); include_once("user_menu.php"); - -echo "

Paramètre ".dossier::name(). -' +echo '
'; +echo '
'; +echo "

Paramètre ".dossier::name().'

'. +'

'.'
+ +
-

'; +'; + include_once ("check_priv.php"); @@ -59,7 +63,43 @@ $p_action=""; if ( isset($_REQUEST["p_action"]) ) { $p_action=$_REQUEST["p_action"]; } -echo ShowMenuParam("parametre.php?p_action=".$p_action); +switch ($p_action) { + case 'jrn': + $default=10; + break; + case 'pcmn': + $default=11; + break; + case 'company': + $default=1; + break; + case 'devise': + $default=2; + break; + case 'tva': + $default=3; + break; + case 'poste': + $default=4; + break; + case 'fiche': + $default=5; + break; + case 'sec': + $default=8; + break; + + case 'document': + $default=7; + break; + case 'company': + $default=1; + break; + default: + $default="parametre.php?p_action=".$p_action; + } + +echo ShowMenuParam($default); // sub action @@ -198,6 +238,34 @@ if ( $p_action == 'document' ) { require_once('document_modele.inc.php'); echo ''; } +//---------------------------------------------------------------------- +// Plan Comptable +//---------------------------------------------------------------------- +if ( $p_action == 'pcmn' ) { + require_once('param_pcmn.inc.php'); +} +//---------------------------------------------------------------------- +// Security +//---------------------------------------------------------------------- +if ( $p_action == 'sec' ) { + require_once('param_sec.inc.php'); +} + +//---------------------------------------------------------------------- +// Ledger parameter +//---------------------------------------------------------------------- +if ( $p_action == 'jrn' ) { + $sa=(isset($_REQUEST['sa']))?$_REQUEST['sa']:""; + echo '
'; + 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 '
'; +} + html_page_stop();