-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathhead.php
49 lines (49 loc) · 1.54 KB
/
head.php
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
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="application-name" content="TVHadmin">
<title>TVHadmin - <?php echo $page_title; ?></title>
<link rel="manifest" href="manifest.webmanifest" crossorigin="use-credentials">
<?php
include_once './include.php';
if (isset($settings["THEME"]) && ($settings["THEME"] == 1)) {
echo '<link rel="stylesheet" href="style.dark.css">';
}
else echo '<link rel="stylesheet" href="style.css">';
?>
<script>
window.addEventListener('load',function() {
var mytop=document.getElementById("mobmenu");
mytop.addEventListener('click', function() {
var mynav=document.getElementById("navigation");
if (mynav.classList.contains('focus'))
mynav.classList.remove('focus');
else mynav.classList.add('focus');
});
},false);
function checkForm() {
var x = document.forms["telly"]["find"].value;
if (x == "") return false;
}
</script>
</head>
<body>
<div id="container">
<div id="navigation">
<div class="logo">
<img src="images/logo.png" alt="TVHeadend Logo" width="150">
</div>
<div class="nav_bar">
<?php
foreach ($pages as $key=>$value) {
echo "<div class='navi'><a href='TVHadmin.php?screen=$key'>$value</a></div>";
}
?>
<form action="search.php" method="GET" name="telly" class="search" onsubmit="return checkForm()">
<input type="text" name="find"><br>
<input type="submit" name="submit" value="Search">
</form>
</div>
</div>