summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-10-26 20:00:37 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-10-26 20:00:37 +0000
commitb337f896888db5ee26ae3eff8fe2da10f32e53f7 (patch)
tree2f589423a2307639af787498738776dc691c98e8
parentb70178bfcba7de0337e0d3b4fecccc21ca2ee4fc (diff)
downloadzabbix-b337f896888db5ee26ae3eff8fe2da10f32e53f7.tar.gz
zabbix-b337f896888db5ee26ae3eff8fe2da10f32e53f7.tar.xz
zabbix-b337f896888db5ee26ae3eff8fe2da10f32e53f7.zip
Better support of CSS.
git-svn-id: svn://svn.zabbix.com/trunk@545 97f52cf1-0a1b-0410-bd0e-c28be96e8082
-rw-r--r--frontends/php/css.css33
-rw-r--r--frontends/php/include/config.inc.php88
-rw-r--r--frontends/php/maps.php3
-rw-r--r--frontends/php/report2.php3
-rw-r--r--frontends/php/trends.php2
5 files changed, 46 insertions, 83 deletions
diff --git a/frontends/php/css.css b/frontends/php/css.css
index c2e76124..0f92c34e 100644
--- a/frontends/php/css.css
+++ b/frontends/php/css.css
@@ -1,21 +1,32 @@
+body {
+ background-color:#778899;
+ margin: 3px 3px 3px 3px;
+ padding: 0px 0px 0px 0px;
+ color:black;
+ font-family:verdana, arial, helvetica;
+ font-size:10px;
+ text-decoration: none;
+ line-height:16px;
+}
+
.footer {color:#CCCCCC;}
- body,td,tr {font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10pt; text-decoration: none;}
- tr:zzz {color:"red"; background:"red";text-decoration: underline; text-transform: bold;}
+ td,tr {font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10pt; text-decoration: none;}
+ tr:zzz {color:red; background:"red";text-decoration: underline; text-transform: bold;}
A.footer {color:#CCCCCC;}
A {font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10pt}
- A:link {color:"black"; text-decoration: none; }
- A:visited {color:"black"; text-decoration: none; }
- A:hover {color:"red"; text-decoration: underline;}
- A:active {color:"#9D0000"; text-decoration: underline;}
+ A:link {color:black; text-decoration: none; }
+ A:visited {color:black; text-decoration: none; }
+ A:hover {color:black; text-decoration: underline; }
+ A:active {color:black; text-decoration: underline;}
P {font-family:Verdana, Arial, Helvetica, sans-serif;font-size:8pt; }
- P:link {color:"black"; text-decoration: underline; }
- P:visited {color:"black"; text-decoration: none; }
- P:hover {color:"red"; text-decoration: none;}
- P:active {color:"#9D0000"; text-decoration: underline;}
+ P:link {color:black; text-decoration: underline; }
+ P:visited {color:black; text-decoration: none; }
+ P:hover {color:black; text-decoration: none;}
+ P:active {color:black; text-decoration: underline;}
p.uppercase {text-transform: uppercase}
p.margin {margin-left: 10pt}
@@ -23,6 +34,6 @@
table.home {font-family: Verdana, Arial, Helvetica, sans-serif ;font-size: 8 pt}
- .img {border-color: #293178 ; border-width:1px;}
+ .img {border-color: #black ; border-width:1px;}
img.top {vertical-align:text-top}
img.bottom {vertical-align:text-bottom}
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index 7c9684da..9e94206c 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -477,7 +477,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
$color="#223344";
}
echo "<center>";
- echo "<font face='Helvetica' size=+1 color='$color'>";
+// echo "<font size=+1 color='$color'>";
if($ERROR_MSG=="")
{
echo "<b>[$msg]</b>";
@@ -486,7 +486,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
{
echo "<b>[$msg. $ERROR_MSG]</b>";
}
- echo "</font>";
+// echo "</font>";
echo "</center><br>";
}
@@ -768,7 +768,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
}
echo "<head>";
?>
- <body bgcolor="#778899" text="#000000" link="#000000" vlink="#000000" topmargin=4 leftmargin=0 rightmargin=0 marginheight=4>
+ <body>
<?
if($nomenu == 0)
{
@@ -780,7 +780,6 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
<table width=100% border=0 cellspacing=1 cellpadding=3>
<tr>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=15%>
- <font face="Arial,Helvetica" size=2>
<?
if(check_right("Host","R",0))
{
@@ -796,10 +795,8 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "LATEST VALUES</a>";
}
?>
- </font>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=10%>
- <font face="Arial,Helvetica" size=2>
<?
if(check_right("Host","R",0))
{
@@ -814,10 +811,8 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "STATUS OF TRIGGERS</a>";
}
?>
- </font>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=10%>
- <font face="Arial,Helvetica" size=2>
<?
if(check_right("Host","R",0))
{
@@ -832,10 +827,8 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "QUEUE</a>";
}
?>
- </font>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=10%>
- <font face="Arial,Helvetica" size=2>
<?
if(check_right("Default permission","R",0))
{
@@ -853,10 +846,8 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "ALARMS</a>";
}
?>
- </font>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=15%>
- <font face="Arial,Helvetica" size=2>
<?
if(check_right("Default permission","R",0))
{
@@ -873,10 +864,8 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "ALERT HISTORY</a>";
}
?>
- </font>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=15%>
- <font face="Arial,Helvetica" size=2>
<?
if(check_right("Network map","R",0))
{
@@ -893,10 +882,8 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "NETWORK MAPS</a>";
}
?>
- </font>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=15%>
- <font face="Arial,Helvetica" size=2>
<?
if(check_right("Graph","R",0))
{
@@ -913,11 +900,9 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "GRAPHS</a>";
}
?>
- </font>
</td>
<td colspan=2 bgcolor=FFFFFF align=center valign=top width=15%>
- <font face="Arial,Helvetica" size=2>
<?
if(check_right("Service","R",0))
{
@@ -932,12 +917,10 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "IT SERVICES</a>";
}
?>
- </font>
</td>
<tr>
<td colspan=2 bgcolor=FFFFFF align=center valign=top width=15%>
- <font face="Arial,Helvetica" size=2>
<a href="index.php">
<?
if($page["file"]=="index.php")
@@ -949,10 +932,8 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "HOME</a>";
}
?>
- </font>
</td>
<td colspan=2 bgcolor=FFFFFF align=center valign=top width=15%>
- <font face="Arial,Helvetica" size=2>
<?
if(check_right("Default permission","R",0))
{
@@ -969,10 +950,8 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "ABOUT</a>";
}
?>
- </font>
</td>
<td colspan=2 bgcolor=FFFFFF align=center valign=top width=15%>
- <font face="Arial,Helvetica" size=2>
<?
if(check_right("Default permission","R",0))
{
@@ -989,10 +968,8 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "STATUS OF ZABBIX</a>";
}
?>
- </font>
</td>
<td colspan=3 bgcolor=FFFFFF align=center valign=top width=15%>
- <font face="Arial,Helvetica" size=2>
<?
if(check_right("Host","R",0))
{
@@ -1009,7 +986,6 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "AVAILABILITY REPORT</a>";
}
?>
- </font>
</td>
</tr>
<?
@@ -1031,7 +1007,6 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
?>
<tr>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=15%>
- <font face="Arial,Helvetica" size=2>
<?
if(check_right("Configuration of Zabbix","U",0))
{
@@ -1046,10 +1021,8 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "CONFIG</a>";
}
?>
- </font>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=10%>
- <font face="Arial,Helvetica" size=2>
<?
if(check_right("User","U",0))
{
@@ -1065,10 +1038,8 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "USERS</a>";
}
?>
- </font>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=10%>
- <font face="Arial,Helvetica" size=2>
<?
if(check_right("Host","U",0))
{
@@ -1083,10 +1054,8 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "HOSTS</a>";
}
?>
- </font>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=10%>
- <font face="Arial,Helvetica" size=2>
<?
if(check_right("Host","U",0))
{
@@ -1101,10 +1070,8 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "ITEMS</a>";
}
?>
- </font>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=15%>
- <font face="Arial,Helvetica" size=2>
<?
if(check_right("Host","U",0))
{
@@ -1120,10 +1087,8 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "TRIGGERS</a>";
}
?>
- </font>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=15%>
- <font face="Arial,Helvetica" size=2>
<?
if(check_right("Network map","U",0))
{
@@ -1139,10 +1104,8 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "NETWORK MAPS</a>";
}
?>
- </font>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=15%>
- <font face="Arial,Helvetica" size=2>
<?
if(check_right("Graph","U",0))
{
@@ -1158,11 +1121,9 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "GRAPHS</a>";
}
?>
- </font>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=15%>
- <font face="Arial,Helvetica" size=2>
<?
if(check_right("Service","U",0))
{
@@ -1177,7 +1138,6 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "IT SERVICES</a>";
}
?>
- </font>
</td>
</tr>
@@ -2547,31 +2507,31 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
function show_table_h_delimiter()
{
- echo "</font>";
+// echo "</font>";
cr();
echo "</td>";
cr();
echo "<td colspan=1 bgcolor=FFFFFF align=center valign=\"top\">";
cr();
- echo " <font face=\"Arial,Helvetica\" size=2>";
+// echo " <font size=2>";
cr();
}
function show_table2_h_delimiter()
{
- echo "</font>";
+// echo "</font>";
cr();
echo "</td>";
cr();
echo "<td colspan=1 bgcolor=CCCCCC align=left valign=\"top\">";
cr();
- echo " <font face=\"Arial,Helvetica\" size=-1>";
+// echo " <font size=-1>";
cr();
}
function show_table_v_delimiter()
{
- echo "</font>";
+// echo "</font>";
cr();
echo "</td>";
cr();
@@ -2581,13 +2541,13 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
cr();
echo "<td colspan=1 bgcolor=FFFFFF align=center valign=\"top\">";
cr();
- echo "<font face=\"Arial,Helvetica\" size=2>";
+// echo "<font size=2>";
cr();
}
function show_table2_v_delimiter()
{
- echo "</font>";
+// echo "</font>";
cr();
echo "</td>";
cr();
@@ -2597,13 +2557,13 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
cr();
echo "<td colspan=1 bgcolor=CCCCCC align=left valign=\"top\">";
cr();
- echo "<font face=\"Arial,Helvetica\" size=-1>";
+// echo "<font size=-1>";
cr();
}
function show_table3_v_delimiter()
{
- echo "</font>";
+// echo "</font>";
cr();
echo "</td>";
cr();
@@ -2613,14 +2573,14 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
cr();
echo "<td colspan=1 bgcolor=99AABB align=left valign=\"top\">";
cr();
- echo "<font face=\"Arial,Helvetica\" size=-1>";
+// echo "<font size=-1>";
cr();
}
function show_table2_v_delimiter2()
{
- echo "</font>";
+// echo "</font>";
cr();
echo "</td>";
cr();
@@ -2630,7 +2590,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
cr();
echo "<td colspan=2 bgcolor=\"99AABB\" align=right valign=\"top\">";
cr();
- echo "<font face=\"Arial,Helvetica\" size=-1>";
+// echo "<font size=-1>";
cr();
}
@@ -2650,7 +2610,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
cr();
echo "<td colspan=2 bgcolor=99AABB align=center valign=\"top\">";
cr();
- echo " <font face=\"Arial,Helvetica\" size=+1>";
+// echo " <font size=+1>";
cr();
}
@@ -2668,13 +2628,13 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
cr();
echo "<td colspan=1 bgcolor=99AABB align=center valign=\"top\">";
cr();
- echo " <font face=\"Arial,Helvetica\" size=+1>";
+// echo " <font size=+1>";
cr();
}
function show_table2_header_end()
{
- echo " </font>";
+// echo " </font>";
cr();
echo "</td>";
cr();
@@ -2692,7 +2652,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
function show_table_header_end()
{
- echo " </font>";
+// echo " </font>";
cr();
echo "</td>";
cr();
@@ -3458,9 +3418,9 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "<td bgcolor=\"#000000\">";
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=\"100%\" bgcolor=\"#666666\">";
echo "<tr><td align=center>";
- echo "<font face=\"Arial,Helvetica\" size=1>";
+// echo "<font size=1>";
echo "<a href=\"http://zabbix.sourceforge.net\">ZABBIX</a> Copyright 2000,2001,2002 by <a href=\"mailto:alex@gobbo.caves.lv\">Alexei Vladishev</a>";
- echo "</font>";
+// echo "</font>";
echo "</td>";
echo "</tr>";
echo "</table>";
@@ -3482,12 +3442,12 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "<td bgcolor=\"#000000\">";
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=100% bgcolor=\"#666666\">";
echo "<tr><td align=center>";
- echo "<font face=\"Arial,Helvetica\" size=1>";
+// echo "<font size=1>";
echo "<a href=\"http://zabbix.sourceforge.net\">ZABBIX</a> Copyright 2000,2001,2002 by <a href=\"mailto:alex@gobbo.caves.lv\">Alexei Vladishev</a>";
- echo "</font>";
+// echo "</font>";
echo "</td>";
echo "<td align=right width=15%>";
- echo "<font size=-1>| Connected as ".$USER_DETAILS["alias"];
+ echo "| Connected as ".$USER_DETAILS["alias"];
echo "</td>";
echo "</tr>";
echo "</table>";
diff --git a/frontends/php/maps.php b/frontends/php/maps.php
index 2e4a45c8..31e0cb2b 100644
--- a/frontends/php/maps.php
+++ b/frontends/php/maps.php
@@ -35,8 +35,6 @@
show_table_v_delimiter();
- echo "<font size=2>";
-
$lasthost="";
$result=DBselect("select sysmapid,name from sysmaps order by name");
@@ -63,7 +61,6 @@
echo "No maps to display";
}
- echo "</font>";
show_table_header_end();
echo "<br>";
}
diff --git a/frontends/php/report2.php b/frontends/php/report2.php
index 42808508..b866d6ed 100644
--- a/frontends/php/report2.php
+++ b/frontends/php/report2.php
@@ -20,8 +20,6 @@
show_table_v_delimiter();
- echo "<font size=2>";
-
$result=DBselect("select h.hostid,h.host from hosts h,items i where h.status in (0,2) and h.hostid=i.hostid group by h.hostid,h.host order by h.host");
while($row=DBfetch($result))
@@ -42,7 +40,6 @@
echo " ";
}
- echo "</font>";
show_table_header_end();
?>
diff --git a/frontends/php/trends.php b/frontends/php/trends.php
index 49641599..47ac5130 100644
--- a/frontends/php/trends.php
+++ b/frontends/php/trends.php
@@ -25,8 +25,6 @@
show_table_v_delimiter();
- echo "<font size=2>";
-
if(isset($HTTP_GET_VARS["type"])&&$HTTP_GET_VARS["type"]=="12hours")
{
echo "<b>[<a href='trends.php?itemid=".$HTTP_GET_VARS["itemid"]."&type=12hours'>12hours</a>]</b> ";