From cb24bebdeb9784e86baeb0ece97fb7a3704165eb Mon Sep 17 00:00:00 2001 From: Michael Clemens Date: Fri, 15 May 2009 17:07:36 +0000 Subject: [PATCH] added print stylesheet --- css/layout.css | 9 ++++++++- css/print.css | 44 +++++++++++++++++++++++++++++++++++++++++ includes/page_head.php | 2 ++ includes/topnav.php | 6 +++--- includes/tsmmonitor.php | 12 +++++------ 5 files changed, 63 insertions(+), 10 deletions(-) create mode 100644 css/print.css diff --git a/css/layout.css b/css/layout.css index ebcb7db..028eac0 100644 --- a/css/layout.css +++ b/css/layout.css @@ -189,9 +189,16 @@ table.login tr { text-align: center; } .button { position: relative; -top: 5px; } .textfield { position: relative; +} + +.topnavbutton { +position: relative; +top: 5px; +} +.topnavtextfield { +position: relative; top: 5px; } diff --git a/css/print.css b/css/print.css new file mode 100644 index 0000000..7391827 --- /dev/null +++ b/css/print.css @@ -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; +} diff --git a/includes/page_head.php b/includes/page_head.php index 03024b6..1176305 100644 --- a/includes/page_head.php +++ b/includes/page_head.php @@ -31,6 +31,7 @@ if ($_POST["css"] != "") $_SESSION['stylesheet'] = $_POST["css"]; if ($_POST["tabletype"] != "") $_SESSION["tabletype"] = $_POST["tabletype"]; if ($_POST["DebugMode"] != "") $_SESSION["debug"] = $_POST["DebugMode"]; $adodb->setDebug($_SESSION["debug"]); +//if ($_SESSION['stylesheet'] == "") $_SESSION['stylesheet'] = "style_classic.css"; ?> @@ -41,6 +42,7 @@ $adodb->setDebug($_SESSION["debug"]); + '> diff --git a/includes/topnav.php b/includes/topnav.php index 54df47f..3ac59ec 100644 --- a/includes/topnav.php +++ b/includes/topnav.php @@ -35,11 +35,11 @@ GETVars['qq'] != "admin" && !$_POST["edit"] == "edit") { if ($tsmmonitor->GETVars['qq'] != "index" && $tsmmonitor->GETVars['qq'] != "overview" && $tsmmonitor->GETVars['qq'] != "serverlist") { - echo ""; + echo ""; if ($tsmmonitor->configarray["queryarray"][$tsmmonitor->GETVars['qq']]["timetablefields"] != "") { - echo ""; $types = array('normal view', 'timetable'); foreach ($types as $type) { echo '