X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fattendees.html.sh;h=fbc5fe50fbe582f0d4c7553164bf23d6f960ecb7;hp=684c2e9a74f454f6d73649819b0c7fe18bd61281;hb=4d62352e69df4972b505b65ad8a889b910d8a5a5;hpb=1e8f35fa92c610b540cbe365e2231194b58e0cc0 diff --git a/templates/attendees.html.sh b/templates/attendees.html.sh old mode 100644 new mode 100755 index 684c2e9..fbc5fe5 --- 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_label)

+ + +
+
+ $(l10n filter_type): + + + + + + + +
+
+ $(l10n filter_order): + + + +
+ + +
-
-
+
-
-
$( [ -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: