-
-
-// charge tous les styles
-$res=ExecSql($Rep,"select the_name from theme
- order by the_name");
-for ($i=0;$i < pg_NumRows($res);$i++){
- $st=pg_fetch_array($res,$i);
- $style[]=$st['the_name'];
-}
-// Formatte le display
-$disp_style="";
-?>
-
Thème
-
-
-
-
-// Si utilise un dossier alors propose de changer
-// la periode par defaut
-if ( isset ($_SESSION['g_dossier']) ) {
-
- include_once("preference.php");
-
-
- if ( isset ($_POST["sub_periode"] ) ) {
- $periode=$_POST["periode"];
- $User->SetPeriode($periode);
- // SetUserPeriode($cn,$periode,$_SESSION['g_user']);
- }
-
- $l_user_per=$User->GetPeriode();
- $l_form_per=FormPeriode($cn,$l_user_per);
-
-?>
-
Période
-
-
-
Taille des pages
-
-
-
-
-}
-
-echo "
";
+require_once("pref.inc.php");
html_page_stop();
?>
diff --git a/include/pref.inc.php b/include/pref.inc.php
new file mode 100644
index 000000000..0a5af570b
--- /dev/null
+++ b/include/pref.inc.php
@@ -0,0 +1,141 @@
+
+/*
+ * 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 ddebontridder@yahoo.fr
+
+echo '
+
+
+
+$Rep=DbConnect();
+
+// charge tous les styles
+$res=ExecSql($Rep,"select the_name from theme
+ order by the_name");
+for ($i=0;$i < pg_NumRows($res);$i++){
+ $st=pg_fetch_array($res,$i);
+ $style[]=$st['the_name'];
+}
+// Formatte le display
+$disp_style="";
+?>
+
Thème
+
+
+
+
+// Si utilise un dossier alors propose de changer
+// la periode par defaut
+if ( isset ($_SESSION['g_dossier']) ) {
+
+ include_once("preference.php");
+
+
+ if ( isset ($_POST["sub_periode"] ) ) {
+ $periode=$_POST["periode"];
+ $User->SetPeriode($periode);
+ // SetUserPeriode($cn,$periode,$_SESSION['g_user']);
+ }
+
+ $l_user_per=$User->GetPeriode();
+ $l_form_per=FormPeriode($cn,$l_user_per);
+
+?>
+
Période
+
+
+
Taille des pages
+
+
+
+
+}
+
+echo "
";
+?>
\ No newline at end of file
diff --git a/include/user_common.php b/include/user_common.php
index 8a3593ce5..4ee0297f3 100644
--- a/include/user_common.php
+++ b/include/user_common.php
@@ -174,7 +174,7 @@ function ComputeVat($p_cn, $p_fiche,$p_quant,$p_price,$p_vat )
echo_debug('user_common',__LINE__,"ComputeVat tva id = $tva_id");
if ( $tva_id == null ) return -1;
- // for each fiche find the tva_rate and tva_id
+ // find the tva_rate and tva_id
$a_vat=GetTvaRate($p_cn,$tva_id);
$vat_amount=null;
// Get the attribut price of the card(fiche)
@@ -825,7 +825,7 @@ function isValid ($p_cn,$p_grpt_id) {
* Create a navigation_bar (pagesize)
*
* parm :
- * - p_current first record number
+ * - p_offset first record number
* - p_line total of returned row
* - p_size current g_pagesize
* - p_page number of the page
diff --git a/include/user_menu.php b/include/user_menu.php
index 8f7a74340..0ba0af122 100644
--- a/include/user_menu.php
+++ b/include/user_menu.php
@@ -633,6 +633,7 @@ function ShowMenuParam($p_action="")
array('parametre.php?p_action=company','Sociétés'),
array('parametre.php?p_action=devise','Devises'),
array('parametre.php?p_action=periode','Période'),
+ array('parametre.php?p_action=tva','Tva'),
array('user_sec.php','Sécurité'),
array('parametre.php?p_action=invoice','Facture'),
array('login.php','Accueil',"Accueil"),