- ' "$w_refuri"
-
- name="$(grep -m1 -F " $(STRING "${REQUEST_URI}")" "$bm")"
- printf '[hidden "link" "%s"][input name="name" value="%s"]' \
- "$(HTML "$link")" "$(HTML "$name")"
-
- sort "$bm" |while read -r name link; do
- name="$(UNSTRING "$name")"
- link="$(UNSTRING "$link")"
- if [ "$link" != "$REQUEST_URI" ]; then
- printf '[a href="%s"\n%s]' "$(HTML "$link")" "$(HTML "$name")"
- fi
+ [hidden "search" "%s"][hidden "filter" "%s"]
+ [label Name for current page:]
+ [input name="name" value="%s" placeholder="Name" ]
+ [button type="submit" %s]' \
+ "$w_refuri" \
+ "$(HTML "$SEARCH")" "$(HTML "$FILTER")" \
+ "$(HTML "${name:-${proposed_name}}")" \
+ "${name:+Update}${proposed_name:+Add}"
+ [ "$name" ] && printf ' [submit "delete" "delete" Delete]'
+
+ sort "$bm" |while read -r name search filter; do
+ search="${search#search=}" filter="${filter#filter=}" filter="${filter%${CR}}"
+ [ "$search" = "${cs}" -a "$filter" = "${cf}" ] && continue
+
+ name="$(UNSTRING "$name")";
+ search="$(UNSTRING "${search}" |URL)";
+ filter="$(UNSTRING "${filter}" |URL)";
+ printf '[label .link %s]
+ [a .link target=blank href="?o=Name&s=%s&f=%s" by Name]
+ [a .link target=blank href="?o=Date&s=%s&f=%s" by Date]
+ [a .link target=blank href="?o=Length&s=%s&f=%s" by Length]
+ [br]' \
+ "$(HTML "$name")" \
+ "$search" "$filter" \
+ "$search" "$filter" \
+ "$search" "$filter"