diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-12-26 21:18:45 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-12-26 21:18:45 +0000 |
commit | 68d09eea4a0667d9563eced3d5e3ff5964fcee2b (patch) | |
tree | a6e843adafbfbb08fe1cd14ebaf428cd6141688d /frontends | |
parent | 4add841323f1e12ae9b485243c2779c05523c0bf (diff) | |
download | zabbix-68d09eea4a0667d9563eced3d5e3ff5964fcee2b.tar.gz zabbix-68d09eea4a0667d9563eced3d5e3ff5964fcee2b.tar.xz zabbix-68d09eea4a0667d9563eced3d5e3ff5964fcee2b.zip |
- added table 'escalations' (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1564 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/php/config.php | 42 | ||||
-rw-r--r-- | frontends/php/include/local_en.inc.php | 2 |
2 files changed, 44 insertions, 0 deletions
diff --git a/frontends/php/config.php b/frontends/php/config.php index af172a66..5eee5389 100644 --- a/frontends/php/config.php +++ b/frontends/php/config.php @@ -95,6 +95,7 @@ $h2=$h2."<select class=\"biginput\" name=\"config\" onChange=\"submit()\">"; $h2=$h2."<option value=\"0\" ".iif(isset($_GET["config"])&&$_GET["config"]==0,"selected","").">".S_HOUSEKEEPER; $h2=$h2."<option value=\"1\" ".iif(isset($_GET["config"])&&$_GET["config"]==1,"selected","").">".S_MEDIA_TYPES; + $h2=$h2."<option value=\"2\" ".iif(isset($_GET["config"])&&$_GET["config"]==2,"selected","").">".S_ESCALATION_RULES; $h2=$h2."</select>"; show_header2($h1, $h2, "<form name=\"form2\" method=\"get\" action=\"config.php\">", "</form>"); @@ -275,5 +276,46 @@ ?> <?php + if($_GET["config"]==2) + { + echo "<br>"; + show_table_header(S_ESCALATION_RULES_BIG); + + table_begin(); + table_header(array(S_ID,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($row["type"]==0) + { + $type=S_EMAIL; + } + else if($row["type"]==1) + { + $type=S_SCRIPT; + } + else + { + $type=S_UNKNOWN; + } + $actions="<a href=\"config.php?config=1®ister=change&mediatypeid=".$row["mediatypeid"]."\">".S_CHANGE."</a>"; + table_row(array( + $row["mediatypeid"], + $row["description"], + $actions),$col++); + } + if(DBnum_rows($result)==0) + { + echo "<TR BGCOLOR=#EEEEEE>"; + echo "<TD COLSPAN=4 ALIGN=CENTER>".S_NO_MEDIA_TYPES_DEFINED."</TD>"; + echo "<TR>"; + } + table_end(); + } +?> + +<?php show_footer(); ?> diff --git a/frontends/php/include/local_en.inc.php b/frontends/php/include/local_en.inc.php index 12713912..f0534da3 100644 --- a/frontends/php/include/local_en.inc.php +++ b/frontends/php/include/local_en.inc.php @@ -159,6 +159,8 @@ define("S_DELETE_SELECTED_MEDIA", "Delete selected media?"); define("S_HOUSEKEEPER", "Housekeeper"); define("S_MEDIA_TYPES", "Media types"); + define("S_ESCALATION_RULES", "Escalation rules"); + define("S_ESCALATION_RULES_BIG", "ESCALATION RULES"); // Latest values define("S_LATEST_VALUES", "Latest values"); |