Index: openacs-4/packages/attendance/www/admin/certificates.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/attendance/www/admin/certificates.adp,v diff -u -r1.1 -r1.2 --- openacs-4/packages/attendance/www/admin/certificates.adp 2 Apr 2006 21:21:07 -0000 1.1 +++ openacs-4/packages/attendance/www/admin/certificates.adp 3 Apr 2006 01:11:14 -0000 1.2 @@ -1,4 +1,5 @@ + @@ -8,47 +9,47 @@ - - - - - - - - - @@ -63,7 +64,7 @@ - Index: openacs-4/packages/attendance/www/admin/certificates.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/attendance/www/admin/certificates.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/attendance/www/admin/certificates.tcl 2 Apr 2006 21:21:07 -0000 1.1 +++ openacs-4/packages/attendance/www/admin/certificates.tcl 3 Apr 2006 01:11:14 -0000 1.2 @@ -128,7 +128,7 @@ -root_folder_id [dotlrn::get_package_id]]] \ -target_item_id $image_id - ad_returnredirect -message "Using site wide default" [export_vars -base "certificates" {user_id community_id}] + ad_returnredirect -message "Using site wide default" [export_vars -base "certificates" {user_id community_id certificate certifies_that attended description_label course_description community_name instructors signature_1 signature_2 signature_3 signature_4 signature_5 signature_6 continuting_ed_credit_info}] } if {[info exists set_sw_submit] && $set_sw_submit ne ""} { @@ -140,18 +140,24 @@ -privilege "admin" if {$image_id ne ""} { # can't use content::item::copy it only allows folder parents - set site_wide_image_id \ - [content::item::new \ - -name "__attendance_default_logo_image" \ - -parent_id [dotlrn::get_package_id] \ - -content_type image] + if {[set site_wide_image_id [content::item::get_id \ + -item_path "__attendance_default_logo_image" \ + -root_folder_id [dotlrn::get_package_id]]] eq ""} { + + + set site_wide_image_id \ + [content::item::new \ + -name "__attendance_default_logo_image" \ + -parent_id [dotlrn::get_package_id] \ + -content_type image] + } content::revision::copy \ -revision_id [content::item::get_live_revision \ -item_id $image_id] \ -target_item_id $site_wide_image_id } - ad_returnredirect -message "Image set as site wide default" [export_vars -base "certificates" {user_id community_id}] + ad_returnredirect -message "Using site wide default" [export_vars -base "certificates" {user_id community_id certificate certifies_that attended description_label course_description community_name instructors signature_1 signature_2 signature_3 signature_4 signature_5 signature_6 continuting_ed_credit_info}] }
Upload logo image:
+
+
-Participant Name Goes Here + +Participant's name will appear here
+
+
+
+ Instructors
+  
+ Enter signature information
+