From 2483f044c5f41db749a96abcd8b8bf2da929fb87 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 12 Jun 2013 16:28:36 +0200 Subject: [PATCH 1/6] Fix: Trans --- htdocs/product/liste.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/product/liste.php b/htdocs/product/liste.php index e1795c7b7d2..a8ca8521a65 100644 --- a/htdocs/product/liste.php +++ b/htdocs/product/liste.php @@ -36,6 +36,7 @@ if (! empty($conf->categorie->enabled)) $langs->load("products"); $langs->load("stocks"); +$langs->load("suppliers"); $action = GETPOST('action'); $sref=GETPOST("sref"); From 8410ad1933d785927eab9c5640c285adb55e8b92 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 16 Jun 2013 12:00:18 +0200 Subject: [PATCH 2/6] Fix: CSS --- htdocs/theme/amarok/style.css.php | 12 +++++++++--- htdocs/theme/auguria/style.css.php | 10 ++++++++-- htdocs/theme/bureau2crea/style.css.php | 25 ++++++++++++------------- htdocs/theme/cameleo/style.css.php | 10 ++++++++-- htdocs/theme/eldy/style.css.php | 10 ++++++++-- 5 files changed, 45 insertions(+), 22 deletions(-) diff --git a/htdocs/theme/amarok/style.css.php b/htdocs/theme/amarok/style.css.php index 4f55463a323..534ba041485 100755 --- a/htdocs/theme/amarok/style.css.php +++ b/htdocs/theme/amarok/style.css.php @@ -1204,11 +1204,17 @@ table.liste { table.liste td {padding:1px 2px 1px 0px;} -tr.liste_titre, tr.liste_titre_sel +.tagtable { display: table; } +.tagtable form { display: table-row; } +.tagtable form div { display: table-cell; } +.tagtr { display: table-row; } +.tagtd { display: table-cell; } + +tr.liste_titre, tr.liste_titre_sel, form.liste_titre, form.liste_titre_sel { height: 22px; } -div.liste_titre, tr.liste_titre, tr.box_titre { +div.liste_titre, tr.liste_titre, form.liste_titre, tr.box_titre { padding:4px; background-color:rgba(0,0,0,.2); background-image:linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(0,0,0,.3) 100%); @@ -1230,7 +1236,7 @@ tr.box_titre td.boxclose { width: 36px; } -tr.liste_titre td, tr.liste_titre th { +tr.liste_titre td, tr.liste_titre th, form.liste_titre div { padding:2px; padding-left:2px !important; white-space:nowrap; diff --git a/htdocs/theme/auguria/style.css.php b/htdocs/theme/auguria/style.css.php index dfe178dc0a8..cf14339d58a 100644 --- a/htdocs/theme/auguria/style.css.php +++ b/htdocs/theme/auguria/style.css.php @@ -1354,11 +1354,17 @@ table.liste td { padding-right: 2px; } -tr.liste_titre, tr.liste_titre_sel +.tagtable { display: table; } +.tagtable form { display: table-row; } +.tagtable form div { display: table-cell; } +.tagtr { display: table-row; } +.tagtd { display: table-cell; } + +tr.liste_titre, tr.liste_titre_sel, form.liste_titre, form.liste_titre_sel { height: 24px; } -div.liste_titre, tr.liste_titre +div.liste_titre, tr.liste_titre, form.liste_titre { background: #7699A9; background-image: url(); diff --git a/htdocs/theme/bureau2crea/style.css.php b/htdocs/theme/bureau2crea/style.css.php index 9115d071d33..5d3c407bd4a 100644 --- a/htdocs/theme/bureau2crea/style.css.php +++ b/htdocs/theme/bureau2crea/style.css.php @@ -1469,7 +1469,13 @@ table.noborder { vertical-align: text-top; } -tr.liste_titre { +.tagtable { display: table; } +.tagtable form { display: table-row; } +.tagtable form div { display: table-cell; } +.tagtr { display: table-row; } +.tagtd { display: table-cell; } + +tr.liste_titre, form.liste_titre { height: 25px; background-repeat: no-repeat; background-color: #C8C8C8; @@ -1478,10 +1484,7 @@ tr.liste_titre { font-weight: normal; /* text-decoration: underline; */ /* border-bottom: 1px solid #FDFFFF; */ -} - -tr.liste_titre { - background-image: url(); + background-image: url(); background-position: top right; } @@ -1489,10 +1492,6 @@ th.liste_titre_sel, td.liste_titre_sel, th.liste_titre { color: #FFFFFF !important; } -tr.liste_titre { - background-image: url(); -} - tr.liste_total { height: 25px; border-top: 1px solid #333; @@ -1501,16 +1500,16 @@ border-top: 1px solid #333; div#stats { } -div.liste_titre, tr.liste_titre { +div.liste_titre, tr.liste_titre, form.liste_titre { text-align: ; } -div.liste_titre a, tr.liste_titre a { +div.liste_titre a, tr.liste_titre a, form.liste_titre a { color: #333333; margin: 0px 5px; } -div.liste_titre td, tr.liste_titre td { +div.liste_titre td, tr.liste_titre td, form.liste_titre div { padding: 0px 5px; vertical-align: middle; background: none !important; @@ -1526,7 +1525,7 @@ div.liste_titre, th.liste_titre, td.liste_titre background: none; } -div.liste_titre input.button, tr.liste_titre input.button { +div.liste_titre input.button, tr.liste_titre input.button, form.liste_titre input.button { float: left; position: relative; /*margin: 30px 10px 10px 0px;*/ diff --git a/htdocs/theme/cameleo/style.css.php b/htdocs/theme/cameleo/style.css.php index 2cf66caa7fe..3f822ec1a09 100644 --- a/htdocs/theme/cameleo/style.css.php +++ b/htdocs/theme/cameleo/style.css.php @@ -1439,11 +1439,17 @@ table.liste td { padding-right: 2px; } -tr.liste_titre, tr.liste_titre_sel +.tagtable { display: table; } +.tagtable form { display: table-row; } +.tagtable form div { display: table-cell; } +.tagtr { display: table-row; } +.tagtd { display: table-cell; } + +tr.liste_titre, tr.liste_titre_sel, form.liste_titre, form.liste_titre_sel { height: 20px !important; } -div.liste_titre, tr.liste_titre { +div.liste_titre, tr.liste_titre, form.liste_titre { color: #842F00; font-weight: bold; font-family: "Trebuchet MS",Arial,Helvetica,sans-serif; diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index 8d136c10055..c05655c4410 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -1668,11 +1668,17 @@ table.liste td { padding-right: 2px; } -tr.liste_titre, tr.liste_titre_sel +.tagtable { display: table; } +.tagtable form { display: table-row; } +.tagtable form div { display: table-cell; } +.tagtr { display: table-row; } +.tagtd { display: table-cell; } + +tr.liste_titre, tr.liste_titre_sel, form.liste_titre, form.liste_titre_sel { height: 20px !important; } -div.liste_titre, tr.liste_titre, tr.liste_titre_sel +div.liste_titre, tr.liste_titre, tr.liste_titre_sel, form.liste_titre, form.liste_titre_sel { background: rgb(); background-repeat: repeat-x; From 91068a4476f14ed0e04909cae07e68c62e563edf Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 16 Jun 2013 20:16:05 +0200 Subject: [PATCH 3/6] Fix: Pb into form output Conflicts: htdocs/core/class/html.formfile.class.php --- htdocs/core/class/html.formfile.class.php | 14 ++++++++------ htdocs/societe/soc.php | 3 ++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index 5d2fbf4f225..24707425cf4 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -442,15 +442,17 @@ class FormFile // Button $out.= ''; - $out.= 'dol_no_mouse_hover) && $modulepart != 'unpaid') { - $langs->load("errors"); - $out.= ' '.img_warning($langs->transnoentitiesnoconv("WarningNoDocumentModelActivated")); + $langs->load("errors"); + $genbutton.= ' '.img_warning($langs->transnoentitiesnoconv("WarningNoDocumentModelActivated")); } + if (! $allowgenifempty && ! is_array($modellist) && empty($modellist) && empty($conf->dol_no_mouse_hover) && $modulepart != 'unpaid') $genbutton=''; + $out.= $genbutton; $out.= ''; if ($printer) $out.= ''; diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index 27db36e8a32..e5e119fc92b 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -1793,7 +1793,6 @@ else } print ''."\n"; - print '
'; if (empty($conf->global->SOCIETE_DISABLE_BUILDDOC)) { @@ -1821,6 +1820,8 @@ else print '
'; } + print '

'; + // Subsidiaries list $result=show_subsidiaries($conf,$langs,$db,$object); From 8b73b2b4f3db50378712ff11f245a161e7b72465 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 17 Jun 2013 14:54:44 +0200 Subject: [PATCH 4/6] Fix: Solve some problem of redirect when logout Conflicts: htdocs/user/logout.php --- htdocs/user/logout.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/htdocs/user/logout.php b/htdocs/user/logout.php index 3dcd1eae8ff..dd9350977ed 100644 --- a/htdocs/user/logout.php +++ b/htdocs/user/logout.php @@ -76,9 +76,10 @@ session_name($sessionname); session_destroy(); dol_syslog("End of session ".$sessionname); -// TODO Not sure this is required -unset($_SESSION['dol_login']); -unset($_SESSION['dol_entity']); +// Not sure this is required +unset($_SESSION['dol_login']); +unset($_SESSION['dol_entity']); -header("Location: ".$url); +if (GETPOST('noredirect')) return; +header("Location: ".$url); // Default behaviour is redirect to index.php page ?> From 562fa43d9dc6901d3463fe8ced32b95ea76b9a26 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 17 Jun 2013 23:24:53 +0200 Subject: [PATCH 5/6] Fix: Message is not clear enough. Fix: Var was not initialized. --- htdocs/install/mysql/data/llx_const.sql | 1 + htdocs/langs/en_US/mails.lang | 6 +++--- htdocs/langs/fr_FR/mails.lang | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/htdocs/install/mysql/data/llx_const.sql b/htdocs/install/mysql/data/llx_const.sql index 1669d49c216..0c0a98355c0 100644 --- a/htdocs/install/mysql/data/llx_const.sql +++ b/htdocs/install/mysql/data/llx_const.sql @@ -33,6 +33,7 @@ -- Visible in misc page insert into llx_const (name, value, type, note, visible, entity) values ('MAIN_NOT_INSTALLED','1','chaine','Setup is running',1,0); insert into llx_const (name, value, type, note, visible, entity) values ('MAIN_FEATURES_LEVEL','0','chaine','Level of features to show (0=stable only, 1=stable+experimental, 2=stable+experimental+development',1,0); +insert into llx_const (name, value, type, note, visible, entity) values ('MAILING_LIMIT_SENDBYWEB','25','chaine','Number of targets to defined packet size when sending mass email',1,0); -- Hidden and common to all entities insert into llx_const (name, value, type, note, visible, entity) values ('SYSLOG_HANDLERS','["mod_syslog_file"]','chaine','Which logger to use',0,0); diff --git a/htdocs/langs/en_US/mails.lang b/htdocs/langs/en_US/mails.lang index bced2db57e5..1789bd9245b 100644 --- a/htdocs/langs/en_US/mails.lang +++ b/htdocs/langs/en_US/mails.lang @@ -106,10 +106,10 @@ SearchAMailing=Search mailing SendMailing=Send emailing SendMail=Send email SentBy=Sent by -MailingNeedCommand=For security reason, sending an emailing is better when performed from command line. Ask your administrator to launch the following command to send the emailing to all recipients: +MailingNeedCommand=For security reason, sending an emailing is better when performed from command line. If you have one, ask your server administrator to launch the following command to send the emailing to all recipients: MailingNeedCommand2=You can however send them online by adding parameter MAILING_LIMIT_SENDBYWEB with value of max number of emails you want to send by session. For this, go on Home - Setup - Other. -ConfirmSendingEmailing=Are you sure you want to send emailing without command line and from web mode ? -LimitSendingEmailing=On line sending of emailings are limited for security and timeout reasons to %s recipients by sending session. +ConfirmSendingEmailing=If you can't or prefer sending them with your www browser, please confirm you are sure you want to send emailing now from your browser ? +LimitSendingEmailing=Note: On line sending of emailings are limited for security and timeout reasons to %s recipients by sending session. TargetsReset=Clear list ToClearAllRecipientsClickHere=Click here to clear the recipient list for this emailing ToAddRecipientsChooseHere=Add recipients by choosing from the lists diff --git a/htdocs/langs/fr_FR/mails.lang b/htdocs/langs/fr_FR/mails.lang index cb5be2cdabe..2c61ef979fc 100644 --- a/htdocs/langs/fr_FR/mails.lang +++ b/htdocs/langs/fr_FR/mails.lang @@ -105,10 +105,10 @@ SearchAMailing=Rechercher un mailing SendMailing=Envoi emailing SendMail=Envoi mail SentBy=Envoyé par -MailingNeedCommand=Pour des raisons de sécurité, il est recommandé de faire les envois d'un mailing de masse depuis une ligne de commande. Demandez à votre administrateur de lancer la commande suivante pour envoyer le mailing à tous les destinataires : +MailingNeedCommand=Pour des raisons de sécurité, il est recommandé de faire les envois d'un mailing de masse depuis la ligne de commande. Si en avez, demandez à votre administrateur de serveurs de lancer la commande suivante pour envoyer le mailing à tous les destinataires : MailingNeedCommand2=Vous pouvez toutefois quand même les envoyer par l'interface écran en ajoutant le paramètre MAILING_LIMIT_SENDBYWEB avec la valeur du nombre max de mails envoyés par session d'envoi. Pour cela, aller dans Accueil - Configuration - Divers. -ConfirmSendingEmailing=Confirmez-vous l'envoi de l'emailing depuis le mode web ? -LimitSendingEmailing=L'envoi d'un emailing depuis les écrans est limité pour raisons de sécurité et de timeout à %s destinataires par session d'envoi. +ConfirmSendingEmailing=Si vous n'en avez pas ou préferrez envoyer via votre navigateur web, confirmez simplement que vous désirez envoyer l'emailing maintenant depuis le mode web ? +LimitSendingEmailing=Rem: L'envoi d'un emailing depuis les écrans est limité pour raisons de sécurité et de timeout à %s destinataires par session d'envoi. TargetsReset=Vider liste ToClearAllRecipientsClickHere=Pour vider la liste des destinataires de cet emailing, cliquez sur le bouton ToAddRecipientsChooseHere=Pour ajouter des destinataires, choisir dans les listes ci-dessous From e8e710fd0c82e7b9d96cb8126f1bed8a4518eb26 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 17 Jun 2013 23:53:03 +0200 Subject: [PATCH 6/6] Fix: Translation --- htdocs/langs/en_US/exports.lang | 2 +- htdocs/langs/fr_FR/exports.lang | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/langs/en_US/exports.lang b/htdocs/langs/en_US/exports.lang index 4ec1482ffb3..dfccc92a7a1 100644 --- a/htdocs/langs/en_US/exports.lang +++ b/htdocs/langs/en_US/exports.lang @@ -65,7 +65,7 @@ ChooseFormatOfFileToImport=Choose file format to use as import file format by cl ChooseFileToImport=Upload file then click on picto %s to select file as source import file... SourceFileFormat=Source file format FieldsInSourceFile=Fields in source file -FieldsInTargetDatabase=Target fields in Dolibarr database (*=mandatory) +FieldsInTargetDatabase=Target fields in Dolibarr database (bold=mandatory) Field=Field NoFields=No fields MoveField=Move field column number %s diff --git a/htdocs/langs/fr_FR/exports.lang b/htdocs/langs/fr_FR/exports.lang index d5a75a9617f..5c5b3b13983 100644 --- a/htdocs/langs/fr_FR/exports.lang +++ b/htdocs/langs/fr_FR/exports.lang @@ -65,7 +65,7 @@ ChooseFileToImport=Ajoutez le fichier à importer puis cliquez sur le picto %s p DownloadEmptyExample=Télécharger fichier vierge exemple SourceFileFormat=Format du fichier source FieldsInSourceFile=Champs dans le fichier source -FieldsInTargetDatabase=Champs cibles dans la base Dolibarr +FieldsInTargetDatabase=Champs cibles dans la base Dolibarr (gras=obligatoire) Field=Champ NoFields=Aucun champ MoveField=Déplacer champ colonne numéro %s