X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=cards%2Findex.cgi;h=0bb4f827c26cf53b7c934039d5260f3a88abe739;hb=b9f386037364d4a10931c37acb464f0bf6d0e5d3;hp=933b1d188c1a5aea53876e77c40139ea00681ef1;hpb=56ca6f3f99709aca8e77aa35071ba7097e8083c7;p=lobster diff --git a/cards/index.cgi b/cards/index.cgi index 933b1d1..0bb4f82 100755 --- a/cards/index.cgi +++ b/cards/index.cgi @@ -11,15 +11,20 @@ filter="$(GET f)" order="$(GET o)" edit="$(GET e |PATH)" -[ "$order" ] || order=firstname +[ "$order" ] || order=lastname edit="${edit##*/}" +list_hi_companies(){ + sed -rn 's;^X-HEALTH-INSURANCE:([^\;]+)\;.*$;\1;p' ${_DATA}/vcard/*vcf \ + | sort -u +} + { w_filter_diag printf ' [form class="newcard" action="/cards/new_card.sh" method="POST" + [a href="#top" . %s] [button type="submit" %s] - ]' "$(l10n newcard)" - + ]' "$(l10n top)" "$(l10n newcard)" [ "$edit" ] && edit_card "$edit" list_cards } | yield_page cards #/cards/cards.css