10 <html> |
10 <html> |
11 <head> |
11 <head> |
12 <title>AmaroK playlist</title> |
12 <title>AmaroK playlist</title> |
13 <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> |
13 <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> |
14 <link rel="stylesheet" type="text/css" href="/themes/{$theme|escape}/style.css" /> |
14 <link rel="stylesheet" type="text/css" href="/themes/{$theme|escape}/style.css" /> |
|
15 <script type="text/javascript"> |
|
16 var img_play = '/themes/{$theme|escape}/images/play.png'; |
|
17 var img_pause = '/themes/{$theme|escape}/images/pause.png'; |
|
18 var img_ajax = '/themes/{$theme|escape}/images/ajax.gif'; |
|
19 var class_current = 'current'; |
|
20 </script> |
15 {foreach from=$scripts item=script} |
21 {foreach from=$scripts item=script} |
16 <script type="text/javascript" src="/scripts/{$script}"></script> |
22 <script type="text/javascript" src="/scripts/{$script}"></script> |
17 {/foreach} |
23 {/foreach} |
18 </head> |
24 </head> |
19 <body> |
25 <body> |
20 <div id="playbar"> |
26 <div id="playbar"> |
21 <div class="playbar-inner"> |
27 <div class="playbar-inner"> |
22 <a href="#action:prev" onclick="return false;"><img alt="« PrevTrk" src="/themes/{$theme|escape}/images/prev.png" /></a> |
28 <img alt=" " id="ajax_status" style="display: block; float: right; margin: 3px 0;" src="about:blank" /> |
23 <a href="#action:play" onclick="return false;"><img alt="Play" src="/themes/{$theme|escape}/images/play.png" /></a> |
29 <img alt="AmaroK web control" src="/themes/{$theme|escape}/images/amarok.gif" style="margin-right: 20px;" /> |
24 <a href="#action:pause" onclick="return false;"><img alt="Pause" src="/themes/{$theme|escape}/images/pause.png" /></a> |
30 <a href="#action:prev" onclick="player_action('prev'); return false;"><img alt="« PrevTrk" src="/themes/{$theme|escape}/images/prev.png" /></a> |
25 <a href="#action:stop" onclick="return false;"><img alt="Stop" src="/themes/{$theme|escape}/images/stop.png" /></a> |
31 <a href="#action:play" onclick="player_action('play'); return false;" id="btn_playpause"><img alt="Play" src="/themes/{$theme|escape}/images/play.png" /></a> |
26 <a href="#action:next" onclick="return false;"><img alt="NextTrk »" src="/themes/{$theme|escape}/images/next.png" /></a> |
32 <a href="#action:stop" onclick="player_action('stop'); return false;"><img alt="Stop" src="/themes/{$theme|escape}/images/stop.png" /></a> |
|
33 <a href="#action:next" onclick="player_action('next'); return false;"><img alt="NextTrk »" src="/themes/{$theme|escape}/images/next.png" /></a> |
|
34 <span style="margin-right: 50px;"> </span> |
|
35 <span id="playmeter">--:--/--:--</span> |
|
36 <span style="margin-right: 50px;"> </span> |
|
37 <img hspace="4" alt="Volume: " src="/themes/{$theme|escape}/images/volume.png" /> |
|
38 <span id="volume_wrap"><a |
|
39 class="volume_button" href="#volume:0" onmouseover="volume_over(0);" onmouseout="volume_out();" id="volbtn_0" onclick="set_volume(0); return false;"> </a><a |
|
40 class="volume_button" href="#volume:10" onmouseover="volume_over(10);" onmouseout="volume_out();" id="volbtn_10" onclick="set_volume(10); return false;"> </a><a |
|
41 class="volume_button" href="#volume:20" onmouseover="volume_over(20);" onmouseout="volume_out();" id="volbtn_20" onclick="set_volume(20); return false;"> </a><a |
|
42 class="volume_button" href="#volume:30" onmouseover="volume_over(30);" onmouseout="volume_out();" id="volbtn_30" onclick="set_volume(30); return false;"> </a><a |
|
43 class="volume_button" href="#volume:40" onmouseover="volume_over(40);" onmouseout="volume_out();" id="volbtn_40" onclick="set_volume(40); return false;"> </a><a |
|
44 class="volume_button" href="#volume:50" onmouseover="volume_over(50);" onmouseout="volume_out();" id="volbtn_50" onclick="set_volume(50); return false;"> </a><a |
|
45 class="volume_button" href="#volume:60" onmouseover="volume_over(60);" onmouseout="volume_out();" id="volbtn_60" onclick="set_volume(60); return false;"> </a><a |
|
46 class="volume_button" href="#volume:70" onmouseover="volume_over(70);" onmouseout="volume_out();" id="volbtn_70" onclick="set_volume(70); return false;"> </a><a |
|
47 class="volume_button" href="#volume:80" onmouseover="volume_over(80);" onmouseout="volume_out();" id="volbtn_80" onclick="set_volume(80); return false;"> </a><a |
|
48 class="volume_button" href="#volume:90" onmouseover="volume_over(90);" onmouseout="volume_out();" id="volbtn_90" onclick="set_volume(90); return false;"> </a><a |
|
49 class="volume_button" href="#volume:100" onmouseover="volume_over(100);" onmouseout="volume_out();" id="volbtn_100" onclick="set_volume(100); return false;"> </a> |
|
50 </span> |
27 </div> |
51 </div> |
28 </div> |
52 </div> |
29 <div class="tblholder" id="playlist"> |
53 <div class="tblholder" id="playlist"> |
30 <table border="0" cellspacing="1" cellpadding="4"> |
54 <table border="0" cellspacing="1" cellpadding="4"> |
31 <tr> |
55 <tr> |
35 <th>Album</th> |
59 <th>Album</th> |
36 <th>Length</th> |
60 <th>Length</th> |
37 </tr> |
61 </tr> |
38 {foreach key=tid item=track from=$playlist} |
62 {foreach key=tid item=track from=$playlist} |
39 {strip} |
63 {strip} |
40 <tr class="{cycle values="row1,row2"}{if $active == $tid} current{/if}"> |
64 <tr class="{cycle values="row1,row2"}{if $active == $tid} current{/if}" id="track_{$tid}" amarok:length_sec="{$track.length_int}"> |
41 <td style="text-align: center;">{$tid+1}</td> |
65 <td style="text-align: center;">{$tid+1}</td> |
42 <td> |
66 <td> |
43 {if $active != $tid}<a class="tracklink" href="#action:jump;tid:{$tid}" onclick="return false;">{/if} |
67 <a class="tracklink" href="#action:jump;tid:{$tid}" onclick="jump_to_song({$tid}); return false;"> |
44 {$track.title|escape} |
68 {$track.title|escape} |
45 {if $active != $tid}</a>{/if} |
69 </a> |
46 </td> |
70 </td> |
47 <td>{$track.artist|escape}</td> |
71 <td>{$track.artist|escape}</td> |
48 <td>{$track.album|escape}</td> |
72 <td>{$track.album|escape}</td> |
49 <td style="text-align: center;">{$track.length|escape}</td> |
73 <td style="text-align: center;">{$track.length|escape}</td> |
50 </tr> |
74 </tr> |