5 [form #search method=GET action=?
7 [option disabled=disabled Order By]
8 [option value=Name Name]
9 [option value=Date Date]
10 [option value=Length Length]
12 [input name=s placeholder=Search value="%s"]
19 fakemp4="$(COOKIE fakemp4)"
22 [form #prefs method="POST" action="?a=setprefs"
25 [label for=prefs_ps Pagesize]
26 [input #prefs_ps type=number name=pagesize value="%s"][br]
27 [radio "mode" "browse" %s #prefs_modebrowse] [label for=prefs_modebrowse Browse Folders][br]
28 [radio "mode" "index" %s #prefs_modeindex ] [label for=prefs_modeindex View Full Index][br]
29 [checkbox "fakemp4" "yes" %s #prefs_fmp4] [label for=prefs_fmp4 Fake .MP4 file ending][br]
30 [submit "store" "store" Set Cookie]
33 "$(HTML "$REQUEST_URI")" "$LISTSIZE" \
34 "$([ "$mode" = index ] || printf checked)" \
35 "$([ "$mode" = index ] && printf checked)" \
36 "$([ "$fakemp4" = yes ] && printf checked)"
40 [ -d "$_DATA/$ITEM/.index" ] || printf '
41 [form #index method="POST" action="?a=spawnindex"
43 [label Set up for Index view: ]
44 [checkbox "recursive" "yes" #spawn_recursive] [label for=spawn_recursive Include subdirectories]
45 [submit "spawn" "spawn" Set up]
47 ' "$(HTML "$REQUEST_URI")"