';
+ $this->action_div[$day].=HtmlInput::title_box($day."/".$this->month."/".$this->year, "tsk".$day, "hide");
+ $this->action_div[$day].="
";
+ for ($i=0;$iaction_div[$day].='- '.HtmlInput::detail_action($aAction[$i], $this->title[$day][$i]).'
';
+ }
+ $this->action_div[$day].='
';
+ }
}
/*!\brief fill the array given as parameter with the data from todo
*\param $p_array array of the date of the month
@@ -113,7 +135,15 @@ class Calendar
$month_year=$wMonth->input().$wMonth->get_js_attr();
ob_start();
require_once('template/calendar.php');
- $ret=ob_get_contents();
+
+ if (count($this->action_div) > 0)
+ {
+ foreach ($this->action_div as $day)
+ {
+ echo $day;
+ }
+ }
+ $ret=ob_get_contents();
ob_end_clean();
return $ret;
}
@@ -133,7 +163,7 @@ class Calendar
}
/**
*@brief get the periode from the preference of the current user
- * change the value of default_periode
+ * change the value of default_periode to today
*@return $this->default_periode
*/
function get_preference()
@@ -152,7 +182,7 @@ class Calendar
{
$p_id=$g_user->get_periode();
}
- $this->default_periode=$p_id;
+ $this->default_periode=$p_id;
return $p_id;
}
/**