summaryrefslogtreecommitdiffstats
path: root/frontends
diff options
context:
space:
mode:
Diffstat (limited to 'frontends')
-rw-r--r--frontends/php/config.php10
-rw-r--r--frontends/php/css.css13
-rw-r--r--frontends/php/graphs.php8
-rw-r--r--frontends/php/hosts.php20
-rw-r--r--frontends/php/include/config.inc.php54
-rw-r--r--frontends/php/services.php18
-rw-r--r--frontends/php/sysmaps.php8
7 files changed, 71 insertions, 60 deletions
diff --git a/frontends/php/config.php b/frontends/php/config.php
index eeaa56c0..ef02c0c0 100644
--- a/frontends/php/config.php
+++ b/frontends/php/config.php
@@ -43,27 +43,27 @@
echo "<form method=\"get\" action=\"config.php\">";
echo "SMTP server";
show_table2_h_delimiter();
- echo "<input name=\"smtp_server\" value=\"".$config["smtp_server"]."\"size=40>";
+ echo "<input class=\"biginput\" name=\"smtp_server\" value=\"".$config["smtp_server"]."\"size=40>";
show_table2_v_delimiter();
echo "Value for SMTP HELO authentification (can be empty)";
show_table2_h_delimiter();
- echo "<input name=\"smtp_helo\" value=\"".$config["smtp_helo"]."\"size=40>";
+ echo "<input class=\"biginput\" name=\"smtp_helo\" value=\"".$config["smtp_helo"]."\"size=40>";
show_table2_v_delimiter();
echo "ZABBIX email address to send alarms from";
show_table2_h_delimiter();
- echo "<input name=\"smtp_email\" value=\"".$config["smtp_email"]."\"size=40>";
+ echo "<input class=\"biginput\" name=\"smtp_email\" value=\"".$config["smtp_email"]."\"size=40>";
show_table2_v_delimiter();
echo "Do not keep alerts older than (in days)";
show_table2_h_delimiter();
- echo "<input name=\"alert_history\" value=\"".$config["alert_history"]."\"size=8>";
+ echo "<input class=\"biginput\" name=\"alert_history\" value=\"".$config["alert_history"]."\"size=8>";
show_table2_v_delimiter();
echo "Do not keep alarms older than (in days)";
show_table2_h_delimiter();
- echo "<input name=\"alarm_history\" value=\"".$config["alarm_history"]."\"size=8>";
+ echo "<input class=\"biginput\" name=\"alarm_history\" value=\"".$config["alarm_history"]."\"size=8>";
show_table2_v_delimiter2();
echo "<input type=\"submit\" name=\"register\" value=\"update\">";
diff --git a/frontends/php/css.css b/frontends/php/css.css
index 0f92c34e..5137a0e6 100644
--- a/frontends/php/css.css
+++ b/frontends/php/css.css
@@ -1,4 +1,5 @@
-body {
+body
+{
background-color:#778899;
margin: 3px 3px 3px 3px;
padding: 0px 0px 0px 0px;
@@ -37,3 +38,13 @@ body {
.img {border-color: #black ; border-width:1px;}
img.top {vertical-align:text-top}
img.bottom {vertical-align:text-bottom}
+
+.biginput
+{
+ font-family: Verdana, Helvetica, Geneva;
+ font-size: 10px;
+ border: solid;
+ border-width: 1px;
+ border-color: gray;
+ background-color: white;
+}
diff --git a/frontends/php/graphs.php b/frontends/php/graphs.php
index b5f7c1dc..b38672ce 100644
--- a/frontends/php/graphs.php
+++ b/frontends/php/graphs.php
@@ -99,21 +99,21 @@
echo "<form method=\"get\" action=\"graphs.php\">";
if(isset($HTTP_GET_VARS["graphid"]))
{
- echo "<input name=\"graphid\" type=\"hidden\" value=".$HTTP_GET_VARS["graphid"].">";
+ echo "<input class=\"biginput\" name=\"graphid\" type=\"hidden\" value=".$HTTP_GET_VARS["graphid"].">";
}
echo "Name";
show_table2_h_delimiter();
- echo "<input name=\"name\" value=\"$name\" size=32>";
+ echo "<input class=\"biginput\" name=\"name\" value=\"$name\" size=32>";
show_table2_v_delimiter();
echo "Width";
show_table2_h_delimiter();
- echo "<input name=\"width\" size=5 value=\"$width\">";
+ echo "<input class=\"biginput\" name=\"width\" size=5 value=\"$width\">";
show_table2_v_delimiter();
echo "Height";
show_table2_h_delimiter();
- echo "<input name=\"height\" size=5 value=\"$height\">";
+ echo "<input class=\"biginput\" name=\"height\" size=5 value=\"$height\">";
show_table2_v_delimiter2();
echo "<input type=\"submit\" name=\"register\" value=\"add\">";
diff --git a/frontends/php/hosts.php b/frontends/php/hosts.php
index 087ba0df..c3cecaaa 100644
--- a/frontends/php/hosts.php
+++ b/frontends/php/hosts.php
@@ -149,16 +149,16 @@
echo "<form method=\"get\" action=\"hosts.php\">";
if(isset($HTTP_GET_VARS["hostid"]))
{
- echo "<input name=\"hostid\" type=\"hidden\" value=\"".$HTTP_GET_VARS["hostid"]."\">";
+ echo "<input class=\"biginput\" name=\"hostid\" type=\"hidden\" value=\"".$HTTP_GET_VARS["hostid"]."\">";
}
echo "Host";
show_table2_h_delimiter();
- echo "<input name=\"host\" value=\"$host\" size=20>";
+ echo "<input class=\"biginput\" name=\"host\" value=\"$host\" size=20>";
show_table2_v_delimiter();
echo "Groups";
show_table2_h_delimiter();
- echo "<select multiple name=\"groups[]\" size=\"5\">";
+ echo "<select multiple class=\"biginput\" name=\"groups[]\" size=\"5\">";
$result=DBselect("select distinct groupid,name from groups order by name");
while($row=DBfetch($result))
{
@@ -186,27 +186,27 @@
show_table2_v_delimiter();
echo "New group";
show_table2_h_delimiter();
- echo "<input name=\"newgroup\" value=\"\" size=20>";
+ echo "<input class=\"biginput\" name=\"newgroup\" value=\"\" size=20>";
show_table2_v_delimiter();
echo "Use IP address";
show_table2_h_delimiter();
- echo "<INPUT TYPE=\"CHECKBOX\" NAME=\"useip\" $useip>";
+ echo "<INPUT TYPE=\"CHECKBOX\" class=\"biginput\" NAME=\"useip\" $useip>";
show_table2_v_delimiter();
echo "IP address";
show_table2_h_delimiter();
- echo "<input name=\"ip\" value=\"$ip\" size=15>";
+ echo "<input class=\"biginput\" name=\"ip\" value=\"$ip\" size=15>";
show_table2_v_delimiter();
echo "Port";
show_table2_h_delimiter();
- echo "<input name=\"port\" size=5 value=\"$port\">";
+ echo "<input class=\"biginput\" name=\"port\" size=6 value=\"$port\">";
show_table2_v_delimiter();
echo "Status";
show_table2_h_delimiter();
- echo "<select name=\"status\" size=\"1\">";
+ echo "<select class=\"biginput\" name=\"status\" size=\"1\">";
if($status==0)
{
echo "<option value=\"0\" selected>Monitored";
@@ -222,12 +222,12 @@
show_table2_v_delimiter();
echo "Add parameters supported by zabbix_agent";
show_table2_h_delimiter();
- echo "<INPUT NAME=\"template\" TYPE=\"CHECKBOX\" VALUE=\"true\" CHECKED>";
+ echo "<INPUT class=\"biginput\" NAME=\"template\" TYPE=\"CHECKBOX\" VALUE=\"true\" CHECKED>";
show_table2_v_delimiter();
echo "Use the host as a template";
show_table2_h_delimiter();
- echo "<select name=\"host_templateid\" size=\"1\">";
+ echo "<select class=\"biginput\" name=\"host_templateid\" size=\"1\">";
echo "<option value=\"0\" selected>...";
$result=DBselect("select host,hostid from hosts order by host");
while($row=DBfetch($result))
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index 9e94206c..1277c498 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -2960,15 +2960,15 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
show_table2_v_delimiter();
echo "<form method=\"get\" action=\"items.php\">";
- echo "<input name=\"itemid\" type=hidden value=$itemid size=8>";
+ echo "<input class=\"biginput\" name=\"itemid\" type=hidden value=$itemid size=8>";
echo "Description";
show_table2_h_delimiter();
- echo "<input name=\"description\" value=\"$description\"size=40>";
+ echo "<input class=\"biginput\" name=\"description\" value=\"$description\"size=40>";
show_table2_v_delimiter();
echo "Host";
show_table2_h_delimiter();
- echo "<select name=\"hostid\" value=\"3\">";
+ echo "<select class=\"biginput\" name=\"hostid\" value=\"3\">";
$result=DBselect("select hostid,host from hosts order by host");
for($i=0;$i<DBnum_rows($result);$i++)
{
@@ -2988,7 +2988,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
show_table2_v_delimiter();
echo "Type";
show_table2_h_delimiter();
- echo "<SELECT NAME=\"type\" value=\"$type\" size=\"1\">";
+ echo "<SELECT class=\"biginput\" NAME=\"type\" value=\"$type\" size=\"1\">";
echo "<OPTION VALUE=\"0\"";
if($type==0) echo "SELECTED";
echo ">Zabbix agent";
@@ -3000,32 +3000,32 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
show_table2_v_delimiter();
echo "SNMP community (for SNMP only)";
show_table2_h_delimiter();
- echo "<input name=\"snmp_community\" value=\"$snmp_community\" size=16>";
+ echo "<input class=\"biginput\" name=\"snmp_community\" value=\"$snmp_community\" size=16>";
show_table2_v_delimiter();
echo "SNMP OID (for SNMP only)";
show_table2_h_delimiter();
- echo "<input name=\"snmp_oid\" value=\"$snmp_oid\" size=40>";
+ echo "<input class=\"biginput\" name=\"snmp_oid\" value=\"$snmp_oid\" size=40>";
show_table2_v_delimiter();
echo "Key";
show_table2_h_delimiter();
- echo "<input name=\"key\" value=\"$key\" size=40>";
+ echo "<input class=\"biginput\" name=\"key\" value=\"$key\" size=40>";
show_table2_v_delimiter();
echo "Delay";
show_table2_h_delimiter();
- echo "<input name=\"delay\" value=\"$delay\" size=5>";
+ echo "<input class=\"biginput\" name=\"delay\" value=\"$delay\" size=5>";
show_table2_v_delimiter();
echo "Keep history (in days)";
show_table2_h_delimiter();
- echo "<input name=\"history\" value=\"$history\" size=8>";
+ echo "<input class=\"biginput\" name=\"history\" value=\"$history\" size=8>";
show_table2_v_delimiter();
echo "Status";
show_table2_h_delimiter();
- echo "<SELECT NAME=\"status\" value=\"$status\" size=\"1\">";
+ echo "<SELECT class=\"biginput\" NAME=\"status\" value=\"$status\" size=\"1\">";
echo "<OPTION VALUE=\"0\"";
if($status==0) echo "SELECTED";
echo ">Monitored";
@@ -3043,7 +3043,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
show_table2_v_delimiter();
echo "Type of information";
show_table2_h_delimiter();
- echo "<SELECT NAME=\"value_type\" value=\"$value_type\" size=\"1\">";
+ echo "<SELECT class=\"biginput\" NAME=\"value_type\" value=\"$value_type\" size=\"1\">";
echo "<OPTION VALUE=\"0\"";
if($value_type==0) echo "SELECTED";
echo ">Numeric";
@@ -3055,7 +3055,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
show_table2_v_delimiter();
echo "Allowed hosts (for trapper item only)";
show_table2_h_delimiter();
- echo "<input name=\"trapper_hosts\" value=\"$trapper_hosts\" size=40>";
+ echo "<input class=\"biginput\" name=\"trapper_hosts\" value=\"$trapper_hosts\" size=40>";
show_table2_v_delimiter2();
echo "<input type=\"submit\" name=\"register\" value=\"add\">";
@@ -3183,31 +3183,31 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "<form method=\"get\" action=\"users.php\">";
if(isset($userid))
{
- echo "<input name=\"userid\" type=\"hidden\" value=\"$userid\" size=8>";
+ echo "<input class=\"biginput\" name=\"userid\" type=\"hidden\" value=\"$userid\" size=8>";
}
echo "Alias";
show_table2_h_delimiter();
- echo "<input name=\"alias\" value=\"$alias\" size=20>";
+ echo "<input class=\"biginput\" name=\"alias\" value=\"$alias\" size=20>";
show_table2_v_delimiter();
echo "Name";
show_table2_h_delimiter();
- echo "<input name=\"name\" value=\"$name\" size=20>";
+ echo "<input class=\"biginput\" name=\"name\" value=\"$name\" size=20>";
show_table2_v_delimiter();
echo "Surname";
show_table2_h_delimiter();
- echo "<input name=\"surname\" value=\"$surname\" size=20>";
+ echo "<input class=\"biginput\" name=\"surname\" value=\"$surname\" size=20>";
show_table2_v_delimiter();
echo "Password";
show_table2_h_delimiter();
- echo "<input type=\"password\" name=\"password1\" value=\"$password\" size=20>";
+ echo "<input class=\"biginput\" type=\"password\" name=\"password1\" value=\"$password\" size=20>";
show_table2_v_delimiter();
echo "Password (once again)";
show_table2_h_delimiter();
- echo "<input type=\"password\" name=\"password2\" value=\"$password\" size=20>";
+ echo "<input class=\"biginput\" type=\"password\" name=\"password2\" value=\"$password\" size=20>";
show_table2_v_delimiter2();
echo "<input type=\"submit\" name=\"register\" value=\"add\">";
@@ -3307,20 +3307,20 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
{
echo "<form method=\"get\" action=\"triggers.php\">";
}
- echo "<input name=\"triggerid\" type=hidden value=$triggerid size=8>";
+ echo "<input class=\"biginput\" name=\"triggerid\" type=hidden value=$triggerid size=8>";
echo "Description";
show_table2_h_delimiter();
- echo "<input name=\"description\" value=\"$description\" size=70>";
+ echo "<input class=\"biginput\" name=\"description\" value=\"$description\" size=70>";
show_table2_v_delimiter();
echo "Expression";
show_table2_h_delimiter();
- echo "<input name=\"expression\" value=\"$expression\" size=70>";
+ echo "<input class=\"biginput\" name=\"expression\" value=\"$expression\" size=70>";
show_table2_v_delimiter();
echo "Severity";
show_table2_h_delimiter();
- echo "<SELECT NAME=\"priority\" size=\"1\">";
+ echo "<SELECT class=\"biginput\" NAME=\"priority\" size=\"1\">";
echo "<OPTION VALUE=\"0\" "; if($priority==0) echo "SELECTED"; echo ">Not classified";
echo "<OPTION VALUE=\"1\" "; if($priority==1) echo "SELECTED"; echo ">Information";
echo "<OPTION VALUE=\"2\" "; if($priority==2) echo "SELECTED"; echo ">Warning";
@@ -3332,17 +3332,17 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
show_table2_v_delimiter();
echo "Comments";
show_table2_h_delimiter();
- echo "<TEXTAREA NAME=\"comments\" COLS=70 ROWS=\"7\" WRAP=\"SOFT\">$comments</TEXTAREA>";
+ echo "<TEXTAREA class=\"biginput\" NAME=\"comments\" COLS=70 ROWS=\"7\" WRAP=\"SOFT\">$comments</TEXTAREA>";
show_table2_v_delimiter();
echo "URL";
show_table2_h_delimiter();
- echo "<input name=\"url\" value=\"$url\" size=70>";
+ echo "<input class=\"biginput\" name=\"url\" value=\"$url\" size=70>";
show_table2_v_delimiter();
echo "Disabled";
show_table2_h_delimiter();
- echo "<INPUT TYPE=\"CHECKBOX\" ";
+ echo "<INPUT class=\"biginput\" TYPE=\"CHECKBOX\" ";
if($status==1) { echo " CHECKED "; }
echo "NAME=\"disabled\" VALUE=\"true\">";
@@ -3362,7 +3362,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
show_table2_h_delimiter();
$sql="select t.triggerid,t.description from triggers t,trigger_depends d where t.triggerid=d.triggerid_up and d.triggerid_down=$triggerid";
$result1=DBselect($sql);
- echo "<SELECT NAME=\"dependency\" size=\"1\">";
+ echo "<SELECT class=\"biginput\" NAME=\"dependency\" size=\"1\">";
for($i=0;$i<DBnum_rows($result1);$i++)
{
$depid=DBget_field($result1,$i,0);
@@ -3380,7 +3380,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
show_table2_h_delimiter();
$sql="select t.triggerid,t.description from triggers t where t.triggerid!=$triggerid order by t.description";
$result=DBselect($sql);
- echo "<SELECT NAME=\"depid\" size=\"1\">";
+ echo "<SELECT class=\"biginput\" NAME=\"depid\" size=\"1\">";
for($i=0;$i<DBnum_rows($result);$i++)
{
$depid=DBget_field($result,$i,0);
diff --git a/frontends/php/services.php b/frontends/php/services.php
index 9998c086..d0fdb894 100644
--- a/frontends/php/services.php
+++ b/frontends/php/services.php
@@ -200,17 +200,17 @@
echo "<form method=\"get\" action=\"services.php\">";
if(isset($HTTP_GET_VARS["serviceid"]))
{
- echo "<input name=\"serviceid\" type=\"hidden\" value=".$HTTP_GET_VARS["serviceid"].">";
+ echo "<input class=\"biginput\" name=\"serviceid\" type=\"hidden\" value=".$HTTP_GET_VARS["serviceid"].">";
}
echo "Name";
show_table2_h_delimiter();
- echo "<input name=\"name\" value=\"$name\" size=32>";
+ echo "<input class=\"biginput\" name=\"name\" value=\"$name\" size=32>";
show_table2_v_delimiter();
echo "Status calculation algorithm";
show_table2_h_delimiter();
$result=DBselect("select triggerid,description from triggers order by description");
- echo "<select name=\"algorithm\" size=1>";
+ echo "<select class=\"biginput\" name=\"algorithm\" size=1>";
if(isset($HTTP_GET_VARS["algorithm"]))
{
if($HTTP_GET_VARS["algorithm"] == SERVICE_ALGORITHM_NONE)
@@ -236,18 +236,18 @@
show_table2_h_delimiter();
if(isset($HTTP_GET_VARS["triggerid"])&&($HTTP_GET_VARS["triggerid"]!=""))
{
- echo "<INPUT TYPE=\"CHECKBOX\" NAME=\"linktrigger\" VALUE=\"true\" CHECKED>";
+ echo "<INPUT class=\"biginput\" TYPE=\"CHECKBOX\" NAME=\"linktrigger\" VALUE=\"true\" CHECKED>";
}
else
{
- echo "<INPUT TYPE=\"CHECKBOX\" NAME=\"linktrigger\">";
+ echo "<INPUT class=\"biginput\" TYPE=\"CHECKBOX\" NAME=\"linktrigger\">";
}
show_table2_v_delimiter();
echo "Trigger";
show_table2_h_delimiter();
$result=DBselect("select triggerid,description from triggers order by description");
- echo "<select name=\"triggerid\" size=1>";
+ echo "<select class=\"biginput\" name=\"triggerid\" size=1>";
for($i=0;$i<DBnum_rows($result);$i++)
{
$triggerid_=DBget_field($result,$i,0);
@@ -304,7 +304,7 @@
echo "Name";
show_table2_h_delimiter();
$result=DBselect("select serviceid,triggerid,name from services order by name");
- echo "<select name=\"servicedownid\" size=1>";
+ echo "<select class=\"biginput\" name=\"servicedownid\" size=1>";
for($i=0;$i<DBnum_rows($result);$i++)
{
$servicedownid_=DBget_field($result,$i,0);
@@ -328,7 +328,7 @@
// {
// echo "<INPUT TYPE=\"CHECKBOX\" NAME=\"softlink\">";
// }
- echo "<INPUT TYPE=\"CHECKBOX\" NAME=\"softlink\" VALUE=\"true\" checked>";
+ echo "<INPUT class=\"biginput\" TYPE=\"CHECKBOX\" NAME=\"softlink\" VALUE=\"true\" checked>";
show_table2_v_delimiter2();
echo "<input type=\"submit\" name=\"register\" value=\"add link\">";
@@ -353,7 +353,7 @@
echo "Server";
show_table2_h_delimiter();
$result=DBselect("select hostid,host from hosts order by host");
- echo "<select name=\"hostid\" size=1>";
+ echo "<select class=\"biginput\" name=\"hostid\" size=1>";
while($row=DBfetch($result))
{
echo "<OPTION VALUE='".$row["hostid"]."'>".$row["host"];
diff --git a/frontends/php/sysmaps.php b/frontends/php/sysmaps.php
index 1f461ed6..60d8ed2e 100644
--- a/frontends/php/sysmaps.php
+++ b/frontends/php/sysmaps.php
@@ -105,21 +105,21 @@
echo "<form method=\"get\" action=\"sysmaps.php\">";
if(isset($HTTP_GET_VARS["sysmapid"]))
{
- echo "<input name=\"sysmapid\" type=\"hidden\" value=".$HTTP_GET_VARS["sysmapid"].">";
+ echo "<input class=\"biginput\" name=\"sysmapid\" type=\"hidden\" value=".$HTTP_GET_VARS["sysmapid"].">";
}
echo "Name";
show_table2_h_delimiter();
- echo "<input name=\"name\" value=\"$name\" size=32>";
+ echo "<input class=\"biginput\" name=\"name\" value=\"$name\" size=32>";
show_table2_v_delimiter();
echo "Width";
show_table2_h_delimiter();
- echo "<input name=\"width\" size=5 value=\"$width\">";
+ echo "<input class=\"biginput\" name=\"width\" size=5 value=\"$width\">";
show_table2_v_delimiter();
echo "Height";
show_table2_h_delimiter();
- echo "<input name=\"height\" size=5 value=\"$height\">";
+ echo "<input class=\"biginput\" name=\"height\" size=5 value=\"$height\">";
show_table2_v_delimiter2();
echo "<input type=\"submit\" name=\"register\" value=\"add\">";