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 '';
+
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();