New Songbook
[songbook.git] / web / displayartist.php
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2    "http://www.w3.org/TR/html4/strict.dtd">
3 <html>
4 <head>
5   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6   <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
7   <title>Songbook Artist</title>
8   <link rel="stylesheet" type="text/css" media="screen" href="/css/Music.css">
9   <link rel="stylesheet" type="text/css" media="print" href="/css/Print.css">
10   <link rel="SHORTCUT ICON" href="http://defaria.com/favicon.ico" type="image/png">
11
12 <?php
13 include_once "songbook.php";
14 $artist = $_REQUEST ["artist"];
15 ?>
16
17 <div class="heading">
18 <a href="/songbook"><img src="/Icons/Home.png" alt="Home"></a>
19   <h1 class="centered">Andrew DeFaria's Songbook</h1>
20
21   <h2 class="centered"><?php echo $artist?></h2>
22 </div>
23
24 <div id="content">
25
26 <?php
27 $artistsSongs = array();
28
29 foreach ($songs as $song) {
30   $songArtist = getArtist ($song);
31
32   if ($songArtist == $artist) {
33     array_push ($artistsSongs, $song);
34   } // if
35 } // foreach
36
37 print "<ol>";
38
39 foreach ($artistsSongs as $artistSong) {
40   print "<li><a href=\"webchord.cgi?chordpro=$artistSong\">";
41   print basename ($artistSong, ".pro");
42   print "</a></li>";
43 } // foreach
44 ?>
45
46 </body>
47 </html>