//delete mailings if (isset($_GET['sup']) || isset($_POST['delete'])) { if (isset($_GET['sup'])) { $mailhist->removeEntries($_GET['sup']); } else { if (isset($_POST['member_sel'])) { $mailhist->removeEntries($_POST['member_sel']); } } } if (isset($_GET['page']) && is_numeric($_GET['page'])) { $mailhist->current_page = (int) $_GET['page']; } if (isset($_GET['nbshow']) && is_numeric($_GET['nbshow'])) { $mailhist->show = $_GET['nbshow']; } if (isset($_GET['tri'])) { $mailhist->orderby = $_GET['tri']; } $history_list = array(); $history_list = $mailhist->getHistory(); //assign pagination variables to the template and add pagination links $mailhist->setSmartyPagination($tpl); $tpl->assign('page_title', _T("Mailings")); $tpl->assign('require_dialog', true); $tpl->assign('logs', $history_list); $tpl->assign('nb_lines', count($history_list)); $tpl->assign('history', $mailhist); $content = $tpl->fetch('gestion_mailings.tpl'); $tpl->assign('content', $content); $tpl->display('page.tpl');