From 0a131a90c111856e8ef6e96f6da4105e19598cff Mon Sep 17 00:00:00 2001 From: paul Date: Fri, 6 Dec 2013 17:46:22 +0000 Subject: [PATCH] direct mail to all course participants svn path=/trunk/; revision=36 --- templates/text_courses.sh | 3 ++- templates/view_course.sh | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/text_courses.sh b/templates/text_courses.sh index cc773f2..c4bfcd9 100755 --- a/templates/text_courses.sh +++ b/templates/text_courses.sh @@ -27,7 +27,8 @@ item_name[edit_dtscal]="✓" item_name[edit]="Bearbeiten" item_name[ics_export]="ICal exportieren" -item_name[course_attendance]="Teilnehmende" +item_name[course_attendance]="Teilnahme" +item_name[course_mail]="Mail an Teilnehmende" item_name[sort_order]="Sortierung" item_name[order_DOW]="Wochentag" diff --git a/templates/view_course.sh b/templates/view_course.sh index dc490c6..883baee 100755 --- a/templates/view_course.sh +++ b/templates/view_course.sh @@ -39,6 +39,8 @@ else rr_limit=ETERN fi +coursemail="" + echo '
' echo '
' echo '' @@ -77,12 +79,15 @@ sed -rn 's:'$id'\t(.+)$:\1:p' "$_DATA/mappings/attendance" |while read each; do n_post="$( sed -rn 's:^N(;.+)*\:([^;]*;){4} *([^;]*).*$:\3:p' "$_DATA/vcard/$each")" aname="${n_pre} ${n_first} ${n_middle} ${n_last} ${n_post}" echo ' '$aname'' + + coursemail="$coursemail$(sed -rn 's:^EMAIL(;.+)*\:(.+)\r$:\2,:p' "$_DATA/vcard/$each")" done echo '
' echo '
' echo ' '$(l10n edit)'' echo ' '$(l10n ics_export)'' +echo ' '$(l10n course_mail)'' echo '
' echo '' echo '' -- 2.39.2