show attendees in course list
[confetti] / actions / new_attendee.sh
1 #!/bin/zsh
2
3 cgi_post
4 cgi_refdata
5
6 filter="&filter=$_REF[\"filter\"]"
7 filtertype="&filtertype=$_REF[\"filtertype\"]"
8 order="&order=$_REF[\"order\"]"
9
10 uid=$(dbus-uuidgen)
11 card="${uid}.vcf"
12
13 tempfile="$_DATA/temp/$card"
14
15 cat >"$tempfile" <<EOF
16 BEGIN:VCARD
17 VERSION:4.0
18 N:;;;;
19 BDAY:
20 TEL:
21 EMAIL:
22 ADR:
23 NOTE:
24 UID:$uid
25 END:VCARD
26 EOF
27
28 echo -n "Location: http://$HTTP_HOST/?page=attendees${filter}${filtertype}${order}&edit=$card\n\n"