Index: openacs-4/packages/simple-survey/www/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/simple-survey/www/index.adp,v diff -u -r1.1 -r1.2 --- openacs-4/packages/simple-survey/www/index.adp 20 Apr 2001 20:51:22 -0000 1.1 +++ openacs-4/packages/simple-survey/www/index.adp 18 Feb 2002 20:48:01 -0000 1.2 @@ -1,9 +1,5 @@ - -
-
+
+
-
-
+@name@
-
-
Index: openacs-4/packages/simple-survey/www/process-response.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/simple-survey/www/process-response.adp,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/simple-survey/www/process-response.adp 20 Apr 2001 20:51:22 -0000 1.1
+++ openacs-4/packages/simple-survey/www/process-response.adp 18 Feb 2002 20:48:01 -0000 1.2
@@ -1,9 +1,5 @@
-
-
- @survey_name@
+
Response submitted. Thank you.
-
Index: openacs-4/packages/simple-survey/www/admin/index.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/simple-survey/www/admin/index.adp,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/simple-survey/www/admin/index.adp 18 Feb 2002 20:48:01 -0000 1.1
@@ -0,0 +1,13 @@
+
+
Index: openacs-4/packages/simple-survey/www/admin/index.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/simple-survey/www/admin/index.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/simple-survey/www/admin/index.tcl 20 Apr 2001 20:51:22 -0000 1.1
+++ openacs-4/packages/simple-survey/www/admin/index.tcl 18 Feb 2002 20:48:01 -0000 1.2
@@ -11,43 +11,17 @@
}
-set page_content "[ad_header "Simple Survey System (Admin)"]
+set context_bar [ad_context_bar_ws_or_index "Simple Survey Admin"]
-Simple Survey System Administration
-
-[ad_context_bar_ws_or_index "Simple Survey Admin"]
-
-
-
-
-
-"
set package_id [ad_conn package_id]
# bounce the user if they don't have permission to admin surveys
ad_require_permission $package_id survsimp_admin_survey
set disabled_header_written_p 0
-db_foreach survsimp_surveys "select survey_id, name, enabled_p
+db_multirow surveys select_surveys "select survey_id, name, enabled_p
from survsimp_surveys
-order by enabled_p desc, upper(name)" {
+order by enabled_p desc, upper(name)"
- if { $enabled_p == "f" && !$disabled_header_written_p } {
- set disabled_header_written_p 1
- append page_content "
-
-[ad_footer]
-"
-
-doc_return 200 text/html $page_content
+ad_return_template
Index: openacs-4/packages/simple-survey/www/admin/master.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/simple-survey/www/admin/Attic/master.adp,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/simple-survey/www/admin/master.adp 18 Feb 2002 20:48:01 -0000 1.1
@@ -0,0 +1,7 @@
+Disabled Surveys
\n"
- }
- append page_content "@title@
+@context_bar@
+