diff --git a/include/class_todo_list.php b/include/class_todo_list.php index 42a8ef6ee..713ced1fb 100644 --- a/include/class_todo_list.php +++ b/include/class_todo_list.php @@ -184,7 +184,7 @@ class Todo_List */ public function load_all() { - $sql="select tl_id, tl_title,tl_desc,to_char( tl_date,'DD.MM.YYYY') as str_tl_date + $sql="select tl_id, tl_title,tl_desc,to_char( tl_date,'DD.MM.YYYY') as str_tl_date,tl_date from todo_list where use_login=$1". " order by tl_date::date asc"; $res=$this->cn->exec_sql( diff --git a/include/template/dashboard.php b/include/template/dashboard.php index f8e0661ae..2eaba5b5e 100644 --- a/include/template/dashboard.php +++ b/include/template/dashboard.php @@ -121,7 +121,8 @@ $array=$todo->load_all(); '; + echo ''; + echo ''; $nb=0; $today=date('d.m.Y'); @@ -130,7 +131,7 @@ if ( ! empty ($array) ) { if ( strcmp($today,$row['str_tl_date'])==0) { $odd.=' style="background-color:#FFEA00"';} $nb++; echo ''. - ''. '
Date  ▴Titre
'. + ''. $row['str_tl_date']. ''.