-
Notifications
You must be signed in to change notification settings - Fork 3
/
status_header.html
executable file
·181 lines (160 loc) · 6.04 KB
/
status_header.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
[%- IF !embedded %]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<link rel="stylesheet" type="text/css" href="/html/ext/resources/css/ext-all-notheme.css" />
<link rel="stylesheet" type="text/css" href="[% webroot %]slimserver.css?r=[% revision %]" />
<link rel="stylesheet" type="text/css" href="[% webroot %]skin.css?r=[% revision %]" />
[% PROCESS standardheader.html %]
<script type="text/javascript">[% PROCESS html/vars.js %]</script>
<script type="text/javascript" src="[% webroot %]html/js.html?r=[% revision %]"></script>
<style>
body {
margin: 0;
background-color: #404040;
}
</style>
<script type="text/javascript">[% PROCESS html/SqueezeJS/Strings.js %]</script>
<script type="text/javascript">
var strings = new Array();
Ext.onReady(function(){
SqueezeJS.UI.buttonTemplate = new Ext.Template(
'<table border="0" cellpadding="0" cellspacing="0"><tbody><tr>',
'<td></td><td><button type="{0}" style="padding:0" class="x-btn-text {2}"></button></td><td></td>',
'</tr></tbody></table>'
);
SqueezeJS.UI.buttonTemplate.compile();
SqueezeJS.UI.splitButtonTemplate = new Ext.Template(
'<table id="{4}" cellspacing="0" class="x-btn {3}"><tbody class="{1}">',
'<tr><td class="x-btn-ml"><i> </i></td><td class="x-btn-mc"><em class="{2}" unselectable="on"><button type="{0}"></button></em></td><td class="x-btn-mr"><i> </i></td></tr>',
'</tbody></table>'
);
SqueezeJS.UI.splitButtonTemplate.compile();
// initialize global controller, which is responsible for all communication with SC
SqueezeJS.Controller.init({
player: playerid
});
// initialize player control panel
Main.initPlayerControl();
});
</script>
<!--[if IE 6]>
<link href="[% webroot %]ie.css?r=[% revision %]" type="text/css" rel="stylesheet">
<![endif]-->
<!--[if IE 7]>
<link href="[% webroot %]ie7.css?r=[% revision %]" type="text/css" rel="stylesheet">
<![endif]-->
[% IF debug %]
<style>
.x-layout-panel-body { background: white; }
.x-btn-text, .x-btn button { color: black; }
.x-dlg .x-tabs-bottom .x-tabs-body {
background: white;
color: black;
}
</style>
[% END %]
</head>
<body>
<div class="content">
<p> </p>
[% END %]
<script type="text/javascript">
[% PROCESS jsString id='LOADING' jsId='' %]
[% PROCESS jsString id='SETUP_SYNCHRONIZE_DESC' jsId='synchronize_desc' %]
[% PROCESS jsString id='EXECUTE' jsId='' %]
[% PROCESS jsString id='CLEAR' jsId='clear_playlist' %]
[% PROCESS jsString id='SAVE' jsId='' %]
[% PROCESS jsString id='SHOW_ARTWORK' jsId='' %]
[% PROCESS jsString id='HIDE_ARTWORK' jsId='' %]
[% PROCESS jsString id='COVERART' jsId='' %]
[% PROCESS jsString id='COLLAPSE' jsId='collapse' %]
[% PROCESS jsString id='EXPAND' jsId='expand' %]
[% PROCESS jsString id='UNDOCK_PLAYER_PANEL' jsId='undock' %]
Ext.onReady(function(){
SqueezeJS.externalImageProxy = new Ext.Template('[% imageproxy %]?u={url}&h={size}&w={size}');
SqueezeJS.externalImageProxy.compile();
});
</script>
<div id="playerbox">
<div style="position:relative;">
<table id="ctrlBar" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%">
<table border="0" cellspacing="0" cellpadding="0" width="10%">
<tr>
<td id="ctrlPrevious"></td>
<td id="ctrlTogglePlay"></td>
<td id="ctrlNext"></td>
<td><img src="[% webroot %]html/images/spacer.gif" alt="" border="0" width="8" /></td>
<td id="ctrlRepeat"></td>
<td id="ctrlShuffle"></td>
</tr>
</table>
</td>
<td width="30%" align="right">
<table border="0" cellspacing="0" cellpadding="0" width="10%">
<tr>
<td id="ctrlVolumeDown"></td>
<td id="ctrlVolume"><img src="[% webroot %]html/images/spacer.gif" alt="" border="0" /></td>
<td id="ctrlVolumeUp"></td>
</tr>
</table>
</td>
<td width="25%" align="right">
<span id="ctrlPower"></span>
</td>
<td><img src="[% webroot %]html/images/spacer.gif" alt="" height="10" width="5" border="0" /></td>
<td align="right" valign="top">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td>
<div id="ctrlUndock" [% IF !embedded %]style="visibility:hidden"[% END %]></div>
</td></tr>
<tr><td>
<div id="ctrlCollapse"></div>
<div id="ctrlExpand"></div>
</td></tr>
</table>
</td>
</tr>
</table>
<div id="expandedPlayerPanel">
<div id="ctrlCurrentArt">
<img src="[% webroot %]music/0/cover_96x96_p" alt="" height="96" width="96" border="0"/>
</div>
<div id="ctrlCurrentSongInfo">
<div id="ctrlCurrentTitle"></div>
<div id="ctrlTrackInfo" class="currentTrackInfo">
<div id="ctrlCurrentAlbum"></div>
<div id="ctrlCurrentArtist"></div>
<div id="ctrlBitrate"></div>
</div>
<div id="ctrlPlaytimePanel">
<div id="ctrlPlaytime"></div>
<div>
<div id="ctrlProgress">
<img src="html/images/spacer.gif" class="progressLeft"/><img src="html/images/spacer.gif" class="progressFillLeft"/><img src="html/images/spacer.gif" class="progressIndicator"/><img src="html/images/spacer.gif" class="progressFillRight"/><img src="html/images/spacer.gif" class="progressRight"/>
</div>
</div>
<div id="ctrlPlaytimeRight">
<span id="ctrlRemainingTime"></span>
(<span id="ctrlPlayNum"></span> [% "OF" | string%] <span id="ctrlSongCount"></span>)
</div>
</div>
</div>
</div>
<div id="collapsedPlayerPanel">
<img src="[% webroot %]html/images/spacer.gif" class='left'>
<img src="[% webroot %]html/images/spacer.gif" class='icon' id="nowPlayingIcon" width="10">
<div id="ctrlCurrentSongInfoCollapsed"></div>
<div id="ctrlPlaytimeCollapsed">09:09</div>
<img src="[% webroot %]html/images/spacer.gif" class='right'>
</div>
</div>
</div>
[% IF !embedded %]
</body>
</html>
[% END %]