summaryrefslogtreecommitdiffstats
path: root/frontends/php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-11-16 17:58:21 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-11-16 17:58:21 +0000
commit850f7846802dfcd14ddff3af9268807d1e5cbb06 (patch)
tree791fdd20fc448c002c596edcbf4fd69791344c82 /frontends/php
parent1e7e501dd06f03a50c52b3726432c4cf1dff6346 (diff)
downloadzabbix-850f7846802dfcd14ddff3af9268807d1e5cbb06.tar.gz
zabbix-850f7846802dfcd14ddff3af9268807d1e5cbb06.tar.xz
zabbix-850f7846802dfcd14ddff3af9268807d1e5cbb06.zip
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@1488 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php')
-rw-r--r--frontends/php/history.php37
1 files changed, 19 insertions, 18 deletions
diff --git a/frontends/php/history.php b/frontends/php/history.php
index 5a0cbd69..41923fab 100644
--- a/frontends/php/history.php
+++ b/frontends/php/history.php
@@ -89,69 +89,70 @@
?>
<?php
- show_table_header_begin();
$item=get_item_by_itemid($_GET["itemid"]);
+
if($item["value_type"] == 0)
{
- echo "<A HREF='latest.php?hostid=$hostid'>$host</A> : <a href='trends.php?itemid=".$_GET["itemid"]."'>$description</a>";
+ $h1="<A HREF='latest.php?hostid=$hostid'>$host</A> : <a href='trends.php?itemid=".$_GET["itemid"]."'>$description</a>";
}
else
{
- echo "<A HREF='latest.php?hostid=$hostid'>$host</A> : $description";
+ $h1="<A HREF='latest.php?hostid=$hostid'>$host</A> : $description";
}
- show_table_v_delimiter();
- echo("<DIV ALIGN=CENTER>");
+
+ show_table_header($h1);
+
+ $h1="";
if($_GET["action"] =="showhistory")
{
- echo("<b>[<A HREF=\"history.php?action=showhistory&itemid=".$_GET["itemid"]."\">".S_LAST_HOUR_GRAPH."</A>]</b> ");
+ $h1=$h1."<b>[<A HREF=\"history.php?action=showhistory&itemid=".$_GET["itemid"]."\">".S_LAST_HOUR_GRAPH."</A>]</b> ";
}
else
{
$item=get_item_by_itemid($_GET["itemid"]);
if($item["value_type"] == 0)
{
- echo("<A HREF=\"history.php?action=showhistory&itemid=".$_GET["itemid"]."\">".S_LAST_HOUR_GRAPH."</A> ");
+ $h1=$h1."<A HREF=\"history.php?action=showhistory&itemid=".$_GET["itemid"]."\">".S_LAST_HOUR_GRAPH."</A> ";
}
}
if($_GET["action"] =="showhistory2")
{
- echo("<b>[<A HREF=\"history.php?action=showhistory2&itemid=".$_GET["itemid"]."\">".S_LAST_HOUR_GRAPH_DIFF."</A>]</b> ");
+ $h1=$h1."<b>[<A HREF=\"history.php?action=showhistory2&itemid=".$_GET["itemid"]."\">".S_LAST_HOUR_GRAPH_DIFF."</A>]</b> ";
}
else
{
$item=get_item_by_itemid($_GET["itemid"]);
if($item["value_type"] == 0)
{
- echo("<A HREF=\"history.php?action=showhistory2&itemid=".$_GET["itemid"]."\">".S_LAST_HOUR_GRAPH_DIFF."</A> ");
+ $h1=$h1."<A HREF=\"history.php?action=showhistory2&itemid=".$_GET["itemid"]."\">".S_LAST_HOUR_GRAPH_DIFF."</A> ";
}
}
if($_GET["action"] =="showvalues")
{
- echo("<b>[<A HREF=\"history.php?action=showvalues&itemid=".$_GET["itemid"]."&period=3600\">".S_VALUES_OF_LAST_HOUR."</A>]</b> ");
+ $h1=$h1."<b>[<A HREF=\"history.php?action=showvalues&itemid=".$_GET["itemid"]."&period=3600\">".S_VALUES_OF_LAST_HOUR."</A>]</b> ";
}
else
{
- echo("<A HREF=\"history.php?action=showvalues&itemid=".$_GET["itemid"]."&period=3600\">".S_VALUES_OF_LAST_HOUR."</A> ");
+ $h1=$h1."<A HREF=\"history.php?action=showvalues&itemid=".$_GET["itemid"]."&period=3600\">".S_VALUES_OF_LAST_HOUR."</A> ";
}
if($_GET["action"] =="showfreehist")
{
- echo("<b>[<A HREF=\"history.php?action=showfreehist&itemid=".$_GET["itemid"]."\">".S_VALUES_OF_SPECIFIED_PERIOD."</A>]</b> ");
+ $h1=$h1."<b>[<A HREF=\"history.php?action=showfreehist&itemid=".$_GET["itemid"]."\">".S_VALUES_OF_SPECIFIED_PERIOD."</A>]</b> ";
}
else
{
- echo("<A HREF=\"history.php?action=showfreehist&itemid=".$_GET["itemid"]."\">".S_VALUES_OF_SPECIFIED_PERIOD."</A> ");
+ $h1=$h1."<A HREF=\"history.php?action=showfreehist&itemid=".$_GET["itemid"]."\">".S_VALUES_OF_SPECIFIED_PERIOD."</A> ";
}
if($_GET["action"] =="showplaintxt")
{
- echo("<b>[<A HREF=\"history.php?action=showplaintxt&itemid=".$_GET["itemid"]."\">".S_VALUES_IN_PLAIN_TEXT_FORMAT."</A>]</b> ");
+ $h1=$h1."<b>[<A HREF=\"history.php?action=showplaintxt&itemid=".$_GET["itemid"]."\">".S_VALUES_IN_PLAIN_TEXT_FORMAT."</A>]</b> ";
}
else
{
- echo("<A HREF=\"history.php?action=showplaintxt&itemid=".$_GET["itemid"]."\">".S_VALUES_IN_PLAIN_TEXT_FORMAT."</A> ");
+ $h1=$h1."<A HREF=\"history.php?action=showplaintxt&itemid=".$_GET["itemid"]."\">".S_VALUES_IN_PLAIN_TEXT_FORMAT."</A> ";
}
- echo("</DIV>\n");
- show_table_header_end();
- echo("<br>");
+ show_table_header($h1);
+ echo "<br>";
if($_GET["action"]=="showfreehist")
{