]> git.plutz.net Git - confetti/blobdiff - actions/filter_attendee.sh
improved style, beautified URL display
[confetti] / actions / filter_attendee.sh
diff --git a/actions/filter_attendee.sh b/actions/filter_attendee.sh
new file mode 100755 (executable)
index 0000000..1cb074c
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/zsh
+
+cgi_post
+
+case "$_POST[\"choice\"]"; in
+  new_filter)
+    filter="$_POST[\"filter\"]"
+    filtertype="$_POST[\"filtertype\"]"
+    order="$_POST[\"order\"]"
+    echo -n "Location: http://$HTTP_HOST/?page=attendees&filter=$filter&filtertype=$filtertype&order=$order\n\n"
+    ;;
+  *)
+    echo -n "Location: http://$HTTP_HOST/?page=attendees\n\n"
+    ;;
+esac