Index: openacs-4/packages/dotlrn-ecommerce/lib/section.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/lib/section.tcl,v
diff -u -r1.10 -r1.11
--- openacs-4/packages/dotlrn-ecommerce/lib/section.tcl 16 Jul 2005 12:51:06 -0000 1.10
+++ openacs-4/packages/dotlrn-ecommerce/lib/section.tcl 20 Jul 2005 11:35:33 -0000 1.11
@@ -225,6 +225,7 @@
# DEDS: waiting list notify
ad_form -extend -name add_section -form {
{notify_waiting_number:text,optional {label "Notify admin when waiting list reaches:"} {html {size 5 maxlength 3}}}
+ {show_participants_p:text(radio) {label "Show Number of Participants"} {options {{Yes t} {No f}}}}
}
lappend validate {notify_waiting_number
{ [empty_string_p $notify_waiting_number] || [regexp {^(0*)(([1-9][0-9]*))$} $notify_waiting_number match zeros value] }
@@ -308,6 +309,7 @@
set ${cal_item_id} $start_date
}
+ set show_participants_p t
} -new_request {
set product_id 0
set price [template::util::currency::create "$" "0" "." "00" ]
@@ -489,8 +491,8 @@
# Use item_id as course_id coz course_id is the revision and
# its easier to keep track of the item_id
db_dml add_section {
- insert into dotlrn_ecommerce_section(section_id, course_id, section_name, community_id,product_id, notify_waiting_number) values
- (:section_id, :item_id, :section_name, :community_id, :product_id, :notify_waiting_number)
+ insert into dotlrn_ecommerce_section(section_id, course_id, section_name, community_id,product_id, notify_waiting_number, show_participants_p) values
+ (:section_id, :item_id, :section_name, :community_id, :product_id, :notify_waiting_number, :show_participants_p)
}
# for this to work, dotlrn_eccomerce_section must be an object
@@ -562,7 +564,8 @@
db_dml update_section {
update dotlrn_ecommerce_section set
section_name = :section_name,
- notify_waiting_number = :notify_waiting_number
+ notify_waiting_number = :notify_waiting_number,
+ show_participants_p = :show_participants_p
where section_id = :section_id
}
Index: openacs-4/packages/dotlrn-ecommerce/lib/tree-chunk-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/lib/tree-chunk-oracle.xql,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/dotlrn-ecommerce/lib/tree-chunk-oracle.xql 6 Jul 2005 04:58:13 -0000 1.2
+++ openacs-4/packages/dotlrn-ecommerce/lib/tree-chunk-oracle.xql 20 Jul 2005 11:35:33 -0000 1.3
@@ -21,7 +21,7 @@
select dc.course_id, dc.course_key, dc.course_name,
dc.assessment_id, dec.section_id, dec.section_name,
dec.product_id, dec.community_id, dc.course_info,
- ci.item_id, v.maxparticipants
+ ci.item_id, v.maxparticipants, dec.show_participants_p
from
dotlrn_catalog dc,
cr_items ci,
Index: openacs-4/packages/dotlrn-ecommerce/lib/tree-chunk-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/lib/tree-chunk-postgresql.xql,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/dotlrn-ecommerce/lib/tree-chunk-postgresql.xql 6 Jul 2005 04:58:13 -0000 1.2
+++ openacs-4/packages/dotlrn-ecommerce/lib/tree-chunk-postgresql.xql 20 Jul 2005 11:35:33 -0000 1.3
@@ -20,7 +20,7 @@
select dc.course_id, dc.course_key, dc.course_name,
dc.assessment_id, dec.section_id, dec.section_name,
dec.product_id, dec.community_id, dc.course_info,
- ci.item_id, v.maxparticipants
+ ci.item_id, v.maxparticipants, dec.show_participants_p
from dotlrn_catalog dc,
cr_items ci
left join dotlrn_ecommerce_section dec
Index: openacs-4/packages/dotlrn-ecommerce/lib/tree-chunk.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/lib/tree-chunk.tcl,v
diff -u -r1.19 -r1.20
--- openacs-4/packages/dotlrn-ecommerce/lib/tree-chunk.tcl 20 Jul 2005 04:22:29 -0000 1.19
+++ openacs-4/packages/dotlrn-ecommerce/lib/tree-chunk.tcl 20 Jul 2005 11:35:33 -0000 1.20
@@ -281,9 +281,11 @@
@course_list.sessions;noquote@
@course_list.instructor_names;noquote@
@course_list.prices;noquote@
+
@course_list.attendees;noquote@ participants
,
@course_list.available_slots;noquote@ available
+
}
html { width 40% }
}
Index: openacs-4/packages/dotlrn-ecommerce/sql/postgresql/dotlrn-ecommerce-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/sql/postgresql/dotlrn-ecommerce-create.sql,v
diff -u -r1.11 -r1.12
--- openacs-4/packages/dotlrn-ecommerce/sql/postgresql/dotlrn-ecommerce-create.sql 19 Jul 2005 18:15:10 -0000 1.11
+++ openacs-4/packages/dotlrn-ecommerce/sql/postgresql/dotlrn-ecommerce-create.sql 20 Jul 2005 11:35:32 -0000 1.12
@@ -25,10 +25,11 @@
account_code_revenue varchar(100),
account_code_expense varchar(100),
max_participants integer,
- waiting_list_p char(1) check (daily_p in ('t','f')),
+ waiting_list_p char(1) check (waiting_list_p in ('t','f')),
notify_waiting_number integer,
member_price_number numeric,
- non_member_price numeric
+ non_member_price numeric,
+ show_participants_p char(1) check (show_participants_p in ('t','f'))
);
create index dotlrn_ecommerce_community_id_idx ON dotlrn_ecommerce_section (community_id);