From 544144d4e557354fbe5af119c44471e51631680c Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 12 Mar 2014 16:15:07 +0000 Subject: [PATCH] edit course attendees form course display svn path=/trunk/; revision=41 --- pages/courses.sh | 8 ++++++++ templates/edit_course.sh | 15 +++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/pages/courses.sh b/pages/courses.sh index c0aab02..ea708e9 100755 --- a/pages/courses.sh +++ b/pages/courses.sh @@ -2,6 +2,14 @@ [ -z "$_GET[\"order\"]" ] && _GET["order"]=DOW +listcards() { + ls -1 ${_DATA}/vcard/*vcf 2>/dev/null |while read file; do + fn=$(sed -rn 's:^N(;.+)*\:([^;]*;){1} *([^;]*).*$:\3:p' "$file") + echo "$fn\t$file" + done |sort |sed -r 's:^.*\t(.*/)([^/]+)$:\2:' +} + + listcourses() { case "$_GET[\"filtertype\"]" in *) ls -1 ${_DATA}/ical/*ics 2>/dev/null diff --git a/templates/edit_course.sh b/templates/edit_course.sh index ff932a1..ea5e88d 100755 --- a/templates/edit_course.sh +++ b/templates/edit_course.sh @@ -132,6 +132,21 @@ done echo ' ' echo ' ' +echo '
' +echo ' '$(l10n course_attendance)'' +echo ' ' +echo '
' + echo '
' echo ' ' echo '