1 # Copyright 2014 - 2016 Paul Hänsch
3 # This file is part of Serve0
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.
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.
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/>.
19 <form class="panel" id="search" action="?" method="get" accept-charset="UTF-8">
20 <input type="text" name="s" value="$search" placeholder="Search">
22 <select class="order" size="1" name="o" id="o1">
23 <option class="label" selected disabled>Order by</option>
26 <option>Length</option>
28 <!-- input type="submit" name="submit" value="Find" -->
30 <a class="panel clearsearch" href="?">Clear</a>
31 <a class="panel toggle" href="#morelinks">More</a>
33 <div class="pagination_nav">
40 plink="$(($pn * $pagesize - $pagesize + 1))"
43 $(($page - $pagesize))) class=previous;;
44 $page) class=current;;
45 $(($page + $pagesize))) class=next;;
49 printf '<a class="%s" href="?%spn=%s">%s</a>\n' "$class" "$page_link" "$plink" "$pn"
58 <div class="panel switchable top" id="morelinks">
59 <a class="panel toggle" href="#">Hide</a>
61 <a class="panel toggle" href="#advfilter">Advanced</a>
62 <a class="panel toggle" href="#preferences">Preferences</a>
64 <a class="panel treeview" href="?p=tree">Browse Folders</a>
65 <a class="panel" href="?p=quicklinks">Most recent</a>
67 <a class="panel" href="?p=playctl">Player</a>
69 $(. $_EXEC/templates/preferences.html.sh)
71 <form action="?action=multitag" method="post" accept-charset="UTF-8">
72 <input type="hidden" name="o" value="${order}">
73 <input type="hidden" name="s" value="${search}">
74 <input type="hidden" name="f" value="${filter}">
75 <input type="hidden" name="pn" value="${page}">
84 $(. $_EXEC/templates/tagger.html.sh)
87 <div class="panel" id="foot">
88 <a class="panel toggle" href="#tagger">Add Tags</a>
89 <a class="panel toggle" href="#">⇧</a>
91 <div class="pagination_nav">
97 $(. $_EXEC/templates/advfilter.html.sh)
100 # vi:set filetype=html: