diff --git a/htdocs/admin/ihm.php b/htdocs/admin/ihm.php
index 193ee35a80f..739a6fa4c88 100644
--- a/htdocs/admin/ihm.php
+++ b/htdocs/admin/ihm.php
@@ -50,18 +50,6 @@ $action = GETPOST('action');
if (! defined("MAIN_MOTD")) define("MAIN_MOTD","");
-// List of supported permanent search area
-$searchform=array();
-/* deprecated
-if (empty($conf->use_javascript_ajax))
-{
- $searchform=array("MAIN_SEARCHFORM_SOCIETE", "MAIN_SEARCHFORM_CONTACT", "MAIN_SEARCHFORM_PRODUITSERVICE", "MAIN_SEARCHFORM_ADHERENT", "MAIN_SEARCHFORM_PROJECT", "MAIN_SEARCHFORM_EMPLOYEE");
- $searchformconst=array($conf->global->MAIN_SEARCHFORM_SOCIETE,$conf->global->MAIN_SEARCHFORM_CONTACT,$conf->global->MAIN_SEARCHFORM_PRODUITSERVICE,$conf->global->MAIN_SEARCHFORM_ADHERENT,$conf->global->MAIN_SEARCHFORM_PROJECT,$conf->global->MAIN_SEARCHFORM_EMPLOYEE);
- $searchformtitle=array($langs->trans("Companies"), $langs->trans("Contacts"), $langs->trans("ProductsAndServices"), $langs->trans("Members"), $langs->trans("Projects"), $langs->trans("Users"));
- $searchformmodule=array('Module1Name','Module1Name','Module50Name','Module310Name','Module400Name');
-}
-*/
-
/*
* Action
@@ -275,21 +263,6 @@ if ($action == 'edit') // Edit
show_theme(null,1);
print ' ';
- // List of permanent supported search box
- if (! empty($searchform))
- {
- print '
';
- print ''.$langs->trans("PermanentLeftSearchForm").' '.$langs->trans("Activated").' ';
- foreach ($searchform as $key => $value)
- {
- print ''.$searchformtitle[$key].' ';
- print $form->selectyesno($searchform[$key],$searchformconst[$key],1);
- print ' ';
- }
- print '
';
- print ' ';
- }
-
// Other
print '';
print ''.$langs->trans("Parameters").' '.$langs->trans("Value").' ';
@@ -476,23 +449,6 @@ else // Show
print ' ';
- // List of search forms to show
- if (! empty($searchform))
- {
- print '';
- print ''.$langs->trans("PermanentLeftSearchForm").' '.$langs->trans("Activated").' ';
- foreach ($searchform as $key => $value)
- {
-
- print ''.$searchformtitle[$key].' '.yn($searchformconst[$key]).' ';
- print '';
- if (! empty($searchformmodule[$key])) print $langs->trans("IfModuleEnabled",$langs->transnoentitiesnoconv($searchformmodule[$key]));
- print ' ';
- }
- print '
';
- print ' ';
- }
-
// Other
print '';
print ''.$langs->trans("Parameters").' '.$langs->trans("Value").' ';
diff --git a/htdocs/admin/pdf.php b/htdocs/admin/pdf.php
index 2e650c75696..6698be8b01f 100644
--- a/htdocs/admin/pdf.php
+++ b/htdocs/admin/pdf.php
@@ -306,8 +306,9 @@ else // Show
$var=true;
// Misc options
- print load_fiche_titre($langs->trans("DictionaryPaperFormat"),'','').' ';
- $var=true;
+ print load_fiche_titre($langs->trans("DictionaryPaperFormat"),'','');
+
+
print '';
print ''.$langs->trans("Parameter").' '.$langs->trans("Value").' ';
@@ -357,7 +358,7 @@ else // Show
print ' ';
- print load_fiche_titre($langs->trans("PDFAddressForging"),'','').' ';
+ print load_fiche_titre($langs->trans("PDFAddressForging"),'','');
print '';
print ''.$langs->trans("Parameter").' '.$langs->trans("Value").' ';
@@ -444,7 +445,7 @@ else // Show
print ' ';
// Other
- print load_fiche_titre($langs->trans("Other"),'','').' ';
+ print load_fiche_titre($langs->trans("Other"),'','');
$var=true;
print '';
print ''.$langs->trans("Parameter").' '.$langs->trans("Value").' ';
diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php
index 73d015d7db9..30b13bc3007 100644
--- a/htdocs/comm/action/card.php
+++ b/htdocs/comm/action/card.php
@@ -706,7 +706,7 @@ if ($action == 'create')
if (GETPOST('complete') == '0' || GETPOST("afaire") == 1) $percent='0';
else if (GETPOST('complete') == 100 || GETPOST("afaire") == 2) $percent=100;
}
- $formactions->form_select_status_action('formaction',$percent,1,'complete');
+ $formactions->form_select_status_action('formaction', $percent, 1, 'complete', 0, 0, 'maxwidth200');
print '';
// Location
@@ -1428,7 +1428,7 @@ if ($id > 0)
} else {
$value = $object->array_options["options_" . $key];
}
- print ''.$label.' ';
+ print ' '.$label.' ';
print $extrafields->showOutputField($key,$value);
print " \n";
}
@@ -1491,7 +1491,7 @@ if ($id > 0)
{
if (empty($conf->global->AGENDA_DISABLE_BUILDDOC))
{
- print '
';
+ print '
';
print '
'; // ancre
/*
@@ -1512,8 +1512,6 @@ if ($id > 0)
print '
';
-
- print '
';
}
}
}
diff --git a/htdocs/core/class/html.formactions.class.php b/htdocs/core/class/html.formactions.class.php
index b799e0e2359..452ff89d914 100644
--- a/htdocs/core/class/html.formactions.class.php
+++ b/htdocs/core/class/html.formactions.class.php
@@ -54,9 +54,10 @@ class FormActions
* @param string $htmlname Name of html prefix for html fields (selectX and valX)
* @param integer $showempty Show an empty line if select is used
* @param integer $onlyselect 0=Standard, 1=Hide percent of completion and force usage of a select list, 2=Same than 1 and add "Incomplete (Todo+Running)
+ * @param string $morecss More css on select field
* @return void
*/
- function form_select_status_action($formname,$selected,$canedit=1,$htmlname='complete',$showempty=0,$onlyselect=0)
+ function form_select_status_action($formname, $selected, $canedit=1, $htmlname='complete', $showempty=0, $onlyselect=0, $morecss='maxwidth100')
{
global $langs,$conf;
@@ -120,7 +121,7 @@ class FormActions
{
//var_dump($selected);
if ($selected == 'done') $selected='100';
- print '
';
+ print '';
if ($showempty) print ' ';
foreach($listofstatus as $key => $val)
{
diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index 31f29ff611c..262204b9f72 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -257,8 +257,10 @@ function GETPOST($paramname, $check='', $method=0, $filter=NULL, $options=NULL)
if (empty($method) || $method == 3 || $method == 4)
{
+ global $conf;
+
// Management of default values
- if (! isset($_GET['sortfield'])) // If we did a click on a field to sort, we do no apply default values
+ if (! isset($_GET['sortfield']) && empty($conf->global->MAIN_DISABLE_DEFAULT_VALUES)) // If we did a click on a field to sort, we do no apply default values. Same if option MAIN_DISABLE_DEFAULT_VALUES is on
{
if (! empty($_GET['action']) && $_GET['action'] == 'create' && ! empty($paramname) && ! isset($_GET[$paramname]) && ! isset($_POST[$paramname]))
{
diff --git a/htdocs/core/lib/security2.lib.php b/htdocs/core/lib/security2.lib.php
index 5139128a5d8..a14645a3152 100644
--- a/htdocs/core/lib/security2.lib.php
+++ b/htdocs/core/lib/security2.lib.php
@@ -197,12 +197,6 @@ function dol_loginfunction($langs,$conf,$mysoc)
if (! GETPOST("username")) $focus_element='username';
else $focus_element='password';
- $login_background=DOL_URL_ROOT.'/theme/login_background.png';
- if (file_exists(DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/img/login_background.png'))
- {
- $login_background=DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/login_background.png';
- }
-
$demologin='';
$demopassword='';
if (! empty($dolibarr_main_demo))
diff --git a/htdocs/core/lib/usergroups.lib.php b/htdocs/core/lib/usergroups.lib.php
index 4350edc3797..8936cf98623 100644
--- a/htdocs/core/lib/usergroups.lib.php
+++ b/htdocs/core/lib/usergroups.lib.php
@@ -426,7 +426,7 @@ function show_theme($fuser,$edit=0,$foruserprofile=false)
print '';
- // BackgroundColor
+ // Background color THEME_ELDY_BACKBODY
if ($foruserprofile)
{
/*
@@ -609,7 +609,7 @@ function show_theme($fuser,$edit=0,$foruserprofile=false)
{
print $formother->showColor($conf->global->THEME_ELDY_TEXTTITLENOTAB, $langs->trans("Default"));
}
- print ' ('.$langs->trans("Default").': 3c3c14 ) ';
+ print ' ('.$langs->trans("Default").': 3c3c14 ) ';
print $form->textwithpicto('', $langs->trans("NotSupportedByAllThemes").', '.$langs->trans("PressF5AfterChangingThis"));
print '';
@@ -654,9 +654,14 @@ function show_theme($fuser,$edit=0,$foruserprofile=false)
{
$color = colorArrayToHex(colorStringToArray($conf->global->THEME_ELDY_TEXTLINK,array()),'');
if ($color) print ' ';
- else print $langs->trans("Default");
+ else
+ {
+ //print ' ';
+ //print ''.$langs->trans("Default").' ';
+ print $langs->trans("Default");
+ }
}
- print ' ('.$langs->trans("Default").': 000078 ) ';
+ print ' ('.$langs->trans("Default").': 000078 ) ';
print $form->textwithpicto('', $langs->trans("NotSupportedByAllThemes").', '.$langs->trans("PressF5AfterChangingThis"));
print '';
}
diff --git a/htdocs/holiday/list.php b/htdocs/holiday/list.php
index d9c5fdf43c0..f91616d0b9a 100644
--- a/htdocs/holiday/list.php
+++ b/htdocs/holiday/list.php
@@ -282,6 +282,7 @@ print ' ';
print ' ';
print ' ';
print ' ';
+if ($id > 0) print ' ';
if ($sall)
{
diff --git a/htdocs/projet/activity/perday.php b/htdocs/projet/activity/perday.php
index c50cbd014f7..c1aa8aaa469 100644
--- a/htdocs/projet/activity/perday.php
+++ b/htdocs/projet/activity/perday.php
@@ -407,25 +407,7 @@ print '
';
print '';
print '
'."\n";
-print '';
-print ''.$langs->trans("RefTask").' ';
-print ''.$langs->trans("LabelTask").' ';
-print ''.$langs->trans("ProjectRef").' ';
-if (! empty($conf->global->PROJECT_LINES_PERDAY_SHOW_THIRDPARTY))
-{
- print ''.$langs->trans("ThirdParty").' ';
-}
-print ''.$langs->trans("PlannedWorkload").' ';
-print ''.$langs->trans("ProgressDeclared").' ';
-print ''.$langs->trans("TimeSpent").' ';
-if ($usertoprocess->id == $user->id) print ''.$langs->trans("TimeSpentByYou").' ';
-else print ''.$langs->trans("TimeSpentByUser").' ';
-print ''.$langs->trans("HourStart").' ';
-print ''.$langs->trans("Duration").' ';
-print ''.$langs->trans("Note").' ';
-print " \n";
-
-print '';
+print ' ';
print ' ';
print ' ';
print ' ';
@@ -444,6 +426,24 @@ print $searchpitco;
print '';
print " \n";
+print '';
+print ''.$langs->trans("RefTask").' ';
+print ''.$langs->trans("LabelTask").' ';
+print ''.$langs->trans("ProjectRef").' ';
+if (! empty($conf->global->PROJECT_LINES_PERDAY_SHOW_THIRDPARTY))
+{
+ print ''.$langs->trans("ThirdParty").' ';
+}
+print ''.$langs->trans("PlannedWorkload").' ';
+print ''.$langs->trans("ProgressDeclared").' ';
+print ''.$langs->trans("TimeSpent").' ';
+if ($usertoprocess->id == $user->id) print ''.$langs->trans("TimeSpentByYou").' ';
+else print ''.$langs->trans("TimeSpentByUser").' ';
+print ''.$langs->trans("HourStart").' ';
+print ''.$langs->trans("Duration").' ';
+print ''.$langs->trans("Note").' ';
+print " \n";
+
// By default, we can edit only tasks we are assigned to
$restrictviewformytask=(empty($conf->global->PROJECT_TIME_SHOW_TASK_NOT_ASSIGNED)?1:0);
diff --git a/htdocs/projet/activity/perweek.php b/htdocs/projet/activity/perweek.php
index 989424afd67..905b93393dd 100644
--- a/htdocs/projet/activity/perweek.php
+++ b/htdocs/projet/activity/perweek.php
@@ -402,6 +402,26 @@ print '
';
print '';
print '
'."\n";
+print '';
+print ' ';
+print ' ';
+print ' ';
+if (! empty($conf->global->PROJECT_LINES_PERWEEK_SHOW_THIRDPARTY)) print ' ';
+print ' ';
+print ' ';
+print ' ';
+print ' ';
+for($i=0;$i<7;$i++)
+{
+ print ' ';
+}
+// Action column
+print '';
+$searchpitco=$form->showFilterAndCheckAddButtons(0);
+print $searchpitco;
+print ' ';
+print " \n";
+
print '';
print ''.$langs->trans("RefTask").' ';
print ''.$langs->trans("LabelTask").' ';
@@ -425,26 +445,6 @@ for($i=0;$i<7;$i++)
print ' ';
print " \n";
-print '';
-print ' ';
-print ' ';
-print ' ';
-if (! empty($conf->global->PROJECT_LINES_PERWEEK_SHOW_THIRDPARTY)) print ' ';
-print ' ';
-print ' ';
-print ' ';
-print ' ';
-for($i=0;$i<7;$i++)
-{
- print ' ';
-}
-// Action column
-print '';
-$searchpitco=$form->showFilterAndCheckAddButtons(0);
-print $searchpitco;
-print ' ';
-print " \n";
-
// By default, we can edit only tasks we are assigned to
$restrictviewformytask=(empty($conf->global->PROJECT_TIME_SHOW_TASK_NOT_ASSIGNED)?1:0);
diff --git a/htdocs/theme/doliforge_logo.png b/htdocs/theme/doliforge_logo.png
deleted file mode 100644
index c9de1b5012c..00000000000
Binary files a/htdocs/theme/doliforge_logo.png and /dev/null differ
diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php
index 658b63c1370..4b42a47f1cf 100644
--- a/htdocs/theme/eldy/style.css.php
+++ b/htdocs/theme/eldy/style.css.php
@@ -935,7 +935,7 @@ div.blockvmenuend, div.blockvmenubookmarks {
padding-left: 0 !important;
}
div.vmenu, td.vmenu {
- padding-right: 6px !important;
+ padding-right: 10px !important;
}
@@ -989,6 +989,7 @@ div.fiche {
dol_hide_leftmenu)) print 'margin-bottom: 12px;'."\n"; ?>
}
div.fichecenter {
+ /* margin-top: 10px; */
width: 100%;
clear: both; /* This is to have div fichecenter that are true rectangles */
}
@@ -1737,7 +1738,7 @@ div.vmenu, td.vmenu {
.vmenu {
width: 190px;
- margin-left: 4px;
+ margin-left: 6px;
display: none;
@@ -1953,10 +1954,11 @@ img.toolbarbutton {
/* ============================================================================== */
div.tabs {
text-align: ;
- margin-left: 6px !important;
- margin-right: 6px !important;
+ padding-left: 6px !important;
+ padding-right: 6px !important;
clear:both;
height:100%;
+ /* background-image: linear-gradient(to top,#f6f6f6 0,#fff 8px); */
}
div.tabsElem {
margin-top: 1px;
@@ -2018,7 +2020,7 @@ a.tabTitle {
a.tab:link, a.tab:visited, a.tab:hover, a.tab#active {
font-family: ;
- padding: 8px 9px 8px;
+ padding: 12px 9px 12px;
margin: 0em 0.2em;
text-decoration: none;
white-space: nowrap;
@@ -2027,11 +2029,6 @@ a.tab:link, a.tab:visited, a.tab:hover, a.tab#active {
border-left: 1px solid transparent;
border-top: 1px solid transparent;
border-bottom: 0px !important;
- /*
- -moz-border-radius:4px 4px 0 0;
- -webkit-border-radius: 4px 4px 0 0;
- border-radius: 4px 4px 0 0;
- */
background-image: none !important;
}
@@ -3036,9 +3033,12 @@ td.legendLabel { padding: 2px 2px 2px 0 !important; }
div.titre {
font-family: ;
- font-weight: bold;
+ font-size: 14px;
+ /* font-weight: bold; */
color: rgb();
text-decoration: none;
+ padding-top: 5px;
+ padding-bottom: 5px;
/* text-shadow: 1px 1px 2px #FFFFFF; */
}
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index 6513210a1a9..52fb9d3ab1a 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -241,7 +241,7 @@ body {
color: rgb();
font-size: px;
- line-height: 130%;
+ line-height: 1.3;
font-family: ;
margin-top: 0;
margin-bottom: 0;
@@ -3146,9 +3146,12 @@ td.legendLabel { padding: 2px 2px 2px 0 !important; }
div.titre {
font-family: ;
- font-weight: bold;
+ font-size: 14px;
+ /* font-weight: bold; */
color: rgb();
text-decoration: none;
+ padding-top: 5px;
+ padding-bottom: 5px;
/* text-shadow: 1px 1px 2px #FFFFFF; */
dol_optimize_smallscreen)?'':'margin-top: 4px;'); ?>
}
diff --git a/htdocs/user/note.php b/htdocs/user/note.php
index ae685391299..ca9f821d14c 100644
--- a/htdocs/user/note.php
+++ b/htdocs/user/note.php
@@ -52,6 +52,7 @@ $result = restrictedArea($user, 'user', $id, 'user&user', $feature2);
// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array
$hookmanager->initHooks(array('usercard','globalcard'));
+
/******************************************************************************/
/* Actions */
/******************************************************************************/
diff --git a/htdocs/user/passwordforgotten.php b/htdocs/user/passwordforgotten.php
index f7acc3609c7..e59e26efd0b 100644
--- a/htdocs/user/passwordforgotten.php
+++ b/htdocs/user/passwordforgotten.php
@@ -191,15 +191,6 @@ $conf_css = $themepath."?lang=".$langs->defaultlang;
$jquerytheme = 'smoothness';
if (! empty($conf->global->MAIN_USE_JQUERY_THEME)) $jquerytheme = $conf->global->MAIN_USE_JQUERY_THEME;
-if (file_exists(DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/img/login_background.png'))
-{
- $login_background = DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/login_background.png';
-}
-else
-{
- $login_background = DOL_URL_ROOT.'/theme/login_background.png';
-}
-
if (! $username) $focus_element = 'username';
else $focus_element = 'password';