diff --git a/source/webui/pages/status.php b/source/webui/pages/status.php new file mode 100644 index 0000000..22216e9 --- /dev/null +++ b/source/webui/pages/status.php @@ -0,0 +1,6 @@ +smarty->assign('services', $services); + +?> \ No newline at end of file diff --git a/source/webui/templates/status.tpl b/source/webui/templates/status.tpl index 9762f48..c69abb1 100644 --- a/source/webui/templates/status.tpl +++ b/source/webui/templates/status.tpl @@ -1,14 +1,17 @@
-

Site Status History {$service->name|escape:html}LDAP - External{$site->name|escape:html}

+

Site Status History {$service->name|escape:html}-{$site->name|escape:html}

This page details the incident history for a Site related to a Service

-
-
-

Today 21/12/11

-

x incidents

-
-
+ {foreach from=array(0,1,2,3,4,5,6) item=day} + {if $day == 0} +
+
+

Today {mktime(0,0,0,date("n"),date("j"))|date_format:"d M Y"}

+

x incidents

+
+ +
@@ -33,14 +36,16 @@
Incident
-
-
-
-
-

Yesterday 20/12/11

-

x incidents

-
-
+
+
+ {else} +
+
+

{mktime(0,0,0,date("n"),date("j")-$day)|date_format:"d M Y"}

+

x incidents

+
+ +
@@ -54,13 +59,21 @@ - - + + + + + + + +
Incident123456 Loss of power on remote site 14:00Resolved15:00Major Incident-
123457Loss of power on remote site14:00Major Incident-
-
-
- +
+
+ {/if} + {/foreach} +
\ No newline at end of file