added print stylesheet

This commit is contained in:
Michael Clemens 2009-05-15 17:07:36 +00:00
parent 6506cd4bc0
commit cb24bebdeb
5 changed files with 63 additions and 10 deletions

View File

@ -189,9 +189,16 @@ table.login tr { text-align: center; }
.button { .button {
position: relative; position: relative;
top: 5px;
} }
.textfield { .textfield {
position: relative; position: relative;
}
.topnavbutton {
position: relative;
top: 5px;
}
.topnavtextfield {
position: relative;
top: 5px; top: 5px;
} }

44
css/print.css Normal file
View File

@ -0,0 +1,44 @@
body, html, #design, #table, #inhalt, #content {
background-color: #ffffff;
width: 100%;
text-align: center;
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
padding: 0;
margin: 0;
}
#head, #tnleft, #tnright, #menue, #footer, .button, .textfield {
display:none;
}
a.navhead:link, a.navhead:visited, a.navhead:active, a.navhead:hover {
text-decoration:none;
}
table.zebra, table.timetable {
font: 10pt "trebuchet ms",arial,helvetica,sans-serif;
padding: 0; border-spacing: 0;
border-collapse: collapse;
}
table.zebra th table.timetable th {
background-color: #f0f3f9;
padding: 0.5mm 5mm 0.5mm 2mm;
border: 0.1mm solid #aab;
border-width: 0.2mm 0 0.5mm;
}
table.zebra tr.d0 table.timetable tr.d0 {
background-color: #f0f3f9 ;
font-size: 10px;
padding: 0.5mm 5mm 0.5mm 2mm;
}
table.zebra tr.d1 table.timetable tr.d1 {
background-color: #fcf6e4;
font-size: 10px;
padding: 0.5mm 5mm 0.5mm 2mm;
}

View File

@ -31,6 +31,7 @@ if ($_POST["css"] != "") $_SESSION['stylesheet'] = $_POST["css"];
if ($_POST["tabletype"] != "") $_SESSION["tabletype"] = $_POST["tabletype"]; if ($_POST["tabletype"] != "") $_SESSION["tabletype"] = $_POST["tabletype"];
if ($_POST["DebugMode"] != "") $_SESSION["debug"] = $_POST["DebugMode"]; if ($_POST["DebugMode"] != "") $_SESSION["debug"] = $_POST["DebugMode"];
$adodb->setDebug($_SESSION["debug"]); $adodb->setDebug($_SESSION["debug"]);
//if ($_SESSION['stylesheet'] == "") $_SESSION['stylesheet'] = "style_classic.css";
?> ?>
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"> <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">
@ -41,6 +42,7 @@ $adodb->setDebug($_SESSION["debug"]);
<meta http-equiv='content-type' content='text/html; charset=ISO-8859-1'> <meta http-equiv='content-type' content='text/html; charset=ISO-8859-1'>
<link rel='shortcut icon' href='images/favicon.ico' type='image/x-icon'> <link rel='shortcut icon' href='images/favicon.ico' type='image/x-icon'>
<link rel='icon' href='images/favicon.ico' type='image/x-icon'> <link rel='icon' href='images/favicon.ico' type='image/x-icon'>
<link rel="stylesheet" type="text/css" href="css/print.css" media="print">
<link rel='stylesheet' type='text/css' href='css/layout.css'> <link rel='stylesheet' type='text/css' href='css/layout.css'>
<link rel='stylesheet' type='text/css' href='css/<?php echo $_SESSION['stylesheet']; ?>'> <link rel='stylesheet' type='text/css' href='css/<?php echo $_SESSION['stylesheet']; ?>'>
<script type="text/javascript" src="extlib/datechooser.js"></script> <script type="text/javascript" src="extlib/datechooser.js"></script>

View File

@ -35,11 +35,11 @@
<?php <?php
//if ($tsmmonitor->GETVars['qq'] != "admin" && !$_POST["edit"] == "edit") { //if ($tsmmonitor->GETVars['qq'] != "admin" && !$_POST["edit"] == "edit") {
if ($tsmmonitor->GETVars['qq'] != "index" && $tsmmonitor->GETVars['qq'] != "overview" && $tsmmonitor->GETVars['qq'] != "serverlist") { if ($tsmmonitor->GETVars['qq'] != "index" && $tsmmonitor->GETVars['qq'] != "overview" && $tsmmonitor->GETVars['qq'] != "serverlist") {
echo "<input type='button' value='PDF' onclick='genPDF()' class='button'>"; echo "<input type='button' value='PDF' onclick='genPDF()' class='button topnavbutton'>";
if ($tsmmonitor->configarray["queryarray"][$tsmmonitor->GETVars['qq']]["timetablefields"] != "") { if ($tsmmonitor->configarray["queryarray"][$tsmmonitor->GETVars['qq']]["timetablefields"] != "") {
echo "<select name='tabletype' size=1 onChange='submit();' class='button'>"; echo "<select name='tabletype' size=1 onChange='submit();' class='button topnavbutton'>";
$types = array('normal view', 'timetable'); $types = array('normal view', 'timetable');
foreach ($types as $type) { foreach ($types as $type) {
echo '<option value="'.$type.'"'; echo '<option value="'.$type.'"';
@ -53,7 +53,7 @@ if ($tsmmonitor->GETVars['qq'] != "index" && $tsmmonitor->GETVars['qq'] != "over
} }
if ($tsmmonitor->GETVars['qq'] != "polldstat" && $tsmmonitor->GETVars['qq'] != "serverlist") { if ($tsmmonitor->GETVars['qq'] != "polldstat" && $tsmmonitor->GETVars['qq'] != "serverlist") {
echo "<select name='s' size=1 onChange='submit();' class='button'>"; echo "<select name='s' size=1 onChange='submit();' class='button topnavbutton'>";
while(list($servername,$serveritems) = each($tsmmonitor->configarray["serverlist"])) { while(list($servername,$serveritems) = each($tsmmonitor->configarray["serverlist"])) {
echo '<option value="'.$servername.'"'; echo '<option value="'.$servername.'"';

View File

@ -158,7 +158,7 @@ class TSMMonitor {
if ($this->configarray['stylesheet'] != "") { if ($this->configarray['stylesheet'] != "") {
$_SESSION['stylesheet'] = $this->configarray['stylesheet']; $_SESSION['stylesheet'] = $this->configarray['stylesheet'];
} else { } else {
$_SESSION['stylesheet'] = "default.css"; $_SESSION['stylesheet'] = "style_classic.css";
} }
} }
@ -927,7 +927,7 @@ class TSMMonitor {
$fieldnames = $this->adodb->fetchArrayDB($sql); $fieldnames = $this->adodb->fetchArrayDB($sql);
// Build Field Name Combobox // Build Field Name Combobox
$fieldbox = "<select name='wcfield' size=1 onChange='' class='button'>"; $fieldbox = "<select name='wcfield' size=1 onChange='' class='button topnavbutton'>";
foreach ($fieldnames as $field) { foreach ($fieldnames as $field) {
if ($field['Field'] != "timestamp") { if ($field['Field'] != "timestamp") {
$fieldbox.= '<option value="'.$field['Field'].'"'; $fieldbox.= '<option value="'.$field['Field'].'"';
@ -939,7 +939,7 @@ class TSMMonitor {
// Build Operator Combobox // Build Operator Combobox
if ($arrop=="") $arrop="="; if ($arrop=="") $arrop="=";
$opbox = "<select name='wcop' size=1 onChange='' class='button'>"; $opbox = "<select name='wcop' size=1 onChange='' class='button topnavbutton'>";
foreach ($operators as $op) { foreach ($operators as $op) {
$opbox.= '<option value="'.$op.'"'; $opbox.= '<option value="'.$op.'"';
if ($arrop == $op) {$opbox.= "SELECTED";} if ($arrop == $op) {$opbox.= "SELECTED";}
@ -951,9 +951,9 @@ class TSMMonitor {
$ret .= "<form action=".$link." method='post'>"; $ret .= "<form action=".$link." method='post'>";
$ret .= $fieldbox; $ret .= $fieldbox;
$ret .= $opbox; $ret .= $opbox;
$ret .= "<input name='wcval' type='text' size='15' maxlength='60' class='textfield' value='".$arrval."'> "; $ret .= "<input name='wcval' type='text' size='15' maxlength='60' class='button topnavtextfield' value='".$arrval."'> ";
$ret .= "<input type='submit' name='Search' value='Search' onclick='submit();' class='button'>"; $ret .= "<input type='submit' name='Search' value='Search' onclick='submit();' class='button topnavbutton'>";
$ret .= "<input type='submit' name='Clear' value='Clear' onclick='submit();' class='button'>"; $ret .= "<input type='submit' name='Clear' value='Clear' onclick='submit();' class='button topnavbutton'>";
$ret .= "</form>"; $ret .= "</form>";
return $ret; return $ret;