select dotlrn_communities.community_id,
dotlrn_communities.community_type,
Index: openacs-4/packages/dotlrn/www/communities.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/communities.adp,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/dotlrn/www/communities.adp 11 Jan 2002 21:51:51 -0000 1.4
+++ openacs-4/packages/dotlrn/www/communities.adp 15 Jan 2002 22:23:41 -0000 1.5
@@ -10,10 +10,10 @@
@communities.pretty_name@ |
- ()
+ ()
- ()
+ ()
|
Index: openacs-4/packages/dotlrn/www/communities.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/communities.tcl,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/dotlrn/www/communities.tcl 11 Jan 2002 21:51:51 -0000 1.4
+++ openacs-4/packages/dotlrn/www/communities.tcl 15 Jan 2002 22:23:41 -0000 1.5
@@ -6,16 +6,26 @@
@version $Id$
} -query {
{filter "select_active_communities"}
- {referer "./"}
} -properties {
n_communities:onevalue
communities:multirow
}
+if {![info exists community_type]} {
+ set community_type ""
+}
+
+if {![info exists referer]} {
+ set referer "./"
+}
+
set user_id [ad_conn user_id]
-set community_type [dotlrn_community::get_community_type]
-set n_communities [db_string select_all_communities_count {}]
+if {![empty_string_p $community_type]} {
+ set n_communities [db_string select_all_communities_count_by_type {}]
+} else {
+ set n_communities [db_string select_all_communities_count {}]
+}
set filter_bar [ad_dimensional {
{filter "Status:" select_active_communities
@@ -26,6 +36,10 @@
}
}]
+if {![empty_string_p $community_type]} {
+ append filter "_by_type"
+}
+
db_multirow communities $filter {}
ad_return_template
Index: openacs-4/packages/dotlrn/www/community-deregister.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/Attic/community-deregister.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/dotlrn/www/community-deregister.tcl 11 Jan 2002 21:51:51 -0000 1.3
+++ openacs-4/packages/dotlrn/www/community-deregister.tcl 15 Jan 2002 22:23:41 -0000 1.4
@@ -6,9 +6,9 @@
@creation-date 2001-10-06
@version $Id$
} -query {
- {referer "./"}
{user_id ""}
{community_id ""}
+ {referer "./"}
}
ad_maybe_redirect_for_registration
@@ -25,4 +25,4 @@
dotlrn_community::remove_user $community_id $user_id
-ns_returnredirect $referer
+ad_returnredirect $referer
Index: openacs-4/packages/dotlrn/www/community-register.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/Attic/community-register.tcl,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/dotlrn/www/community-register.tcl 10 Jan 2002 19:30:18 -0000 1.4
+++ openacs-4/packages/dotlrn/www/community-register.tcl 15 Jan 2002 22:23:41 -0000 1.5
@@ -6,8 +6,8 @@
@creation-date 2001-10-06
@version $Id$
} -query {
- {referer "./"}
{community_id ""}
+ {referer "./"}
}
ad_maybe_redirect_for_registration
Index: openacs-4/packages/dotlrn/www/one-community-type.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/one-community-type.adp,v
diff -u -r1.13 -r1.14
--- openacs-4/packages/dotlrn/www/one-community-type.adp 10 Jan 2002 19:30:18 -0000 1.13
+++ openacs-4/packages/dotlrn/www/one-community-type.adp 15 Jan 2002 22:23:41 -0000 1.14
@@ -17,5 +17,5 @@
-
+
|