summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/html.inc.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-09-27 18:52:41 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-09-27 18:52:41 +0000
commit0104e81aae631857655787ec52015ae0412cbf01 (patch)
tree9111932464f7178f3ef3ead084b70a014c2746b4 /frontends/php/include/html.inc.php
parent70e80218f9d5d36433bfeab80c59c551995cd313 (diff)
downloadzabbix-0104e81aae631857655787ec52015ae0412cbf01.tar.gz
zabbix-0104e81aae631857655787ec52015ae0412cbf01.tar.xz
zabbix-0104e81aae631857655787ec52015ae0412cbf01.zip
Frontend improvements.
git-svn-id: svn://svn.zabbix.com/trunk@1434 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/html.inc.php')
-rw-r--r--frontends/php/include/html.inc.php44
1 files changed, 44 insertions, 0 deletions
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 "<table class=\"$class\" border=0 width=100% bgcolor='#AAAAAA' cellspacing=1 cellpadding=3>";
+ echo "\n";
+ }
+
+ function table_header($elements)
+ {
+ echo "<tr bgcolor='#CCCCCC'>";
+ while(list($num,$element)=each($elements))
+ {
+ echo "<td><b>".$element."</b></td>";
+ }
+ echo "</tr>";
+ echo "\n";
+ }
+
+ function table_row($elements, $rownum)
+ {
+ if($rownum%2 == 1) { echo "<TR BGCOLOR=#DDDDDD>"; }
+ else { echo "<TR BGCOLOR=#EEEEEE>"; }
+
+ while(list($num,$element)=each($elements))
+ {
+ if(is_array($element))
+ {
+ echo "<td class=\"".$element["class"]."\">".$element["value"]."</td>";
+ }
+ else
+ {
+ echo "<td>".$element."</td>";
+ }
+ }
+ echo "</tr>";
+ echo "\n";
+ }
+
+
+ function table_end()
+ {
+ echo "</table>";
+ echo "\n";
+ }
+
function table_td($text,$attr)
{
echo "<td $attr>$text</td>";