-
Notifications
You must be signed in to change notification settings - Fork 0
/
dj.html
203 lines (183 loc) · 4.82 KB
/
dj.html
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB">
<head>
<title>DJ Queue</title>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<meta name="description" content="2 Column CSS Demo - Equal Height Columns with Cross-Browser CSS" />
<meta name="keywords" content="2 Column CSS Demo - Equal Height Columns with Cross-Browser CSS" />
<meta name="robots" content="index, follow" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<style media="screen" type="text/css">
.body {
list-style:
margin:0;
padding:0;
}
#header h1,
#header h2,
#header p {
margin-left:2%;
padding-right:2%;
}
#active2 #tab2,
#active3 #tab3,
#active4 #tab4,
#active5 #tab5 {
font-weight:bold;
text-decoration:none;
color:#000;
}
#footer {
clear:both;
float:left;
width:100%;
}
#footer p {
margin-left:2%;
padding-right:2%;
}
/**background-image: url(""); */
/* Start of Column CSS */
#container2 {
clear:left;
float:left;
width:100%;
overflow:hidden;
}
#container1 {
float:left;
width:100%;
position:relative;
right:50%;
}
#col1 {
float:left;
width:46%;
position:relative;
left:52%;
overflow:hidden;
}
#col2 {
float:left;
width:46%;
position:relative;
left:56%;
overflow:hidden;
}
.img{
width: 100%;
height: auto;
}
.boxed {
border: 1px solid white ;
background-color: white;
}
.main
{
background-color:#e9ecf4;
font: Monospace;
font-size:20px;
background-image: url("https://images.pexels.com/photos/25877/pexels-photo-25877.jpg?w=940&h=650&auto=compress&cs=tinysrgb"); }
}
/* --> */
</style>
<body id="active2" class="main">
<nav class="navbar navbar-default nav-colo">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="http://localhost/index.html.php">DJ Queue</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="http://localhost/index.html.php">Home</a></li>
<li><a href="http://localhost/user.html.php">User Interface</a></li>
<li><a href="http://localhost/dj.html.php">DJ Interface</a></li>
</ul>
</div>
</nav>
<div>
<div class="boxed">
<h1><font size="8"><center><bold>DJ-Queue</bold></center></font></h1>
<div><font size="6">
<p><center><a href="http://localhost/user.html.php" target="_blank">User Interface</a></p></center>
<p><center><a href="http://localhost/dj.html.php" target="_blank">DJ Interface</a></p></center>
</div></p></div>
<div id="header">
<h1><center class="boxed">Currently Playing:
<?php
$fileName = "musicTest.txt";
$file = fopen($fileName, "r");
$count = 0;
while(!feof($file) and $count<1)
{
$data = fgets($file);
$count++;
echo $data;
}
fclose($file);
?>
</center></h1>
<div id="container2">
<div id="container1">
<div class="boxed"id="col1">
<!-- Column one start -->
<h2>Allow or Deny</h2>
<h4>Title: Artist: Genre</h4>
<!-- PHP Start -->
<?php
$fileName = "musicTest.txt";
$file = fopen($fileName, "r");
$count = 0;
while(!feof($file))
{
$data = fgets($file);
echo $data."<br /br>";
echo '<form action="" method="get">
<input type="checkbox" name="allow">Allow<input type="checkbox" name="deny">Deny<br>
</form>';
if(isset($_POST['allow']))
{
$array[$count] = explode(" : ",fgets($file));
echo $array[$count];
}
if(isset($_POST['deny']))
{
if(stristr($data,""))
echo '<div class="boxed"> $data." removed"</div>';
}
$count++;
}
echo '<form action="http://localhost/index.html.php" method="post">
<input type="submit" id="submit" class="submit" value="Submit"/>
</form>';
fclose($file);
?>
<!-- Column one end -->
</div>
<div class="boxed"id="col2">
<!-- Column two start -->
<h2>View Queue</h2>
<h4>Title: Artist: Genre</h4>
<?php
$fileName = "musicTest.txt";
$file = fopen($fileName, "r");
$count = 0;
while(!feof($file))
{
$data = fgets($file);
$count++;
echo $data."<br /br>";
}
fclose($file);
?>
<!-- Column two end -->
</div>
</div>
</div>
</div>
</body>
</html>