From 04f184d04295cadc95b0190f0c2abfe6389ae563 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 11 Jun 2005 11:11:17 +0000 Subject: [PATCH] =?UTF-8?q?Look:=20Modif=20esth=E9tiques=20mineures?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/admin/compta.php | 39 +++++++---------- htdocs/admin/facture.php | 21 +++++---- htdocs/admin/propale.php | 82 ++++++++++++++++------------------- htdocs/admin/system/index.php | 19 ++++---- htdocs/admin/system/os.php | 9 +++- htdocs/admin/system/web.php | 16 ++++--- htdocs/comm/action/fiche.php | 65 ++++++++++++++------------- 7 files changed, 123 insertions(+), 128 deletions(-) diff --git a/htdocs/admin/compta.php b/htdocs/admin/compta.php index 8cc84cf315d..c6c0a827237 100644 --- a/htdocs/admin/compta.php +++ b/htdocs/admin/compta.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004 Laurent Destailleur +/* Copyright (C) 2004 Rodolphe Quiedeville + * Copyright (C) 2004-2005 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,7 +20,7 @@ * $Source$ */ -/*! +/** \file htdocs/admin/compta.php \ingroup comptabilite \brief Page de configuration du module comptabilité @@ -70,12 +70,12 @@ if ($_GET["action"] == 'delete') } - print_titre($langs->trans("ComptaSetup")); + print "
"; -print ''; +print '
'; // Cas du paramètre COMPTA_MODE print ''; @@ -84,9 +84,9 @@ print ''; print ''; print ''; print "\n"; -print ""; +print ""; print "\n"; -print ""; +print ""; print "\n"; print ""; @@ -95,16 +95,18 @@ print "
'.$langs->trans("OptionMode").''.$langs->trans("Description").'
".$langs->trans("OptionModeTrue")."
".$langs->trans("OptionModeTrue")."".nl2br($langs->trans("OptionModeTrueDesc"))."
".$langs->trans("OptionModeVirtual")."
".$langs->trans("OptionModeVirtual")."".$langs->trans("OptionModeVirtualDesc")."
\n"; print "
\n"; // Cas des autres paramètres COMPTA_* -$sql = "SELECT rowid, name, value, type, note FROM llx_const WHERE name like 'COMPTA_%' and name not in ('COMPTA_MODE')"; +$sql ="SELECT rowid, name, value, type, note"; +$sql.=" FROM llx_const"; +$sql.=" WHERE name like 'COMPTA_%' and name not in ('COMPTA_MODE')"; $result = $db->query($sql); if ($result) { - $num = $db->num_rows(); + $num = $db->num_rows($result); $i = 0; - $var=True; + $var=true; if ($num) { - print ''; + print '
'; print ''; print ''; print ''; @@ -163,20 +165,9 @@ if ($result) } - +$db->close(); +llxFooter('$Date$ - $Revision$'); - - - - - - - - - - - -llxFooter("Dernière modification $Date$ révision $Revision$"); ?> diff --git a/htdocs/admin/facture.php b/htdocs/admin/facture.php index c28bbe180b3..66beaa77a5f 100644 --- a/htdocs/admin/facture.php +++ b/htdocs/admin/facture.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004 Laurent Destailleur + * Copyright (C) 2004-2005 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -92,7 +92,7 @@ if ($_GET["action"] == 'delete') $dir = "../includes/modules/facture/"; -llxHeader('','Fiche commande','FactureConfiguration'); +llxHeader('',$langs->trans("BillsSetup"),'FactureConfiguration'); print_titre($langs->trans("BillsSetup")); @@ -101,7 +101,7 @@ print_titre($langs->trans("BillsSetup")); * Module numérotation */ print "
"; -print_titre("Module de numérotation des factures"); +print_titre($langs->trans("BillsNumberingModule")); print '
'.$langs->trans("OtherOptions").'  '.$langs->trans("Description").' 
'; print ''; @@ -161,7 +161,7 @@ closedir($handle); print '
'; print "
"; -print_titre("Date des factures"); +print_titre($langs->trans("BillsDate")); print ''; print ''; @@ -170,6 +170,7 @@ print ''; print ''; print "\n"; +$var=false; print '
'.$langs->trans("Activated").' 
'; echo "Forcer la définition de la date des factures lors de la validation"; @@ -345,7 +346,7 @@ print "
"; print '
'; print_titre("Options fiscales de facturation de la TVA"); -print ''; +print '
'; print ''; print ''; print ''; @@ -355,12 +356,14 @@ print "\n"; $var=True; $var=!$var; print ""; -print "\n"; +print "\n"; +$var=!$var; +print ""; +print "\n"; $var=!$var; print ""; print "\n"; -print ""; -print "\n"; print ""; print "
Option réelL'option 'réel' est la plus courante. Elle est à destination des entreprises et professions libérales.\nChaque produits/service vendu est soumis à la TVA (Dolibarr propose le taux standard par défaut à la création d'une facture). Cette dernière est récupérée l'année suivante suite à la déclaration TVA pour les produits/services achetés et est reversée à l'état pour les produits/services vendus.
L'option 'réel' est la plus courante. Elle est à destination des entreprises et professions libérales.\nChaque produits/service vendu est soumis à la TVA (Dolibarr propose le taux standard par défaut à la création d'une facture). Cette dernière est récupérée l'année suivante suite à la déclaration TVA pour les produits/services achetés et est reversée à l'état pour les produits/services vendus."; +print "
Option facturationL'option 'facturation' est utilisée par les entreprises qui payent la TVA à facturation (vente de matériel).
Option franchiseL'option 'franchise' est utilisée par les particuliers ou professions libérales à titre occasionnel avec de petits chiffres d'affaires.\nChaque produits/service vendu est soumis à une TVA de 0 (Dolibarr propose le taux 0 par défaut à la création d'une facture cliente). Il n'y a pas de déclaration ou récupération de TVA, et les factures qui gèrent l'option affichent la mention obligatoire \"TVA non applicable - art-293B du CGI\".
Option facturationL'option 'facturation' est utilisée par les entreprises qui payent la TVA à facturation (vente de matériel).
"; @@ -369,5 +372,5 @@ print "
"; $db->close(); -llxFooter("Dernière modification $Date$ révision $Revision$"); +llxFooter('$Date$ - $Revision$'); ?> diff --git a/htdocs/admin/propale.php b/htdocs/admin/propale.php index 7055df9e0ce..2ee9c0f2d6b 100644 --- a/htdocs/admin/propale.php +++ b/htdocs/admin/propale.php @@ -1,9 +1,9 @@ - * Copyright (C) 2004 Laurent Destailleur - * Copyright (C) 2004 Sebastien Di Cintio - * Copyright (C) 2004 Benoit Mortier - * Copyright (C) 2004 Eric Seigne + * Copyright (C) 2004-2005 Laurent Destailleur + * Copyright (C) 2004 Sebastien Di Cintio + * Copyright (C) 2004 Benoit Mortier + * Copyright (C) 2004 Eric Seigne * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -32,6 +32,7 @@ require("./pre.inc.php"); $langs->load("admin"); +$langs->load("propal"); if (!$user->admin) accessforbidden(); @@ -48,7 +49,6 @@ llxHeader(); if ($_GET["action"] == 'set') { - $sql = "INSERT INTO ".MAIN_DB_PREFIX."propal_model_pdf (nom) VALUES ('".$_GET["value"]."')"; if ($db->query($sql)) @@ -72,22 +72,19 @@ $propale_addon_var_pdf = PROPALE_ADDON_PDF; if ($_GET["action"] == 'setpdf') { - if (dolibarr_set_const($db, "PROPALE_ADDON_PDF",$_GET["value"])) + if (dolibarr_set_const($db, "PROPALE_ADDON_PDF",$_GET["value"])) { - // la constante qui a été lue en avant du nouveau set - // on passe donc par une variable pour avoir un affichage cohérent - $propale_addon_var_pdf = $_GET["value"]; + // La constante qui a été lue en avant du nouveau set + // on passe donc par une variable pour avoir un affichage cohérent + $propale_addon_var_pdf = $_GET["value"]; } - /* - * On la set active - */ - $sql_del = "delete from ".MAIN_DB_PREFIX."propal_model_pdf - where nom = '".$_GET["value"]."';"; - $db->query($sql_del); - - $sql = "INSERT INTO ".MAIN_DB_PREFIX."propal_model_pdf (nom) VALUES ('".$_GET["value"]."')"; - if ($db->query($sql)) + // On active le modele + $sql_del = "delete from ".MAIN_DB_PREFIX."propal_model_pdf where nom = '".$_GET["value"]."';"; + $db->query($sql_del); + + $sql = "INSERT INTO ".MAIN_DB_PREFIX."propal_model_pdf (nom) VALUES ('".$_GET["value"]."')"; + if ($db->query($sql)) { } @@ -105,15 +102,17 @@ if ($_GET["action"] == 'setmod') } } + + /* - * + * Affiche page */ print_titre($langs->trans("PropalSetup")); print "
"; -print_titre("Module de numérotation des propositions commerciales"); +print_titre($langs->trans("ProposalsNumberingModules")); print "\n"; print "\n"; @@ -121,7 +120,6 @@ print " \n"; print " \n"; print " \n"; print " \n"; -print " \n"; print "\n"; clearstatcache(); @@ -130,7 +128,7 @@ $dir = "../includes/modules/propale/"; $handle = opendir($dir); if ($handle) { - $var=false; + $var=true; while (($file = readdir($handle))!==false) { if (substr($file, 0, 12) == 'mod_propale_' && substr($file, strlen($file)-3, 3) == 'php') @@ -148,14 +146,13 @@ if ($handle) if ($propale_addon_var == "$file") { - print " \n \n"; + print ''; } else { - print " \n"; - print " \n"; + print "\n"; } print "\n"; @@ -170,17 +167,19 @@ print "
".$langs->trans("Name")."".$langs->trans("Description")."".$langs->trans("Example")."".$langs->trans("Activated")." 
"; + print ''; print img_tick(); - print "  ".$langs->trans("Activate")."".$langs->trans("Activate")."

\n"; * PDF */ -print_titre("Modèles de propale pdf"); +print_titre($langs->trans("ProposalsPDFModules")); $def = array(); $sql = "SELECT nom FROM ".MAIN_DB_PREFIX."propal_model_pdf"; -if ($db->query($sql)) +$resql=$db->query($sql); +if ($resql) { $i = 0; - while ($i < $db->num_rows()) + $num_rows=$db->num_rows($resql); + while ($i < $num_rows) { - $array = $db->fetch_array($i); + $array = $db->fetch_array($resql); array_push($def, $array[0]); $i++; } @@ -196,15 +195,15 @@ print "\n"; print "\n"; print " \n"; print " \n"; -print " \n"; -print " \n"; +print ' \n"; +print ' \n"; print "\n"; clearstatcache(); $handle=opendir($dir); -$var=false; +$var=true; while (($file = readdir($handle))!==false) { if (substr($file, strlen($file) -12) == '.modules.php' && substr($file,0,12) == 'pdf_propale_') @@ -244,13 +243,8 @@ while (($file = readdir($handle))!==false) } else { - print " "; - } - - print "\n '; } } @@ -269,7 +263,7 @@ print "\n"; print " \n"; print " \n"; print "\n"; -print "\n \n \n\n"; +print "\n \n \n\n"; print "
".$langs->trans("Name")."".$langs->trans("Description")."".$langs->trans("Activated")."".$langs->trans("Default")."'.$langs->trans("Activated")."'.$langs->trans("Default")."
"; - print ''.$langs->trans("Activate").''; - + } print '
".$langs->trans("Name")."".$langs->trans("Value")."
".$langs->trans("Directory")."".$conf->propal->dir_output."
".$langs->trans("Directory")."".$conf->propal->dir_output."
\n
"; @@ -278,17 +272,17 @@ print "\n
"; * Formulaire création * */ -print_titre("Formulaire de création"); +print_titre($langs->trans("CreateForm")); print "
"; print ""; -print ""; +print "
"; print ""; print " \n"; print " \n"; print " \n"; -print ""; -print ""; +print ""; +print ''; print ""; print ''; print ''; diff --git a/htdocs/admin/system/index.php b/htdocs/admin/system/index.php index a23ec403879..cc4c88d2342 100644 --- a/htdocs/admin/system/index.php +++ b/htdocs/admin/system/index.php @@ -20,7 +20,8 @@ * $Source$ */ -/** \file htdocs/admin/system/index.php +/** + \file htdocs/admin/system/index.php \brief Page accueil infos système \version $Revision$ */ @@ -43,7 +44,7 @@ print "
\n"; print '
".$langs->trans("Name")."".$langs->trans("Value")." 
Nombre de ligne produits
'.$langs->trans("NumberOfProductLines").'
'; print "\n"; -print "\n"; +print "\n"; print '
Dolibarr
".$langs->trans("Version")."" . DOL_VERSION . "
".$langs->trans("Version")."" . DOL_VERSION . "
'; print "
\n"; @@ -56,24 +57,24 @@ phpinfo(); $chaine = ob_get_contents(); ob_end_clean(); eregi('System ([^\/]*)',$chaine,$reg); -print "".$langs->trans("Version")."".$reg[1]."\n"; +print "".$langs->trans("Version")."".$reg[1]."\n"; print ''; print "
\n"; print ''; print "\n"; -print "\n"; -print "\n"; -print "\n"; +print "\n"; +print "\n"; +print "\n"; print '
".$langs->trans("WebServer")."
".$langs->trans("Version")."".$_SERVER["SERVER_SOFTWARE"]."
".$langs->trans("DocumentRootServer")."" . DOL_DOCUMENT_ROOT . "
".$langs->trans("DataRootServer")."" . DOL_DATA_ROOT . "
".$langs->trans("Version")."".$_SERVER["SERVER_SOFTWARE"]."
".$langs->trans("DocumentRootServer")."" . DOL_DOCUMENT_ROOT . "
".$langs->trans("DataRootServer")."" . DOL_DATA_ROOT . "
'; print "
\n"; print ''; print "\n"; -print "\n"; -print "\n"; +print "\n"; +print "\n"; print '
".$langs->trans("Php")."
".$langs->trans("Version")."".phpversion()."
".$langs->trans("PhpWebLink")."".php_sapi_name()."
".$langs->trans("Version")."".phpversion()."
".$langs->trans("PhpWebLink")."".php_sapi_name()."
'; print "
\n"; @@ -101,5 +102,5 @@ print "".$langs->trans("DatabaseName")."" . $conf->db->n print ''; -llxFooter("Dernière modification $Date$ révision $Revision$"); +llxFooter('$Date$ - $Revision$'); ?> diff --git a/htdocs/admin/system/os.php b/htdocs/admin/system/os.php index 970baf769b7..6d1cb7a97a2 100644 --- a/htdocs/admin/system/os.php +++ b/htdocs/admin/system/os.php @@ -19,7 +19,8 @@ * $Source$ */ -/*! \file htdocs/admin/system/os.php +/** + \file htdocs/admin/system/os.php \brief Page des infos système de l'OS \version $Revision$ */ @@ -41,6 +42,10 @@ print "
\n"; print ''; print ''; print "\n"; + +// Récupère l'OS au sens PHP +print "\n"; + // Récupère la version de l'OS ob_start(); phpinfo(); @@ -51,5 +56,5 @@ print "
'.$langs->trans("Parameter").''.$langs->trans("Value").'
".$langs->trans("PHP_OS")."".PHP_OS."
".$langs->trans("Version")." print '
'; -llxFooter(); +llxFooter('$Date$ - $Revision$'); ?> diff --git a/htdocs/admin/system/web.php b/htdocs/admin/system/web.php index 5b03495c569..003515e8660 100644 --- a/htdocs/admin/system/web.php +++ b/htdocs/admin/system/web.php @@ -19,7 +19,8 @@ * $Source$ */ -/** \file htdocs/admin/system/web.php +/** + \file htdocs/admin/system/web.php \brief Page des infos système du serveur Web \version $Revision$ */ @@ -40,12 +41,13 @@ print "
\n"; print ''; print "\n"; -print "\n"; -print "\n"; -print "\n"; -print "\n"; -print "\n"; +print "\n"; +print "\n"; +print "\n"; +print "\n"; +print "\n"; print '
".$langs->trans("Parameter")."".$langs->trans("Value")."
".$langs->trans("Version")."".$_SERVER["SERVER_SOFTWARE"]."
".$langs->trans("VirtualServerName")."" . $_SERVER["SERVER_NAME"] . "
".$langs->trans("IP")."".$_SERVER["SERVER_ADDR"]."
".$langs->trans("Port")."" . $_SERVER["SERVER_PORT"] . "
".$langs->trans("DocumentRootServer")."".$_SERVER["DOCUMENT_ROOT"]."
".$langs->trans("Version")."".$_SERVER["SERVER_SOFTWARE"]."
".$langs->trans("VirtualServerName")."" . $_SERVER["SERVER_NAME"] . "
".$langs->trans("IP")."".$_SERVER["SERVER_ADDR"]."
".$langs->trans("Port")."" . $_SERVER["SERVER_PORT"] . "
".$langs->trans("DocumentRootServer")."".$_SERVER["DOCUMENT_ROOT"]."
'; -llxFooter(); + +llxFooter('$Date$ - $Revision$'); ?> diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index 245c4b5d56d..69cdbe4f122 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -234,7 +234,7 @@ if ($_GET["action"] == 'create') print ''; // Societe, contact - print ''.$langs->trans("ActionOnCompany").''; + print ''.$langs->trans("ActionOnCompany").''; if ($_GET["socid"]) { $societe = new Societe($db); @@ -251,18 +251,18 @@ if ($_GET["action"] == 'create') // Si la societe est imposée, on propose ces contacts if ($_GET["socid"]) { - print ''.$langs->trans("ActionOnContact").''; + print ''.$langs->trans("ActionOnContact").''; print $html->select_contacts($_GET["socid"],'','contactid',1,1); print ''; } - print ''.$langs->trans("Date").''; + print ''.$langs->trans("Date").''; $html->select_date('','ac'); print ''; - print ''.$langs->trans("Hour").''; + print ''.$langs->trans("Hour").''; print_heure_select("heure",8,20); print ''; - print ''.$langs->trans("Duration").''; + print ''.$langs->trans("Duration").''; print_duree_select("duree"); print ''; @@ -311,7 +311,7 @@ if ($_GET["action"] == 'create') print ''; // Type d'action actifs - print ''; - print ''; + print ''; // Societe, contact - print ''; } @@ -358,32 +358,32 @@ if ($_GET["action"] == 'create') elseif ($_GET["afaire"] == 2) { print ''; - print ''; + print ''; } else { - print ''; + print ''; } // Date - print ''; } else if ($_GET["afaire"] == 2) { $html->select_date('','ac',1,1); - print ''; } else { $html->select_date('','ac',1,1); - print ''; } @@ -448,12 +448,12 @@ if ($_GET["id"]) print ''; print '
'.$langs->trans("Action").''; + print '
'.$langs->trans("Action").''; if ($_GET["actionid"]) { print ''."\n"; @@ -323,10 +323,10 @@ if ($_GET["action"] == 'create') } print '
'.$langs->trans("Label").'
'.$langs->trans("Label").'
'.$langs->trans("ActionOnCompany").''; + print '
'.$langs->trans("ActionOnCompany").''; if ($_GET["socid"]) { $societe = new Societe($db); @@ -343,7 +343,7 @@ if ($_GET["action"] == 'create') // Si la societe est imposée, on propose ces contacts if ($_GET["socid"]) { - print '
'.$langs->trans("ActionOnContact").''; + print '
'.$langs->trans("ActionOnContact").''; print $html->select_contacts($_GET["socid"],'','contactid',1,1); print '
'.$langs->trans("Status").' / '.$langs->trans("Percentage").''.$langs->trans("StatusActionDone").' / 100%
'.$langs->trans("Status").' / '.$langs->trans("Percentage").''.$langs->trans("StatusActionDone").' / 100%
'.$langs->trans("Status").' / '.$langs->trans("Percentage").'
'.$langs->trans("Status").' / '.$langs->trans("Percentage").'
'.$langs->trans("Date").''; + print '
'.$langs->trans("Date").''; if ($_GET["afaire"] == 1) { $html->select_date('','ac'); - print '
'.$langs->trans("Hour").''; + print '
'.$langs->trans("Hour").''; print_heure_select("heure",8,20); print '
'.$langs->trans("Hour").''; + print '
'.$langs->trans("Hour").''; print_heure_select("heure",8,20); print '
'.$langs->trans("Hour").''; + print '
'.$langs->trans("Hour").''; print_heure_select("heure",8,20); print '
'; - print ''; - print ''; - print ''; - print ''; + print ''; + print ''; + print ''; + print ''; - print ''; print ''; @@ -461,7 +461,7 @@ if ($_GET["id"]) print ''; if ($act->objet_url) { - print ''; + print ''; print ''; } @@ -477,19 +477,19 @@ if ($_GET["id"]) { // Affichage fiche action en mode visu print '
'.$langs->trans("Type").''.$act->type.'
'.$langs->trans("Label").''.$act->libelle.'
'.$langs->trans("Company").''.$act->societe->nom.'
'.$langs->trans("Type").''.$act->type.'
'.$langs->trans("Label").''.$act->libelle.'
'.$langs->trans("Company").''.$act->societe->nom.''.$langs->trans("Contact").''; + print ''.$langs->trans("Contact").''; $html->select_array("contactid", $act->societe->contact_array(), $act->contact->id, 1); print '
'.$langs->trans("DateCreation").''.strftime('%d %B %Y %H:%M',$act->date).'
'.$langs->trans("PercentDone").'%
Objet lié
'.$langs->trans("LinkedObject").''.$act->objet_url.'
'; - print ''; - print ''; - print ''; + print ''; + print ''; + print ''; + print ''; - print ''; - print ''; + print ''; + print ''; print ''; print ''; print ''; if ($act->objet_url) { - print ''; + print ''; print ''; } @@ -514,21 +514,20 @@ if ($_GET["id"]) if ($_GET["action"] == 'edit') { - print ''.$langs->trans("Cancel").''; + print ''.$langs->trans("Cancel").''; } else { - print ''.$langs->trans("Edit").''; + print ''.$langs->trans("Edit").''; } - print ''.$langs->trans("Delete").''; + print ''.$langs->trans("Delete").''; print ''; } $db->close(); -llxFooter("Dernière modification $Date$ révision $Revision$"); - +llxFooter('$Date$ - $Revision$'); /**
'.$langs->trans("Type").''.$act->type.'
'.$langs->trans("Label").''.$act->libelle.'
'.$langs->trans("Company").''.$act->societe->nom_url.'
'.$langs->trans("Type").''.$act->type.'
'.$langs->trans("Label").''.$act->libelle.'
'.$langs->trans("Company").''.$act->societe->nom_url.''.$langs->trans("Contact").''.$act->contact->fullname.'
'.$langs->trans("Contact").''.$act->contact->fullname.'
'.$langs->trans("DateCreation").''.strftime('%d %B %Y %H:%M',$act->date).''.$langs->trans("Author").''.$act->author->fullname.'
'.$langs->trans("PercentDone").''.$act->percent.' %
Objet lié
'.$langs->trans("LinkedObject").''.$act->objet_url.'