]> git.plutz.net Git - serve0/blob - templates/tagger.html.sh
initial commit
[serve0] / templates / tagger.html.sh
1 #!/bin/zsh    
2
3 cat <<LOCATIONend
4   <div class="footer" id="foot">
5     <a class="panel" href="#foot" onclick="javascript:hide_block('foot');show_block('tagger');">Add Tags</a>
6     <span style="float:right;">
7       <b>Page:</b>
8       <a href="?o=$order&i=$info&p=$([ "$page" != 0 ] && echo $(($page - 1)) || echo 0)&f=$filter&s=$search#$anchor">&lt;&lt;</a>
9       <a href="?o=$order&i=&p=$page&f=$filter&s=$search#$anchor">$(($page + 1))</a>
10       <a href="?o=$order&i=$info&p=$(($page + 1))&f=$filter&s=$search#$anchor">&gt;&gt;</a>
11     </span>
12   </div>
13
14
15   <div class="footer" id="tagger" style="display: none;">
16     <a class="panel" href="#foot" onclick="javascript:hide_block('tagger');$(for n in $(seq 1 4); do echo "hide_inline('filter$n');"; done)show_block('foot')">Hide</a>
17     <hr>
18     <div>Add selectetd tags to selected videos.<br>
19       <!-- select name="category" size="12" onchange="${hideall}show_inline('${n}_'+this.options[this.options.selectedIndex].value)">
20         <option>none</option>
21         $(sed -rn 's;^([^:]+):.*$;<option>\1</option>;p' <<<"$taglist" |sort -u)
22       </select -->
23       <!-- input type="hidden" name="category" value="" -->
24       <div>None:<br>
25         <select name="ctag" size="12" multiple id="${n}_none">
26          $(sed -rn 's;^([^:]+)$;<option value="\1">\1</option>;p' <<<"$taglist")
27         </select>
28       </div>
29       $(sed -rn 's;^([^:]+):.*$;\1;p' <<<"$taglist" |sort -u |while read cat; do echo "
30       <div>${cat}:</br>
31         <input type=\"hidden\" name=\"category\" value=\"$cat\">
32         <select name=\"ctag\" size=\"12\" multiple id=\"${n}_$cat\" style=\"display:inline;\">
33          $(sed -rn "s;^${cat}:(.*)$;<option value=\"${cat}:\\1\">\\1</option>;p" <<<"$taglist")
34         </select>
35       </div>"
36       done)
37     </div>
38     <div>Additional Tags (one per line):<br>
39       <textarea name="tags" rows="2"></textarea>
40     </div>
41     <div><input type="submit" value="Add Tags!"></div>
42   </div>
43   <a name="foot"></a>
44 LOCATIONend
45
46 # vi:set filetype=html:
47