Merge branch 'master' of /opt/git/clearscm
[clearscm.git] / songbook / web / displayartist.php
deleted file mode 120000 (symlink)
index b13818f9637a3f4bbbc5f2d3201d24019fd4672d..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-/web/php/songbook/displayartist.php
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..a99fb5e115b4b0032c02c823842425959344f5f5
--- /dev/null
@@ -0,0 +1,47 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+   "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+  <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+  <title>Songbook Artist</title>
+  <link rel="stylesheet" type="text/css" media="screen" href="/css/Music.css">
+  <link rel="stylesheet" type="text/css" media="print" href="/css/Print.css">
+  <link rel="SHORTCUT ICON" href="http://defaria.com/favicon.ico" type="image/png">
+
+<?php
+include_once "songbook.php";
+$artist = $_REQUEST ["artist"];
+?>
+
+<div class="heading">
+<a href="/songbook"><img src="/Icons/Home.png" alt="Home"></a>
+  <h1 class="centered">Andrew DeFaria's Songbook</h1>
+
+  <h2 class="centered"><?php echo $artist?></h2>
+</div>
+
+<div id="content">
+
+<?php
+$artistsSongs = array();
+
+foreach ($songs as $song) {
+  $songArtist = getArtist ($song);
+
+  if ($songArtist == $artist) {
+    array_push ($artistsSongs, $song);
+  } // if
+} // foreach
+
+print "<ol>";
+
+foreach ($artistsSongs as $artistSong) {
+  print "<li><a href=\"webchord.cgi?chordpro=$artistSong\">";
+  print basename ($artistSong, ".pro");
+  print "</a></li>";
+} // foreach
+?>
+
+</body>
+</html>