-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalbum.php
52 lines (37 loc) · 999 Bytes
/
album.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
<?php
require_once('frame_header.php');
verifyUserSession();
$userid = $_SESSION["loginUsername"];
if(isset($_GET['albumid'])){
$albumid=$_GET['albumid'];
}
else{
header("Location: home.php");
}
$album=new Album($conn,$albumid);
?>
<br>
<div class="container-fluid">
<div class="row">
<div class="col-md text-primary">
<span class="details">Album:</span> <?php echo $album->getalbumname() ?>
</div>
<div class="col-md text-primary">
<?php echo $album->getNumber() ?> <span class="details">Songs</span>
</div>
<div class="col-md text-primary">
<span class="details">Release Date</span> <?php echo $album->getAlbumReleaseDate() ?>
</div>
</div>
<ul class="tracklist">
<?php
$trackIdArray=$album->getTrackid();
$array=array();
foreach ($trackIdArray as $trackid) {
array_push($array,$trackid);
}
Track::printTracks($conn,$array,true,false)
?>
</ul>
</div>
<?php require_once('frame_footer.php'); ?>