category_tabs(){
for cat in "$@"; do
cat <<EOF
- <div class="tab">
+ <div class="tab">
<input class="tabhandle" type="radio" name="category$n" id="cat${n}_$cat" value="$cat" $([ "$cat" = "$fcat" ] && echo checked)>
<label class="category tabhandle" for="cat${n}_$cat">$([ "$cat" = none ] && printf %s general || printf %s "$cat")</label>
<select class="category tabcontent" class="input tagfilter" name="cfilter${n}_" size="12" multiple>
$(category_selected "$cat" "$filter")
</select>
- </div>
+ </div>
EOF
done
}
cat <<EOF
<form class="panel" id="advfilter"
action="?action=filter" method="post" accept-charset="UTF-8">
- <input disabled type="text" name="s" value="$search" placeholder="Search">
- <label for="o2" class="order">Order by:</label>
- <select disabled class="order" size="1" name="o" id="o2">
- <option>Name</option>
- <option>Date</option>
- <option>Length</option>
- </select>
- <input disabled type="submit" name="submit" value="Find">
- <a class="panel clearsearch" href="?">Clear All</a>
- <a class="panel advanced hide" href="#">Hide</a>
- <hr>
+ <a class="panel toggle" href="#">Hide</a>
<p class="help">Up to <strong>10</strong> filter boxes will appear as you start selecting tags. You can select <strong>multiple</strong> tags in each box by holding down the <strong>Ctrl</strong>-key. Click the "<strong>Filter!</strong>" button when you are ready.</p>
$(filterbox {0..9})