-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathartist.php
62 lines (43 loc) · 1.24 KB
/
artist.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
<?php
require_once('frame_header.php');
verifyUserSession();
$userid = $_SESSION["loginUsername"];
if(isset($_GET['artistid'])){
$artistid=$_GET['artistid'];
echo "<input type='hidden' class='artistid' value='$artistid'>";
}
else{
header("Location: user.php");
}
$artist=new Artist($conn,$artistid);
echo "<input type='hidden' class='userid' value='$userid'>";
?>
<div class="container-fluid">
<div class="row">
<div class="col-md-3 text-primary">
<span class="details">Artist:</span> <?php echo $artist->getTitle() ?>
<img src='assets/images/icons/like_follow.png' class='like'>
</div>
<div class="col-md-6 text-primary">
<span class="details">Artist Description</span> <?php echo $artist->getDescription() ?>
</div>
<div class="col-md-3 text-primary">
<span class="details">Songs</span> <?php echo $artist->getNumber() ?>
</div>
</div>
<ul class="tracklist">
<?php
$trackIdArray=$artist->getTrackid();
$array=array();
foreach ($trackIdArray as $trackid) {
array_push($array,$trackid);
}
Track::printTracks($conn,$array,true,false)
?>
</ul>
</div>
<?php
require_once("includes/optionsMenu.php");
require_once('frame_footer.php');
?>