summaryrefslogtreecommitdiffstats
path: root/frontends/php/items.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-07 15:09:44 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-07 15:09:44 +0000
commit339b138a0d94e66adfc8fc4310c768d372c34083 (patch)
tree2b1df46007bdf87773cf0ebd7c1d85154cf8e66c /frontends/php/items.php
parentf879f49aafc3e2ae6a754c19ef1ee3b915c3b99a (diff)
Improvements of the PHP GUI.
git-svn-id: svn://svn.zabbix.com/trunk@2496 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/items.php')
-rw-r--r--frontends/php/items.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/frontends/php/items.php b/frontends/php/items.php
index 3bb890c1..0f4ffe7b 100644
--- a/frontends/php/items.php
+++ b/frontends/php/items.php
@@ -233,7 +233,7 @@
}
$h2=$h2."</select>";
$h2=$h2."&nbsp;|&nbsp;";
- $h2=$h2."<input class=\"button\" type=\"submit\" name=\"register\" value=\"Create Item\">";
+ $h2=$h2."<input class=\"button\" type=\"submit\" name=\"register\" value=\"".S_CREATE_ITEM."\">";
show_header2($h1, $h2, "<form name=\"form2\" method=\"get\" action=\"items.php\">", "</form>");
?>
@@ -345,13 +345,12 @@
?>
<?php
- if(isset($_REQUEST["register"])&&(in_array($_REQUEST["register"],array("Create Item","change"))))
+ if(isset($_REQUEST["register"])&&(in_array($_REQUEST["register"],array(S_CREATE_ITEM,"change"))))
{
$result=DBselect("select count(*) as cnt from hosts");
$row=DBfetch($result);
if($row["cnt"]>0)
{
- echo "<a name=\"form\"></a>";
insert_item_form();
}
}