themes/funkymonkey/playlist.tpl
changeset 0 c63de9eb7045
child 1 cddc2ba706d6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/themes/funkymonkey/playlist.tpl	Sun Mar 23 14:59:33 2008 -0400
@@ -0,0 +1,39 @@
+{**
+ * Template file for default Funky Monkey theme
+ * Web control interface script for Amarok
+ * Written by Dan Fuhry - 2008
+ *
+ * This script is in the public domain. Use it for good, not evil.
+ *}
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html>
+  <head>
+    <title>AmaroK playlist</title>
+    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
+    <link rel="stylesheet" type="text/css" href="/themes/{$theme|escape}/style.css" />
+  </head>
+  <body>
+    <div class="tblholder" id="playlist">
+      <table border="0" cellspacing="1" cellpadding="4">
+        <tr>
+          <th>TrackNo</th>
+          <th>Track</th>
+          <th>Artist</th>
+          <th>Album</th>
+          <th>Length</th>
+        </tr>
+        {foreach key=tid item=track from=$playlist}
+        <tr class="{cycle values="row1,row2"}{if $active == $tid} current{/if}">
+          <td style="text-align: center;">{$tid+1}</td>
+          <td>{$track.title|escape}</td>
+          <td>{$track.artist|escape}</td>
+          <td>{$track.album|escape}</td>
+          <td style="text-align: center;">{$track.length|escape}</td>
+        </tr>
+        {/foreach}
+      </table>
+    </div>
+  </body>
+</html>
+