$| = 1;
-# Global variables overridden during install
-my $JQGRAPH = 1;
-
# Command line options
my $zcat_cmd = 'gunzip -c';
my $zcat = $zcat_cmd;
}
}
-sub html_header
+sub get_page_style
{
- my $date = localtime(time);
- print $fh qq{<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
-<title>$report_title</title>
-<meta NAME="robots" CONTENT="noindex,nofollow">
-<meta HTTP-EQUIV="Expires" CONTENT="$date">
-<meta HTTP-EQUIV="Generator" CONTENT="pgBadger v$VERSION">
-<meta HTTP-EQUIV="Date" CONTENT="$date">
-<style type="text/css">
+ return qq{<style type="text/css">
body { background-color: #dedede; font-family: Verdana ;font-size: 14px;font-style: normal;font-weight: normal;text-transform: normal;letter-spacing: normal;line-height: 17px;padding: 0px; color: rgb(69,54,37); }
div, p, th, td { font-size:12px; }
-a {color:rgb(180, 80, 80);text-decoration:underline}
-a:hover {color:rgb(180, 80, 80);text-decoration:none}
-h1 { border-left:8px #0c57a3 solid; color: #0c57a3; font: lighter 30px Arial, Helvetica, sans-serif; margin: 0px; padding: 7px;border-top: 1px solid #CCCCCC;}
-h1 a, h1 a:visited { color: #007DFC; text-decoration: none; }
-h1 a:hover { color: #888888; text-decoration: none; }
-h2 { border-bottom: 1px solid #CCCCCC; color: #0c57a3; font: lighter 18px Arial, Helvetica, sans-serif; letter-spacing: -1px; margin: 0px 0px 2px; padding-bottom: 3px; padding-top:7px;}
-h2 a, h2 a:visited { color: #007dfc; text-decoration: none; }
-h2 a:hover { color: #6f6e6e; text-decoration: none; }
+#content h1 { border-left:8px #0c57a3 solid; color: #0c57a3; font: lighter 30px Arial, Helvetica, sans-serif; margin: 0px; padding: 7px;border-top: 1px solid #CCCCCC;}
+#content h1 a, h1 a:visited { color: #007DFC; text-decoration: none; }
+#content h1 a:hover { color: #888888; text-decoration: none; }
+#content h2 { border-bottom: 1px solid #CCCCCC; color: #0c57a3; font: lighter 18px Arial, Helvetica, sans-serif; letter-spacing: -1px; margin: 0px 0px 2px; padding-bottom: 3px; padding-top:7px;}
+#content h2 a, h2 a:visited { color: #007dfc; text-decoration: none; }
+#content h2 a:hover { color: #6f6e6e; text-decoration: none; }
div.menu {background-color:#EFEFEF; margin-bottom:15px; padding:4px; -moz-border-radius:8px; padding-left:10px; color:#8F8F8F; border:1px solid #D8D8D8; text-align: left; width: 1050px; -moz-box-shadow: 3px 3px 5px #000000; -webkit-box-shadow: 3px 3px 5px #000000; -khtml-box-shadow: 3px 3px 5px #000000; -o-box-shadow: 3px 3px 5px #000000; box-shadow: 3px 3px 5px #000000; border-color: #DBDBCC; }
div.menu a { color: #007dfc; text-decoration: none; }
width: 1035px;
}
-input {
+.examplesButton {
background:#F3F2ED;
- border:4px double white;
+ border:1px solid black
padding:2 2px;
margin:3px 3px 3px 3px;
border-radius:6px;
-webkit-box-shadow:3px 3px 6px #A9A9A9;
}
-ul { padding-left: 14px; padding-top: 0px; padding-bottom: 0px; margin-bottom: 0px; margin-top: 0px; }
-ul li { list-style-type: square; }
+.dldButton {
+ background:#F3F2ED;
+ border:1px solid black
+ padding:2 2px;
+ margin:3px 3px 3px 3px;
+ border-radius:6px;
+ -moz-border-radius:10px;
+ -webkit-border-radius:10px;
+ box-shadow:3px 3px 6px 2px #A9A9A9;
+ -moz-box-shadow:3px 3px 6px 2px #A9A9A9;
+ -webkit-box-shadow:3px 3px 6px #A9A9A9;
+}
+
+#content ul { padding-left: 14px; padding-top: 0px; padding-bottom: 0px; margin-bottom: 0px; margin-top: 0px; }
+#content ul li { list-style-type: square; }
div.reports { padding:4px; }
-table { border-collapse:collapse;}
-table th.left { text-align:left !important; }
-table tr.row0 td { background-color: #FFFFFF; border: Opx solid #E7E7E7;}
-table tr.row1 td { background-color: #E7E7E7; border: Opx solid #FFFFFF;}
-table td.top { vertical-align:top; }
-table td.right { text-align:right; }
-table td.center { text-align:center; }
-table td.relevantInformation { font-weight:bold; }
+#content table { border-collapse:collapse;}
+#content table th.left { text-align:left !important; }
+#content table tr.row0 td { background-color: #FFFFFF; border: Opx solid #E7E7E7;}
+#content table tr.row1 td { background-color: #E7E7E7; border: Opx solid #FFFFFF;}
+#content table td.top { vertical-align:top; }
+#content table td.right { text-align:right; }
+#content table td.center { text-align:center; }
+#content table td.relevantInformation { font-weight:bold; }
table.HourStatsTable {
background:#F3F2ED;
/* ]]> */
</script>
};
- if ($JQGRAPH) {
+
+}
+
+
+sub html_header
+{
+ my $date = localtime(time);
+ my $style = &get_page_style();
+ print $fh qq{<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<title>$report_title</title>
+<meta NAME="robots" CONTENT="noindex,nofollow">
+<meta HTTP-EQUIV="Expires" CONTENT="$date">
+<meta HTTP-EQUIV="Generator" CONTENT="pgBadger v$VERSION">
+<meta HTTP-EQUIV="Date" CONTENT="$date">
+$style
+};
+ if (!$nograph) {
my @jscode = <DATA>;
print $fh <<EOF
@jscode
/* <![CDATA[ */
(function mouse_zoom(container) {
-document.writeln('<table align="center"><tr><td><input type="button" class="dldButton" value="To Image" id="toimage$buttonid" onclick="return false;">'+
- '<input type="button" class="dldButton" value="Download" id="download$buttonid" onclick="return false;">' +
- '<input type="button" class="dldButton" value="Reset" id="reset$buttonid" onclick="return false;"></td></tr><tr><td> </td></tr></table>'
+document.writeln('<table align="center"><tr><td><input type="button" class="dldButton" value="To Image" id="toimage$buttonid" onclick="return false;" />'+
+ '<input type="button" class="dldButton" value="Download" id="download$buttonid" onclick="return false;" />' +
+ '<input type="button" class="dldButton" value="Reset" id="reset$buttonid" onclick="return false;" /></td></tr><tr><td> </td></tr></table>'
);
$data1
$data2
/* ]]> */
</script>
-__END__
-