This repository has been archived by the owner on Aug 4, 2019. It is now read-only.
/
index.php
73 lines (64 loc) · 1.91 KB
/
index.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
if (@$_POST['user'])
{
$name = trim($_POST['user']);
setcookie("user", $name, time()+432000); //5 days (secconds)
}else{
if (!isset($_COOKIE["user"]))
{
header( 'Location: new.php' );
}else{
$name = $_COOKIE["user"];
}
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="favicon.ico" rel="shortcut icon">
<link rel="stylesheet" href="css/style.css">
<title>DJ Queue</title>
<script language="javascript" src="ajax_framework.js"></script>
<script language="JavaScript">
updateSize();
setInterval( "updateSize();", 2000 ); // 2 seconds
</script>
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body>
<div class="container">
<header class="header clearfix">
<div class="logo">Song Search Engine</div>
<nav class="menu_main">
<ul>
<li class="active"><a href="#">Search</a></li>
<li><a href="new.php">Logout [<?php echo $name; ?>]</a></li>
</ul>
</nav>
</header>
<div class="info">
<div id="update-size"></div>
<form id="searchForm" name="searchForm" method="post" action="javascript:insertTask();">
<div class="searchInput">
<input name="searchq" type="text" id="searchq" size="25" onkeyup="javascript:searchNameq()"/>
<input class="button" type="button" name="submitSearch" id="submitSearch" value="Search" onclick="javascript:searchNameq()"/>
</div>
</form>
<h3>Results</h3>
<div id="msg">Type something into the input field</div>
<div id="update-result"></div>
</div>
<footer class="footer clearfix">
<div class="copyright">Rock On</div>
<nav class="menu_bottom">
<ul>
<li><a target="_blank" href="https://github.com/lanrat/DJ_Queue">Souce</a></li>
<li><a target="_blank" href="http://vorsk.com">Vorsk</a></li>
</ul>
</nav>
</footer>
</div>
</body>
</html>