-
Notifications
You must be signed in to change notification settings - Fork 0
/
html-header.inc
54 lines (51 loc) · 1.2 KB
/
html-header.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php ?>
<!DOCTYPE html>
<?php echo "<!--\n{$LICENSE}\n-->\n"; ?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php if (strlen($Title)) echo "$Title - "; ?>ClueLDAP</title>
<meta name="author" content="Mantas Mikulėnas">
<style>
body {
overflow-y: scroll;
}
pre, code {
font-family: Consolas, "DejaVu Mono", monospace;
}
.value.important {
font-weight: bold;
}
.value.error {
color: red;
}
.value.empty {
font-style: italic;
}
</style>
<?php foreach ($Stylesheets as $s):
$rel = ($s == $Style)? "stylesheet" : "alternate stylesheet";
echo "\t <link rel=\"{$rel}\" href=\"{$s}.css\" title=\"{$s}\">\n";
endforeach; ?>
</head>
<body>
<?php if ($NumResults >= 0): ?>
<!-- search bar -->
<div class="box">
<form id="searchbar" method="get" action="<?php echo $_SERVER["PHP_SELF"]; ?>">
<div>
<input type="search" name="q" id="q" value="<?php echo H($Query) ?>" />
<input type="submit" value="search" />
</div>
</form>
</div>
<?php endif; ?>
<?php if (count($SysErrors)): ?>
<!-- errors -->
<div class="box">
<h2 class="error">Something bad happened.</h2>
<ul>
<?php foreach ($SysErrors as $msg)
echo "\t<li>$msg</li>\n"; ?>
</ul>
</div>
<?php endif; ?>