0) { // Add option for events $GLOBALS['cache_array']['admins'] = generateOptionList('admins', 'id', 'login', '', 'email'); $SW = 2; $rowNameS = ''; foreach (postRequestElement('sel') as $template => $sel) { // First of all load data from DB $result = SQL_QUERY_ESC("SELECT admin_id, id FROM `{?_MYSQL_PREFIX?}_admins_mails` WHERE mail_template='%s' ORDER BY `id`", array($template), __FILE__, __LINE__); $OUT = ''; $adminId2 = 0; while ($content = SQL_FETCHARRAY($result)) { // @TODO Can this be rewritten??? $OUT .= "