function handler_relance($page) { $page->changeTpl('marketing/relance.tpl'); if (Post::has('relancer')) { global $globals; $nbdix = $globals->core->NbIns; $sent = array(); $users = User::getBulkUsersWithUIDs($_POST['relance']); foreach ($users as $user) { if ($tmp = Marketing::relance($user, $nbdix)) { $sent[] = $tmp . ' a été relancé.'; } } $page->assign('sent', $sent); } $page->assign('relance', XDB::iterator('SELECT r.date, r.relance, r.uid FROM register_pending AS r WHERE hash != \'INSCRIT\' ORDER BY date DESC')); }