oracle8.1.6
-
-
- select pretty_name as class_name,
- description as class_description
- from dotlrn_classes_full
- where class_key = :class_key
-
-
-
select dotlrn_terms.term_name || ' ' || dotlrn_terms.term_year as term,
dotlrn_terms.term_id
from dotlrn_terms
where dotlrn_terms.end_date > sysdate
- and not exists (select 1
- from dotlrn_class_instances
- where dotlrn_class_instances.class_key = :class_key
- and dotlrn_class_instances.term_id = dotlrn_terms.term_id)
order by dotlrn_terms.start_date
Index: openacs-4/packages/dotlrn/www/admin/class-instance-new-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/Attic/class-instance-new-postgresql.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/dotlrn/www/admin/class-instance-new-postgresql.xql 16 May 2002 13:29:15 -0000 1.1
@@ -0,0 +1,16 @@
+
+
+
+ postgresql7.1
+
+
+
+ select dotlrn_terms.term_name || ' ' || dotlrn_terms.term_year as term,
+ dotlrn_terms.term_id
+ from dotlrn_terms
+ where dotlrn_terms.end_date > now()
+ order by dotlrn_terms.start_date
+
+
+
+
Index: openacs-4/packages/dotlrn/www/admin/class-instance-new.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/class-instance-new.tcl,v
diff -u -r1.17 -r1.18
--- openacs-4/packages/dotlrn/www/admin/class-instance-new.tcl 29 Mar 2002 19:14:47 -0000 1.17
+++ openacs-4/packages/dotlrn/www/admin/class-instance-new.tcl 16 May 2002 13:29:15 -0000 1.18
@@ -33,21 +33,21 @@
form create add_class_instance
element create add_class_instance term \
- -label "Term" \
+ -label Term \
-datatype integer \
-widget select \
-options [db_list_of_lists select_terms_for_select_widget {}]
element create add_class_instance pretty_name \
- -label "Name" \
+ -label Name \
-datatype text \
-widget text \
-html {size 60} \
-value $class_name \
-optional
element create add_class_instance description \
- -label "Description" \
+ -label Description \
-datatype text \
-widget textarea \
-html {rows 5 cols 60 wrap soft} \
@@ -61,7 +61,7 @@
-options {{Open open} {"Needs Approval" "needs approval"} {Closed closed}}
element create add_class_instance class_key \
- -label "[ad_parameter classes_pretty_name] Key" \
+ -label "[dotlrn::parameter classes_pretty_name] Key" \
-datatype text \
-widget hidden \
-value $class_key
@@ -74,7 +74,7 @@
-value 1
element create add_class_instance referer \
- -label "Referer" \
+ -label Referer \
-datatype text \
-widget hidden \
-value $referer
@@ -104,11 +104,11 @@
ad_script_abort
}
-set class_instances_pretty_name [ad_parameter "class_instances_pretty_name"]
+set class_instances_pretty_name [dotlrn::parameter class_instances_pretty_name]
set context_bar [list \
{classes Classes} \
- [list "class?class_key=$class_key" "$class_name"] \
+ [list "class?class_key=$class_key" $class_name] \
[list New $class_instances_pretty_name] \
]
Index: openacs-4/packages/dotlrn/www/admin/class-instance-new.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/class-instance-new.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/dotlrn/www/admin/class-instance-new.xql 16 May 2002 13:29:15 -0000 1.1
@@ -0,0 +1,15 @@
+
+
+
+ oracle8.1.6
+
+
+
+ select pretty_name as class_name,
+ description as class_description
+ from dotlrn_classes_full
+ where class_key = :class_key
+
+
+
+
Index: openacs-4/packages/dotlrn/www/admin/class-new.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/class-new.tcl,v
diff -u -r1.9 -r1.10
--- openacs-4/packages/dotlrn/www/admin/class-new.tcl 29 Mar 2002 19:14:47 -0000 1.9
+++ openacs-4/packages/dotlrn/www/admin/class-new.tcl 16 May 2002 13:29:15 -0000 1.10
@@ -23,46 +23,39 @@
@version $Id$
} -query {
{department_key ""}
- {referer "classes"}
+ {referer classes}
} -properties {
title:onevalue
context_bar:onevalue
}
-set title "New [ad_parameter classes_pretty_name]"
-set context_bar [list [list classes [ad_parameter classes_pretty_plural]] New]
+set title "New [dotlrn::parameter classes_pretty_name]"
+set context_bar [list [list classes [dotlrn::parameter classes_pretty_plural]] New]
form create add_class
-if {[empty_string_p $department_key]} {
- element create add_class department_key \
- -label "[ad_parameter departments_pretty_name]" \
- -datatype text \
- -widget select \
- -options [dotlrn_department::select_as_list]
-} else {
- element create add_class department_key \
- -label "[ad_parameter departments_pretty_name]" \
- -datatype text \
- -widget hidden \
- -value $department_key
-}
+element create add_class department_key \
+ -label [dotlrn::parameter departments_pretty_name] \
+ -datatype text \
+ -widget select \
+ -options [dotlrn_department::select_as_list] \
+ -value $department_key
element create add_class pretty_name \
- -label "Name" \
+ -label Name \
-datatype text \
-widget text \
-html {size 60}
element create add_class description \
- -label "Description" \
+ -label Description \
-datatype text \
-widget textarea \
-html {rows 5 cols 60 wrap soft} \
-optional
element create add_class referer \
- -label "Referer" \
+ -label Referer \
-datatype text \
-widget hidden \
-value $referer
Index: openacs-4/packages/dotlrn/www/admin/class.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/class.adp,v
diff -u -r1.16 -r1.17
--- openacs-4/packages/dotlrn/www/admin/class.adp 29 Mar 2002 19:14:47 -0000 1.16
+++ openacs-4/packages/dotlrn/www/admin/class.adp 16 May 2002 13:29:15 -0000 1.17
@@ -37,16 +37,16 @@
- Edit <%= [ad_parameter "classes_pretty_name"] %> properties.
+ Edit <%= [dotlrn::parameter classes_pretty_name] %> properties.
-
- [New <%= [ad_parameter "class_instances_pretty_name"] %>]
+
+ [New <%= [dotlrn::parameter class_instances_pretty_name] %>]
@@ -70,7 +70,7 @@
Term |
- <%= [ad_parameter "class_instances_pretty_name"] %> Name
+ <%= [dotlrn::parameter class_instances_pretty_name] %> Name
|
Actions |
Index: openacs-4/packages/dotlrn/www/admin/class.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/class.tcl,v
diff -u -r1.9 -r1.10
--- openacs-4/packages/dotlrn/www/admin/class.tcl 29 Mar 2002 19:14:47 -0000 1.9
+++ openacs-4/packages/dotlrn/www/admin/class.tcl 16 May 2002 13:29:15 -0000 1.10
@@ -33,7 +33,7 @@
# Get information about that class
if {![db_0or1row select_class_info {}]} {
- ad_returnredirect "classes"
+ ad_returnredirect classes
ad_script_abort
}
@@ -51,7 +51,7 @@
form create term_form
element create term_form term_id \
- -label "Term" \
+ -label Term \
-datatype integer \
-widget select \
-options $terms \
@@ -68,16 +68,16 @@
form get_values term_form term_id class_key
}
-set query "select_class_instances"
+set query select_class_instances
if {$term_id == -1} {
- set query "select_all_class_instances"
+ set query select_all_class_instances
}
db_multirow class_instances $query {}
set can_instantiate [dotlrn_class::can_instantiate -class_key $class_key]
-set context_bar [list [list classes [ad_parameter "classes_pretty_plural"]] $pretty_name]
+set context_bar [list [list classes [dotlrn::parameter classes_pretty_plural]] $pretty_name]
set referer "[ns_conn url]?[ns_conn query]"
ad_return_template
Index: openacs-4/packages/dotlrn/www/admin/classes-chunk.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/classes-chunk.adp,v
diff -u -r1.8 -r1.9
--- openacs-4/packages/dotlrn/www/admin/classes-chunk.adp 29 Mar 2002 19:14:47 -0000 1.8
+++ openacs-4/packages/dotlrn/www/admin/classes-chunk.adp 16 May 2002 13:29:15 -0000 1.9
@@ -18,7 +18,7 @@
%>
-
+
[New <%= [ad_parameter classes_pretty_name] %>]
@@ -28,7 +28,7 @@
- <%= [ad_parameter departments_pretty_name] %>:
+ <%= [dotlrn::parameter departments_pretty_name] %>:
|
@@ -39,8 +39,8 @@
- <%= [ad_parameter departments_pretty_name] %> |
- <%= [ad_parameter classes_pretty_name] %> Name |
+ <%= [dotlrn::parameter departments_pretty_name] %> |
+ <%= [dotlrn::parameter classes_pretty_name] %> Name |
@@ -51,6 +51,7 @@
-
-[New <%= [ad_parameter classes_pretty_name] %>]
+
+[New <%= [dotlrn::parameter classes_pretty_name] %>]
Index: openacs-4/packages/dotlrn/www/admin/classes-chunk.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/classes-chunk.tcl,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/dotlrn/www/admin/classes-chunk.tcl 29 Mar 2002 19:14:47 -0000 1.4
+++ openacs-4/packages/dotlrn/www/admin/classes-chunk.tcl 16 May 2002 13:29:15 -0000 1.5
@@ -42,7 +42,7 @@
form create department_form
element create department_form department_key \
- -label "Department" \
+ -label Department \
-datatype text \
-widget select \
-options $departments \
@@ -57,9 +57,9 @@
set referer "classes?[export_vars department_key]"
}
-set query "select_classes"
+set query select_classes
if {![empty_string_p $department_key]} {
- set query "select_classes_by_department"
+ set query select_classes_by_department
}
db_multirow classes $query {}
Index: openacs-4/packages/dotlrn/www/admin/classes.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/classes.tcl,v
diff -u -r1.10 -r1.11
--- openacs-4/packages/dotlrn/www/admin/classes.tcl 29 Mar 2002 19:14:47 -0000 1.10
+++ openacs-4/packages/dotlrn/www/admin/classes.tcl 16 May 2002 13:29:15 -0000 1.11
@@ -27,7 +27,7 @@
context_bar:onevalue
}
-set title "[ad_parameter classes_pretty_plural]"
-set context_bar "[ad_parameter classes_pretty_plural]"
+set title [dotlrn::parameter classes_pretty_plural]
+set context_bar [dotlrn::parameter classes_pretty_plural]
ad_return_template