Index: openacs-4/packages/dotlrn-bm/www/admin/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-bm/www/admin/index.adp,v diff -u -r1.1 -r1.1.22.1 --- openacs-4/packages/dotlrn-bm/www/admin/index.adp 2 Jul 2002 23:01:51 -0000 1.1 +++ openacs-4/packages/dotlrn-bm/www/admin/index.adp 11 Sep 2014 15:52:06 -0000 1.1.22.1 @@ -1,7 +1,8 @@ -@title@ -@context_bar@ +@title;noquote@ +
- @table@ +
+ Index: openacs-4/packages/dotlrn-bm/www/admin/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-bm/www/admin/index.tcl,v diff -u -r1.4 -r1.4.4.1 --- openacs-4/packages/dotlrn-bm/www/admin/index.tcl 9 Nov 2008 23:29:24 -0000 1.4 +++ openacs-4/packages/dotlrn-bm/www/admin/index.tcl 11 Sep 2014 15:52:07 -0000 1.4.4.1 @@ -3,40 +3,52 @@ @author yon (yon@openforce.net) @creation-date 2002-05-13 @version $Id$ - } -query { - {orderby "send_date*,subject"} + {orderby "send_date"} } -properties { title:onevalue - context_bar:onevalue + context:onevalue table:onevalue } set package_id [ad_conn package_id] -set title [bulk_mail::pretty_name] -set context_bar {All} +permission::require_permission -object_id $package_id -privilege admin -set table_def { - {send_date {Send Date} {bulk_mail_messages.send_date $order} {[lc_time_fmt $send_date "%q"]}} - {from_addr From {bulk_mail_messages.from_addr $order} {$from_addr}} - {subject Subject {bulk_mail_messages.subject $order} {$subject}} - {sent_p {Sent?} {bulk_mail_messages.sent_p $order} {[ad_decode $sent_p t Yes No]}} -} +set title [string totitle [bulk_mail::pretty_name]] -set sql " - select bulk_mail_messages.* - from bulk_mail_messages - [ad_order_by_from_sort_spec $orderby $table_def] -" +template::list::create -name messages \ + -multirow message_list \ + -no_data "[_ bulk-mail.lt_No_bulk_mail_messages]" \ + -html {width "95%"} \ + -elements { + send_date { + label "#bulk-mail.Send_Date#" + display_col send_date_pretty + orderby send_date + html {style "width:10%"} + } + from_addr { + label "#bulk-mail.From#" + orderby from_addr + html {style "width:15%"} + } + subject { + label "#bulk-mail.Subject#" + link_url_col message_url + orderby subject + } + status_pretty { + label "#bulk-mail.Status#" + html {style "width:10%" align "center"} + orderby status + } + } -set table [ad_table \ - -Tmissing_text {

No bulk mail messages to display.

} \ - -Torderby $orderby \ - -Ttable_extra_html {width="95%"} \ - select_bulk_mail_messages \ - $sql \ - $table_def \ -] +db_multirow -extend {send_date_pretty message_url status_pretty} message_list get_mail_messages {} { + set send_date_pretty [lc_time_fmt $send_date %q] + set message_url "[lindex [site_node::get_url_from_object_id -object_id $package_id] 0]one?bulk_mail_id=$bulk_mail_id" + set status_pretty [ad_decode $status sent [_ bulk-mail.Sent] pending [_ bulk-mail.Pending] [_ bulk-mail.Cancelled]] +} ad_return_template Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/dotlrn-bm/www/admin/index.xql'. Fisheye: No comparison available. Pass `N' to diff?