From 060e4c15ef17c6bba230ee5ce6b2ef7f6370ade7 Mon Sep 17 00:00:00 2001 From: kanoi Date: Mon, 21 Mar 2016 23:13:18 +1100 Subject: [PATCH] php - add the ovents list to page_events --- pool/page_events.php | 53 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/pool/page_events.php b/pool/page_events.php index ead6d036..8f15bc18 100644 --- a/pool/page_events.php +++ b/pool/page_events.php @@ -142,6 +142,59 @@ What: } } + if ($wh == 'ovents') + { + $ans = eventCmd($user, array('action' => 'ovents')); + + $pg .= "

\n"; + $pg .= ''; + $pg .= ''; + $pg .= ''; + $pg .= ''; + $pg .= ''; + $pg .= ''; + $pg .= ''; + $pg .= "\n"; + + if ($ans['STATUS'] == 'ok') + { + $pg .= ''; + $count = $ans['rows']; + for ($i = 0; $i < $count; $i++) + { + if (($i % 2) == 0) + $row = 'even'; + else + $row = 'odd'; + + $j = $i+1; + $pg .= ""; + $pg .= ""; + $pg .= ''; + $pg .= ''; + $pg .= ''; + $pg .= ''; + $co = ''; + for ($k = 0; $k < 60; $k++) + { + if ($k < 10) + $min = '0' . $k; + else + $min = $k; + if (isset($ans["min$min:$i"])) + { + if ($co != '') + $co .= ' '; + $co .= "$min=".$ans["min$min:$i"]; + } + } + $pg .= ""; + $pg .= "\n"; + } + $pg .= ''; + } + } + return $pg; } #
#KeyIDIDNameHour UTCCount
$j'.$ans['key:'.$i].''.$ans['id:'.$i].''.$ans['idname:'.$i].''.gmdate('j/M H:i:s',$ans['hour:'.$i]*3600).'$co