Commit 6434a691 authored by Simon Welsh's avatar Simon Welsh

Nicer header

git-svn-id: svn+ssh://lsgn/var/logbot-www@39 5f99df0c-6b0a-442a-b40a-040688e84a9d
parent 0d41ec48
......@@ -21,7 +21,7 @@ body {
width: 100%;
}
form, p, h1, h2, h3 {
p, h1, h2, h3 {
padding: 0 10px;
}
......@@ -116,10 +116,29 @@ h3 {
margin: 0;
}
form {
display: inline-block;
margin-left: 15px;
}
h1 {
margin: 0 0 6px 0;
padding: 18px;
background-color: #003050;
position: relative;
line-height: 24px;
color: #fff;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #002137), color-stop(10%, #003050), color-stop(90%, #003050), color-stop(100%, #002137));
background-image: -webkit-linear-gradient(#002137, #003050 10%, #003050 90%, #002137);
background-image: -moz-linear-gradient(#002137, #003050 10%, #003050 90%, #002137);
background-image: -o-linear-gradient(#002137, #003050 10%, #003050 90%, #002137);
background-image: linear-gradient(#002137, #003050 10%, #003050 90%, #002137);
}
</style>
</head>
<body>
<h1><?=$channel ?> IRC Log</h1>
<h1><?=$channel ?> IRC Log <?=search_form($_GET['q']) ?></h1>
......@@ -15,7 +15,6 @@ if(isset($_GET['date']) && preg_match('#^20[0-9]{2}-[01][0-9]-[0-3][0-9]$#', $_G
$body = '<p><a href="index.php">Index</a></p><h2>IRC Log for ';
$body .= date('j F Y', $time);
$body .= '</h2>';
$body .= search_form();
$body .= '<p>Timestamps are in NZT (<a href="http://timeanddate.com/worldclock/city.html?n=264" title="Click here to see what time it is right now in Wellington, New Zealand">New Zealand Time</a>).</p>';
if(isset($dates[$year][$month][$day])) {
......@@ -40,7 +39,7 @@ if(isset($_GET['date']) && preg_match('#^20[0-9]{2}-[01][0-9]-[0-3][0-9]$#', $_G
} else {
NoLog:
$body = search_form();
$body = '';
if(count($dates) > 1) {
$body .= '<p>Year:';
......
......@@ -23,7 +23,6 @@ $term = htmlentities($term);
$id = 0;
$body = '<p><a href="index.php">Index</a></p>';
$body .= search_form($_GET['q']);
$body .= '<h2>Search results for "';
$body .= $term;
$body .= '"';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment