1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
3 This file is part of DisOrder.
4 Copyright (C) 2004-2008 Richard Kettlewell
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23 @# On/off button for pause etc
24 @# @class should be the class: pause, random, playing
25 @# @action should be the action to switch to the opposite state
26 @# @state should be the current state
27 @define {onoff} {class action state}
29 href="@url?action=@action@back"@class}@q{@state
30 title="@label{playing.@q{action}verbose}">
31 @label{playing.@class}
33 <img width=@width height=@height class=imgbutton
34 src="@image{@state}">}
36 @# Volume up/down buttons
37 @# @dir is the direction: up or down
38 @# @sign is the sign: + or -
39 @define {vbutton}{dir sign}
42 href="@url?action=volume&delta=@sign@label{volume.resolution}@back">
43 <img class=button src="@image{@dir}"
44 alt="@label{volume.@dir}"
45 title="@label{volume.@q{@dir}verbose}">
47 {<img class=button src="@image{no@dir}">}}
53 @include{stdhead.tmpl}@#
54 <title>@if{@isplaying}
55 {@playing{@part{@id}{title}}}
56 {@label{playing.title}}</title>
60 <h1>@label{playing.title}</h1>
62 @# Extra control buttons for the management page
67 {@onoff{class}{resume}{enabled}}
68 {@onoff{class}{pause}{disabled}}
70 {@onoff{random}{randomdisable}{enabled}}
71 {@onoff{random}{randomenable}{disabled}}
73 {@onoff{playing}{disable}{enabled}}
74 {@onoff{playing}{enable}{disabled}}
75 <form class=volume method=POST
77 enctype="multipart/form-data" accept-charset=utf-8>
79 @label{playing.volume}
82 <input size=3 name=left type=text value="@volume{left}">
84 <input size=3 name=right type=text value="@volume{right}">
85 <input name=back type=hidden value="@thisurl@?back=manage">
87 <button class=search name=submit type=submit>
90 <input name=action type=hidden value=volume>
99 @# Only display the table if there is something to put in it
100 @if{@or{@isplaying}{@isqueue}}{
101 <table class=playing>
103 <th class=when>@label{heading.when}</th>
104 <th class=who>@label{heading.who}</th>
105 <th class=artist>@label{heading.artist}</th>
106 <th class=album>@label{heading.album}</th>
107 <th class=title>@label{heading.title}</th>
108 <th class=length>@label{heading.length}</th>
109 <th class=button> </th>
111 <th class=imgbutton> </th>
112 <th class=imgbutton> </th>
113 <th class=imgbutton> </th>
114 <th class=imgbutton> </th>
118 <tr class=nowplaying>
119 <td colspan=@ifmanage{11}{7}>@label{playing.now}</td>
124 <td class=when>@mwhen{playing}{@id}</td>
125 <td class=who>@mwho{playing}{@id}</td>
126 <td class=artist>@martist{playing}{@track}</td>
127 <td class=album>@malbum{playing}{@track}</td>
128 <td class=title>@mtitle{playing}{@track}</td>
129 <td class=length>@length{@id}</td>
130 <td class=imgbutton>@mremove{playing}{@id}</td>
132 <td class=imgbutton> </td>
133 <td class=imgbutton> </td>
134 <td class=imgbutton> </td>
135 <td class=imgbutton> </td>
141 <td colspan=@ifmanage{11}{7}@>@label{playing.next}</td>
146 <td class=when>@mwhen{queue}{@id}</td>
147 <td class=who>@mwho{queue}{@id}</td>
148 <td class=artist>@martist{queue}{@track}</td>
149 <td class=album>@malbum{queue}{@track}</td>
150 <td class=title>@mtitle{queue}{@track}</td>
151 <td class=length>@length</td>
152 <td class=imgbutton>@mremove{queue}{@id}</td>
154 <td class=imgbutton>@mmove{@id}{upall}{2147483647}</td>
155 <td class=imgbutton>@mmove{@id}{up}{1}</td>
156 <td class=imgbutton>@mmove{@id}{down}{-1}</td>
157 <td class=imgbutton>@mmove{@id}{downall}{-2147483647}</td>
164 @include{topbarend.tmpl}@#
170 sgml-always-quote-attributes:nil