-
Notifications
You must be signed in to change notification settings - Fork 0
/
resultsVenue.php~
executable file
·63 lines (62 loc) · 1.64 KB
/
resultsVenue.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
<?php
include('includes/header.php');
include('functions/Albums.php');
include('functions/Venue.php');
include('functions/Artists.php');
$id = $_GET["venue"];
?>
<div id="yui-main">
<div class="yui-b">
<div class="yui-g">
<?php
echo '<h1>Venue: ';
$venue = getVenue($id);
while($venuerow = mysql_fetch_array($venue)){
echo $venuerow["1"];
}
echo '</h1><em>';
$albums = getAlbumsByVenue($id);
echo(mysql_num_rows($albums));
echo ' albums found</em>';
?>
</div>
<div class="yui-gb">
<?php
$count=0;
while($albumrow = mysql_fetch_array($albums)){
if($count%3==0){
echo '<div class="yui-u first entry">';
}
else{
echo '<div class="yui-u entry">';
}
echo '<div class="add_play"><a href="javascript:playAlbum(\'';
echo $albumrow[0];
echo '\')"><img class="small" src="images/play.gif" /></a>';
echo '<a href="javascript:appendAlbum(\'';
echo $albumrow[0];
echo '\')"><img class="small" src="images/add.gif" /></a></div>';
echo '<h5><a href="javascript:loadContent(\'info.php?album=';
echo $albumrow[0];
echo '\')">';
echo $albumrow[1];
echo '</a></h5>';
echo '<img class="star small" src="images/star.gif" /><p class="rating">';
$rating = getRatingsForAlbum($albumrow[0]);
while($ratingrow = mysql_fetch_array($rating)){
echo $ratingrow[0];
}
echo '</p>';
echo '</div>';
if($count%3==2){
echo '</div><div class="yui-gb">';}
$count++;
}
?>
</div>
</div>
</div>
<?php
include('includes/sidebar.php');
include('includes/footer.php');
?>