- user web: style server status page with CSS, some cleanup of the stylesheet (fix #457).

svn path=/trunk/boinc/; revision=14078
This commit is contained in:
Rytis Slatkevičius 2007-11-03 16:39:23 +00:00
parent 87c0f98b10
commit 6fd7ba0532
3 changed files with 43 additions and 32 deletions

View File

@ -10440,3 +10440,11 @@ David 2 Nov 2007
schema.sql schema.sql
html/user/ html/user/
forum_pm.php forum_pm.php
Rytis 3 Nov 2007
- user web: style server status page with CSS, some cleanup of the
stylesheet (based on ticket #457).
html/
ops/sample_server_status.php
user/white.css

View File

@ -94,13 +94,13 @@ function show_status($host, $function, $running) {
$htmlstring = "<tr><td>$function</td><td>$host</td>"; $htmlstring = "<tr><td>$function</td><td>$host</td>";
if ($running == 1) { if ($running == 1) {
$xmlstring .= " <status>running</status>\n"; $xmlstring .= " <status>running</status>\n";
$htmlstring .= "<td bgcolor=00ff00>Running</td>\n"; $htmlstring .= "<td class=\"running\">Running</td>\n";
} elseif ($running == 0) { } elseif ($running == 0) {
$xmlstring .= " <status>not running</status>\n"; $xmlstring .= " <status>not running</status>\n";
$htmlstring .= "<td bgcolor=ff0000>Not Running</td>\n"; $htmlstring .= "<td class=\"notrunning\">Not Running</td>\n";
} else { } else {
$xmlstring .= " <status>disabled</status>\n"; $xmlstring .= " <status>disabled</status>\n";
$htmlstring .= "<td bgcolor=ff8800>Disabled</td>\n"; $htmlstring .= "<td class=\"disabled\">Disabled</td>\n";
} }
$xmlstring .= " </daemon>\n"; $xmlstring .= " </daemon>\n";
$htmlstring .= "</tr>\n"; $htmlstring .= "</tr>\n";

View File

@ -1,23 +1,14 @@
a:link { a:link, a:visited, a:active {
color: blue; color: blue;
} }
a:visited { body, table, select {
color: blue;
}
a:active {
color: blue;
}
body , table , select {
background-color: white; background-color: white;
font-family: Verdana, Arial, Sans-Serif; font-family: Verdana, Arial, Sans-Serif;
font-size: 12px; font-size: 12px;
} }
body { body {
background-color: white;
color: black; color: black;
} }
@ -40,7 +31,7 @@ td.shaded {
} }
td.indent { td.indent {
border-left: 4px solid white; border-left: 4px solid white;
} }
td.heading { td.heading {
@ -64,17 +55,17 @@ td.fieldvalue {
font-weight: bold; font-weight: bold;
} }
td.fieldname_error { td.fieldname_error {
background-color: #ff8888; background-color: #ff8888;
text-align: right; text-align: right;
vertical-align: top; vertical-align: top;
} }
td.fieldvalue_error { td.fieldvalue_error {
background-color: #ff8888; background-color: #ff8888;
vertical-align: top; vertical-align: top;
font-weight: bold; font-weight: bold;
} }
td.category { td.category {
background-color: #dddddd; background-color: #dddddd;
@ -101,12 +92,12 @@ a.navbar:hover {
} }
tr.row0 { tr.row0 {
background-color: rgb(217,217,217); background-color: #d9d9d9;
text-align: left; text-align: left;
} }
tr.row1 { tr.row1 {
background-color: rgb(237,237,237); background-color: #eeeeee;
text-align: left; text-align: left;
} }
@ -116,21 +107,21 @@ tr.subtitle {
} }
tr.message { tr.message {
background-color:#E0E0EF; background-color: #e0e0e0;
} }
input , select { input, select {
vertical-align: middle; vertical-align: middle;
} }
h1 , h2 { h1, h2 {
color: black; color: black;
font-size: x-large; font-size: x-large;
font-weight: normal; font-weight: normal;
margin-top: 10px; margin-top: 10px;
} }
h3 , h4 { h3, h4 {
color: black; color: black;
font-size: small; font-size: small;
font-weight: bold; font-weight: bold;
@ -226,17 +217,30 @@ tr.postseperator{
tr.postseperator td{ tr.postseperator td{
border-top: 1px solid rgb(170,170,170); border-top: 1px solid rgb(170,170,170);
border-bottom: 1px solid rgb(170,170,170); border-bottom: 1px solid rgb(170,170,170);
} }
td.threadline { td.threadline {
text-align:left; text-align:left;
} }
span.note{ td.running {
background-color: #00ff00;
}
td.notrunning {
background-color: #ff0000;
}
td.disabled {
background-color: #ff8800;
}
span.note {
font-weight: normal; font-weight: normal;
font-size: 0.9em; font-size: 0.9em;
} }
span.news_date { span.news_date {
color: rgb(100,100,100); color: rgb(100,100,100);
font-size: 0.9em; font-size: 0.9em;
@ -315,4 +319,3 @@ span.news_date {
input.btn { input.btn {
padding:0px 2px; padding:0px 2px;
} }