X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=templates%2Fattendees.html.sh;h=fbc5fe50fbe582f0d4c7553164bf23d6f960ecb7;hb=4d62352e69df4972b505b65ad8a889b910d8a5a5;hp=7613a0b3c4906c178035afc893d63d4e8e574ac2;hpb=9da0f336d8e830196893925f3e13b278d0d50189;p=lobster diff --git a/templates/attendees.html.sh b/templates/attendees.html.sh index 7613a0b..fbc5fe5 100755 --- a/templates/attendees.html.sh +++ b/templates/attendees.html.sh @@ -16,49 +16,46 @@ # along with Confetti. If not, see . check_type(){ - [ "$_GET[\"filtertype\"]" = "$1" ] && echo 'checked="checked"' + [ "${_GET[filtertype]}" = "$1" ] && echo 'checked="checked"' } check_order(){ - [ "$_GET[\"order\"]" = "$1" ] && echo 'checked="checked"' + [ "${_GET[order]}" = "$1" ] && echo 'checked="checked"' } -edit="$_GET[\"edit\"]" -[ -z "$_GET[\"filtertype\"]" ] && _GET["filtertype"]="any" -[ -z "$_GET[\"order\"]" ] && _GET["order"]="firstname" +edit="${_GET[edit]}" +[ -z "${_GET[filtertype]}" ] && _GET[filtertype]="any" +[ -z "${_GET[order]}" ] && _GET[order]="firstname" cat < - $(l10n filter_label) - - - - - $(l10n filter_type): - $(l10n filter_all) - $(l10n filter_name) - $(l10n filter_street) - $(l10n filter_zip) - $(l10n filter_phone) - $(l10n filter_birthyear) - $(l10n filter_course) - - $(l10n filter_order): - $(l10n filter_firstname) - $(l10n filter_lastname) - $(l10n filter_bdate) - - $(l10n filter_apply) - $(l10n filter_cancel) - - + + $(l10n filter_label) + + + + + $(l10n filter_type): + $(l10n filter_all) + $(l10n filter_name) + $(l10n filter_street) + $(l10n filter_zip) + $(l10n filter_phone) + $(l10n filter_birthyear) + $(l10n filter_course) + + + $(l10n filter_order): + $(l10n filter_firstname) + $(l10n filter_lastname) + $(l10n filter_bdate) + + $(l10n filter_apply) + $(l10n filter_cancel) + - - + $(l10n newcard) - - $( [ -f "vcard/$edit" -o -f "temp/$edit" ] && edit_attendee "$edit" if [ "$?" = 0 ]; then @@ -69,7 +66,6 @@ fi |while read card; do view_attendee "$card" done ) - EOF # vi:set filetype=html: