diff --git a/htdocs/admin/propale.php b/htdocs/admin/propale.php index 529bf2ba2e1..8595d91a66e 100644 --- a/htdocs/admin/propale.php +++ b/htdocs/admin/propale.php @@ -1,9 +1,9 @@ - * Copyright (C) 2004-2005 Laurent Destailleur - * Copyright (C) 2004 Sebastien Di Cintio - * Copyright (C) 2004 Benoit Mortier - * Copyright (C) 2004 Eric Seigne + * Copyright (C) 2004-2006 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 @@ -394,6 +394,8 @@ if ($conf->commande->enabled) print ''; print ''; print ''; + + print '
'; } $db->close(); diff --git a/htdocs/includes/modules/facture/terre/terre.modules.php b/htdocs/includes/modules/facture/terre/terre.modules.php index 483294fcf4f..cdf3ed5b6b8 100644 --- a/htdocs/includes/modules/facture/terre/terre.modules.php +++ b/htdocs/includes/modules/facture/terre/terre.modules.php @@ -48,7 +48,7 @@ class mod_facture_terre extends ModeleNumRefFactures $langs->load("bills"); - return $langs->trans('TerreNumRefModelDesc1',$this->prefix); + return $langs->trans('TerreNumRefModelDesc1',$this->prefix); } /** \brief Renvoi un exemple de numérotation diff --git a/htdocs/includes/modules/modPropale.class.php b/htdocs/includes/modules/modPropale.class.php index 409a2a04173..3dc11e1e375 100644 --- a/htdocs/includes/modules/modPropale.class.php +++ b/htdocs/includes/modules/modPropale.class.php @@ -1,8 +1,8 @@ - * Copyright (C) 2004 Laurent Destailleur - * Copyright (C) 2004 Sebastien Di Cintio - * Copyright (C) 2004 Benoit Mortier + * Copyright (C) 2004-2006 Laurent Destailleur + * Copyright (C) 2004 Sebastien Di Cintio + * Copyright (C) 2004 Benoit Mortier * * 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 @@ -74,13 +74,13 @@ class modPropale extends DolibarrModules $this->const[0][0] = "PROPALE_ADDON_PDF"; $this->const[0][1] = "chaine"; - $this->const[0][2] = "rouge"; + $this->const[0][2] = "azur"; $this->const[0][3] = 'Nom du gestionnaire de génération des propales en PDF'; $this->const[0][4] = 0; $this->const[1][0] = "PROPALE_ADDON"; $this->const[1][1] = "chaine"; - $this->const[1][2] = "mod_propale_ivoire"; + $this->const[1][2] = "mod_propale_marbre"; $this->const[1][3] = 'Nom du gestionnaire de numérotation des propales'; $this->const[1][4] = 0; diff --git a/htdocs/includes/modules/propale/mod_propale_diamant.php b/htdocs/includes/modules/propale/mod_propale_diamant.php index 0b546836a1b..69d003b33c2 100644 --- a/htdocs/includes/modules/propale/mod_propale_diamant.php +++ b/htdocs/includes/modules/propale/mod_propale_diamant.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2005 Laurent Destailleur + * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2005-2006 Regis Houssin * * This program is free software; you can redistribute it and/or modify @@ -22,7 +22,6 @@ * $Source$ */ - /** \file htdocs/includes/modules/propale/mod_propale_diamant.php \ingroup propale @@ -32,6 +31,7 @@ require_once(DOL_DOCUMENT_ROOT ."/includes/modules/propale/modules_propale.php"); + /** \class mod_propale_diamant \brief Classe du modèle de numérotation de référence de propale Diamant */ @@ -49,21 +49,21 @@ class mod_propale_diamant extends ModeleNumRefPropales /** \brief Renvoi la description du modele de numérotation * \return string Texte descripif */ - function info() - { - $texte = "Renvoie le numéro sous la forme numérique PRYYNNNNN où YY représente l'année et NNNNN Le numéro d'incrément. Ce dernier n'est PAS remis à zéro en début d'année.
\n"; - $texte.= "Si la constante PROPALE_DIAMANT_DELTA est définie, un offset est appliqué sur le compteur"; - - if (defined("PROPALE_DIAMANT_DELTA")) - { - $texte .= " (Définie et vaut: ".PROPALE_DIAMANT_DELTA.")"; - } - else - { - $texte .= " (N'est pas définie)"; - } - return $texte; - } + function info() + { + $texte = "Renvoie le numéro sous la forme numérique PRYYNNNNN où YY représente l'année et NNNNN Le numéro d'incrément. Ce dernier n'est PAS remis à zéro en début d'année.
\n"; + $texte.= "Si la constante PROPALE_DIAMANT_DELTA est définie, un offset est appliqué sur le compteur"; + + if (defined("PROPALE_DIAMANT_DELTA")) + { + $texte .= " (Définie et vaut: ".PROPALE_DIAMANT_DELTA.")"; + } + else + { + $texte .= " (N'est pas définie)"; + } + return $texte; + } /** \brief Renvoi un exemple de numérotation @@ -113,7 +113,17 @@ class mod_propale_diamant extends ModeleNumRefPropales return "PR" .$y. substr("0000".$num, strlen("0000".$num)-5,5); } - + + + /** \brief Renvoie la référence de propale suivante non utilisée + * \param objsoc Objet société + * \return string Texte descripif + */ + function getNumRef($objsoc=0) + { + return $this->getNextValue(); + } + } ?> diff --git a/htdocs/includes/modules/propale/mod_propale_emeraude.php b/htdocs/includes/modules/propale/mod_propale_emeraude.php index 89c7d981f9a..312135cb683 100644 --- a/htdocs/includes/modules/propale/mod_propale_emeraude.php +++ b/htdocs/includes/modules/propale/mod_propale_emeraude.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2005 Laurent Destailleur + * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2005-2006 Regis Houssin * * This program is free software; you can redistribute it and/or modify @@ -22,7 +22,6 @@ * $Source$ */ - /** \file htdocs/includes/modules/propale/mod_propale_emeraude.php \ingroup propale @@ -32,6 +31,7 @@ require_once(DOL_DOCUMENT_ROOT ."/includes/modules/propale/modules_propale.php"); + /** \class mod_propale_emeraude \brief Classe du modèle de numérotation de référence de propale Emeraude */ diff --git a/htdocs/includes/modules/propale/mod_propale_ivoire.php b/htdocs/includes/modules/propale/mod_propale_ivoire.php index 45a310fb667..34d16211200 100644 --- a/htdocs/includes/modules/propale/mod_propale_ivoire.php +++ b/htdocs/includes/modules/propale/mod_propale_ivoire.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2005 Laurent Destailleur + * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2005 Regis Houssin * * This program is free software; you can redistribute it and/or modify @@ -22,7 +22,6 @@ * $Source$ */ - /** \file htdocs/includes/modules/propale/mod_propale_ivoire.php \ingroup propale @@ -32,6 +31,7 @@ require_once(DOL_DOCUMENT_ROOT ."/includes/modules/propale/modules_propale.php"); + /** \class mod_propale_ivoire \brief Classe du modèle de numérotation de référence de propale Ivoire */ @@ -85,7 +85,16 @@ class mod_propale_ivoire extends ModeleNumRefPropales return "PR" . "$y" . substr("000".$num, strlen("000".$num)-4,4); } - + + /** \brief Renvoie la référence de propale suivante non utilisée + * \param objsoc Objet société + * \return string Texte descripif + */ + function getNumRef($objsoc=0) + { + return $this->getNextValue(); + } + } ?> diff --git a/htdocs/includes/modules/propale/mod_propale_jade.php b/htdocs/includes/modules/propale/mod_propale_jade.php index 7e6b1e33d71..ff6aa3281f5 100644 --- a/htdocs/includes/modules/propale/mod_propale_jade.php +++ b/htdocs/includes/modules/propale/mod_propale_jade.php @@ -32,6 +32,7 @@ require_once(DOL_DOCUMENT_ROOT ."/includes/modules/propale/modules_propale.php"); + /** \class mod_propale_jade \brief Classe du modèle de numérotation de référence de propale Jade @@ -86,7 +87,16 @@ class mod_propale_jade extends ModeleNumRefPropales return "PROP" . ($num+1); } - + + /** \brief Renvoie la référence de propale suivante non utilisée + * \param objsoc Objet société + * \return string Texte descripif + */ + function getNumRef($objsoc=0) + { + return $this->getNextValue(); + } + } ?> diff --git a/htdocs/includes/modules/propale/mod_propale_marbre.php b/htdocs/includes/modules/propale/mod_propale_marbre.php index 7331864a1ff..8bcfcdf39d5 100644 --- a/htdocs/includes/modules/propale/mod_propale_marbre.php +++ b/htdocs/includes/modules/propale/mod_propale_marbre.php @@ -1,6 +1,6 @@ - * Copyright (C) 2005 Regis Houssin +/* Copyright (C) 2005-2006 Laurent Destailleur + * Copyright (C) 2005 Regis Houssin * * 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 @@ -30,6 +30,7 @@ require_once(DOL_DOCUMENT_ROOT ."/includes/modules/propale/modules_propale.php"); + /** \class mod_propale_marbre \brief Classe du modèle de numérotation de référence de propale Marbre */ @@ -134,6 +135,15 @@ class mod_propale_marbre extends ModeleNumRefPropales return "PR$yymm-$num"; } + /** \brief Renvoie la référence de propale suivante non utilisée + * \param objsoc Objet société + * \return string Texte descripif + */ + function getNumRef($objsoc=0) + { + return $this->getNextValue(); + } + } ?> diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index 69fe4ebeb0a..2425fe7a81d 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -713,7 +713,7 @@ function img_disable($alt = "default") function img_help($usehelpcursor=1) { global $conf,$langs; - return ''; + return ''.$langs->trans('; } /** diff --git a/htdocs/livraison/mods/modules_livraison.php b/htdocs/livraison/mods/modules_livraison.php index fe6799bd37a..07e28aa871e 100644 --- a/htdocs/livraison/mods/modules_livraison.php +++ b/htdocs/livraison/mods/modules_livraison.php @@ -135,7 +135,7 @@ class ModeleNumRefDeliveryOrder } } -function delivery_order_pdf_create($db, $deliveryid, $modele='') +function delivery_order_pdf_create($db, $deliveryid, $modele='', $outputlangs='') { global $langs; $langs->load("deliveries"); diff --git a/htdocs/theme/dev/dev.css b/htdocs/theme/dev/dev.css index c3a3b326cc2..e38a963fe54 100644 --- a/htdocs/theme/dev/dev.css +++ b/htdocs/theme/dev/dev.css @@ -1,5 +1,5 @@ /* Copyright (C) 2002-2004 Rodolphe Quiedeville - * Copyright (C) 2004-2005 Laurent Destailleur + * Copyright (C) 2004-2006 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 @@ -17,7 +17,6 @@ * * $Id$ * $Source$ - * */ /***** Style du fond *****/ @@ -741,3 +740,91 @@ td.small { tr.nonpayed { font-size: 0.6em; font-weight: bold; } + + + +/* ============================================================================== */ +/* Tooltips */ +/* ============================================================================== */ + +#dhtmltooltip +{ +position: absolute; +width: 200px; +border: 1px solid #444444; +padding: 2px; +background-color: lightyellow; +visibility: hidden; +z-index: 100; +} + + +/* ============================================================================== */ +/* Calendar */ +/* ============================================================================== */ +.bodyline { + -moz-border-radius:8px; + border: 1px #E4ECEC outset; + padding:0px; + margin-bottom:5px; +} +table.dp { + width: 180px; + background-color: #FFFFFF; + border-top: solid 2px #DDDDDD; + border-left: solid 2px #DDDDDD; + border-right: solid 1px #222222; + border-bottom: solid 1px #222222; +} +.dp td, .tpHour td, .tpMinute td{padding:2px; font-size:10px;} +/* Barre titre */ +.dpHead,.tpHead,.tpHour td:Hover .tpHead{ + font-weight:bold; + background-color:#b3c5cc; + color:white; + font-size:11px; + cursor:auto; +} +/* Barre navigation */ +.dpButtons,.tpButtons { + text-align:center; + background-color:#617389; + color:#FFFFFF; + font-weight:bold; + border: 1px outset black; + cursor:pointer; +} +.dpButtons:Active,.tpButtons:Active{border: 1px outset black;} +.dpDayNames td,.dpExplanation {background-color:#D9DBE1; font-weight:bold; text-align:center; font-size:11px;} +.dpExplanation{ font-weight:normal; font-size:11px;} +.dpWeek td{text-align:center} + +.dpToday,.dpReg,.dpSelected{ + cursor:pointer; +} +.dpToday{font-weight:bold; color:black; background-color:#DDDDDD;} +.dpReg:Hover,.dpToday:Hover{background-color:black;color:white} + +/* Jour courant */ +.dpSelected{background-color:#0B63A2;color:white;font-weight:bold; } + +.tpHour{border-top:1px solid #DDDDDD; border-right:1px solid #DDDDDD;} +.tpHour td {border-left:1px solid #DDDDDD; border-bottom:1px solid #DDDDDD; cursor:pointer;} +.tpHour td:Hover {background-color:black;color:white;} + +.tpMinute {margin-top:5px;} +.tpMinute td:Hover {background-color:black; color:white; } +.tpMinute td {background-color:#D9DBE1; text-align:center; cursor:pointer;} + +/* Bouton X fermer */ +.dpInvisibleButtons +{ +border-style:none; +background-color:transparent; +padding:0px; +font-size:9px; +border-width:0px; +color:#0B63A2; +vertical-align:middle; +cursor: pointer; +} diff --git a/htdocs/theme/dev/img/help.png b/htdocs/theme/dev/img/help.png new file mode 100644 index 00000000000..82a55ce372e Binary files /dev/null and b/htdocs/theme/dev/img/help.png differ diff --git a/htdocs/theme/dolibarr/dolibarr.css b/htdocs/theme/dolibarr/dolibarr.css index 748a30628e1..73cfd88737e 100644 --- a/htdocs/theme/dolibarr/dolibarr.css +++ b/htdocs/theme/dolibarr/dolibarr.css @@ -625,4 +625,92 @@ td.small { tr.nonpayed { font-size: 0.9em; font-weight: bold; - } \ No newline at end of file + } + + + +/* ============================================================================== */ +/* Tooltips */ +/* ============================================================================== */ + +#dhtmltooltip +{ +position: absolute; +width: 200px; +border: 1px solid #444444; +padding: 2px; +background-color: lightyellow; +visibility: hidden; +z-index: 100; +} + + +/* ============================================================================== */ +/* Calendar */ +/* ============================================================================== */ +.bodyline { + -moz-border-radius:8px; + border: 1px #E4ECEC outset; + padding:0px; + margin-bottom:5px; +} +table.dp { + width: 180px; + background-color: #FFFFFF; + border-top: solid 2px #DDDDDD; + border-left: solid 2px #DDDDDD; + border-right: solid 1px #222222; + border-bottom: solid 1px #222222; +} +.dp td, .tpHour td, .tpMinute td{padding:2px; font-size:10px;} +/* Barre titre */ +.dpHead,.tpHead,.tpHour td:Hover .tpHead{ + font-weight:bold; + background-color:#b3c5cc; + color:white; + font-size:11px; + cursor:auto; +} +/* Barre navigation */ +.dpButtons,.tpButtons { + text-align:center; + background-color:#617389; + color:#FFFFFF; + font-weight:bold; + border: 1px outset black; + cursor:pointer; +} +.dpButtons:Active,.tpButtons:Active{border: 1px outset black;} +.dpDayNames td,.dpExplanation {background-color:#D9DBE1; font-weight:bold; text-align:center; font-size:11px;} +.dpExplanation{ font-weight:normal; font-size:11px;} +.dpWeek td{text-align:center} + +.dpToday,.dpReg,.dpSelected{ + cursor:pointer; +} +.dpToday{font-weight:bold; color:black; background-color:#DDDDDD;} +.dpReg:Hover,.dpToday:Hover{background-color:black;color:white} + +/* Jour courant */ +.dpSelected{background-color:#0B63A2;color:white;font-weight:bold; } + +.tpHour{border-top:1px solid #DDDDDD; border-right:1px solid #DDDDDD;} +.tpHour td {border-left:1px solid #DDDDDD; border-bottom:1px solid #DDDDDD; cursor:pointer;} +.tpHour td:Hover {background-color:black;color:white;} + +.tpMinute {margin-top:5px;} +.tpMinute td:Hover {background-color:black; color:white; } +.tpMinute td {background-color:#D9DBE1; text-align:center; cursor:pointer;} + +/* Bouton X fermer */ +.dpInvisibleButtons +{ +border-style:none; +background-color:transparent; +padding:0px; +font-size:9px; +border-width:0px; +color:#0B63A2; +vertical-align:middle; +cursor: pointer; +} diff --git a/htdocs/theme/freelug/freelug.css b/htdocs/theme/freelug/freelug.css index 6742e639055..e88c4ebacea 100644 --- a/htdocs/theme/freelug/freelug.css +++ b/htdocs/theme/freelug/freelug.css @@ -772,6 +772,20 @@ tr.nonpayed { } +/* ============================================================================== */ +/* Tooltips */ +/* ============================================================================== */ + +#dhtmltooltip +{ +position: absolute; +width: 200px; +border: 1px solid #444444; +padding: 2px; +background-color: lightyellow; +visibility: hidden; +z-index: 100; +} /* ============================================================================== */ diff --git a/htdocs/theme/freelug/img/help.png b/htdocs/theme/freelug/img/help.png new file mode 100644 index 00000000000..82a55ce372e Binary files /dev/null and b/htdocs/theme/freelug/img/help.png differ diff --git a/htdocs/theme/freelug/img/tick.png b/htdocs/theme/freelug/img/tick.png index 2e37a879df8..deb69ee75ec 100644 Binary files a/htdocs/theme/freelug/img/tick.png and b/htdocs/theme/freelug/img/tick.png differ diff --git a/htdocs/theme/rodolphe/rodolphe.css b/htdocs/theme/rodolphe/rodolphe.css index c06fbf06f36..4fafa8b0fff 100644 --- a/htdocs/theme/rodolphe/rodolphe.css +++ b/htdocs/theme/rodolphe/rodolphe.css @@ -701,3 +701,91 @@ tr.nonpayed { font-weight: bold; } + + +/* ============================================================================== */ +/* Tooltips */ +/* ============================================================================== */ + +#dhtmltooltip +{ +position: absolute; +width: 200px; +border: 1px solid #444444; +padding: 2px; +background-color: lightyellow; +visibility: hidden; +z-index: 100; +} + + +/* ============================================================================== */ +/* Calendar */ +/* ============================================================================== */ +.bodyline { + -moz-border-radius:8px; + border: 1px #E4ECEC outset; + padding:0px; + margin-bottom:5px; +} +table.dp { + width: 180px; + background-color: #FFFFFF; + border-top: solid 2px #DDDDDD; + border-left: solid 2px #DDDDDD; + border-right: solid 1px #222222; + border-bottom: solid 1px #222222; +} +.dp td, .tpHour td, .tpMinute td{padding:2px; font-size:10px;} +/* Barre titre */ +.dpHead,.tpHead,.tpHour td:Hover .tpHead{ + font-weight:bold; + background-color:#b3c5cc; + color:white; + font-size:11px; + cursor:auto; +} +/* Barre navigation */ +.dpButtons,.tpButtons { + text-align:center; + background-color:#617389; + color:#FFFFFF; + font-weight:bold; + border: 1px outset black; + cursor:pointer; +} +.dpButtons:Active,.tpButtons:Active{border: 1px outset black;} +.dpDayNames td,.dpExplanation {background-color:#D9DBE1; font-weight:bold; text-align:center; font-size:11px;} +.dpExplanation{ font-weight:normal; font-size:11px;} +.dpWeek td{text-align:center} + +.dpToday,.dpReg,.dpSelected{ + cursor:pointer; +} +.dpToday{font-weight:bold; color:black; background-color:#DDDDDD;} +.dpReg:Hover,.dpToday:Hover{background-color:black;color:white} + +/* Jour courant */ +.dpSelected{background-color:#0B63A2;color:white;font-weight:bold; } + +.tpHour{border-top:1px solid #DDDDDD; border-right:1px solid #DDDDDD;} +.tpHour td {border-left:1px solid #DDDDDD; border-bottom:1px solid #DDDDDD; cursor:pointer;} +.tpHour td:Hover {background-color:black;color:white;} + +.tpMinute {margin-top:5px;} +.tpMinute td:Hover {background-color:black; color:white; } +.tpMinute td {background-color:#D9DBE1; text-align:center; cursor:pointer;} + +/* Bouton X fermer */ +.dpInvisibleButtons +{ +border-style:none; +background-color:transparent; +padding:0px; +font-size:9px; +border-width:0px; +color:#0B63A2; +vertical-align:middle; +cursor: pointer; +} + diff --git a/htdocs/theme/yellow/img/help.png b/htdocs/theme/yellow/img/help.png new file mode 100644 index 00000000000..82a55ce372e Binary files /dev/null and b/htdocs/theme/yellow/img/help.png differ diff --git a/htdocs/theme/yellow/yellow.css b/htdocs/theme/yellow/yellow.css index 394151295b1..dbeb82bbcec 100644 --- a/htdocs/theme/yellow/yellow.css +++ b/htdocs/theme/yellow/yellow.css @@ -711,6 +711,21 @@ tr.nonpayed { } +/* ============================================================================== */ +/* Tooltips */ +/* ============================================================================== */ + +#dhtmltooltip +{ +position: absolute; +width: 200px; +border: 1px solid #444444; +padding: 2px; +background-color: lightyellow; +visibility: hidden; +z-index: 100; +} + /* ============================================================================== */ /* Calendar */