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