]> git.plutz.net Git - serve0/blobdiff - templates/view.html.sh
split up in distinct pages
[serve0] / templates / view.html.sh
index b2856a52fc1508ad5e72d0ffdddd97f34903314f..49439587ba27fe45a255f5e3657a913ac554f464 100755 (executable)
@@ -1,15 +1,51 @@
-#!/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/>. 
+
+cat <<EOF
+  <form class="panel" id="search" style="display: block;"
+        action="?" method="get" accept-charset="UTF-8">
+    <input type="text" name="s" value="$search" placeholder="Search">
+
+    <label for="o1" class="order">Order by:</label>
+    <select class="order" size="1" name="o" id="o1">
+      <option>Name</option>
+      <option>Date</option>
+      <option>Length</option>
+    </select>
+    <input type="submit" name="submit" value="Find">
+
+    <a class="panel clearsearch" href="?">Clear All</a>
+    <a class="panel advanced show" href="?page=filter">Advanced</a>
+
+    <div class="pagination_nav">
+      <label>Page:</label>
+      <a href="?${page_prev}">&lt;&lt;</a>
+      <a href="?${page_this}">$(($page + 1))</a>
+      <a href="?${page_next}">&gt;&gt;</a>
+    </div>
+  </form>
 
-cat <<viewEND
   <div class="panel" id="videoview">
-    <a href="#" onclick="javascript:hide('videoview');" class="panel">Dismiss</a>
+    <a href="?page=list" class="panel">Dismiss</a>
     <div class="video">
-      <a href="$video">Full</a> <!-- a href="$reenc">Mobile</a -->
-      <!--iframe src="$video" width="100%" height="400px"-->
+      <a href="$video">Full</a>
       <video controls>
-        <!-- source src="$reenc" type='video/webm; codecs="vp8.0, mp3"' -->
        <source src="$video" type='video/mp4; codecs="avc1.4D401E, mp3"'>"
-      </video><!--/iframe-->
+      </video>
     </div>
   
     <div class="videoinfo" id="viewmeta">
@@ -55,7 +91,20 @@ cat <<viewEND
       <!-- input type="submit" name="cancel" value="Cancel" -->
     </form>
   </div>
-viewEND
 
-# vi:set filetype=html:
+  <form>
+    <ul id="thumblist">
+      $(thumblist)
+    </ul>
+    <div class="panel footer" id="foot">
+      <div class="pagination_nav">
+        <label>Page:</label>
+        <a href="?${page_prev}">&lt;&lt;</a>
+        <a href="?${page_this}">$(($page + 1))</a>
+        <a href="?${page_next}">&gt;&gt;</a>
+      </div>
+    </div>
+  </form>
+EOF
 
+# vi:set filetype=html: