new @argq expansion; more template fiddling
[disorder] / templates / search.tmpl
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2 <!--
3 This file is part of DisOrder.
4 Copyright (C) 2003, 2004, 2005, 2007, 2008 Richard Kettlewell
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>
23 @stdhead{search}
24 </head>
25 <body>
26 @stdmenu{search}
27 <h1>@label:search.title@</h1>
28
29 <form class=search action="@url@" method=POST
30 enctype="multipart/form-data" accept-charset=utf-8>
31 <p class=search>Enter search terms:
32 <input class=query name=query type=text value="@arg:query@"
33 size=50>
34 <button class=search name=submit type=submit>
35 @label:search.search@
36 </button>
37 <input name=action type=hidden value=search>
38 </p>
39 </form>
40
41 <div class=searchresults>
42 @search{artist}{display}{
43 <div class="search_artist">
44 <p>Artist:
45 <span class="search_artist">@part:artist@</span></p>
46 @search{album}{display}{
47 <div class="search_album">
48 <p>Album:
49 <span class="search_album">@part:album@</span></p>
50 @search{title}{
51 <div class="search_title">
52 <p>Title:
53 <a href="@url@?action=play&#38;file=@urlquote{@file@}@&#38;back=@urlquote{@thisurl@}@">@part:title@</a>
54 @if{@eq{@trackstate{@file@}@}{playing}@}{[<b>playing</b>]}@
55 @if{@eq{@trackstate{@file@}@}{queued}@}{[<b>queued</b>]}@
56 </p>
57 </div>
58 }@
59 </div>
60 }@
61 </div>
62 }@
63 </div>
64
65 @credits
66 </body>
67 </html>
68 @discard{
69 Local variables:
70 mode:sgml
71 sgml-always-quote-attributes:nil
72 sgml-indent-step:1
73 sgml-indent-data:t
74 indent-tabs-mode:nil
75 fill-column:79
76 End:
77 }@#