]> git.plutz.net Git - serve0/blob - templates/list.html.sh
new folder browse section
[serve0] / templates / list.html.sh
1 # Copyright 2014, 2015 Paul Hänsch
2 #
3 # This file is part of Serve0
4
5 # Serve0 is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9
10 # Serve0 is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU Affero General Public License for more details.
14
15 # You should have received a copy of the GNU Affero General Public License
16 # along with Serve0  If not, see <http://www.gnu.org/licenses/>. 
17
18 cat <<EOF
19   <form class="panel" id="search" action="?" method="get" accept-charset="UTF-8">
20     <input type="text" name="s" value="$search" placeholder="Search">
21
22     <label for="o1" class="order">Order by:</label>
23     <select class="order" size="1" name="o" id="o1">
24       <option>Name</option>
25       <option>Date</option>
26       <option>Length</option>
27     </select>
28     <input type="submit" name="submit" value="Find">
29
30     <a class="panel clearsearch" href="?">Clear All</a>
31     <a class="panel toggle" href="#advfilter">Advanced</a>
32
33     <div class="pagination_nav">
34       <label>Page:</label>
35       <a href="?${page_prev}">&lt;&lt;</a>
36       <a href="?${page_this}">$(($page / $pagesize + 1))</a>
37       <a href="?${page_next}">&gt;&gt;</a>
38     </div>
39   </form>
40
41   <form action="?action=multitag&${page_this}" method="post" accept-charset="UTF-8">
42     <ul id="thumblist">
43       $(thumblist)
44     </ul>
45     $(. $_EXEC/templates/tagger.html.sh)
46   </form>
47
48   <div class="panel" id="foot">
49     <a class="panel toggle" href="#tagger">Add Tags</a>
50     <a class="panel toggle" href="#preferences">Preferences</a>
51     <a class="panel treeview" href="?p=tree">Browse Folders</a>
52
53     <div class="pagination_nav">
54       <label>Page:</label>
55       <a href="?${page_prev}">&lt;&lt;</a>
56       <a href="?${page_this}">$(($page / $pagesize + 1))</a>
57       <a href="?${page_next}">&gt;&gt;</a>
58     </div>
59   </div>
60
61   $(. $_EXEC/templates/preferences.html.sh)
62   $(. $_EXEC/templates/advfilter.html.sh)
63 EOF
64
65 # vi:set filetype=html: