summaryrefslogtreecommitdiffstats
path: root/frontends/php/config.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-09-28 17:58:11 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-09-28 17:58:11 +0000
commit9c17c8be0eef94e9b0f62a9848d1dcd8a88d2130 (patch)
tree5788842d18d15c7226be38bb6b985dfe209c4ccd /frontends/php/config.php
parent9e2510e64cdac6a2513278b703b54af1ee785614 (diff)
Frontend improvements.
git-svn-id: svn://svn.zabbix.com/trunk@1439 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/config.php')
-rw-r--r--frontends/php/config.php28
1 files changed, 12 insertions, 16 deletions
diff --git a/frontends/php/config.php b/frontends/php/config.php
index a6c9cbf9..6029e281 100644
--- a/frontends/php/config.php
+++ b/frontends/php/config.php
@@ -119,35 +119,31 @@
?>
<?php
- echo "<TABLE BORDER=0 COLS=4 align=center WIDTH=100% BGCOLOR=\"#AAAAAA\" cellspacing=1 cellpadding=3>";
- echo "<TR BGCOLOR=\"#CCCCCC\"><TD WIDTH=3%><B>".S_ID."</B></TD>";
- echo "<TD WIDTH=10%><B>".S_TYPE."</B></TD>";
- echo "<TD><B>".S_DESCRIPTION_SMALL."</B></TD>";
- echo "<TD WIDTH=10%><B>".S_ACTIONS."</B></TD>";
- echo "</TR>";
+ table_begin();
+ table_header(array(S_ID,S_TYPE,S_DESCRIPTION_SMALL,S_ACTIONS));
$result=DBselect("select mt.mediatypeid,mt.type,mt.description,mt.smtp_server,mt.smtp_helo,mt.smtp_email,mt.exec_path from media_type mt order by mt.type");
$col=0;
while($row=DBfetch($result))
{
- if($col++%2==0) { echo "<TR BGCOLOR=#EEEEEE>"; }
- else { echo "<TR BGCOLOR=#DDDDDD>"; }
- echo "<td>".$row["mediatypeid"]."</td>";
if($row["type"]==0)
{
- echo "<td>".S_EMAIL."</td>";
+ $type=S_EMAIL;
}
else if($row["type"]==1)
{
- echo "<td>".S_SCRIPT."</td>";
+ $type=S_SCRIPT;
}
else
{
- echo "<td>".S_UNKNOWN."</td>";
+ $type=S_UNKNOWN;
}
- echo "<td>".$row["description"]."</td>";
- echo "<td><a href=\"config.php?register=change&mediatypeid=".$row["mediatypeid"]."\">".S_CHANGE."</a></td>";
- echo "</tr>";
+ $actions="<a href=\"config.php?register=change&mediatypeid=".$row["mediatypeid"]."\">".S_CHANGE."</a>";
+ table_row(array(
+ $row["mediatypeid"],
+ $type,
+ $row["description"],
+ $actions),$col++);
}
if(DBnum_rows($result)==0)
{
@@ -155,7 +151,7 @@
echo "<TD COLSPAN=4 ALIGN=CENTER>".S_NO_MEDIA_TYPES_DEFINED."</TD>";
echo "<TR>";
}
- echo "</TABLE>";
+ table_end();
echo"<br>";
?>