diff --git a/htdocs/contrat/list.php b/htdocs/contrat/list.php index 7436c16fe69..c382bfc7612 100644 --- a/htdocs/contrat/list.php +++ b/htdocs/contrat/list.php @@ -340,7 +340,7 @@ if ($resql) print ''; print ''; print ''; - + print_barre_liste($langs->trans("ListOfContracts"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $totalnboflines, 'title_commercial.png', 0, '', '', $limit); if ($sall) @@ -393,51 +393,12 @@ if ($resql) $varpage=empty($contextpage)?$_SERVER["PHP_SELF"]:$contextpage; $selectedfields=$form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage); // This also change content of $arrayfields - + if ($massactionbutton) $selectedfields.=$form->showCheckAddButtons('checkforselect', 1); + print '
| '; @@ -486,7 +447,7 @@ if ($resql) print ' | '; print $form->selectarray("search_type_thirdparty", $formcompany->typent_array(0), $search_type_thirdparty, 0, 0, 0, '', 0, 0, 0, (empty($conf->global->SOCIETE_SORT_ON_TYPEENT)?'ASC':$conf->global->SOCIETE_SORT_ON_TYPEENT)); print ' | '; - } + } if (! empty($arrayfields['sale_representative']['checked'])) { print ''; @@ -495,12 +456,12 @@ if ($resql) { // Date contract print ' | '; - //print $langs->trans('Month').': '; - if (! empty($conf->global->MAIN_LIST_FILTER_ON_DAY)) print ''; - print ''; - //print ' '.$langs->trans('Year').': '; - $syear = $year; - $formother->select_year($syear,'year',1, 20, 5); + //print $langs->trans('Month').': '; + if (! empty($conf->global->MAIN_LIST_FILTER_ON_DAY)) print ''; + print ''; + //print ' '.$langs->trans('Year').': '; + $syear = $year; + $formother->select_year($syear,'year',1, 20, 5); print ' | '; } // Extra fields @@ -541,19 +502,58 @@ if ($resql) { print ''; print ' | '; - } + } // Status if (! empty($arrayfields['status']['checked'])) { print ''; } print ' | '; - $searchpitco=$form->showFilterAndCheckAddButtons($massactionbutton?1:0, 'checkforselect', 1); - print $searchpitco; + $searchpitco=$form->showFilterButtons(); + print $searchpitco; print ' | '; print "|||
| ';
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 4b8d9517dcf..271f87ab4a0 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -5804,8 +5804,8 @@ class Form
$navurl = preg_replace('/\/tasks\/(task|contact|time|note|document).php/','/tasks.php',$navurl);
$paramid='ref';
}
- $previous_ref = $object->ref_previous?''.(($conf->dol_use_jmobile != 4)?'<':' ').'':''.(($conf->dol_use_jmobile != 4)?'<':' ').'';
- $next_ref = $object->ref_next?''.(($conf->dol_use_jmobile != 4)?'>':' ').'':''.(($conf->dol_use_jmobile != 4)?'>':' ').'';
+ $previous_ref = $object->ref_previous?'':'';
+ $next_ref = $object->ref_next?'':'';
//print "xx".$previous_ref."x".$next_ref;
$ret.=' ';
@@ -6158,6 +6158,57 @@ class Form
return $out;
}
+
+ /**
+ * Return HTML to show the search and clear seach button
+ *
+ * @return string
+ */
+ function showFilterButtons()
+ {
+ global $conf, $langs;
+
+ $out=' ';
+ $out.='';
+ $out.='';
+ $out.=' ';
+
+ return $out;
+ }
+
+ /**
+ * Return HTML to show the search and clear seach button
+ *
+ * @param string $cssclass CSS class
+ * @param int $calljsfunction 0=default. 1=call function initCheckForSelect() after changing status of checkboxes
+ * @return string
+ */
+ function showCheckAddButtons($cssclass='checkforaction', $calljsfunction=0)
+ {
+ global $conf, $langs;
+
+ $out='';
+ if (! empty($conf->use_javascript_ajax)) $out.='';
+ $out.='';
+
+ return $out;
+ }
+
/**
* Return HTML to show the search and clear seach button
*
@@ -6168,31 +6219,10 @@ class Form
*/
function showFilterAndCheckAddButtons($addcheckuncheckall=0, $cssclass='checkforaction', $calljsfunction=0)
{
- global $conf, $langs;
-
- $out='';
- $out.='';
- $out.='';
- $out.=' ';
+ $out.=$this->showFilterButtons();
if ($addcheckuncheckall)
{
- if (! empty($conf->use_javascript_ajax)) $out.='';
- $out.='';
+ $out.=$this->showCheckAddButtons($cssclass, $calljsfunction);
}
return $out;
}
diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php
index 51a5ab39889..b16d6d13790 100644
--- a/htdocs/theme/eldy/style.css.php
+++ b/htdocs/theme/eldy/style.css.php
@@ -584,7 +584,7 @@ div.myavailability {
padding-bottom: 4px;
}
.checkallactions {
- vertical-align: top;
+ vertical-align: text-bottom;
margin-top: 6px;
margin-left: 4px;
}
@@ -2505,7 +2505,6 @@ div.pagination li {
div.pagination li.pagination a,
div.pagination li.pagination span {
padding: 6px 12px;
- margin-left: -1px;
line-height: 1.42857143;
color: #000;
text-decoration: none;
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index 4c1d32c31ad..d80630f0501 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -587,7 +587,7 @@ div.myavailability {
padding-bottom: 4px;
}
.checkallactions {
- vertical-align: top;
+ vertical-align: text-bottom;
margin-top: 6px;
margin-left: 4px;
}
@@ -2413,7 +2413,6 @@ div.pagination li {
div.pagination li.pagination a,
div.pagination li.pagination span {
padding: 6px 12px;
- margin-left: -1px;
line-height: 1.42857143;
color: #000;
text-decoration: none;
| |||||||||