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