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/>.
20 <input type=radio name=topmenu id=btn_search checked><label for=btn_search>Search</label>
21 <form class="panel" id="search" action="?" method="get" accept-charset="UTF-8">
22 <input type="text" name="s" value="$search" placeholder="Search">
24 <select class="order" size="1" name="o" id="o1">
25 <option class="label" selected disabled>Order by</option>
28 <option>Length</option>
30 <!-- input type="submit" name="submit" value="Find" -->
32 <a class="panel" href="${info:+?p=list&${page_this}}${directory:+?p=tree&d=${directory}&${page_this}}#$(urlsafe $info)">Dismiss</a>
35 <input type=radio name=topmenu id=btn_playctl><label for=btn_playctl>Audio</label>
36 <form class="panel switchable top playctl" id="advctl" action="?action=playctl" method="post">
37 <fieldset class="volume">
38 <button type="submit" name="amp" value="off">Amp Off</button>
39 <button type="submit" name="amp" value="on">Amp On</button>
41 <fieldset class="pasink">
42 $(pa_sinks |while read no name; do
43 printf '<button type="submit" name="pasink" value="%s">%s</button>' "$no" "$name"
46 <a class="panel toggle" href="#foot">Hide</a>
49 <input type=radio name=topmenu id=btn_preferences><label for=btn_preferences>Preferences</label>
50 $(. $_EXEC/templates/preferences.html.sh)
52 <input type=radio name=topmenu id=btn_morelinks><label for=btn_morelinks>{+}</label>
53 <div class="panel switchable top" id="morelinks">
54 <a class="panel toggle" href="#">Hide</a>
56 <a class="panel listview" href="?p=list">Index view</a>
57 <a class="panel treeview" href="?p=tree">Browse Folders</a>
63 <a href="$video">Download</a>
65 <form action="?action=playctl" method="post" class="playctl">
66 <fieldset class="playback">
67 <button type="submit" name="seek" value="-60"><<<</button>
68 <button type="submit" name="seek" value="-10"><<</button>
69 <button type="submit" name="ctl" value="stop">■</button>
70 <button type="submit" name="ctl" value="pause">|| / ▶</button>
71 <button type="submit" name="seek" value="+10">>></button>
72 <button type="submit" name="seek" value="+60">>>></button>
74 <fieldset class="volume">
75 $(for n in $(seq 0 5 100); do
76 printf '<button class="%s" type="submit" name="vol" value="%s"> </button>' "$([ "$volume" = "$n" ] && printf selected)" "$n"
81 <span class="info length">$(printf "%d:%02d min" $(($length / 60)) $(($length % 60)) )</span>
82 <span class="info width" >Width: $width</span>
83 <span class="info height">Height: $height</span><br>
85 $(printf %s\\n "$tags" |sed -r 's:\|*([^|]+)\|*:<span class="info tag">\1</span> :g')
86 ${description:+<span class="info description">$(printf %s "$description" |_wiki)</span>}
89 <form class="panel switchable bottom" id="tagger" action="?action=meta&${page_this}" method="post" accept-charset="UTF-8">
90 <input type="hidden" name="length" value="$length">
91 <input type="hidden" name="width" value="$width">
92 <input type="hidden" name="height" value="$height">
95 for cat in $(list_categories); do
96 printf '<fieldset class="newtag"><label class="category">%s:</label><select name="tag" size="12" multiple>' "${cat}"
98 [ "$catt" = "none:" ] && catt=''
100 printf %s "$taglist_set" |egrep '^'"$catt"'[^:]+$' |while read line; do
101 printf '<option %s value="%s">%s</option>' \
102 "$(egrep -q "(^|.*\|)$line(\|.*|$)" "$meta" && printf selected)" \
105 printf '</select></fieldset>'
109 <fieldset class="newtag additional">
110 <label class="additional">Additional Tags (one per line):</label>
111 <textarea name="tags" rows="4"></textarea>
113 <fieldset class="newtag description">
114 <label class="description">Description:</label>
115 <textarea name="description" rows="4">$description</textarea>
117 <input type="submit" value="Edit!">
118 <input type="submit" name="trash" value="Delete Video">
120 <a class="panel toggle" href="#foot">Hide</a>
123 <div class="panel footer" id="foot">
124 <a class="panel toggle" href="#tagger">Edit Tags</a>
127 <span class="progress">
133 printf '<span style="width: %d%%;">%d:%02d</span>\n' "${p}" "$(($t / 60))" "$(($t % 60))"
138 # vi:set filetype=html: