diff --git a/source/webui/pages/home.php b/source/webui/pages/home.php index 2f3accf..2e190c6 100644 --- a/source/webui/pages/home.php +++ b/source/webui/pages/home.php @@ -3,12 +3,9 @@ $services = StatusBoard_Service::all(); for ($i = 1; $i <= 6; ++$i){ - $day = 'day'.$i; - $date = date("M. d", strtotime("-{$i}day")); - - $this->smarty->assign($day, $date); + $tbl_header_date[] = date("M. d", strtotime("-{$i}day")); } - +$this->smarty->assign('days', $tbl_header_date); $this->smarty->assign('services', $services); ?> \ No newline at end of file diff --git a/source/webui/templates/home.tpl b/source/webui/templates/home.tpl index 38f94b4..49dee50 100644 --- a/source/webui/templates/home.tpl +++ b/source/webui/templates/home.tpl @@ -4,12 +4,10 @@