themes/funkymonkey/playlist.tpl
author Dan
Sun, 23 Mar 2008 14:59:33 -0400
changeset 0 c63de9eb7045
child 1 cddc2ba706d6
permissions -rw-r--r--
First commit. Basic things are working and implemented (webserver, templating, DCOP interface)

{**
 * 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>