phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r4365 - in phpcompta/trunk: html html/js include include


From: phpcompta-dev
Subject: [Phpcompta-dev] r4365 - in phpcompta/trunk: html html/js include include/template sql
Date: Wed, 16 Nov 2011 00:20:56 +0100 (CET)

Author: danydb
Date: 2011-11-16 00:20:54 +0100 (Wed, 16 Nov 2011)
New Revision: 4365

Modified:
   phpcompta/trunk/html/ajax_card.php
   phpcompta/trunk/html/ajax_ledger.php
   phpcompta/trunk/html/ajax_misc.php
   phpcompta/trunk/html/ajax_poste.php
   phpcompta/trunk/html/direct.php
   phpcompta/trunk/html/js/scripts.js
   phpcompta/trunk/html/show_document_modele.php
   phpcompta/trunk/html/style.css
   phpcompta/trunk/include/constant.security.php
   phpcompta/trunk/include/document_modele.inc.php
   phpcompta/trunk/include/lettering.account.inc.php
   phpcompta/trunk/include/payment_middle.inc.php
   phpcompta/trunk/include/periode.inc.php
   phpcompta/trunk/include/profile.inc.php
   phpcompta/trunk/include/search.inc.php
   phpcompta/trunk/include/template/category_of_card.php
   phpcompta/trunk/include/template/form_ledger_detail.php
   phpcompta/trunk/include/template/form_ledger_fin.php
   phpcompta/trunk/include/template/history_top.php
   phpcompta/trunk/include/template/ledger_detail_forbidden.php
   phpcompta/trunk/include/template/ledger_detail_top.php
   phpcompta/trunk/include/template/modele_document.php
   phpcompta/trunk/include/template/search_top.php
   phpcompta/trunk/include/template/security_list_action.php
   phpcompta/trunk/sql/object-6.0.sql
   phpcompta/trunk/sql/upgrade.sql
Log:
improve appearance
fix bug due can_request, add new action

Modified: phpcompta/trunk/html/ajax_card.php
===================================================================
--- phpcompta/trunk/html/ajax_card.php  2011-11-15 20:55:45 UTC (rev 4364)
+++ phpcompta/trunk/html/ajax_card.php  2011-11-15 23:20:54 UTC (rev 4365)
@@ -305,9 +305,7 @@
 case 'fs':
     require_once('class_acc_ledger.php');
     $r='';
-    $r.='<div 
style="float:right;height:10px;display:block;margin-top:2px;margin-right:2px">';
-    $r.= '<A style="background-color:blue;color:white;text-decoration:none" 
HREF="javascript:void(0)" onclick="removeDiv(\'search_card\');">Fermer</A>';
-    $r.='</div>';
+       $r.=HtmlInput::anchor_close('search_card');
     $r.='<div> '.h2info(_('Recherche de fiche')).'</div>';
 
     $r.='<form method="GET" 
onsubmit="this.ctl=\'ipop_card\';search_get_card(this);return false;">';

Modified: phpcompta/trunk/html/ajax_ledger.php
===================================================================
--- phpcompta/trunk/html/ajax_ledger.php        2011-11-15 20:55:45 UTC (rev 
4364)
+++ phpcompta/trunk/html/ajax_ledger.php        2011-11-15 23:20:54 UTC (rev 
4365)
@@ -163,7 +163,7 @@
     }
     catch (Exception $e)
     {
-        echo '<A 
style="background-color:blue;color:white;text-decoration:none" 
HREF="javascript:void(0)" onclick="removeDiv(\''.$div.'\');">Fermer</A>';
+        echo HtmlInput::anchor_close($div);
         echo '<h2 class="error">Désolé il y a une erreur</h2>';
     }
     $html=ob_get_contents();
@@ -424,11 +424,11 @@
     // ask for a date for reversing the operation
 case 'ask_extdate':
     $date=new IDate('p_date');
-    $html= '<A style="background-color:blue;color:white;text-decoration:none" 
HREF="javascript:void(0)" onclick="removeDiv(\''.$div.'\');">Fermer</A>';
     $html.="<form id=\"form_".$div."\" onsubmit=\"return 
reverseOperation(this);\">";
     
$html.=HtmlInput::hidden('jr_id',$_REQUEST['jr_id']).HtmlInput::hidden('div',$div).dossier::hidden().HtmlInput::hidden('act','reverseop');
     $html.='<h2 class="info">entrez une date </H2>'.$date->input();
     $html.=HtmlInput::submit('x','accepter');
+       $html=HtmlInput::button_close($div);
     $html.='</form>';
     break;
     
////////////////////////////////////////////////////////////////////////////////

Modified: phpcompta/trunk/html/ajax_misc.php
===================================================================
--- phpcompta/trunk/html/ajax_misc.php  2011-11-15 20:55:45 UTC (rev 4364)
+++ phpcompta/trunk/html/ajax_misc.php  2011-11-15 23:20:54 UTC (rev 4365)
@@ -263,7 +263,7 @@
        case 'dl':
                require_once('class_lettering.php');
                $exercice = $user->get_exercice();
-                if ($user->check_module("LETTERCARD") == 0 && 
$user->check_module("LETTERACC") == 0) exit();
+                if ($user->check_module("LETCARD") == 0 && 
$user->check_module("LETACC") == 0) exit();
                $periode = new Periode($cn);
                list($first_per, $last_per) = $periode->get_limit($exercice);
 
@@ -481,10 +481,6 @@
                require_once('ajax_save_predf_op.php');
                break;
        case 'search_op':
-               /* put_global(array
-                 (array('key'=>'ac','value'=>'JSSEARCH')),
-                 (array('key'=>'ledger_type','value'=>'ALL'))
-                 ); */
                require_once 'search.inc.php';
                break;
        case 'display_profile':

Modified: phpcompta/trunk/html/ajax_poste.php
===================================================================
--- phpcompta/trunk/html/ajax_poste.php 2011-11-15 20:55:45 UTC (rev 4364)
+++ phpcompta/trunk/html/ajax_poste.php 2011-11-15 23:20:54 UTC (rev 4365)
@@ -79,9 +79,7 @@
     $str_poste=$it->input();
     $str_submit=HtmlInput::submit('sf',_('Recherche'));
     $r='';
-    $r.='<div 
style="float:right;height:10px;display:block;margin-top:2px;margin-right:2px">';
-    $r.= '<A style="background-color:blue;color:white;text-decoration:none" 
HREF="javascript:void(0)" onclick="removeDiv(\'search_account\');">Fermer</A>';
-    $r.='</div>';
+       $r=HtmlInput::anchor_close('search_account');
     $r.='<div> '.h2info(_('Poste Comptable')).'</div>';
 
     $r.='<form id="sp" method="get" 
onsubmit="'.$attr.'search_get_poste(this);return false;">';

Modified: phpcompta/trunk/html/direct.php
===================================================================
--- phpcompta/trunk/html/direct.php     2011-11-15 20:55:45 UTC (rev 4364)
+++ phpcompta/trunk/html/direct.php     2011-11-15 23:20:54 UTC (rev 4365)
@@ -5,7 +5,7 @@
 $user=new User($cn);
 $user->Check();
 $user->check_dossier($_GET['gDossier']);
-$res=$cn->exec_sql("select code,description from get_profile_menu($1) where 
code ~* $2 limit 8",array($user->login,$_POST['acs']));
+$res=$cn->exec_sql("select code,description from get_profile_menu($1) where 
code ~* $2 or description ~* $3 limit 
8",array($user->login,$_POST['acs'],$_POST['acs']));
 $nb=Database::num_row($res);
        echo "<ul>";
 for ($i = 0;$i< $nb;$i++)

Modified: phpcompta/trunk/html/js/scripts.js
===================================================================
--- phpcompta/trunk/html/js/scripts.js  2011-11-15 20:55:45 UTC (rev 4364)
+++ phpcompta/trunk/html/js/scripts.js  2011-11-15 23:20:54 UTC (rev 4365)
@@ -854,11 +854,11 @@
     }
     var sid='calc1';
     var shtml='';
-    shtml+='<form name="calc_line"  method="GET" onSubmit="cal();return 
false;" >Cette calculatrice vous permet de calculer, écrivez simplement les 
opérations que vous voulez puis la touche retour. exemple : 1+2+3*(1/5) <input 
class="input_text" type="text" size="30" id="inp" name="calculator"> <input 
type="button" value="Efface tout" onClick="Clean();return false;" > <input 
type="button" value="Fermer" onClick="removeDiv(\'calc1\')" >';
+    shtml+='<form name="calc_line"  method="GET" onSubmit="cal();return 
false;" >Calculatrice simplifiée: écrivez simplement les opérations que vous 
voulez puis la touche retour. exemple : 1+2+3*(1/5) <input class="input_text" 
type="text" size="30" id="inp" name="calculator"> <input type="button" 
value="Efface tout" class="button" onClick="Clean();return false;" > <input 
type="button" class="button" value="Fermer" onClick="removeDiv(\'calc1\')" >';
     shtml+='</form><span id="result">  </span><br><span id="sub_total">  Taper 
une formule (ex 20*5.1) puis enter  </span><br><span id="listing"> </span>';
 
 var obj={id:sid,html:shtml,
-        
drag:true,style:'position:absolute;display:block;top:30px;left:150px;width:250px;border:1px
 solid black;background-color:#99b1df;font-size:12;padding: 2 2 2 2;'
+        drag:true,style:''
         };
     add_div(obj);
     this.document.getElementById('inp').focus();
@@ -1024,6 +1024,7 @@
 }
 /**
  *ctl_concern is the widget to update
+ *amount_id is either a html obj. or an amount
  */
 function search_reconcile(dossier,ctl_concern,amount_id,ledger)
 {

Modified: phpcompta/trunk/html/show_document_modele.php
===================================================================
--- phpcompta/trunk/html/show_document_modele.php       2011-11-15 20:55:45 UTC 
(rev 4364)
+++ phpcompta/trunk/html/show_document_modele.php       2011-11-15 23:20:54 UTC 
(rev 4365)
@@ -36,7 +36,7 @@
 /*!\todo Add security here
  */
 $User->Check();
-if ( $User->check_module("CFGDOCUMENT") == 0 ) exit();
+if ( $User->check_module("CFGDOC") == 0 ) exit();
 // retrieve the document
 $r=$cn->exec_sql("select md_id,md_lob,md_filename,md_mimetype
                  from document_modele where 
md_id=$1",array($_REQUEST['md_id']));

Modified: phpcompta/trunk/html/style.css
===================================================================
--- phpcompta/trunk/html/style.css      2011-11-15 20:55:45 UTC (rev 4364)
+++ phpcompta/trunk/html/style.css      2011-11-15 23:20:54 UTC (rev 4365)
@@ -714,7 +714,7 @@
   /*height:32px;*/
   cursor:pointer;
 }
-span.informal{ font-size:12; }
+span.informal{ font-size:95%; color:black;}
 
 ul.select_table  {
        /*padding:5px;*/
@@ -813,7 +813,7 @@
        margin-top:3px;
        cursor:pointer;
        margin:1 2 1 2;
-       -moz-border-radius:2 2;
+       -moz-border-radius:4 4;
 
 }
 a#anchorbutton:hover, .button:hover,a.button:hover,div.content a.button:hover  
{
@@ -1041,11 +1041,28 @@
 }
 #close_div
 {
- background-color:blue;
- color:white;
- text-decoration:none
+ background-color:white;
+ color:blue;
+ text-decoration:none;
+ border:1px solid blue;
+ margin-left: 2px;
+ margin-right:2px;
+ margin-top:2px;
+ font-size:10px;
 }
 table.table_large tr.odd ,table.table_large tr.even {
 
        height:32px;
-}
\ No newline at end of file
+}
+#calc1
+{
+       position:absolute;
+       display:block;
+       top:30px;
+       left:150px;
+       width:300px;
+       border:1px solid black;
+       background-color:#aec3e8;
+       font-size:16;
+       padding: 20 20;
+}

Modified: phpcompta/trunk/include/constant.security.php
===================================================================
--- phpcompta/trunk/include/constant.security.php       2011-11-15 20:55:45 UTC 
(rev 4364)
+++ phpcompta/trunk/include/constant.security.php       2011-11-15 23:20:54 UTC 
(rev 4365)
@@ -4,5 +4,6 @@
 define ("FICCAT",910);  //création, modification et effacement de catégorie de 
fiche
 define ('RMDOC',1020);   // Effacement de document pour follow up
 define ('VIEWDOC',1010);   // Voir document pour follow up
+define ('PARCATDOC',1050);   // modifier type document pour follow up
 global $audit; $audit=true;
 ?>

Modified: phpcompta/trunk/include/document_modele.inc.php
===================================================================
--- phpcompta/trunk/include/document_modele.inc.php     2011-11-15 20:55:45 UTC 
(rev 4364)
+++ phpcompta/trunk/include/document_modele.inc.php     2011-11-15 23:20:54 UTC 
(rev 4365)
@@ -25,8 +25,7 @@
 require_once("class_document_modele.php");
 $sub_action=(isset ($_REQUEST['sa']))?$_REQUEST['sa']:"";
 echo js_include('modele_document.js');
-
-echo "<hr>";
+echo '<div class="content">';
 // show the form for adding a template
 //
 $doc=new Document_modele($cn);

Modified: phpcompta/trunk/include/lettering.account.inc.php
===================================================================
--- phpcompta/trunk/include/lettering.account.inc.php   2011-11-15 20:55:45 UTC 
(rev 4364)
+++ phpcompta/trunk/include/lettering.account.inc.php   2011-11-15 23:20:54 UTC 
(rev 4365)
@@ -36,7 +36,7 @@
 
 $poste=new IPoste();
 $poste->name="acc";
-$poste->table=1;
+$poste->table=0;
 $poste->set_attribute('jrn',0);
 $poste->set_attribute('gDossier',dossier::id());
 $poste->set_attribute('ipopup','ipop_account');

Modified: phpcompta/trunk/include/payment_middle.inc.php
===================================================================
--- phpcompta/trunk/include/payment_middle.inc.php      2011-11-15 20:55:45 UTC 
(rev 4364)
+++ phpcompta/trunk/include/payment_middle.inc.php      2011-11-15 23:20:54 UTC 
(rev 4365)
@@ -101,10 +101,10 @@
        
HtmlInput::hidden('ac',$_REQUEST['ac']).HtmlInput::hidden('sb','insert');
     echo $r;
     echo HtmlInput::submit('insert',_('Enregistre'));
-    echo '</form>';
     echo HtmlInput::button_anchor(_('Retour sans sauver'),
                                   
'?p_action=divers&sa=mp&'.dossier::get()."&ac=".$_REQUEST['ac']
                                      );
+    echo '</form>';
 
     exit();
 }

Modified: phpcompta/trunk/include/periode.inc.php
===================================================================
--- phpcompta/trunk/include/periode.inc.php     2011-11-15 20:55:45 UTC (rev 
4364)
+++ phpcompta/trunk/include/periode.inc.php     2011-11-15 23:20:54 UTC (rev 
4365)
@@ -38,7 +38,6 @@
 
 if ( isset ($_POST["add_per"] ))
 {
-    $g_user->can_request(PARPER,1);
     extract($_POST);
     $obj=new Periode($cn);
     if ( $obj->insert($p_date_start,$p_date_end,$p_exercice) == 1 )
@@ -50,7 +49,6 @@
 }
 if (isset($_POST['add_exercice']))
   {
-    $g_user->can_request(PARPER,1);
     $obj=new Periode($cn);
     $exercice=$cn->get_value('select max(p_exercice::float)+1 from 
parm_periode');
     if ( $obj->insert_exercice($exercice) == 1 )
@@ -62,7 +60,6 @@
   }
 if ( $action=="closed")
 {
-    $g_user->can_request(PARCLO);
     $p_per=$_GET['p_per'];
     $per=new Periode($cn);
     $jrn_def_id=(isset($_GET['jrn_def_id']))?$_GET['jrn_def_id']:0;
@@ -74,7 +71,6 @@
 
 if ( $action== "delete_per" )
 {
-    $g_user->can_request(PARPER);
     $p_per=$_GET["p_per"];
 // Check if the periode is not used
     if ( $cn->count_sql("select * from jrnx where j_tech_per=$p_per") != 0 )
@@ -89,7 +85,6 @@
 }
 if ( $action == 'reopen')
   {
-    $g_user->can_request(PARCLO);
     $jrn_def_id=(isset($_GET['jrn_def_id']))?$_GET['jrn_def_id']:0;
     $per=new Periode($cn);
     $jrn_def_id=(isset($_GET['jrn_def_id']))?$_GET['jrn_def_id']:0;

Modified: phpcompta/trunk/include/profile.inc.php
===================================================================
--- phpcompta/trunk/include/profile.inc.php     2011-11-15 20:55:45 UTC (rev 
4364)
+++ phpcompta/trunk/include/profile.inc.php     2011-11-15 23:20:54 UTC (rev 
4365)
@@ -275,7 +275,7 @@
 echo '<div id="detail_profile" class="content">';
 if (isset($_POST['p_id']))
 {
-       require_once 'show_profile.inc.php';
+       require_once 'ajax_get_profile.php';
 }
 echo '</div>';
 ?>

Modified: phpcompta/trunk/include/search.inc.php
===================================================================
--- phpcompta/trunk/include/search.inc.php      2011-11-15 20:55:45 UTC (rev 
4364)
+++ phpcompta/trunk/include/search.inc.php      2011-11-15 23:20:54 UTC (rev 
4365)
@@ -124,7 +124,7 @@
            if ($step<$max_line ) echo '<span class="notice">Nombre 
d\'enregistrements trouvés =' .$max_line.' limite =  '.$step.'</SPAN>';
    }
        echo '<form method="get" onsubmit="set_reconcile(this);return false">';
-
+       echo HtmlInput::submit("upd_rec","Mettre à jour");
     echo $content;
        echo HtmlInput::submit("upd_rec","Mettre à jour");
        echo '</form>';

Modified: phpcompta/trunk/include/template/category_of_card.php
===================================================================
--- phpcompta/trunk/include/template/category_of_card.php       2011-11-15 
20:55:45 UTC (rev 4364)
+++ phpcompta/trunk/include/template/category_of_card.php       2011-11-15 
23:20:54 UTC (rev 4365)
@@ -1,8 +1,6 @@
-<div 
style="float:right;height:10px;display:block;margin-top:2px;margin-right:2px">
 <?
-     echo '<A style="background-color:blue;color:white;text-decoration:none" 
HREF="javascript:void(0)" onclick="removeDiv(\''.$ctl.'\');">Fermer</A>';
+     echo HtmlInput::anchor_close($ctl);
 ?>
-</div>
    <? echo h2info(_("Ajout d'une catégorie").$msg); ?>
 
 <div class="content">

Modified: phpcompta/trunk/include/template/form_ledger_detail.php
===================================================================
--- phpcompta/trunk/include/template/form_ledger_detail.php     2011-11-15 
20:55:45 UTC (rev 4364)
+++ phpcompta/trunk/include/template/form_ledger_detail.php     2011-11-15 
23:20:54 UTC (rev 4365)
@@ -20,7 +20,7 @@
 <legend><?=$f_legend_detail?></legend>
 <table id="sold_item" width="100%" border="0">
 <tr>
-<th colspan="2">Code <?=HtmlInput::infobulle(0)?></th>
+<th style="width:auto"colspan="2">Code <?=HtmlInput::infobulle(0)?></th>
       <th><?=_('Dénomination')?></th>
       <th><?=_('prix/unité htva')?><?=HtmlInput::infobulle(6)?></th>
       <th><?=_('quantité')?></th>

Modified: phpcompta/trunk/include/template/form_ledger_fin.php
===================================================================
--- phpcompta/trunk/include/template/form_ledger_fin.php        2011-11-15 
20:55:45 UTC (rev 4364)
+++ phpcompta/trunk/include/template/form_ledger_fin.php        2011-11-15 
23:20:54 UTC (rev 4365)
@@ -21,10 +21,10 @@
    <fieldset><legend><?=_('Opérations')?></legend>
 <table id="fin_item" width="100%" border="0">
 <tr>
-<th colspan="2">code<?HtmlInput::infobulle(0)?></TH>
-   <th><?=_('Commentaire')?></TH>
-   <th><?=_('Montant')?></TH>
-   <th colspan="2"> <?=_('Op. Concernée(s)')?></th>
+<th style="text-align: left;width: 
auto"colspan="2">code<?HtmlInput::infobulle(0)?></TH>
+   <th style="text-align: left"><?=_('Commentaire')?></TH>
+   <th style="text-align: left"><?=_('Montant')?></TH>
+   <th style="text-align: left;width:auto"colspan="2"> <?=_('Op. 
Concernée(s)')?></th>
 </tr>
 
 <? foreach ($array as $item) {

Modified: phpcompta/trunk/include/template/history_top.php
===================================================================
--- phpcompta/trunk/include/template/history_top.php    2011-11-15 20:55:45 UTC 
(rev 4364)
+++ phpcompta/trunk/include/template/history_top.php    2011-11-15 23:20:54 UTC 
(rev 4365)
@@ -4,9 +4,9 @@
    {
      $callback=$_SERVER['PHP_SELF'];
      $str=$_SERVER['QUERY_STRING']."&act=de&ajax=$callback";
-     echo '<A 
style="margin-right:5px;background-color:blue;color:white;text-decoration:none" 
HREF="javascript:void(0)" onclick="var 
a=window.open(\'popup.php?'.$str.'\',\'\',\'toolbar=0,width=600,height=400,scrollbars=yes,resizable=yes,status=0,location=0\');
 a.focus();removeDiv(\''.$div.'\')">
+     echo '<A id="close_div" HREF="javascript:void(0)" onclick="var 
a=window.open(\'popup.php?'.$str.'\',\'\',\'toolbar=0,width=600,height=400,scrollbars=yes,resizable=yes,status=0,location=0\');
 a.focus();removeDiv(\''.$div.'\')">
 !pop me up ! </A>';
-echo '<A style="background-color:blue;color:white;text-decoration:none" 
HREF="javascript:void(0)" onclick="removeDiv(\''.$div.'\');">Fermer</A>'; 
-} 
+echo '<A id="close_div" HREF="javascript:void(0)" 
onclick="removeDiv(\''.$div.'\');">Fermer</A>';
+}
 ?>
 </div>
\ No newline at end of file

Modified: phpcompta/trunk/include/template/ledger_detail_forbidden.php
===================================================================
--- phpcompta/trunk/include/template/ledger_detail_forbidden.php        
2011-11-15 20:55:45 UTC (rev 4364)
+++ phpcompta/trunk/include/template/ledger_detail_forbidden.php        
2011-11-15 23:20:54 UTC (rev 4365)
@@ -1,8 +1,6 @@
-<div style="margin:0;padding:0;text-align:right;height:13px">
-<? 
-echo '<A style="background-color:blue;color:white;text-decoration:none" 
HREF="javascript:void(0)" onclick="removeDiv(\''.$div.'\');">Fermer</A>'; 
+<?
+echo HtmlInput::anchor_close($div);
 ?>
-</div>
 <div style="margin:0;padding:0;background-color:red;text-align:center;">
 <h2 class="error">Accès interdit : vous n'avez pas accès à cette information, 
contactez votre responsable</h2>;
 </div>
\ No newline at end of file

Modified: phpcompta/trunk/include/template/ledger_detail_top.php
===================================================================
--- phpcompta/trunk/include/template/ledger_detail_top.php      2011-11-15 
20:55:45 UTC (rev 4364)
+++ phpcompta/trunk/include/template/ledger_detail_top.php      2011-11-15 
23:20:54 UTC (rev 4365)
@@ -1,11 +1,11 @@
 <div 
style="float:right;height:10px;display:block;margin-top:2px;margin-right:2px">
-<? 
+<?
    if ($div != "popup") {
      $callback=$_SERVER['PHP_SELF'];
      $str=$_SERVER['QUERY_STRING']."&act=$action&ajax=$callback";
-     echo '<A 
style="margin-right:5px;background-color:blue;color:white;text-decoration:none" 
HREF="javascript:void(0)" onclick="var 
a=window.open(\'popup.php?'.$str.'\',\'\',\'toolbar=0,width=600,height=400,scrollbars=yes,resizable=yes,status=0,location=0\');
 a.focus();removeDiv(\''.$div.'\')">
+     echo '<A id="close_div" HREF="javascript:void(0)" onclick="var 
a=window.open(\'popup.php?'.$str.'\',\'\',\'toolbar=0,width=600,height=400,scrollbars=yes,resizable=yes,status=0,location=0\');
 a.focus();removeDiv(\''.$div.'\')">
 !pop me up ! </A>';
-     echo '<A style="background-color:blue;color:white;text-decoration:none" 
HREF="javascript:void(0)" onclick="removeDiv(\''.$div.'\');">Fermer</A>'; 
+     echo '<A id="close_div" HREF="javascript:void(0)" 
onclick="removeDiv(\''.$div.'\');">Fermer</A>';
    }
 ?>
 </div>

Modified: phpcompta/trunk/include/template/modele_document.php
===================================================================
--- phpcompta/trunk/include/template/modele_document.php        2011-11-15 
20:55:45 UTC (rev 4364)
+++ phpcompta/trunk/include/template/modele_document.php        2011-11-15 
23:20:54 UTC (rev 4365)
@@ -1,6 +1,4 @@
-<div style="float:right">
-<A style="background-color:blue;color:white;text-decoration:none" 
HREF="javascript:void(0)" onclick="removeDiv('mod_doc');">Fermer</A>
-</div>
+<?=HtmlInput::anchor_close('mod_doc');?>
 <h2 class="info">Modèle de document</h2>
 <form  method="post" enctype="multipart/form-data">
 <table>

Modified: phpcompta/trunk/include/template/search_top.php
===================================================================
--- phpcompta/trunk/include/template/search_top.php     2011-11-15 20:55:45 UTC 
(rev 4364)
+++ phpcompta/trunk/include/template/search_top.php     2011-11-15 23:20:54 UTC 
(rev 4365)
@@ -33,7 +33,7 @@
    if ($div == "search_op") {
      $callback=$_SERVER['PHP_SELF'];
      $str="recherche.php?".Dossier::get().'&ac=SEARCH';
-     echo '<A style="background-color:blue;color:white;text-decoration:none" 
HREF="javascript:void(0)" onclick="removeDiv(\''.$div.'\');">Fermer</A>';
+     echo '<A id="close_div" HREF="javascript:void(0)" 
onclick="removeDiv(\''.$div.'\');">Fermer</A>';
    }
 ?>
 </div>

Modified: phpcompta/trunk/include/template/security_list_action.php
===================================================================
--- phpcompta/trunk/include/template/security_list_action.php   2011-11-15 
20:55:45 UTC (rev 4364)
+++ phpcompta/trunk/include/template/security_list_action.php   2011-11-15 
23:20:54 UTC (rev 4365)
@@ -50,5 +50,5 @@
                                array(800,1000));
                                 
display_security_fieldset(_('Fiche'),$array,$sec_User); ?>
                         <?php   $array=$cn->get_array("select ac_id, 
ac_description from action  where ac_id >=$1 and ac_id <=$2 order by ac_id ",
-                               array(1050,1100));
+                               array(1001,1100));
                                 
display_security_fieldset(_('Suivi'),$array,$sec_User); ?>

Modified: phpcompta/trunk/sql/object-6.0.sql
===================================================================
--- phpcompta/trunk/sql/object-6.0.sql  2011-11-15 20:55:45 UTC (rev 4364)
+++ phpcompta/trunk/sql/object-6.0.sql  2011-11-15 23:20:54 UTC (rev 4365)
@@ -192,7 +192,7 @@
 -- Name: profile_menu_pm_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
 --
 
-SELECT pg_catalog.setval('profile_menu_pm_id_seq', 648, true);
+SELECT pg_catalog.setval('profile_menu_pm_id_seq', 650, true);
 
 
 --
@@ -328,7 +328,7 @@
 INSERT INTO menu_ref VALUES ('TOOL', 'Outil comptable', 'tools/index.php', 
NULL, 'Outil comptable', 'plugin_code=TOOL', NULL, 'PL');
 INSERT INTO menu_ref VALUES ('TVA', 'Module de TVA', 'tva/index.php', NULL, 
'Cette extension permet de faire les listings et declarations TVA', 
'plugin_code=TVA', NULL, 'PL');
 INSERT INTO menu_ref VALUES ('IMPORTBANK', 'Importation banque', 
'importbank/index.php', NULL, 'Import. fichier CVS de la banque', 
'plugin_code=IMPORTBANK', NULL, 'PL');
-INSERT INTO menu_ref VALUES ('ACH', 'Achat', 'compta_ach.inc.php', NULL, NULL, 
NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('ACH', 'Achat', 'compta_ach.inc.php', NULL, 
'Nouvel achat ou dépense', NULL, NULL, 'ME');
 INSERT INTO menu_ref VALUES ('CSV:AncBalGroup', 'Export Balance groupe 
analytique', NULL, NULL, NULL, NULL, NULL, 'PR');
 INSERT INTO menu_ref VALUES ('OTH:Bilan', 'Export Bilan', NULL, NULL, NULL, 
NULL, NULL, 'PR');
 INSERT INTO menu_ref VALUES ('PDF:ledger', 'Export Journaux', NULL, NULL, 
NULL, NULL, NULL, 'PR');
@@ -336,75 +336,21 @@
 INSERT INTO menu_ref VALUES ('PDF:postedetail', 'Export Poste détail', NULL, 
NULL, NULL, NULL, NULL, 'PR');
 INSERT INTO menu_ref VALUES ('CSV:fichedetail', 'Export Fiche détail', NULL, 
NULL, NULL, NULL, NULL, 'PR');
 INSERT INTO menu_ref VALUES ('CFGMENU', 'Config. Menu', 'menu.inc.php', NULL, 
NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('MODULARITY', 'Menu et profile', NULL, NULL, 
NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('CFGPROFILE', 'Profile', 'profile.inc.php', NULL, 
NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('SEARCH', 'Recherche', NULL, NULL, NULL, NULL, 
'popup_recherche()', 'ME');
+INSERT INTO menu_ref VALUES ('SEARCH', 'Recherche', NULL, NULL, 'Recherche', 
NULL, 'popup_recherche()', 'ME');
+INSERT INTO menu_ref VALUES ('DIVPARM', 'Divers', NULL, NULL, 'Paramètres 
divers', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('CFGTVA', 'TVA', 'tva.inc.php', NULL, 'Config. de 
la tva', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('CARD', 'Fiche', 'fiche.inc.php', NULL, 'Fiche', 
NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('STOCK', 'Stock', 'stock.inc.php', NULL, 'Stock', 
NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('MOD', 'Menu et profile', NULL, NULL, 'Menu ', 
NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('CFGPRO', 'Profile', 'profile.inc.php', NULL, 
'Configuration profile', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('CFGPAY', 'Moyen de paiement', 
'payment_middle.inc.php', NULL, 'Config. des méthodes de paiement', NULL, NULL, 
'ME');
+INSERT INTO menu_ref VALUES ('CFGACC', 'Poste', 'poste.inc.php', NULL, 
'Config. poste comptable de base', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('VEN', 'Vente', 'compta_ven.inc.php', NULL, 
'Nouvelle vente ou recette', NULL, NULL, 'ME');
 INSERT INTO menu_ref VALUES ('COMPANY', 'Sociétés', 'company.inc.php', NULL, 
'Parametre societe', NULL, NULL, 'ME');
 INSERT INTO menu_ref VALUES ('PERIODE', 'Période', 'periode.inc.php', NULL, 
'Gestion des périodes', NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('DIVPARM', 'Divers', NULL, NULL, NULL, NULL, 
NULL, 'ME');
-INSERT INTO menu_ref VALUES ('CFGPAYMENT', 'Moyen de paiement', 
'payment_middle.inc.php', NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('CFGTVA', 'TVA', 'tva.inc.php', NULL, NULL, NULL, 
NULL, 'ME');
-INSERT INTO menu_ref VALUES ('CFGACCOUNT', 'Poste', 'poste.inc.php', NULL, 
NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('CARD', 'Fiche', 'fiche.inc.php', NULL, NULL, 
NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('STOCK', 'Stock', 'stock.inc.php', NULL, NULL, 
NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('VEN', 'Vente', 'compta_ven.inc.php', NULL, NULL, 
NULL, NULL, 'ME');
 INSERT INTO menu_ref VALUES ('PDF:fichedetail', 'Export Fiche détail', NULL, 
NULL, NULL, NULL, NULL, 'PR');
 INSERT INTO menu_ref VALUES ('CSV:fiche_balance', 'Export Fiche balance', 
NULL, NULL, NULL, NULL, NULL, 'PR');
 INSERT INTO menu_ref VALUES ('ODSIMP', 'Historique opérations diverses', 
'history_operation.inc.php', NULL, NULL, 'ledger_type=ODS', NULL, 'ME');
-INSERT INTO menu_ref VALUES ('LET', 'Lettrage', 'letter.inc.php', NULL, NULL, 
NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('PREOD', 'Opérations prédéfinies', 
'preod.inc.php', NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('VERIFBIL', 'Vérification ', 
'verif_bilan.inc.php', NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('REPORT', 'Création de rapport', 
'report.inc.php', NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('OPEN', 'Ecriture Ouverture', 'opening.inc.php', 
NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('ACHIMP', 'Historique achat', 
'history_operation.inc.php', NULL, NULL, 'ledger_type=ACH', NULL, 'ME');
-INSERT INTO menu_ref VALUES ('SUPPL', 'Fournisseur', 'supplier.inc.php', NULL, 
NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('FOLLOW', 'Courrier', 'action.inc.php', NULL, 
NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('FORECAST', 'Prévision', 'forecast.inc.php', 
NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('LETTER', 'Lettrage', NULL, NULL, NULL, NULL, 
NULL, 'ME');
-INSERT INTO menu_ref VALUES ('CFGSECURITY', 'Sécurité', 'param_sec.inc.php', 
NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('LETTERCARD', 'Let. Fiche', 
'lettering.card.inc.php', NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('LETTERACC', 'Let. Poste', 
'lettering.account.inc.php', NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('PREDOP', 'Ecriture prédefinie', 'preod.inc.php', 
NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('ADV', 'Avancé', NULL, NULL, NULL, NULL, NULL, 
'ME');
-INSERT INTO menu_ref VALUES ('ANC', 'Compta Analytique', NULL, NULL, NULL, 
NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('CFGDOCUMENT', 'Document', 
'document_modele.inc.php', NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('DOCUMENT', 'Document', 
'document_modele.inc.php', NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('PLANANC', 'Plan Compt. analytique', 
'anc_pa.inc.php', NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('ANCODS', 'Opérations diverses', 
'anc_od.inc.php', NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('ANCGROUP', 'Groupe', 'anc_group.inc.php', NULL, 
NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('ANCIMP', 'Impression', 'anc_imp.inc.php', NULL, 
NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('VENMENU', 'Vente / Recette', NULL, NULL, NULL, 
NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('PREFERENCE', 'Préférence', 'pref.inc.php', NULL, 
NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('HIST', 'Historique', 
'history_operation.inc.php', NULL, NULL, 'ledger_type=ALL', NULL, 'ME');
-INSERT INTO menu_ref VALUES ('MENUFIN', 'Financier', NULL, NULL, NULL, NULL, 
NULL, 'ME');
-INSERT INTO menu_ref VALUES ('EXTENSION', 'Extension', 
'extension_choice.inc.php', NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('MENUACH', 'Achat', NULL, NULL, NULL, NULL, NULL, 
'ME');
-INSERT INTO menu_ref VALUES ('MENUODS', 'Opérations diverses', NULL, NULL, 
NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('ODS', 'Opérations Diverses', 
'compta_ods.inc.php', NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('FINIMP', 'Historique financier', 
'history_operation.inc.php', NULL, NULL, 'ledger_type=FIN', NULL, 'ME');
-INSERT INTO menu_ref VALUES ('ADM', 'Administration', 'adm.inc.php', NULL, 
NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('FIN', 'Nouvel extrait', 'compta_fin.inc.php', 
NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('FINSALDO', 'Soldes', 'compta_fin_saldo.inc.php', 
NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('FINREC', 'Rapprochement', 
'compta_fin_rec.inc.php', NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('JSSEARCH', 'Recherche', NULL, NULL, NULL, NULL, 
'search_reconcile()', 'ME');
-INSERT INTO menu_ref VALUES ('CFGLEDGER', 'journaux', 'cfgledger.inc.php', 
NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('CUSTDET', 'Fiche', 'detail_client.inc.php', 
NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('CUSTFOLLOW', 'Suivi', 'suivi_client.inc.php', 
NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('CUSTOP', 'Opération', 
'operation_client.inc.php', NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('CFGCARDCAT', 'Catégorie de fiche', 
'fiche_def.inc.php', NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('CARDBAL', 'Balance', 'balance_card.inc.php', 
NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('CUST', 'Client', 'client.inc.php', NULL, NULL, 
NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('CFGCATDOC', 'Catégorie de documents', 
'cat_document.inc.php', NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('VENIMP', 'Historique vente', 
'history_operation.inc.php', NULL, NULL, 'ledger_type=VEN', NULL, 'ME');
-INSERT INTO menu_ref VALUES ('CFGATTRIBCARD', 'Attribut de fiche', 
'card_attr.inc.php', NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('CFGPCMN', 'Plan Comptable', 
'param_pcmn.inc.php', NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('PARAM', 'Paramètre', NULL, NULL, NULL, NULL, 
NULL, 'ME');
-INSERT INTO menu_ref VALUES ('GESTION', 'Gestion', NULL, NULL, NULL, NULL, 
NULL, 'ME');
-INSERT INTO menu_ref VALUES ('CUSTCONTACT', 'Contact (à faire)', NULL, NULL, 
NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('CFGEXTENSION', 'Extension', 'extension.inc.php', 
NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('COMPTA', 'Comptabilité', NULL, NULL, NULL, NULL, 
NULL, 'ME');
-INSERT INTO menu_ref VALUES ('LOGOUT', 'Sortie', NULL, 'logout.php', NULL, 
NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('DASHBOARD', 'Tableau de bord', 
'dashboard.inc.php', NULL, NULL, NULL, NULL, 'ME');
 INSERT INTO menu_ref VALUES ('PDF:fiche_balance', 'Export Fiche balance', 
NULL, NULL, NULL, NULL, NULL, 'PR');
 INSERT INTO menu_ref VALUES ('CSV:report', 'Export report', NULL, NULL, NULL, 
NULL, NULL, 'PR');
 INSERT INTO menu_ref VALUES ('PDF:report', 'Export report', NULL, NULL, NULL, 
NULL, NULL, 'PR');
@@ -425,17 +371,63 @@
 INSERT INTO menu_ref VALUES ('CSV:AncTable', 'Export Tableau Analytique', 
NULL, NULL, NULL, NULL, NULL, 'PR');
 INSERT INTO menu_ref VALUES ('CSV:AncAccList', 'Export Historique Compt. 
Analytique', NULL, NULL, NULL, NULL, NULL, 'PR');
 INSERT INTO menu_ref VALUES ('new_line', NULL, NULL, NULL, 'Saut de ligne', 
NULL, NULL, 'SP');
-INSERT INTO menu_ref VALUES ('PRINTJRN', 'Historique', 'impress_jrn.inc.php', 
NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('PRINTREC', 'Rapprochement', 
'impress_rec.inc.php', NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('PRINTPOSTE', 'Poste', 'impress_poste.inc.php', 
NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('PRINTREPORT', 'Rapport', 
'impress_rapport.inc.php', NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('PRINTBILAN', 'Bilan', 'impress_bilan.inc.php', 
NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('PRINTGL', 'Grand Livre', 
'impress_gl_comptes.inc.php', NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('PRINTBAL', 'Balance', 'balance.inc.php', NULL, 
NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('PRINTCARD', 'Catégorie de Fiches', 
'impress_fiche.inc.php', NULL, NULL, NULL, NULL, 'ME');
-INSERT INTO menu_ref VALUES ('PRINT', 'Impression', NULL, NULL, NULL, NULL, 
NULL, 'ME');
+INSERT INTO menu_ref VALUES ('SUPPL', 'Fournisseur', 'supplier.inc.php', NULL, 
'Suivi fournisseur', NULL, NULL, 'ME');
 INSERT INTO menu_ref VALUES ('MODOP', 'Modification d''opérations', 
'modop/index.php', NULL, 'Modification opérations', 'plugin_code=MODOP', NULL, 
'PL');
-INSERT INTO menu_ref VALUES ('ACCESS', 'Accueil', NULL, 'user_login.php', 
NULL, NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('LET', 'Lettrage', NULL, NULL, 'Lettrage', NULL, 
NULL, 'ME');
+INSERT INTO menu_ref VALUES ('ANCODS', 'Opérations diverses', 
'anc_od.inc.php', NULL, 'OD analytique', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('VERIFBIL', 'Vérification ', 
'verif_bilan.inc.php', NULL, 'Vérification de la comptabilité', NULL, NULL, 
'ME');
+INSERT INTO menu_ref VALUES ('REPORT', 'Création de rapport', 
'report.inc.php', NULL, 'Création de rapport', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('OPEN', 'Ecriture Ouverture', 'opening.inc.php', 
NULL, 'Ecriture d''ouverture', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('ACHIMP', 'Historique achat', 
'history_operation.inc.php', NULL, 'Historique achat', 'ledger_type=ACH', NULL, 
'ME');
+INSERT INTO menu_ref VALUES ('FOLLOW', 'Courrier', 'action.inc.php', NULL, 
'Suivi, courrier, devis', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('FORECAST', 'Prévision', 'forecast.inc.php', 
NULL, 'Prévision', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('EXT', 'Extension', 'extension_choice.inc.php', 
NULL, 'Extensions (plugins)', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('CFGDOC', 'Document', 'document_modele.inc.php', 
NULL, 'Config. modèle de document', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('CFGLED', 'journaux', 'cfgledger.inc.php', NULL, 
'Configuration des journaux', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('PREDOP', 'Ecriture prédefinie', 'preod.inc.php', 
NULL, 'Gestion des opérations prédéfinifies', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('ADV', 'Avancé', NULL, NULL, 'Menu avancé', NULL, 
NULL, 'ME');
+INSERT INTO menu_ref VALUES ('ANC', 'Compta Analytique', NULL, NULL, 'Module 
comptabilité analytique', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('CFGSEC', 'Sécurité', 'param_sec.inc.php', NULL, 
'configuration de la sécurité', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('PLANANC', 'Plan Compt. analytique', 
'anc_pa.inc.php', NULL, 'Plan analytique', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('ANCGROUP', 'Groupe', 'anc_group.inc.php', NULL, 
'Groupe analytique', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('ANCIMP', 'Impression', 'anc_imp.inc.php', NULL, 
'Impression compta. analytique', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('VENMENU', 'Vente / Recette', NULL, NULL, 'Menu 
ventes et recettes', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('PREFERENCE', 'Préférence', 'pref.inc.php', NULL, 
'Préférence', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('HIST', 'Historique', 
'history_operation.inc.php', NULL, 'Historique', 'ledger_type=ALL', NULL, 'ME');
+INSERT INTO menu_ref VALUES ('MENUFIN', 'Financier', NULL, NULL, 'Menu 
Financier', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('FIMP', 'Historique financier', 
'history_operation.inc.php', NULL, 'Historique financier', 'ledger_type=FIN', 
NULL, 'ME');
+INSERT INTO menu_ref VALUES ('MENUACH', 'Achat', NULL, NULL, 'Menu achat', 
NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('MENUODS', 'Opérations diverses', NULL, NULL, 
'Menu opérations diverses', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('ODS', 'Opérations Diverses', 
'compta_ods.inc.php', NULL, 'Nouvelle opérations diverses', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('FREC', 'Rapprochement', 
'compta_fin_rec.inc.php', NULL, 'Rapprochement bancaire', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('ADM', 'Administration', 'adm.inc.php', NULL, 
'Suivi administration, banque', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('FIN', 'Nouvel extrait', 'compta_fin.inc.php', 
NULL, 'Nouvel extrait bancaire', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('CFGATCARD', 'Attribut de fiche', 
'card_attr.inc.php', NULL, 'Gestion des modèles de fiches', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('FSALDO', 'Soldes', 'compta_fin_saldo.inc.php', 
NULL, 'Solde des comptes en banques, caisse...', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('JSSEARCH', 'Recherche', NULL, NULL, 'Recherche', 
NULL, 'search_reconcile()', 'ME');
+INSERT INTO menu_ref VALUES ('LETACC', 'Lettrage par Poste', 
'lettering.account.inc.php', NULL, 'lettrage par poste comptable', NULL, NULL, 
'ME');
+INSERT INTO menu_ref VALUES ('CARDBAL', 'Balance', 'balance_card.inc.php', 
NULL, 'Balance par catégorie de fiche', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('CUST', 'Client', 'client.inc.php', NULL, 'Suivi 
client', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('CFGCARDCAT', 'Catégorie de fiche', 
'fiche_def.inc.php', NULL, 'Gestion catégorie de fiche', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('CFGCATDOC', 'Catégorie de documents', 
'cat_document.inc.php', NULL, 'Config. catégorie de documents', NULL, NULL, 
'ME');
+INSERT INTO menu_ref VALUES ('VENIMP', 'Historique vente', 
'history_operation.inc.php', NULL, 'Historique des ventes', 'ledger_type=VEN', 
NULL, 'ME');
+INSERT INTO menu_ref VALUES ('LETCARD', 'Lettrage par Fiche', 
'lettering.card.inc.php', NULL, 'Lettrage par fiche', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('CFGPCMN', 'Plan Comptable', 
'param_pcmn.inc.php', NULL, 'Config. du plan comptable', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('LOGOUT', 'Sortie', NULL, 'logout.php', 'Sortie', 
NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('DASHBOARD', 'Tableau de bord', 
'dashboard.inc.php', NULL, 'Tableau de bord', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('COMPTA', 'Comptabilité', NULL, NULL, 'Module 
comptabilité', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('GESTION', 'Gestion', NULL, NULL, 'Module 
gestion', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('PARAM', 'Paramètre', NULL, NULL, 'Module 
paramètre', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('PRINTJRN', 'Historique', 'impress_jrn.inc.php', 
NULL, 'Impression historique', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('PRINTREC', 'Rapprochement', 
'impress_rec.inc.php', NULL, 'Impression des rapprochements', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('PRINTPOSTE', 'Poste', 'impress_poste.inc.php', 
NULL, 'Impression du détail d''un poste comptable', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('PRINTREPORT', 'Rapport', 
'impress_rapport.inc.php', NULL, 'Impression de rapport', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('PRINTBILAN', 'Bilan', 'impress_bilan.inc.php', 
NULL, 'Impression de bilan', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('PRINTGL', 'Grand Livre', 
'impress_gl_comptes.inc.php', NULL, 'Impression du grand livre', NULL, NULL, 
'ME');
+INSERT INTO menu_ref VALUES ('PRINTBAL', 'Balance', 'balance.inc.php', NULL, 
'Impression des balances comptables', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('PRINTCARD', 'Catégorie de Fiches', 
'impress_fiche.inc.php', NULL, 'Impression catégorie de fiches', NULL, NULL, 
'ME');
+INSERT INTO menu_ref VALUES ('PRINT', 'Impression', NULL, NULL, 'Menu 
impression', NULL, NULL, 'ME');
+INSERT INTO menu_ref VALUES ('ACCESS', 'Accueil', NULL, 'user_login.php', 
'Accueil', NULL, NULL, 'ME');
 
 
 --
@@ -450,28 +442,42 @@
 -- Data for Name: profile_menu; Type: TABLE DATA; Schema: public; Owner: -
 --
 
-INSERT INTO profile_menu VALUES (648, 'MODOP', 'EXTENSION', 1, 10, 'E', 0);
+INSERT INTO profile_menu VALUES (178, 'CFGPAY', 'DIVPARM', 6, 4, 'E', 0);
+INSERT INTO profile_menu VALUES (59, 'CFGPAY', 'DIVPARM', 1, 4, 'E', 0);
+INSERT INTO profile_menu VALUES (194, 'LET', 'COMPTA', 6, 8, 'E', 0);
+INSERT INTO profile_menu VALUES (237, 'EXT', NULL, 6, 55, 'M', 0);
+INSERT INTO profile_menu VALUES (240, 'FIMP', 'MENUFIN', 6, 2, 'E', 0);
+INSERT INTO profile_menu VALUES (214, 'FREC', 'MENUFIN', 6, 4, 'E', 0);
 INSERT INTO profile_menu VALUES (175, 'COMPTA', NULL, 6, 40, 'M', NULL);
+INSERT INTO profile_menu VALUES (213, 'FSALDO', 'MENUFIN', 6, 3, 'E', 0);
+INSERT INTO profile_menu VALUES (182, 'CFGATCARD', 'DIVPARM', 6, 9, 'E', 0);
+INSERT INTO profile_menu VALUES (68, 'CFGATCARD', 'DIVPARM', 1, 9, 'E', 0);
+INSERT INTO profile_menu VALUES (180, 'CFGACC', 'DIVPARM', 6, 6, 'E', 0);
+INSERT INTO profile_menu VALUES (61, 'CFGACC', 'DIVPARM', 1, 6, 'E', 0);
+INSERT INTO profile_menu VALUES (198, 'LETACC', 'LET', 6, 2, 'E', 0);
+INSERT INTO profile_menu VALUES (197, 'LETCARD', 'LET', 6, 1, 'E', 0);
+INSERT INTO profile_menu VALUES (225, 'TVA', 'EXT', 6, NULL, 'S', 0);
+INSERT INTO profile_menu VALUES (241, 'IMPCARD', 'EXT', 6, NULL, 'S', 0);
+INSERT INTO profile_menu VALUES (242, 'AMORTIS', 'EXT', 6, NULL, 'S', 0);
+INSERT INTO profile_menu VALUES (243, 'TOOLPLAN', 'EXT', 6, NULL, 'S', 0);
+INSERT INTO profile_menu VALUES (254, 'IMPORTBANK', 'EXT', 6, NULL, 'S', 0);
+INSERT INTO profile_menu VALUES (255, 'TOOL', 'EXT', 6, NULL, 'S', 0);
+INSERT INTO profile_menu VALUES (648, 'MODOP', 'EXT', 1, 10, 'E', 0);
 INSERT INTO profile_menu VALUES (54, 'COMPANY', 'PARAM', 1, 1, 'E', 0);
-INSERT INTO profile_menu VALUES (178, 'CFGPAYMENT', 'DIVPARM', 6, 4, 'E', 0);
 INSERT INTO profile_menu VALUES (179, 'CFGTVA', 'DIVPARM', 6, 5, 'E', 0);
-INSERT INTO profile_menu VALUES (180, 'CFGACCOUNT', 'DIVPARM', 6, 6, 'E', 0);
 INSERT INTO profile_menu VALUES (181, 'CFGCATDOC', 'DIVPARM', 6, 8, 'E', 0);
-INSERT INTO profile_menu VALUES (182, 'CFGATTRIBCARD', 'DIVPARM', 6, 9, 'E', 
0);
+INSERT INTO profile_menu VALUES (258, 'CFGMENU', 'MOD', 6, NULL, 'E', 0);
+INSERT INTO profile_menu VALUES (259, 'CFGPRO', 'MOD', 6, NULL, 'E', 0);
 INSERT INTO profile_menu VALUES (173, 'COMPTA', NULL, 1, 40, 'M', 0);
 INSERT INTO profile_menu VALUES (55, 'PERIODE', 'PARAM', 1, 2, 'E', 0);
 INSERT INTO profile_menu VALUES (56, 'DIVPARM', 'PARAM', 1, 3, 'E', 0);
-INSERT INTO profile_menu VALUES (59, 'CFGPAYMENT', 'DIVPARM', 1, 4, 'E', 0);
 INSERT INTO profile_menu VALUES (189, 'PLANANC', 'ANC', 6, 1, 'E', 0);
 INSERT INTO profile_menu VALUES (190, 'CFGCARDCAT', 'DIVPARM', 6, 7, 'E', 0);
 INSERT INTO profile_menu VALUES (191, 'ANCODS', 'ANC', 6, 2, 'E', 0);
 INSERT INTO profile_menu VALUES (192, 'ANCGROUP', 'ANC', 6, 3, 'E', 0);
 INSERT INTO profile_menu VALUES (193, 'ANCIMP', 'ANC', 6, 4, 'E', 0);
-INSERT INTO profile_menu VALUES (194, 'LETTER', 'COMPTA', 6, 8, 'E', 0);
 INSERT INTO profile_menu VALUES (60, 'CFGTVA', 'DIVPARM', 1, 5, 'E', 0);
 INSERT INTO profile_menu VALUES (196, 'PREFERENCE', NULL, 6, 15, 'M', 1);
-INSERT INTO profile_menu VALUES (197, 'LETTERCARD', 'LETTER', 6, 1, 'E', 0);
-INSERT INTO profile_menu VALUES (198, 'LETTERACC', 'LETTER', 6, 2, 'E', 0);
 INSERT INTO profile_menu VALUES (199, 'CUST', 'GESTION', 6, 1, 'E', 0);
 INSERT INTO profile_menu VALUES (200, 'SUPPL', 'GESTION', 6, 2, 'E', 0);
 INSERT INTO profile_menu VALUES (201, 'ADM', 'GESTION', 6, 3, 'E', 0);
@@ -486,8 +492,6 @@
 INSERT INTO profile_menu VALUES (210, 'REPORT', 'ADV', 6, 25, 'E', 0);
 INSERT INTO profile_menu VALUES (211, 'CARD', 'COMPTA', 6, 7, 'E', 0);
 INSERT INTO profile_menu VALUES (212, 'HIST', 'COMPTA', 6, 1, 'E', 0);
-INSERT INTO profile_menu VALUES (213, 'FINSALDO', 'MENUFIN', 6, 3, 'E', 0);
-INSERT INTO profile_menu VALUES (214, 'FINREC', 'MENUFIN', 6, 4, 'E', 0);
 INSERT INTO profile_menu VALUES (215, 'ADV', 'COMPTA', 6, 20, 'E', 0);
 INSERT INTO profile_menu VALUES (216, 'ACCESS', NULL, 6, 25, 'M', 0);
 INSERT INTO profile_menu VALUES (217, 'CSV:histo', NULL, 6, NULL, 'P', 0);
@@ -498,7 +502,6 @@
 INSERT INTO profile_menu VALUES (222, 'PDF:ledger', NULL, 6, NULL, 'P', 0);
 INSERT INTO profile_menu VALUES (223, 'PRINT', 'COMPTA', 6, 6, 'E', 0);
 INSERT INTO profile_menu VALUES (224, 'CSV:postedetail', NULL, 6, NULL, 'P', 
0);
-INSERT INTO profile_menu VALUES (225, 'TVA', 'EXTENSION', 6, NULL, 'S', 0);
 INSERT INTO profile_menu VALUES (226, 'MENUACH', 'COMPTA', 6, 3, 'E', 0);
 INSERT INTO profile_menu VALUES (227, 'ACHIMP', 'MENUACH', 6, 2, 'E', 0);
 INSERT INTO profile_menu VALUES (228, 'GESTION', NULL, 6, 45, 'M', 0);
@@ -506,32 +509,20 @@
 INSERT INTO profile_menu VALUES (230, 'ODS', 'MENUODS', 6, 1, 'E', 0);
 INSERT INTO profile_menu VALUES (231, 'ODSIMP', 'MENUODS', 6, 2, 'E', 0);
 INSERT INTO profile_menu VALUES (232, 'ANC', NULL, 6, 50, 'M', 0);
-INSERT INTO profile_menu VALUES (61, 'CFGACCOUNT', 'DIVPARM', 1, 6, 'E', 0);
 INSERT INTO profile_menu VALUES (234, 'VENMENU', 'COMPTA', 6, 2, 'E', 0);
 INSERT INTO profile_menu VALUES (235, 'VEN', 'VENMENU', 6, 1, 'E', 0);
 INSERT INTO profile_menu VALUES (236, 'VENIMP', 'VENMENU', 6, 2, 'E', 0);
-INSERT INTO profile_menu VALUES (237, 'EXTENSION', NULL, 6, 55, 'M', 0);
 INSERT INTO profile_menu VALUES (238, 'FIN', 'MENUFIN', 6, 1, 'E', 0);
 INSERT INTO profile_menu VALUES (239, 'MENUFIN', 'COMPTA', 6, 4, 'E', 0);
-INSERT INTO profile_menu VALUES (240, 'FINIMP', 'MENUFIN', 6, 2, 'E', 0);
-INSERT INTO profile_menu VALUES (241, 'IMPCARD', 'EXTENSION', 6, NULL, 'S', 0);
-INSERT INTO profile_menu VALUES (242, 'AMORTIS', 'EXTENSION', 6, NULL, 'S', 0);
-INSERT INTO profile_menu VALUES (243, 'TOOLPLAN', 'EXTENSION', 6, NULL, 'S', 
0);
 INSERT INTO profile_menu VALUES (244, 'SEARCH', NULL, 6, 60, 'M', 0);
 INSERT INTO profile_menu VALUES (245, 'ACH', 'MENUACH', 6, 1, 'E', 0);
-INSERT INTO profile_menu VALUES (254, 'IMPORTBANK', 'EXTENSION', 6, NULL, 'S', 
0);
-INSERT INTO profile_menu VALUES (255, 'TOOL', 'EXTENSION', 6, NULL, 'S', 0);
 INSERT INTO profile_menu VALUES (256, 'AMORTIS', 'MENUACH', 6, 10, 'E', 0);
 INSERT INTO profile_menu VALUES (67, 'CFGCATDOC', 'DIVPARM', 1, 8, 'E', 0);
-INSERT INTO profile_menu VALUES (258, 'CFGMENU', 'MODULARITY', 6, NULL, 'E', 
0);
-INSERT INTO profile_menu VALUES (259, 'CFGPROFILE', 'MODULARITY', 6, NULL, 
'E', 0);
 INSERT INTO profile_menu VALUES (260, 'PDF:postedetail', NULL, 6, NULL, 'P', 
0);
-INSERT INTO profile_menu VALUES (68, 'CFGATTRIBCARD', 'DIVPARM', 1, 9, 'E', 0);
 INSERT INTO profile_menu VALUES (261, 'CSV:fichedetail', NULL, 6, NULL, 'P', 
0);
 INSERT INTO profile_menu VALUES (262, 'PDF:fichedetail', NULL, 6, NULL, 'P', 
0);
 INSERT INTO profile_menu VALUES (69, 'CFGPCMN', 'PARAM', 1, 4, 'E', 0);
 INSERT INTO profile_menu VALUES (263, 'CSV:fiche_balance', NULL, 6, NULL, 'P', 
0);
-INSERT INTO profile_menu VALUES (70, 'CFGEXTENSION', 'PARAM', 1, 5, 'E', 0);
 INSERT INTO profile_menu VALUES (264, 'PDF:fiche_balance', NULL, 6, NULL, 'P', 
0);
 INSERT INTO profile_menu VALUES (265, 'CSV:report', NULL, 6, NULL, 'P', 0);
 INSERT INTO profile_menu VALUES (266, 'PDF:report', NULL, 6, NULL, 'P', 0);
@@ -552,25 +543,20 @@
 INSERT INTO profile_menu VALUES (280, 'CSV:AncAccList', NULL, 6, NULL, 'P', 0);
 INSERT INTO profile_menu VALUES (281, 'CSV:AncBalGroup', NULL, 6, NULL, 'P', 
0);
 INSERT INTO profile_menu VALUES (282, 'OTH:Bilan', NULL, 6, NULL, 'P', 0);
-INSERT INTO profile_menu VALUES (71, 'CFGSECURITY', 'PARAM', 1, 6, 'E', 0);
+INSERT INTO profile_menu VALUES (23, 'LET', 'COMPTA', 1, 8, 'E', 0);
 INSERT INTO profile_menu VALUES (523, 'PRINTBAL', 'PRINT', 1, 50, 'E', 0);
 INSERT INTO profile_menu VALUES (529, 'PRINTREPORT', 'PRINT', 1, 85, 'E', 0);
 INSERT INTO profile_menu VALUES (72, 'PREDOP', 'PARAM', 1, 7, 'E', 0);
-INSERT INTO profile_menu VALUES (73, 'CFGDOCUMENT', 'PARAM', 1, 8, 'E', 0);
-INSERT INTO profile_menu VALUES (74, 'CFGLEDGER', 'PARAM', 1, 9, 'E', 0);
 INSERT INTO profile_menu VALUES (75, 'PLANANC', 'ANC', 1, 1, 'E', 0);
 INSERT INTO profile_menu VALUES (65, 'CFGCARDCAT', 'DIVPARM', 1, 7, 'E', 0);
 INSERT INTO profile_menu VALUES (76, 'ANCODS', 'ANC', 1, 2, 'E', 0);
 INSERT INTO profile_menu VALUES (77, 'ANCGROUP', 'ANC', 1, 3, 'E', 0);
 INSERT INTO profile_menu VALUES (78, 'ANCIMP', 'ANC', 1, 4, 'E', 0);
-INSERT INTO profile_menu VALUES (23, 'LETTER', 'COMPTA', 1, 8, 'E', 0);
 INSERT INTO profile_menu VALUES (45, 'PARAM', NULL, 1, 20, 'M', 0);
 INSERT INTO profile_menu VALUES (527, 'PRINTJRN', 'PRINT', 1, 10, 'E', 0);
 INSERT INTO profile_menu VALUES (530, 'PRINTREC', 'PRINT', 1, 100, 'E', 0);
 INSERT INTO profile_menu VALUES (524, 'PRINTBILAN', 'PRINT', 1, 90, 'E', 0);
 INSERT INTO profile_menu VALUES (79, 'PREFERENCE', NULL, 1, 15, 'M', 0);
-INSERT INTO profile_menu VALUES (24, 'LETTERCARD', 'LETTER', 1, 1, 'E', 0);
-INSERT INTO profile_menu VALUES (27, 'LETTERACC', 'LETTER', 1, 2, 'E', 0);
 INSERT INTO profile_menu VALUES (37, 'CUST', 'GESTION', 1, 1, 'E', 0);
 INSERT INTO profile_menu VALUES (38, 'SUPPL', 'GESTION', 1, 2, 'E', 0);
 INSERT INTO profile_menu VALUES (39, 'ADM', 'GESTION', 1, 3, 'E', 0);
@@ -585,8 +571,6 @@
 INSERT INTO profile_menu VALUES (33, 'REPORT', 'ADV', 1, 25, 'E', 0);
 INSERT INTO profile_menu VALUES (5, 'CARD', 'COMPTA', 1, 7, 'E', 0);
 INSERT INTO profile_menu VALUES (43, 'HIST', 'COMPTA', 1, 1, 'E', 0);
-INSERT INTO profile_menu VALUES (94, 'FINSALDO', 'MENUFIN', 1, 3, 'E', 0);
-INSERT INTO profile_menu VALUES (95, 'FINREC', 'MENUFIN', 1, 4, 'E', 0);
 INSERT INTO profile_menu VALUES (28, 'ADV', 'COMPTA', 1, 20, 'E', 0);
 INSERT INTO profile_menu VALUES (53, 'ACCESS', NULL, 1, 25, 'M', 0);
 INSERT INTO profile_menu VALUES (123, 'CSV:histo', NULL, 1, NULL, 'P', 0);
@@ -597,7 +581,6 @@
 INSERT INTO profile_menu VALUES (125, 'PDF:ledger', NULL, 1, NULL, 'P', 0);
 INSERT INTO profile_menu VALUES (6, 'PRINT', 'COMPTA', 1, 6, 'E', 0);
 INSERT INTO profile_menu VALUES (126, 'CSV:postedetail', NULL, 1, NULL, 'P', 
0);
-INSERT INTO profile_menu VALUES (164, 'TVA', 'EXTENSION', 1, NULL, 'S', 0);
 INSERT INTO profile_menu VALUES (3, 'MENUACH', 'COMPTA', 1, 3, 'E', 0);
 INSERT INTO profile_menu VALUES (86, 'ACHIMP', 'MENUACH', 1, 2, 'E', 0);
 INSERT INTO profile_menu VALUES (34, 'GESTION', NULL, 1, 45, 'M', 0);
@@ -608,21 +591,22 @@
 INSERT INTO profile_menu VALUES (4, 'VENMENU', 'COMPTA', 1, 2, 'E', 0);
 INSERT INTO profile_menu VALUES (90, 'VEN', 'VENMENU', 1, 1, 'E', 0);
 INSERT INTO profile_menu VALUES (91, 'VENIMP', 'VENMENU', 1, 2, 'E', 0);
-INSERT INTO profile_menu VALUES (82, 'EXTENSION', NULL, 1, 55, 'M', 0);
 INSERT INTO profile_menu VALUES (19, 'FIN', 'MENUFIN', 1, 1, 'E', 0);
+INSERT INTO profile_menu VALUES (73, 'CFGDOC', 'PARAM', 1, 8, 'E', 0);
+INSERT INTO profile_menu VALUES (74, 'CFGLED', 'PARAM', 1, 9, 'E', 0);
+INSERT INTO profile_menu VALUES (71, 'CFGSEC', 'PARAM', 1, 6, 'E', 0);
+INSERT INTO profile_menu VALUES (82, 'EXT', NULL, 1, 55, 'M', 0);
+INSERT INTO profile_menu VALUES (95, 'FREC', 'MENUFIN', 1, 4, 'E', 0);
+INSERT INTO profile_menu VALUES (94, 'FSALDO', 'MENUFIN', 1, 3, 'E', 0);
+INSERT INTO profile_menu VALUES (27, 'LETACC', 'LET', 1, 2, 'E', 0);
+INSERT INTO profile_menu VALUES (24, 'LETCARD', 'LET', 1, 1, 'E', 0);
+INSERT INTO profile_menu VALUES (164, 'TVA', 'EXT', 1, NULL, 'S', 0);
+INSERT INTO profile_menu VALUES (167, 'MOD', 'PARAM', 1, 1, 'E', 0);
 INSERT INTO profile_menu VALUES (92, 'MENUFIN', 'COMPTA', 1, 4, 'E', 0);
-INSERT INTO profile_menu VALUES (93, 'FINIMP', 'MENUFIN', 1, 2, 'E', 0);
-INSERT INTO profile_menu VALUES (159, 'IMPCARD', 'EXTENSION', 1, NULL, 'S', 0);
-INSERT INTO profile_menu VALUES (160, 'AMORTIS', 'EXTENSION', 1, NULL, 'S', 0);
-INSERT INTO profile_menu VALUES (161, 'TOOLPLAN', 'EXTENSION', 1, NULL, 'S', 
0);
+INSERT INTO profile_menu VALUES (93, 'FIMP', 'MENUFIN', 1, 2, 'E', 0);
 INSERT INTO profile_menu VALUES (151, 'SEARCH', NULL, 1, 60, 'M', 0);
 INSERT INTO profile_menu VALUES (85, 'ACH', 'MENUACH', 1, 1, 'E', 0);
-INSERT INTO profile_menu VALUES (162, 'IMPORTBANK', 'EXTENSION', 1, NULL, 'S', 
0);
-INSERT INTO profile_menu VALUES (163, 'TOOL', 'EXTENSION', 1, NULL, 'S', 0);
 INSERT INTO profile_menu VALUES (157, 'AMORTIS', 'MENUACH', 1, 10, 'E', 0);
-INSERT INTO profile_menu VALUES (167, 'MODULARITY', 'PARAM', 1, 1, 'E', 0);
-INSERT INTO profile_menu VALUES (171, 'CFGMENU', 'MODULARITY', 1, NULL, 'E', 
0);
-INSERT INTO profile_menu VALUES (172, 'CFGPROFILE', 'MODULARITY', 1, NULL, 
'E', 0);
 INSERT INTO profile_menu VALUES (127, 'PDF:postedetail', NULL, 1, NULL, 'P', 
0);
 INSERT INTO profile_menu VALUES (128, 'CSV:fichedetail', NULL, 1, NULL, 'P', 
0);
 INSERT INTO profile_menu VALUES (129, 'PDF:fichedetail', NULL, 1, NULL, 'P', 
0);
@@ -648,7 +632,14 @@
 INSERT INTO profile_menu VALUES (149, 'OTH:Bilan', NULL, 1, NULL, 'P', 0);
 INSERT INTO profile_menu VALUES (528, 'PRINTPOSTE', 'PRINT', 1, 30, 'E', 0);
 INSERT INTO profile_menu VALUES (525, 'PRINTCARD', 'PRINT', 1, 40, 'E', 0);
+INSERT INTO profile_menu VALUES (160, 'AMORTIS', 'EXT', 1, NULL, 'S', 0);
 INSERT INTO profile_menu VALUES (1, 'DASHBOARD', NULL, 1, 10, 'M', 1);
+INSERT INTO profile_menu VALUES (163, 'TOOL', 'EXT', 1, NULL, 'S', 0);
+INSERT INTO profile_menu VALUES (162, 'IMPORTBANK', 'EXT', 1, NULL, 'S', 0);
+INSERT INTO profile_menu VALUES (161, 'TOOLPLAN', 'EXT', 1, NULL, 'S', 0);
+INSERT INTO profile_menu VALUES (159, 'IMPCARD', 'EXT', 1, NULL, 'S', 0);
+INSERT INTO profile_menu VALUES (172, 'CFGPRO', 'MOD', 1, NULL, 'E', 0);
+INSERT INTO profile_menu VALUES (171, 'CFGMENU', 'MOD', 1, NULL, 'E', 0);
 
 
 --

Modified: phpcompta/trunk/sql/upgrade.sql
===================================================================
--- phpcompta/trunk/sql/upgrade.sql     2011-11-15 20:55:45 UTC (rev 4364)
+++ phpcompta/trunk/sql/upgrade.sql     2011-11-15 23:20:54 UTC (rev 4365)
@@ -9,6 +9,7 @@
 delete from action where ac_id not in (800,805,910);
 insert into action (ac_id,ac_description, ac_module, ac_code) 
values(1020,'Effacer les documents du suivi','followup','RMDOC');
 insert into action (ac_id,ac_description, ac_module, ac_code) 
values(1010,'Voir les documents du suivi','followup','VIEWDOC');
+insert into action (ac_id,ac_description, ac_module, ac_code) 
values(1050,'Modifier le type de document','followup','PARCATDOC');
 /*
 script SQL to run
 */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]