function choose_audience() { global $_GET; $choose_audience_string = '<form name="audience" action="' . zen_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm') . '" method="post" onsubmit="return check_form(audience);">' . ' <table border="0" cellspacing="0" cellpadding="2">' . "\n" . ' <tr>' . "\n" . '<td class="main">' . TEXT_PLEASE_SELECT_AUDIENCE . '<br />' . '' . zen_draw_pull_down_menu('audience_selected', get_audiences_list_with_language('newsletters'), $this->query_name) . '</td>' . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td colspan="2" align="right">' . zen_image_submit('button_select.gif', IMAGE_SELECT) . '</td>' . ' </tr>' . "\n" . '</table></form>'; return $choose_audience_string; }
</td> </tr> </table></td> </tr> </table></td> </form></tr> <?php } else { ?> <tr><?php echo zen_draw_form('mail', FILENAME_MAIL, 'action=preview', 'post', 'onsubmit="return check_form(mail);" enctype="multipart/form-data"'); ?> <td><table border="0" cellpadding="0" cellspacing="0" class="tableLayout1" width="100%"> <?php $customers = get_audiences_list_with_language('email'); ?> <tr> <th class="main"><?php echo TEXT_CUSTOMER; ?> </th> <td><?php echo zen_draw_pull_down_menu('customers_email_address', $customers, isset($_GET['customer']) ? $_GET['customer'] : ''); //, 'multiple' ?> </td> </tr> <tr> <th class="main"><?php