show_choose_audience = true; // $this->show_choose_audience = (count(get_audiences_list('newsletters')) > 1 ); //if only 1 list of newsletters, don't offer selection $this->title = $title; $this->content = $content; $this->content_html = $content_html; $this->query_name = $queryname; } function choose_audience() { global $_GET; $choose_audience_string = '
'; return $choose_audience_string; } function confirm() { global $_GET, $_POST, $db; if ($_POST['audience_selected']) { $this->query_name=$_POST['audience_selected']; if (is_array($_POST['audience_selected'])) $this->query_name=$_POST['audience_selected']['text']; } $query_array = get_audience_sql_query($this->query_name, 'newsletters'); $mail = $db->Execute($query_array['query_string'] ); $confirm_string = '' . sprintf(TEXT_COUNT_CUSTOMERS, $mail->RecordCount() ) . ' | ' . "\n" . '
' . zen_draw_separator('pixel_trans.gif', '1', '10') . ' | ' . "\n" . '
' . $this->title . ' | ' . "\n" . '
' . zen_draw_separator('pixel_trans.gif', '1', '10') . ' | ' . "\n" .
'
' . nl2br($this->content_html) . ' | ' . "\n" . '
' . zen_draw_separator('pixel_trans.gif', '1', '10') . ' | ' . "\n" .
'
' . nl2br($this->content) . ' | ' . "\n" .
'
' . zen_draw_separator('pixel_trans.gif', '1', '10') . ' | ' . "\n" . '