diff --git a/htdocs/contrat/list.php b/htdocs/contrat/list.php
index babc31f7702..94118d415bf 100644
--- a/htdocs/contrat/list.php
+++ b/htdocs/contrat/list.php
@@ -487,13 +487,13 @@ if ($resql)
if (! empty($arrayfields['c.date_contrat']['checked']))
{
// Date contract
- print '
';
+ 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 $formother->selectyear($syear,'year',1, 20, 5, 0, 0, '', 'widthauto');
print ' | ';
}
// Extra fields
diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php
index 3339b2b054e..de87e6c2e39 100644
--- a/htdocs/core/class/html.formother.class.php
+++ b/htdocs/core/class/html.formother.class.php
@@ -881,9 +881,10 @@ class FormOther
* @param int $offset Offset
* @param int $invert Invert
* @param string $option Option
+ * @param string $morecss More css
* @return string
*/
- function selectyear($selected='',$htmlname='yearid',$useempty=0, $min_year=10, $max_year=5, $offset=0, $invert=0, $option='')
+ function selectyear($selected='',$htmlname='yearid',$useempty=0, $min_year=10, $max_year=5, $offset=0, $invert=0, $option='', $morecss='')
{
$out='';
@@ -892,7 +893,7 @@ class FormOther
$min_year = $currentyear-$min_year;
if(empty($selected) && empty($useempty)) $selected = $currentyear;
- $out.= '