Index: openacs-4/packages/bboard-portlet/tcl/bboard-portlet-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/bboard-portlet/tcl/bboard-portlet-procs.tcl,v diff -u -r1.8 -r1.9 --- openacs-4/packages/bboard-portlet/tcl/bboard-portlet-procs.tcl 5 Oct 2001 17:37:25 -0000 1.8 +++ openacs-4/packages/bboard-portlet/tcl/bboard-portlet-procs.tcl 5 Oct 2001 19:52:30 -0000 1.9 @@ -55,10 +55,50 @@ @creation-date Sept 2001 } { - array set config $cf + array set config $cf - return "This is the instance_id $config(instance_id)" + set query " + select message_id, + title, + num_replies, + first_names||' '||last_name as full_name, + to_char(last_reply_date,'MM/DD/YY hh12:Mi am') as last_updated + from bboard_messages_all b, persons, acs_objects ao + where b.forum_id = ao.object_id + and ao.context_id = $config(instance_id) + and person_id = sender + and reply_to is null + order by sent_date desc" + set data "" + set data:rowcount 0 + + db_foreach select_messages $query { + append data "
Subject | +Author | +Replies | +Last update | +
---|