From 0104e81aae631857655787ec52015ae0412cbf01 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Mon, 27 Sep 2004 18:52:41 +0000 Subject: Frontend improvements. git-svn-id: svn://svn.zabbix.com/trunk@1434 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/html.inc.php | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) (limited to 'frontends/php/include/html.inc.php') diff --git a/frontends/php/include/html.inc.php b/frontends/php/include/html.inc.php index dd292453..ad4e3f3f 100644 --- a/frontends/php/include/html.inc.php +++ b/frontends/php/include/html.inc.php @@ -52,6 +52,50 @@ } } + function table_begin($class="tborder") + { + echo ""; + echo "\n"; + } + + function table_header($elements) + { + echo ""; + while(list($num,$element)=each($elements)) + { + echo ""; + } + echo ""; + echo "\n"; + } + + function table_row($elements, $rownum) + { + if($rownum%2 == 1) { echo ""; } + else { echo ""; } + + while(list($num,$element)=each($elements)) + { + if(is_array($element)) + { + echo ""; + } + else + { + echo ""; + } + } + echo ""; + echo "\n"; + } + + + function table_end() + { + echo "
".$element."
".$element["value"]."".$element."
"; + echo "\n"; + } + function table_td($text,$attr) { echo "$text"; -- cgit