Index: openacs-4/packages/assessment/www/asm-admin/results-users.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/results-users.adp,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/assessment/www/asm-admin/results-users.adp 6 Dec 2005 14:24:34 -0000 1.3
+++ openacs-4/packages/assessment/www/asm-admin/results-users.adp 8 Dec 2006 23:55:26 -0000 1.4
@@ -2,9 +2,7 @@
@page_title;noquote@
@context;noquote@
-
-
-
+
Index: openacs-4/packages/assessment/www/asm-admin/session-delete.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/session-delete.adp,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/assessment/www/asm-admin/session-delete.adp 8 Dec 2006 03:23:08 -0000 1.1
+++ openacs-4/packages/assessment/www/asm-admin/session-delete.adp 8 Dec 2006 23:55:26 -0000 1.2
@@ -1,3 +1,6 @@
+@page_title@
+@context@
+@header_stuff;noquote@
\ No newline at end of file
Index: openacs-4/packages/assessment/www/asm-admin/session-delete.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/session-delete.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/assessment/www/asm-admin/session-delete.tcl 8 Dec 2006 14:36:54 -0000 1.2
+++ openacs-4/packages/assessment/www/asm-admin/session-delete.tcl 8 Dec 2006 23:55:26 -0000 1.3
@@ -4,6 +4,7 @@
assessment_id:integer
subject_id:integer
{return_url ""}
+ {session_id:optional,multiple}
}
permission::require_permission \
@@ -23,18 +24,27 @@
db_foreach get_sessions "" {
set creation_datetime [lc_time_fmt $creation_datetime "%x %X"]
set completed_datetime [lc_time_fmt $completed_datetime "%x %X"]
- lappend session_id_options [list "$session_id [_ assessment.Attempt_started_completed [list creation_datetime $creation_datetime completed_datetime $completed_datetime]]" $session_id]
+ lappend session_id_options [list "[_ assessment.Attempt_started_completed [list creation_datetime $creation_datetime completed_datetime $completed_datetime]]" $session_id]
}
-
+set check_all_options [list [list [_ assessment.Select_All] ""]]
ad_form -name session-delete -export {assessment_id subject_id return_url} \
-has_submit 1 \
-form {
+ {cancel0:text(submit) {label "[_ acs-kernel.common_Cancel]"}}
+ {ok0:text(submit) {label "[_ acs-kernel.common_Delete]"}}
+ {check_all:text(checkbox),optional {label ""} {options $check_all_options} {html {onClick acs_CheckAll('session-delete:elements:session_id',this.checked)}}}
{session_id:text(checkbox),multiple,optional {label "[_ assessment.Attempts_to_delete]"} {options $session_id_options}}
{cancel:text(submit) {label "[_ acs-kernel.common_Cancel]"}}
{ok:text(submit) {label "[_ acs-kernel.common_Delete]"}}
+ } -on_request {
+ if {[info exists session_id]} {
+ template::element::set_values session-delete session_id $session_id
+ }
} -on_submit {
- if {[info exists ok] && $ok ne "" && [info exists session_id]} {
+ if {([info exists ok] && $ok ne "" \
+ || [info exists ok0] && $ok0 ne "" ) \
+ && [info exists session_id]} {
#delete sessions
set message "[_ assessment.Requested_attempts_deleted]"
foreach id $session_id {
@@ -51,4 +61,33 @@
ad_script_abort
}
+set header_stuff {
+
+}
+
+set page_title [_ assessment.Delete_Attempts]
+set context [list $page_title]
ad_return_template
\ No newline at end of file