X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=cards%2Findex.cgi;fp=cards%2Findex.cgi;h=934c19ac3bf2499b3aee9adf0440188739a6e3f2;hp=0000000000000000000000000000000000000000;hb=76c1e7bff1a8604ef2ef7da5d274d0db0e639139;hpb=90288ab07bb1ec83a91581fadc674a87a250a853 diff --git a/cards/index.cgi b/cards/index.cgi new file mode 100755 index 0000000..934c19a --- /dev/null +++ b/cards/index.cgi @@ -0,0 +1,25 @@ +#!/bin/sh + +. $_EXEC/pdiread.sh +. $_EXEC/cards/l10n.sh +. $_EXEC/cards/widgets.sh +. $_EXEC/cards/list.sh + +upcase=' y;abcdefghijklmnopqrstuvwxyzäöüé;ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜÉ;; ' + +filter="$(GET f)" +order="$(GET o)" +edit="$(GET e |PATH)" + +[ "$order" ] || order=firstname +edit="${edit##*/}" + +{ w_filter_diag + printf ' + [form class="newcard" action="/cards/new_card.sh" method="POST" + [button type="submit" %s] + [input name="seed" placeholder="%s"] + ]' "$(l10n newcard)" "$(l10n vcf_seed_label)" + [ "$edit" ] && edit_card "$edit" + list_cards +} | yield_page cards #/cards/cards.css