Commit | Line | Data |
---|---|---|
460b9539 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
2 | <!-- | |
3 | This file is part of DisOrder. | |
3225872d | 4 | Copyright (C) 2004-2008 Richard Kettlewell |
460b9539 | 5 | |
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. | |
10 | ||
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. | |
15 | ||
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 | |
19 | USA | |
20 | --> | |
21 | <html> | |
22 | <head> | |
0d0253c9 | 23 | @stdhead{choose} |
460b9539 | 24 | </head> |
25 | <body> | |
0d0253c9 | 26 | @stdmenu{choose} |
3225872d | 27 | <h1>@label:choose.title@</h1> |
328248ba | 28 | |
48e472fa RK |
29 | @if{@eq{@label{sidebar.choosewhich}}{choosealpha}} |
30 | { | |
328248ba | 31 | <p class=choosealpha> |
3225872d | 32 | <a title="Directories starting with 'a'" |
48e472fa | 33 | href="@url?action=choose&regexp=^(the )?a">A</a> | |
3225872d | 34 | <a title="Directories starting with 'b'" |
48e472fa | 35 | href="@url?action=choose&regexp=^(the )?b">B</a> | |
3225872d | 36 | <a title="Directories starting with 'c'" |
48e472fa | 37 | href="@url?action=choose&regexp=^(the )?c">C</a> | |
3225872d | 38 | <a title="Directories starting with 'd'" |
48e472fa | 39 | href="@url?action=choose&regexp=^(the )?d">D</a> | |
3225872d | 40 | <a title="Directories starting with 'e'" |
48e472fa | 41 | href="@url?action=choose&regexp=^(the )?e">E</a> | |
3225872d | 42 | <a title="Directories starting with 'f'" |
48e472fa | 43 | href="@url?action=choose&regexp=^(the )?f">F</a> | |
3225872d | 44 | <a title="Directories starting with 'g'" |
48e472fa | 45 | href="@url?action=choose&regexp=^(the )?g">G</a> | |
3225872d | 46 | <a title="Directories starting with 'h'" |
48e472fa | 47 | href="@url?action=choose&regexp=^(the )?h">H</a> | |
3225872d | 48 | <a title="Directories starting with 'i'" |
48e472fa | 49 | href="@url?action=choose&regexp=^(the )?i">I</a> | |
3225872d | 50 | <a title="Directories starting with 'j'" |
48e472fa | 51 | href="@url?action=choose&regexp=^(the )?j">J</a> | |
3225872d | 52 | <a title="Directories starting with 'k'" |
48e472fa | 53 | href="@url?action=choose&regexp=^(the )?k">K</a> | |
3225872d | 54 | <a title="Directories starting with 'l'" |
48e472fa | 55 | href="@url?action=choose&regexp=^(the )?l">L</a> | |
3225872d | 56 | <a title="Directories starting with 'm'" |
48e472fa | 57 | href="@url?action=choose&regexp=^(the )?m">M</a> | |
3225872d | 58 | <a title="Directories starting with 'n'" |
48e472fa | 59 | href="@url?action=choose&regexp=^(the )?n">N</a> | |
3225872d | 60 | <a title="Directories starting with 'o'" |
48e472fa | 61 | href="@url?action=choose&regexp=^(the )?o">O</a> | |
3225872d | 62 | <a title="Directories starting with 'p'" |
48e472fa | 63 | href="@url?action=choose&regexp=^(the )?p">P</a> | |
3225872d | 64 | <a title="Directories starting with 'q'" |
48e472fa | 65 | href="@url?action=choose&regexp=^(the )?q">Q</a> | |
3225872d | 66 | <a title="Directories starting with 'r'" |
48e472fa | 67 | href="@url?action=choose&regexp=^(the )?r">R</a> | |
3225872d | 68 | <a title="Directories starting with 's'" |
48e472fa | 69 | href="@url?action=choose&regexp=^(the )?s">S</a> | |
3225872d | 70 | <a title="Directories starting with 't'" |
48e472fa | 71 | href="@url?action=choose&regexp=^(?!the [^t])t">T</a> | |
3225872d | 72 | <a title="Directories starting with 'u'" |
48e472fa | 73 | href="@url?action=choose&regexp=^(the )?u">U</a> | |
3225872d | 74 | <a title="Directories starting with 'v'" |
48e472fa | 75 | href="@url?action=choose&regexp=^(the )?v">V</a> | |
3225872d | 76 | <a title="Directories starting with 'w'" |
48e472fa | 77 | href="@url?action=choose&regexp=^(the )?w">W</a> | |
3225872d | 78 | <a title="Directories starting with 'x'" |
48e472fa | 79 | href="@url?action=choose&regexp=^(the )?x">X</a> | |
3225872d | 80 | <a title="Directories starting with 'y'" |
48e472fa | 81 | href="@url?action=choose&regexp=^(the )?y">Y</a> | |
3225872d | 82 | <a title="Directories starting with 'z'" |
48e472fa | 83 | href="@url?action=choose&regexp=^(the )?z">Z</a> | |
3225872d | 84 | <a title="Directories starting with anything else" |
48e472fa | 85 | href="@url?action=choose&regexp=^[^a-z]">*</a> |
328248ba | 86 | </p> |
48e472fa RK |
87 | } |
88 | ||
b43dc0cc RK |
89 | @# Always have a search form |
90 | <form class=search | |
91 | action="@url" | |
92 | method=POST | |
93 | enctype="multipart/form-data" accept-charset=utf-8> | |
94 | <p class=search>Enter search terms: | |
95 | <input class=query name=query type=text value="@argq{query}" | |
96 | size=50> | |
97 | <button class=search name=submit type=submit> | |
98 | @label{search.search} | |
99 | </button> | |
100 | <input name=action type=hidden value=search> | |
101 | </p> | |
102 | </form> | |
103 | ||
104 | @if{@ne{@arg{query}}{}} | |
105 | { | |
106 | @# There's a search query | |
107 | @search{@arg{query}}{ | |
108 | <p>TODO @quote{@track}</p> | |
109 | } | |
110 | } | |
111 | { | |
112 | @# No search query | |
113 | ||
48e472fa RK |
114 | @# TODO navigation... |
115 | ||
116 | <div class=directories> | |
117 | <div class=filesdirectories> | |
118 | @dirs{@arg{dir}}{@arg{re}}{ | |
119 | <p class=entry> | |
120 | <a href="@url?action=choose&dir=@urlquote{@track}"> | |
121 | <img class=button src="@image{directory}" alt=""> | |
122 | @display | |
123 | </a> | |
124 | </p>} | |
125 | </div> | |
126 | </div> | |
460b9539 | 127 | |
48e472fa | 128 | @define{sometracks}{template}{} |
460b9539 | 129 | |
48e472fa RK |
130 | <div class=files> |
131 | <div class=filesdirectories> | |
132 | @dirs{@arg{dir}}{@arg{re}}{ | |
133 | <p class=entry> | |
134 | @define{sometracks}{template}{@template}@# | |
135 | @rights{prefs}{ | |
136 | <a class=imgprefs | |
137 | href="@url?action=prefs&0_file=@urlquote{@resolve{@track}}"> | |
b43dc0cc RK |
138 | <img class=button |
139 | src="@image{edit}" | |
140 | title="@label:choose.prefsverbose@" | |
141 | alt="@label:choose.prefs@"> | |
48e472fa RK |
142 | </a> |
143 | }@# | |
144 | <a href="@url?action=play&file=@urlquote{@track}&back=@urlquote{@thisurl}" | |
145 | title="@label{choose.play}"> | |
146 | @display | |
147 | </a> | |
148 | @if{@eq{@trackstate{@track}}{playing}} | |
149 | {[<b>playing</b>]} | |
150 | @if{@eq{@trackstate{@track}}{queued}} | |
151 | {[<b>queued</b>]} | |
152 | </p>} | |
153 | @sometracks{ | |
154 | <p class=all> | |
155 | @right{prefs}{ | |
156 | <a class=imgprefs | |
157 | href="@url?action=prefs&dir=@urlquote{@arg{dir}}"> | |
158 | <img class=button | |
159 | src="@image{edit}" | |
160 | title="@label:choose.allprefsverbose@" | |
161 | alt="@label:choose.allprefs@"> | |
162 | </a>} | |
163 | <a class=button | |
164 | href="@url?action=play&dir=@urlquote{@arg{dir}}"&back=@urlquote{@thisurl}"> | |
165 | @label{choose.playall} | |
166 | </a> | |
167 | </p>} | |
168 | </div> | |
169 | </div> | |
460b9539 | 170 | |
b43dc0cc RK |
171 | } |
172 | ||
0d0253c9 | 173 | @credits |
460b9539 | 174 | </body> |
175 | </html> | |
0d0253c9 | 176 | @discard{ |
460b9539 | 177 | Local variables: |
178 | mode:sgml | |
179 | sgml-always-quote-attributes:nil | |
180 | sgml-indent-step:1 | |
181 | sgml-indent-data:t | |
0d0253c9 RK |
182 | indent-tabs-mode:nil |
183 | fill-column:79 | |
460b9539 | 184 | End: |
0d0253c9 | 185 | }@# |