1 # Copyright 2014, 2015 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" style="display: block;"
20 action="?" method="get" accept-charset="UTF-8">
21 <input type="text" name="s" value="$search" placeholder="Search">
23 <label for="o1" class="order">Order by:</label>
24 <select class="order" size="1" name="o" id="o1">
27 <option>Length</option>
29 <input type="submit" name="submit" value="Find">
31 <a class="panel clearsearch" href="?">Clear All</a>
32 <a class="panel advanced show" href="?page=filter">Advanced</a>
34 <div class="pagination_nav">
36 <a href="?${page_prev}"><<</a>
37 <a href="?${page_this}">$(($page + 1))</a>
38 <a href="?${page_next}">>></a>
42 <div class="panel" id="videoview">
43 <a href="?page=list" class="panel">Dismiss</a>
45 <a href="$video">Full</a>
47 <source src="$video" type='video/mp4; codecs="avc1.4D401E, mp3"'>"
51 <div class="videoinfo" id="viewmeta">
53 <a class="meta edit" href="#" onclick="javascript:hide('viewmeta');show_iblock('editmeta')">Edit</a>
55 <span class="info property">$(($length / 60)):$(($length % 60)) min</span>
56 <span class="info property">Width: $width</span>
57 <span class="info property">Height: $height</span><br>
59 <span class="label tags">Tags:</span>
60 $(echo "$tags" |sed -r 's:\|*([^|]+)\|*:<span class="info tag">\1</span>:g')
61 $([ -n "$description" ] && echo "<span class=\"info description\">$(_wiki <<<"$description")</span>")
64 <form class="videoinfo" id="editmeta" style="display: none;"
65 action="?action=meta&${page_this}" method="post" accept-charset="UTF-8">
66 <input type="hidden" name="length" value="$length">
67 <input type="hidden" name="width" value="$width">
68 <input type="hidden" name="height" value="$height">
71 <a class="meta cancel" href="#" onclick="javascript:hide('editmeta');show_iblock('viewmeta')">Cancel</a>
73 <span class="info property">$(($length / 60)):$(($length % 60)) min</span>
74 <span class="info property">Width: $width</span>
75 <span class="info property">Height: $height</span>
77 <span class="label tags">Tags:</span>
78 <select class="edit tags" name="tag" size="16" multiple>
79 $(echo "$taglist" |while read line; do
80 echo "<option $(egrep -q "(^|.*\|)$line(\|.*|$)" "$meta" && echo -n selected)>$line</option>"
84 <span class="label moretags">Additional Tags (one per line):</span>
85 <textarea class="edit moretags" name="tags" rows="4"></textarea>
87 <span class="label description">Description:</span>
88 <textarea class="edit description" name="description" rows="4">$description</textarea>
89 <input type="submit" value="Submit">
90 <input type="submit" name="trash" value="Delete Video">
91 <!-- input type="submit" name="cancel" value="Cancel" -->
99 <div class="panel footer" id="foot">
100 <div class="pagination_nav">
102 <a href="?${page_prev}"><<</a>
103 <a href="?${page_this}">$(($page + 1))</a>
104 <a href="?${page_next}">>></a>
110 # vi:set filetype=html: