From d2eaf069d7c42c8f2ef81dc5a8837c2d8264d3b7 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 30 Mar 2007 21:44:42 +0000 Subject: [PATCH] Mise en page des dates comme dans la fiche client --- htdocs/comm/action/index.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index 22968beeacf..ee81d65dd7a 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -117,7 +117,7 @@ if ($resql) $i = 0; print ""; print ''; - print_liste_field_titre($langs->trans("Date"),$_SERVER["PHP_SELF"],"a.datep",$param,'','',$sortfield); + print_liste_field_titre($langs->trans("Date"),$_SERVER["PHP_SELF"],"a.datep",$param,'','colspan="4"',$sortfield); print_liste_field_titre($langs->trans("Action"),$_SERVER["PHP_SELF"],"acode",$param,"","",$sortfield); print_liste_field_titre($langs->trans("Title"),$_SERVER["PHP_SELF"],"a.label",$param,"","",$sortfield); print_liste_field_titre($langs->trans("Company"),$_SERVER["PHP_SELF"],"s.nom",$param,"","",$sortfield); @@ -134,38 +134,37 @@ if ($resql) print ""; - print ''; } else { - print strftime("%Y",$obj->dp)."-"; + print ''; $oldyear = strftime("%Y",$obj->dp); } if ($oldmonth == strftime("%Y%m",$obj->dp) ) { + print ''; } else { - print strftime("%m",$obj->dp)."-"; + print ''; $oldmonth = strftime("%Y%m",$obj->dp); } if ($oldday == strftime("%Y%m%d",$obj->dp) ) { + print ''; } else { - print strftime("%d",$obj->dp)." "; + print ''; $oldday = strftime("%Y%m%d",$obj->dp); } - print strftime("%H:%M",$obj->dp); - print "\n"; - -// print '\n"; + print ''; // Action (type) print '
'; if ($oldyear == strftime("%Y",$obj->dp) ) { + print '|'.strftime("%Y",$obj->dp).'|'.strftime("%b",$obj->dp).'|'.strftime("%d",$obj->dp).' '.dolibarr_print_date($obj->dp)."'.strftime("%H:%M",$obj->dp).'';