From d15792bdf488a46fcb170971ab9ee223afd37899 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Tue, 11 Apr 2017 00:59:47 +0200 Subject: [PATCH] Minor fix --- htdocs/admin/ihm.php | 68 +++++++++++++++--------------- htdocs/core/lib/usergroups.lib.php | 4 +- htdocs/langs/en_US/admin.lang | 2 +- htdocs/langs/en_US/commercial.lang | 3 +- htdocs/projet/list.php | 2 +- htdocs/theme/md/style.css.php | 5 ++- 6 files changed, 44 insertions(+), 40 deletions(-) diff --git a/htdocs/admin/ihm.php b/htdocs/admin/ihm.php index 24c5516dea7..1036d1057a9 100644 --- a/htdocs/admin/ihm.php +++ b/htdocs/admin/ihm.php @@ -256,14 +256,14 @@ if ($action == 'edit') // Edit print '</tr>'; // Default language - print '<tr class="oddeven"><td width="35%">'.$langs->trans("DefaultLanguage").'</td><td>'; + print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("DefaultLanguage").'</td><td>'; print $formadmin->select_language($conf->global->MAIN_LANG_DEFAULT, 'main_lang_default', 1, 0, 0, 0, 0, 'minwidth300'); print '</td>'; print '<td width="20"> </td>'; print '</tr>'; // Multilingual GUI - print '<tr class="oddeven"><td width="35%">'.$langs->trans("EnableMultilangInterface").'</td><td>'; + print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("EnableMultilangInterface").'</td><td>'; print $form->selectyesno('main_multilangs',$conf->global->MAIN_MULTILANGS,1); print '</td>'; print '<td width="20"> </td>'; @@ -279,10 +279,10 @@ if ($action == 'edit') // Edit if (! empty($searchform)) { print '<table summary="search" class="noborder" width="100%">'; - print '<tr class="liste_titre"><td width="35%">'.$langs->trans("PermanentLeftSearchForm").'</td><td colspan="2">'.$langs->trans("Activated").'</td></tr>'; + print '<tr class="liste_titre"><td class="titlefield">'.$langs->trans("PermanentLeftSearchForm").'</td><td colspan="2">'.$langs->trans("Activated").'</td></tr>'; foreach ($searchform as $key => $value) { - print '<tr><td width="35%">'.$searchformtitle[$key].'</td><td colspan="2">'; + print '<tr><td class="titlefield">'.$searchformtitle[$key].'</td><td colspan="2">'; print $form->selectyesno($searchform[$key],$searchformconst[$key],1); print '</td></tr>'; } @@ -292,7 +292,7 @@ if ($action == 'edit') // Edit // Other print '<table summary="edit" class="noborder" width="100%">'; - print '<tr class="liste_titre"><td width="35%">'.$langs->trans("Parameters").'</td><td>'.$langs->trans("Value").'</td>'; + print '<tr class="liste_titre"><td class="titlefield">'.$langs->trans("Parameters").'</td><td>'.$langs->trans("Value").'</td>'; print '<td width="20"> </td>'; print '</tr>'; @@ -323,28 +323,28 @@ if ($action == 'edit') // Edit print '</tr>'; // First day for weeks - print '<tr><td width="35%">'.$langs->trans("WeekStartOnDay").'</td><td>'; + print '<tr><td class="titlefield">'.$langs->trans("WeekStartOnDay").'</td><td>'; print $formother->select_dayofweek((isset($conf->global->MAIN_START_WEEK)?$conf->global->MAIN_START_WEEK:'1'),'MAIN_START_WEEK',0); print '</td>'; print '<td width="20"> </td>'; print '</tr>'; // DefaultWorkingDays - print '<tr><td width="35%">'.$langs->trans("DefaultWorkingDays").'</td><td>'; + print '<tr><td class="titlefield">'.$langs->trans("DefaultWorkingDays").'</td><td>'; print '<input type="text" name="MAIN_DEFAULT_WORKING_DAYS" size="5" value="'.(isset($conf->global->MAIN_DEFAULT_WORKING_DAYS)?$conf->global->MAIN_DEFAULT_WORKING_DAYS:'1-5').'">'; print '</td>'; print '<td width="20"> </td>'; print '</tr>'; // DefaultWorkingHours - print '<tr><td width="35%">'.$langs->trans("DefaultWorkingHours").'</td><td>'; + print '<tr><td class="titlefield">'.$langs->trans("DefaultWorkingHours").'</td><td>'; print '<input type="text" name="MAIN_DEFAULT_WORKING_HOURS" size="5" value="'.(isset($conf->global->MAIN_DEFAULT_WORKING_HOURS)?$conf->global->MAIN_DEFAULT_WORKING_HOURS:'9-18').'">'; print '</td>'; print '<td width="20"> </td>'; print '</tr>'; // Firstname/Name - print '<tr><td width="35%">'.$langs->trans("FirstnameNamePosition").'</td><td>'; + print '<tr><td class="titlefield">'.$langs->trans("FirstnameNamePosition").'</td><td>'; $array=array(0=>$langs->trans("Firstname").' '.$langs->trans("Lastname"),1=>$langs->trans("Lastname").' '.$langs->trans("Firstname")); print $form->selectarray('MAIN_FIRSTNAME_NAME_POSITION',$array,(isset($conf->global->MAIN_FIRSTNAME_NAME_POSITION)?$conf->global->MAIN_FIRSTNAME_NAME_POSITION:0)); print '</td>'; @@ -352,14 +352,14 @@ if ($action == 'edit') // Edit print '</tr>'; // Hide unauthorized button - print '<tr><td width="35%">'.$langs->trans("ButtonHideUnauthorized").'</td><td>'; + print '<tr><td class="titlefield">'.$langs->trans("ButtonHideUnauthorized").'</td><td>'; print $form->selectyesno('MAIN_BUTTON_HIDE_UNAUTHORIZED',isset($conf->global->MAIN_BUTTON_HIDE_UNAUTHORIZED)?$conf->global->MAIN_BUTTON_HIDE_UNAUTHORIZED:0,1); print '</td>'; print '<td width="20"> </td>'; print '</tr>'; // Show logo - print '<tr><td width="35%">'.$langs->trans("EnableShowLogo").'</td><td>'; + print '<tr><td class="titlefield">'.$langs->trans("EnableShowLogo").'</td><td>'; print $form->selectyesno('MAIN_SHOW_LOGO',$conf->global->MAIN_SHOW_LOGO,1); print '</td>'; print '<td width="20"> </td>'; @@ -368,7 +368,7 @@ if ($action == 'edit') // Edit // Hide version link /* - print '<tr><td width="35%">'.$langs->trans("HideVersionLink").'</td><td>'; + print '<tr><td class="titlefield">'.$langs->trans("HideVersionLink").'</td><td>'; print $form->selectyesno('MAIN_HIDE_VERSION',$conf->global->MAIN_HIDE_VERSION,1); print '</td>'; print '<td width="20"> </td>'; @@ -376,28 +376,28 @@ if ($action == 'edit') // Edit */ // Show bugtrack link - print '<tr><td width="35%">'.$langs->trans("ShowBugTrackLink", $langs->transnoentitiesnoconv("FindBug")).'</td><td>'; + print '<tr><td class="titlefield">'.$langs->trans("ShowBugTrackLink", $langs->transnoentitiesnoconv("FindBug")).'</td><td>'; print $form->selectyesno('MAIN_BUGTRACK_ENABLELINK',$conf->global->MAIN_BUGTRACK_ENABLELINK,1); print '</td>'; print '<td width="20"> </td>'; print '</tr>'; // Hide wiki link on login page - print '<tr><td width="35%">'.$langs->trans("DisableLinkToHelp",img_picto('',DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/helpdoc.png','',1)).'</td><td>'; + print '<tr><td class="titlefield">'.$langs->trans("DisableLinkToHelp",img_picto('',DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/helpdoc.png','',1)).'</td><td>'; print $form->selectyesno('MAIN_HELP_DISABLELINK', isset($conf->global->MAIN_HELP_DISABLELINK)?$conf->global->MAIN_HELP_DISABLELINK:0,1); print '</td>'; print '<td width="20"> </td>'; print '</tr>'; // Hide helpcenter link on login page - print '<tr><td width="35%">'.$langs->trans("DisableLinkToHelpCenter").'</td><td>'; + print '<tr><td class="titlefield">'.$langs->trans("DisableLinkToHelpCenter").'</td><td>'; print $form->selectyesno('MAIN_HELPCENTER_DISABLELINK',isset($conf->global->MAIN_HELPCENTER_DISABLELINK)?$conf->global->MAIN_HELPCENTER_DISABLELINK:0,1); print '</td>'; print '<td width="20"> </td>'; print '</tr>'; // Message of the day on home page - print '<tr><td width="35%">'.$langs->trans("MessageOfDay").'</td><td colspan="2">'; + print '<tr><td class="titlefield">'.$langs->trans("MessageOfDay").'</td><td colspan="2">'; $doleditor = new DolEditor('main_motd', (isset($conf->global->MAIN_MOTD)?$conf->global->MAIN_MOTD:''), '', 142, 'dolibarr_notes', 'In', false, true, true, ROWS_4, '90%'); $doleditor->Create(); @@ -410,7 +410,7 @@ if ($action == 'edit') // Edit // Other print '<table summary="edit" class="noborder" width="100%">'; - print '<tr class="liste_titre"><td width="35%">'.$langs->trans("LoginPage").'</td><td></td>'; + print '<tr class="liste_titre"><td class="titlefield">'.$langs->trans("LoginPage").'</td><td></td>'; print '<td width="20"> </td>'; print '</tr>'; @@ -454,7 +454,7 @@ else // Show print '<table class="noborder" width="100%">'; print '<tr class="liste_titre"><td>'.$langs->trans("Language").'</td><td></td><td> </td></tr>'; - print '<tr class="oddeven"><td width="35%">'.$langs->trans("DefaultLanguage").'</td><td>'; + print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("DefaultLanguage").'</td><td>'; $s=picto_from_langcode($conf->global->MAIN_LANG_DEFAULT); print ($s?$s.' ':''); print ($conf->global->MAIN_LANG_DEFAULT=='auto'?$langs->trans("AutoDetectLang"):$langs->trans("Language_".$conf->global->MAIN_LANG_DEFAULT)); @@ -464,7 +464,7 @@ else // Show print '</td>'; print "</tr>"; - print '<tr class="oddeven"><td width="35%">'.$langs->trans("EnableMultilangInterface").'</td><td>' . yn($conf->global->MAIN_MULTILANGS) . '</td>'; + print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("EnableMultilangInterface").'</td><td>' . yn($conf->global->MAIN_MULTILANGS) . '</td>'; print '<td width="20"> </td>'; print "</tr>"; @@ -480,11 +480,11 @@ else // Show if (! empty($searchform)) { print '<table class="noborder" width="100%">'; - print '<tr class="liste_titre"><td width="35%">'.$langs->trans("PermanentLeftSearchForm").'</td><td>'.$langs->trans("Activated").'</td><td> </td></tr>'; + print '<tr class="liste_titre"><td class="titlefield">'.$langs->trans("PermanentLeftSearchForm").'</td><td>'.$langs->trans("Activated").'</td><td> </td></tr>'; foreach ($searchform as $key => $value) { - print '<tr class="oddeven"><td width="35%">'.$searchformtitle[$key].'</td><td>'.yn($searchformconst[$key]).'</td>'; + print '<tr class="oddeven"><td class="titlefield">'.$searchformtitle[$key].'</td><td>'.yn($searchformconst[$key]).'</td>'; print '<td align="left">'; if (! empty($searchformmodule[$key])) print $langs->trans("IfModuleEnabled",$langs->transnoentitiesnoconv($searchformmodule[$key])); print '</td></tr>'; @@ -495,7 +495,7 @@ else // Show // Other print '<table class="noborder" width="100%">'; - print '<tr class="liste_titre"><td width="35%">'.$langs->trans("Parameters").'</td><td colspan="2">'.$langs->trans("Value").'</td></tr>'; + print '<tr class="liste_titre"><td class="titlefield">'.$langs->trans("Parameters").'</td><td colspan="2">'.$langs->trans("Value").'</td></tr>'; print '<tr class="oddeven"><td>'.$langs->trans("DefaultMaxSizeList").'</td><td>' . $conf->global->MAIN_SIZE_LISTE_LIMIT . '</td>'; print '<td width="20"> </td>'; @@ -513,34 +513,34 @@ else // Show */ // Disable javascript/ajax - print '<tr class="oddeven"><td width="35%">'.$langs->trans("DisableJavascript").'</td><td>'; + print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("DisableJavascript").'</td><td>'; print yn($conf->global->MAIN_DISABLE_JAVASCRIPT)."</td>"; print '<td width="20"> </td>'; print "</tr>"; // First day for weeks - print '<tr class="oddeven"><td width="35%">'.$langs->trans("WeekStartOnDay").'</td><td>'; + print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("WeekStartOnDay").'</td><td>'; print $langs->trans("Day".(isset($conf->global->MAIN_START_WEEK)?$conf->global->MAIN_START_WEEK:'1')); print '</td>'; print '<td width="20"> </td>'; print '</tr>'; // DefaultWorkingDays - print '<tr class="oddeven"><td width="35%">'.$langs->trans("DefaultWorkingDays").'</td><td>'; + print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("DefaultWorkingDays").'</td><td>'; print isset($conf->global->MAIN_DEFAULT_WORKING_DAYS)?$conf->global->MAIN_DEFAULT_WORKING_DAYS:'1-5'; print '</td>'; print '<td width="20"> </td>'; print '</tr>'; // DefaultWorkingHours - print '<tr class="oddeven"><td width="35%">'.$langs->trans("DefaultWorkingHours").'</td><td>'; + print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("DefaultWorkingHours").'</td><td>'; print isset($conf->global->MAIN_DEFAULT_WORKING_HOURS)?$conf->global->MAIN_DEFAULT_WORKING_HOURS:'9-18'; print '</td>'; print '<td width="20"> </td>'; print '</tr>'; // Firstname / Name position - print '<tr class="oddeven"><td width="35%">'.$langs->trans("FirstnameNamePosition").'</td><td>'; + print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("FirstnameNamePosition").'</td><td>'; if (empty($conf->global->MAIN_FIRSTNAME_NAME_POSITION)) { print $langs->trans("Firstname").' '.$langs->trans("Lastname"); } else { print $langs->trans("Lastname").' '.$langs->trans("Firstname"); } print '</td>'; @@ -548,7 +548,7 @@ else // Show print '</tr>'; // Hide unauthorized button - print '<tr class="oddeven"><td width="35%">'.$langs->trans("ButtonHideUnauthorized").'</td><td colspan="2">'; + print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("ButtonHideUnauthorized").'</td><td colspan="2">'; print yn((isset($conf->global->MAIN_BUTTON_HIDE_UNAUTHORIZED)?$conf->global->MAIN_BUTTON_HIDE_UNAUTHORIZED:0),1); print '</td></tr>'; @@ -559,7 +559,7 @@ else // Show // Hide version link /* - print '<tr><td width="35%">'.$langs->trans("HideVersionLink").'</td><td>'; + print '<tr><td class="titlefield">'.$langs->trans("HideVersionLink").'</td><td>'; print yn($conf->global->MAIN_HIDE_VERSION); print '</td>'; print '<td width="20"> </td>'; @@ -567,23 +567,23 @@ else // Show */ // Show bugtrack link - print '<tr class="oddeven"><td width="35%">'.$langs->trans("ShowBugTrackLink", $langs->transnoentitiesnoconv("FindBug")).'</td><td>'; + print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("ShowBugTrackLink", $langs->transnoentitiesnoconv("FindBug")).'</td><td>'; print yn($conf->global->MAIN_BUGTRACK_ENABLELINK)."</td>"; print '<td width="20"> </td>'; print "</tr>"; // Link to wiki help - print '<tr class="oddeven"><td width="35%">'.$langs->trans("DisableLinkToHelp",img_picto('',DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/helpdoc.png','',1)).'</td><td colspan="2">'; + print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("DisableLinkToHelp",img_picto('',DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/helpdoc.png','',1)).'</td><td colspan="2">'; print yn((isset($conf->global->MAIN_HELP_DISABLELINK)?$conf->global->MAIN_HELP_DISABLELINK:0),1); print '</td></tr>'; // Link to help center - print '<tr class="oddeven"><td width="35%">'.$langs->trans("DisableLinkToHelpCenter").'</td><td colspan="2">'; + print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("DisableLinkToHelpCenter").'</td><td colspan="2">'; print yn((isset($conf->global->MAIN_HELPCENTER_DISABLELINK)?$conf->global->MAIN_HELPCENTER_DISABLELINK:0),1); print '</td></tr>'; // Message of the day - print '<tr class="oddeven"><td width="35%">'.$langs->trans("MessageOfDay").'</td><td colspan="2">'; + print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("MessageOfDay").'</td><td colspan="2">'; if (isset($conf->global->MAIN_MOTD)) print dol_htmlcleanlastbr($conf->global->MAIN_MOTD); else print ' '; print '</td></tr>'."\n"; @@ -597,7 +597,7 @@ else // Show print '<tr class="liste_titre"><td>'.$langs->trans("LoginPage").'</td><td></td><td> </td></tr>'; // Message login - print '<tr class="oddeven"><td width="35%">'.$langs->trans("MessageLogin").'</td><td colspan="2">'; + print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("MessageLogin").'</td><td colspan="2">'; if (isset($conf->global->MAIN_HOME)) print dol_htmlcleanlastbr($conf->global->MAIN_HOME); else print ' '; print '</td></tr>'."\n"; diff --git a/htdocs/core/lib/usergroups.lib.php b/htdocs/core/lib/usergroups.lib.php index d2567f30c04..b07b6fce821 100644 --- a/htdocs/core/lib/usergroups.lib.php +++ b/htdocs/core/lib/usergroups.lib.php @@ -337,7 +337,7 @@ function show_theme($fuser,$edit=0,$foruserprofile=false) // Title if ($foruserprofile) { - print '<tr class="liste_titre"><th width="25%">'.$langs->trans("Parameter").'</th><th width="25%">'.$langs->trans("DefaultValue").'</th>'; + print '<tr class="liste_titre"><th class="titlefield">'.$langs->trans("Parameter").'</th><th>'.$langs->trans("DefaultValue").'</th>'; print '<th colspan="2"> </th>'; print '</tr>'; @@ -350,7 +350,7 @@ function show_theme($fuser,$edit=0,$foruserprofile=false) } else { - print '<tr class="liste_titre"><th width="35%">'.$langs->trans("DefaultSkin").'</th>'; + print '<tr class="liste_titre"><th class="titlefield">'.$langs->trans("DefaultSkin").'</th>'; print '<th align="right">'; $url='https://www.dolistore.com/lang-en/4-skins'; if (preg_match('/fr/i',$langs->defaultlang)) $url='https://www.dolistore.com/fr/4-themes'; diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index 9ab6408714c..894b087d55a 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -1338,7 +1338,7 @@ CacheByServer=Cache by server CacheByClient=Cache by browser CompressionOfResources=Compression of HTTP responses TestNotPossibleWithCurrentBrowsers=Such an automatic detection is not possible with current browsers -DefaultValuesDesc=You can defined here the default value you want to get when your create a new record, and/or defaut filters or soting order when your list record. +DefaultValuesDesc=You can define/force here the default value you want to get when your create a new record, and/or defaut filters or soting order when your list record. DefaultCreateForm=Create forms DefaultSearchFilters=Search filters DefaultSortOrder=Sort orders diff --git a/htdocs/langs/en_US/commercial.lang b/htdocs/langs/en_US/commercial.lang index 16a6611db4a..deb66143b82 100644 --- a/htdocs/langs/en_US/commercial.lang +++ b/htdocs/langs/en_US/commercial.lang @@ -18,7 +18,8 @@ TaskRDVWith=Meeting with %s ShowTask=Show task ShowAction=Show event ActionsReport=Events report -ThirdPartiesOfSaleRepresentative=Thirdparties with sales representative +ThirdPartiesOfSaleRepresentative=Third parties with sales representative +SaleRepresentativesOfThirdParty=Sales representatives of third party SalesRepresentative=Sales representative SalesRepresentatives=Sales representatives SalesRepresentativeFollowUp=Sales representative (follow-up) diff --git a/htdocs/projet/list.php b/htdocs/projet/list.php index fb6453e8159..038e9b8cdd5 100644 --- a/htdocs/projet/list.php +++ b/htdocs/projet/list.php @@ -116,7 +116,7 @@ $arrayfields=array( 'p.ref'=>array('label'=>$langs->trans("Ref"), 'checked'=>1), 'p.title'=>array('label'=>$langs->trans("Label"), 'checked'=>1), 's.nom'=>array('label'=>$langs->trans("ThirdParty"), 'checked'=>1, 'enabled'=>$conf->societe->enabled), - 'commercial'=>array('label'=>$langs->trans("ThirdPartiesOfSaleRepresentative"), 'checked'=>1), + 'commercial'=>array('label'=>$langs->trans("SaleRepresentativesOfThirdParty"), 'checked'=>1), 'p.dateo'=>array('label'=>$langs->trans("DateStart"), 'checked'=>1, 'position'=>100), 'p.datee'=>array('label'=>$langs->trans("DateEnd"), 'checked'=>1, 'position'=>101), 'p.public'=>array('label'=>$langs->trans("Visibility"), 'checked'=>1, 'position'=>102), diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index e9a9e115293..611ae895872 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -1797,7 +1797,10 @@ font.vsmenudisabledmargin { margin: 1px 1px 1px 8px; } a.help:link, a.help:visited, a.help:hover, a.help:active, span.help { font-size:<?php print $fontsizesmaller ?>px; font-family: <?php print $fontlist ?>; text-align: <?php print $left; ?>; font-weight: normal; color: #666666; text-decoration: none; } - +div.blockvmenulogo +{ + border-bottom: 0 !important; +} div.blockvmenupair, div.blockvmenuimpair { font-family: <?php print $fontlist ?>; -- GitLab