diff --git a/e107_admin/mailout.php b/e107_admin/mailout.php index 10396e58a..f217a5ca3 100644 --- a/e107_admin/mailout.php +++ b/e107_admin/mailout.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/mailout.php,v $ -| $Revision: 1.20 $ -| $Date: 2009-10-26 01:04:06 $ +| $Revision: 1.21 $ +| $Date: 2009-10-26 01:23:19 $ | $Author: e107coders $ | | Work in progress - supplementary mailer plugin @@ -244,7 +244,8 @@ if (($action == 'savedmail') && $sub_par && $mail_id) function ret_extended_field_list($list_name, $add_blank = FALSE) { - global $sql; + $sql = e107::getDb(); + $ret = " ".LAN_MAILOUT_33." @@ -1246,7 +1254,12 @@ function show_prefs() // Debug modes list any type of data in the generic table - don't believe the column headings! function showList($type='massmail') { - global $sql,$ns,$tp, $images_path; + global $images_path; + + $ns = e107::getRender(); + $sql = e107::getDb(); + $tp = e107::getParser(); + $gen = new convert; if (!(trim($type))) $type = 'massmail'; $qry ="SELECT g.*,u.* FROM #generic AS g LEFT JOIN #user AS u ON g.gen_user_id = u.user_id WHERE g.gen_type = '{$type}' ORDER BY g.gen_datestamp DESC"; @@ -1313,7 +1326,9 @@ function showList($type='massmail') // Generate list of userclasses, including the number of members in each class. function userclasses($name) { - global $sql; + + $sql = e107::getDb(); + $text .= "get_attributes($options, $name, $value)." />"; } + /** + * + * @param object $name + * @param object $value + * @param object $action [optional] default is submit + * @param object $label [optional] + * @param object $options [optional] + * @return + */ function admin_button($name, $value, $action = 'submit', $label = '', $options = array()) { $btype = 'submit'; diff --git a/e107_handlers/mailout_class.php b/e107_handlers/mailout_class.php index 2e184a5e3..2b75c6eb7 100644 --- a/e107_handlers/mailout_class.php +++ b/e107_handlers/mailout_class.php @@ -3,7 +3,7 @@ + ----------------------------------------------------------------------------+ | e107 website system | -| ©Steve Dunstan 2001-2002 +| �Steve Dunstan 2001-2002 | http://e107.org | jalist@e107.org | @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/mailout_class.php,v $ -| $Revision: 1.1 $ -| $Date: 2007-12-22 14:49:21 $ -| $Author: e107steved $ +| $Revision: 1.2 $ +| $Date: 2009-10-26 01:23:19 $ +| $Author: e107coders $ +----------------------------------------------------------------------------+ */ @@ -142,6 +142,8 @@ class core_mailout // Called to show current selection criteria, and optionally allow edit // Returns HTML which is displayed in a table cell. Typically we return a complete table // $allow_edit is TRUE to allow user to change the selection; FALSE to just display current settings + + //TODO - remove HTML markup from this class! (see below) function show_select($allow_edit = FALSE) {