+++ /dev/null
-#!/bin/zsh
-
-# Copyright 2014, 2015 Paul Hänsch
-#
-# This file is part of Serve0.
-#
-# Serve0 is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Serve0 is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with Serve0. If not, see <http://www.gnu.org/licenses/>.
-
-. $_EXEC/pages/common.sh
-
-filters="$(echo -E "$_GET[\"f\"]" |sed -r 's;^!*\^*;;; s;\^*!*$;;; s;!+;!;g; s;\^+;^;g')"
-debug "FILTERS: $filters"
-
-case "$1" in
- title)
- echo "Videos"
- ;;
- css)
- . ${_EXEC}/templates/common.css.sh
- ;;
- body)
- . ${_EXEC}/templates/filter.html.sh
- ;;
-esac
. $_EXEC/pages/common.sh
+filters="$(echo -E "$_GET[\"f\"]" |sed -r 's;^!*\^*;;; s;\^*!*$;;; s;!+;!;g; s;\^+;^;g')"
+debug "FILTERS: $filters"
+
case "$1" in
title)
echo "Videos"
<input disabled type="submit" name="submit" value="Find">
<a class="panel clearsearch" href="?">Clear All</a>
- <a class="panel advanced hide" href="?p=list&${page_this}">Hide</a>
+ <a class="panel advanced hide" href="#">Hide</a>
<hr>
<p class="help">Up to <strong>10</strong> filter boxes will appear as you start selecting tags. You can select <strong>multiple</strong> tags in each box by holding down the <strong>Ctrl</strong>-key. Click the "<strong>Filter!</strong>" button when you are ready.</p>
)
</p>
</form>
-
- <form>
- <ul id="thumblist">
- $(thumblist)
- </ul>
-
- <div class="panel footer" id="foot">
- <div class="pagination_nav">
- <label>Page:</label>
- <a href="?${page_prev}"><<</a>
- <a href="?${page_this}">$(($page + 1))</a>
- <a href="?${page_next}">>></a>
- </div>
- </div>
- </form>
EOF
# vi:set filetype=html:
margin: .75em .5em;
}
+#advfilter { display: none; }
+#advfilter:target {
+ display: block;
+ position: absolute;
+ top: 0;
+}
+
#tagger { display: none; }
#tagger:target { display: block; z-index: 1; }
.footer {
<input type="submit" name="submit" value="Find">
<a class="panel clearsearch" href="?">Clear All</a>
- <a class="panel advanced show" href="?p=filter&${page_this}">Advanced</a>
+ <a class="panel advanced show" href="#advfilter">Advanced</a>
<div class="pagination_nav">
<label>Page:</label>
</div>
</form>
+ $(. $_EXEC/templates/advfilter.html.sh)
+
<form action="?action=multitag&${page_this}" method="post" accept-charset="UTF-8">
<ul id="thumblist">
$(thumblist)
</ul>
-
- <div class="panel footer" id="tagger">
- <a class="panel tagger hide" href="#foot">Hide</a>
- <hr>
- <p class="help">Add selectetd tags to selected videos.</p>
- <p class="newtag">
- <label class="category">None:</label>
- <select name="ctag" size="12" multiple id="${n}_none">
- $(echo "$taglist" |sed -rn 's;^([^:]+)$;<option value="\1">\1</option>;p')
- </select>
- </p>
- $(echo "$taglist" |sed -rn 's;^([^:]+):.*$;\1;p' |sort -u |while read cat; do echo "
- <p class=\"newtag\">
- <label class=\"category\">${cat}:</label>
- <input type=\"hidden\" name=\"category\" value=\"$cat\">
- <select name=\"ctag\" size=\"12\" multiple id=\"${n}_$cat\">
- $(echo "$taglist" |sed -rn "s;^${cat}:(.*)$;<option value=\"${cat}:\\1\">\\1</option>;p")
- </select>
- </p>"
- done)
- <p class="newtag additional">
- <label class="additional">Additional Tags (one per line):</label>
- <textarea name="tags" rows="2"></textarea>
- </p>
- <input type="submit" value="Add Tags!">
- </div>
+ $($_EXEC/templates/tagger.html.sh)
</form>
<div class="panel footer" id="foot">
--- /dev/null
+# Copyright 2014, 2015 Paul Hänsch
+#
+# This file is part of Serve0
+#
+# Serve0 is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Serve0 is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with Serve0 If not, see <http://www.gnu.org/licenses/>.
+
+cat <<EOF
+ <div class="panel footer" id="tagger">
+ <a class="panel tagger hide" href="#foot">Hide</a>
+ <hr>
+ <p class="help">Add selectetd tags to selected videos.</p>
+ <p class="newtag">
+ <label class="category">None:</label>
+ <select name="ctag" size="12" multiple id="${n}_none">
+ $(echo "$taglist" |sed -rn 's;^([^:]+)$;<option value="\1">\1</option>;p')
+ </select>
+ </p>
+ $(echo "$taglist" |sed -rn 's;^([^:]+):.*$;\1;p' |sort -u |while read cat; do echo "
+ <p class=\"newtag\">
+ <label class=\"category\">${cat}:</label>
+ <input type=\"hidden\" name=\"category\" value=\"$cat\">
+ <select name=\"ctag\" size=\"12\" multiple id=\"${n}_$cat\">
+ $(echo "$taglist" |sed -rn "s;^${cat}:(.*)$;<option value=\"${cat}:\\1\">\\1</option>;p")
+ </select>
+ </p>"
+ done)
+ <p class="newtag additional">
+ <label class="additional">Additional Tags (one per line):</label>
+ <textarea name="tags" rows="2"></textarea>
+ </p>
+ <input type="submit" value="Add Tags!">
+ </div>
+EOF
+
+# vi:set filetype=html: