Commit 36c9da4c authored by Simon Welsh's avatar Simon Welsh

Even nicer head

git-svn-id: svn+ssh://lsgn/var/logbot-www@40 5f99df0c-6b0a-442a-b40a-040688e84a9d
parent 6434a691
......@@ -121,24 +121,18 @@ form {
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);
}
.info { 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); }
.info h1 { margin: 0 0 6px 0; padding: 0 32px 0 0; color: #fff; font-size: 24px; text-shadow: 0 1px #002137; line-height: 30px; background: url(logo_small.png) no-repeat right 3px; }
.info h2 { color: #7da4be; font-size: 16px; line-height: 18px; font-weight: normal; }
.info p { margin: 0; font-size: 14px; color: #fff; }
.info a { color: #fff; font-weight: bold; text-decoration: none; }
.info a:hover, .info a:active { color: #fff; text-decoration: underline; }
</style>
</head>
<body>
<h1><?=$channel ?> IRC Log <?=search_form($_GET['q']) ?></h1>
<div class="info">
<h1><?=$channel ?> IRC Log <?=search_form(isset($_GET['q']) ? $_GET['q'] : null) ?></h1>
......@@ -12,9 +12,9 @@ if(isset($_GET['date']) && preg_match('#^20[0-9]{2}-[01][0-9]-[0-3][0-9]$#', $_G
$month = date('F', $time);
$day = date('j', $time);
$body = '<p><a href="index.php">Index</a></p><h2>IRC Log for ';
$body = '<h2>IRC Log for ';
$body .= date('j F Y', $time);
$body .= '</h2>';
$body .= '</h2><a href="index.php">Index</a></div>';
$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])) {
......@@ -39,7 +39,7 @@ if(isset($_GET['date']) && preg_match('#^20[0-9]{2}-[01][0-9]-[0-3][0-9]$#', $_G
} else {
NoLog:
$body = '';
$body = '</div>';
if(count($dates) > 1) {
$body .= '<p>Year:';
......
......@@ -22,14 +22,13 @@ $term = htmlentities($term);
$id = 0;
$body = '<p><a href="index.php">Index</a></p>';
$body .= '<h2>Search results for "';
$body = '<h2>Search results for "';
$body .= $term;
$body .= '"';
if($order) {
$body .= ' ordered by ' . strtolower($order);
}
$body .= '</h2><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>';
$body .= '</h2><a href="index.php">Index</a></div><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(empty($results)) {
$body .= '<p><strong>No results found</strong></p>';
......
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