public function export() { $newsletter = new controllerNewsletter(); $newsletter->export($_GET['sn_export_method']); exit; }
<?php $emailList = new controllerNewsletter(); ?> <div class="wrap"> <div id="icon-options-general" class="icon32"></div> <h2><?php printf(__("Last %d subscriptions", 'simple-newsletter-br'), $emailList->limit); ?> </h2> <div class="tablenav top"> <div class="alignleft actions bulkactions"> <label for="bulk-action-selector-top" class="screen-reader-text"><?php echo __('Export', 'simple-newsletter-br'); ?> </label> <select name="action" id="exportMethod"> <option value="-1"><?php echo __('Export', 'simple-newsletter-br'); ?> </option> <option value="?sn_export_method=EXPORT_ALL"><?php echo __('All', 'simple-newsletter-br'); ?> </option> <option value="?sn_export_method=EXPORT_CONFIRMED"><?php echo __('Confirmed', 'simple-newsletter-br'); ?> </option>