themes/grey/playlist.tpl
author Dan
Tue, 23 Dec 2008 17:37:51 -0500
changeset 63 af239423ed15
parent 51 7009a9cbd46f
child 78 08f8a72b1f7b
permissions -rw-r--r--
Cookies should now persist in WebServer under Safari
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
28
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
     1
{**
51
7009a9cbd46f Re-merging fixed header blocks on theme files (fix was implemented on both nighthawk and scribus)
Dan
parents: 49
diff changeset
     2
 * Template file for default Grey theme
28
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
     3
 * Web control interface script for Amarok
51
7009a9cbd46f Re-merging fixed header blocks on theme files (fix was implemented on both nighthawk and scribus)
Dan
parents: 49
diff changeset
     4
 * Written by Dan Fuhry - (C) 2008
28
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
     5
 *
49
d62212462f9b Fixed license blocks in theme files
Dan
parents: 44
diff changeset
     6
 * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
d62212462f9b Fixed license blocks in theme files
Dan
parents: 44
diff changeset
     7
 * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
d62212462f9b Fixed license blocks in theme files
Dan
parents: 44
diff changeset
     8
 *
d62212462f9b Fixed license blocks in theme files
Dan
parents: 44
diff changeset
     9
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
d62212462f9b Fixed license blocks in theme files
Dan
parents: 44
diff changeset
    10
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
28
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    11
 *}
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    12
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    13
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    14
<html>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    15
  <head>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    16
    <title>AmaroK playlist</title>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    17
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    18
    <link rel="stylesheet" type="text/css" href="/themes/{$theme|escape}/style.css" />
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    19
    <link rel="favorite icon" type="image/ico" href="/favicon.ico" />
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    20
    <script type="text/javascript">
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    21
    var img_play = '/themes/{$theme|escape}/images/play.png';
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    22
    var img_pause = '/themes/{$theme|escape}/images/pause.png';
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    23
    var img_ajax = '/themes/{$theme|escape}/images/ajax.gif';
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    24
    var class_current = 'current';
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    25
    var allow_control = {if $allow_control}true{else}false{/if};
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    26
    </script>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    27
    {foreach from=$scripts item=script}
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    28
    <script type="text/javascript" src="/scripts/{$script}"></script>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    29
    {/foreach}
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    30
  </head>
49
d62212462f9b Fixed license blocks in theme files
Dan
parents: 44
diff changeset
    31
  <body class="playlist">
28
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    32
    <div id="playbar">
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    33
      <div class="playbar-inner">
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    34
        <div id="playhead"><div id="playhead-filler">&nbsp;</div></div>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    35
        <div id="playhead-button">&nbsp;</div>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    36
        <img alt=" " id="ajax_status" style="display: none; float: right; margin: 3px 0;" src="about:blank" />
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    37
        <img alt="AmaroK web control" src="/themes/{$theme|escape}/images/amarok.gif" style="margin-right: 20px;" />
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    38
        {if $allow_control}
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    39
        <a href="#action:prev" onclick="player_action('prev'); return false;"><img alt="&laquo; PrevTrk" src="/themes/{$theme|escape}/images/prev.png" /></a>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    40
        <a href="#action:play" onclick="player_action('play'); return false;" id="btn_playpause"><img alt="Play" src="/themes/{$theme|escape}/images/play.png" /></a>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    41
        <a href="#action:stop" onclick="player_action('stop'); return false;"><img alt="Stop" src="/themes/{$theme|escape}/images/stop.png" /></a>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    42
        <a href="#action:next" onclick="player_action('next'); return false;"><img alt="NextTrk &raquo;" src="/themes/{$theme|escape}/images/next.png" /></a>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    43
        {/if}
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    44
        <span style="margin-right: 50px;">&nbsp;</span>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    45
        <span id="playmeter">--:--/--:--</span>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    46
        {if $allow_control}
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    47
        <span style="margin-right: 50px;">&nbsp;</span>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    48
        <img hspace="4" alt="Volume: " src="/themes/{$theme|escape}/images/volume.png" />
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    49
        <span id="volume_wrap"><a
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    50
          class="volume_button" href="#volume:0"   onmouseover="volume_over(0);"   onmouseout="volume_out();" id="volbtn_0"   onclick="set_volume(0);   return false;">&nbsp;</a><a
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    51
          class="volume_button" href="#volume:10"  onmouseover="volume_over(10);"  onmouseout="volume_out();" id="volbtn_10"  onclick="set_volume(10);  return false;">&nbsp;</a><a
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    52
          class="volume_button" href="#volume:20"  onmouseover="volume_over(20);"  onmouseout="volume_out();" id="volbtn_20"  onclick="set_volume(20);  return false;">&nbsp;</a><a
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    53
          class="volume_button" href="#volume:30"  onmouseover="volume_over(30);"  onmouseout="volume_out();" id="volbtn_30"  onclick="set_volume(30);  return false;">&nbsp;</a><a
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    54
          class="volume_button" href="#volume:40"  onmouseover="volume_over(40);"  onmouseout="volume_out();" id="volbtn_40"  onclick="set_volume(40);  return false;">&nbsp;</a><a
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    55
          class="volume_button" href="#volume:50"  onmouseover="volume_over(50);"  onmouseout="volume_out();" id="volbtn_50"  onclick="set_volume(50);  return false;">&nbsp;</a><a
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    56
          class="volume_button" href="#volume:60"  onmouseover="volume_over(60);"  onmouseout="volume_out();" id="volbtn_60"  onclick="set_volume(60);  return false;">&nbsp;</a><a
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    57
          class="volume_button" href="#volume:70"  onmouseover="volume_over(70);"  onmouseout="volume_out();" id="volbtn_70"  onclick="set_volume(70);  return false;">&nbsp;</a><a
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    58
          class="volume_button" href="#volume:80"  onmouseover="volume_over(80);"  onmouseout="volume_out();" id="volbtn_80"  onclick="set_volume(80);  return false;">&nbsp;</a><a
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    59
          class="volume_button" href="#volume:90"  onmouseover="volume_over(90);"  onmouseout="volume_out();" id="volbtn_90"  onclick="set_volume(90);  return false;">&nbsp;</a><a
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    60
          class="volume_button" href="#volume:100" onmouseover="volume_over(100);" onmouseout="volume_out();" id="volbtn_100" onclick="set_volume(100); return false;">&nbsp;</a>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    61
        </span>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    62
        {/if}
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    63
      </div>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    64
    </div>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    65
    <div class="tblholder" id="playlist">
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    66
      <table border="0" cellspacing="1" cellpadding="4" style="width: 100%;">
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    67
        <tr>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    68
          <th>TrackNo</th>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    69
          <th>Track</th>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    70
          <th>Artist</th>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    71
          <th>Album</th>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    72
          <th>Length</th>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    73
        </tr>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    74
        {foreach key=tid item=track from=$playlist}
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    75
        {strip}
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    76
        <tr class="{cycle values="row1,row2"}{if $active == $tid} current{/if}" id="track_{$tid}" amarok:length_sec="{$track.length_int}">
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    77
          <td style="text-align: center;">{$tid+1}</td>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    78
          <td>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    79
            <a class="tracklink" href="#action:jump;tid:{$tid}" onclick="jump_to_song({$tid}); return false;">
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    80
              {$track.title|escape}
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    81
            </a>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    82
          </td>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    83
          <td>{$track.artist|escape}</td>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    84
          <td>{$track.album|escape}</td>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    85
          <td style="text-align: center;">{$track.length|escape}</td>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    86
        </tr>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    87
        {/strip}
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    88
        {/foreach}
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    89
      </table>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    90
    </div>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    91
    <div class="poweredby">
49
d62212462f9b Fixed license blocks in theme files
Dan
parents: 44
diff changeset
    92
      {include file="footer.tpl"}
28
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    93
    </div>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    94
  </body>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    95
</html>
c15f6dcc8085 Added grey theme.
Dan
parents:
diff changeset
    96