-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tracks.php
55 lines (47 loc) · 2.23 KB
/
Tracks.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
<!DOCTYPE html>
<html class="Tracks">
<head>
<title>Tracks | CDHQ</title>
<?php include 'Structure/Head.php'; //Misc Head Links ?>
<?php include 'SQL/Connection.php'; //Establish database connection ?>
</head>
<body>
<?php include 'Structure/Nav.php'; //Establish database connection & link CSS ?>
<div class="searchBar">
<form name="SearchBar" method="get" action="Tracks.php">
<input name='search' type="text" size= "40" maxlength="30" placeholder = "Search For Tracks..."/>
<input type="submit" name="submit" value="Go"/>
</form>
</div>
<?php
include 'SQL/trackSQL/traSEL.php'; //include the table
$queryA = "SELECT * FROM CD ORDER BY cdID";
$resultA = mysqli_query($conn, $queryA);
?>
<div class = "Content"/>
<button id="modalBtn" class="openButton" type="button">+</button>
</div>
<div id="simpleModal" class="modalFrame">
<div class="modalBox">
<span class="closeBtn">×</span>
<p>Add New Track</p>
<div class="addNewBox">
<form name="addTrack" method="post" action="SQL/trackSQL/traINS.php">
<select name='addCDId' type="text">
<?php while($rowA = mysqli_fetch_array($resultA)):;?>
<option><?php echo $rowA['cdID'];?> - <?php echo $rowA['cdTitle'];?></option>
<?php endwhile;?>
</select>
<input name='addTraTitle' type="text" size= "40" pattern=".{1,}" required title="" maxlength="20" placeholder = "Title"/>
<input name='addTraDuration' type="time" step="1" size= "40" pattern=".{1,}" required title="" maxlength="20" placeholder = "Duration (e.g 00:03:45)"/>
<input type="submit" name="submitTra" value="Add"/>
</form>
</div>
</div>
</div>
<script src = "JS/main.js"></script>
<footer>
<p>Copyright © 2018 | CDHQ Inc. All rights reserved.</p>
</footer>
</body>
</html>