diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index 8970ce93ff7..a796174eeed 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -108,7 +108,8 @@ if ($resql) $i = 0; print "
| '; if ($oldyear == strftime("%Y",$obj->da) ) { - print ' | '; } else { - print " | " .strftime("%Y",$obj->da)." | \n"; + print strftime("%Y",$obj->da)."-"; $oldyear = strftime("%Y",$obj->da); } - if ($oldmonth == strftime("%Y%b",$obj->da) ) + if ($oldmonth == strftime("%Y%m",$obj->da) ) { - print ''; } else { - print " | " .strftime("%b",$obj->da)." | \n"; - $oldmonth = strftime("%Y%b",$obj->da); + print strftime("%m",$obj->da)."-"; + $oldmonth = strftime("%Y%m",$obj->da); } - print "" .strftime("%d",$obj->da)." | \n"; - print "" .strftime("%H:%M",$obj->da)." | \n"; + if ($oldday == strftime("%Y%m%d",$obj->da) ) + { + } + else + { + print strftime("%d",$obj->da)." "; + $oldday = strftime("%Y%m%d",$obj->da); + } + + print strftime("%H:%M",$obj->da); + print "\n"; + +// print ''.dolibarr_print_date($obj->da)." | \n"; // Status/Percent if ($obj->percent < 100) { @@ -168,7 +179,7 @@ if ($resql) if ($obj->client == 1) $url=DOL_URL_ROOT.'/comm/fiche.php?socid='; elseif ($obj->client == 2) $url=DOL_URL_ROOT.'/comm/prospect/fiche.php?id='; else $url=DOL_URL_ROOT.'/soc.php?socid='; - print ' '.img_object($langs->trans("ShowCompany"),"company").' '.dolibarr_trunc($obj->societe,32).''; + print ' '.img_object($langs->trans("ShowCompany"),"company").' '.dolibarr_trunc($obj->societe,24).''; // Contact print ''; @@ -176,7 +187,7 @@ if ($resql) { $cont = new Contact($db); $cont->fetch($obj->fk_contact); - print ''.img_object($langs->trans("ShowContact"),"contact").' '.dolibarr_trunc($cont->fullname,32).''; + print ''.img_object($langs->trans("ShowContact"),"contact").' '.dolibarr_trunc($cont->fullname,24).''; } else { |