if (countPostSelection() > 0) {
// Add option for events
$adminsList = generateOptionList('admins', 'id', 'login', '', 'email');
- $SW = 2; $rowNameS = '';
+ $SW = 2; $rows = '';
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` ASC",
$content['content'] = $OUT;
// Start outputing line
- $rowNameS .= loadTemplate('admin_admins_mails_edit_row', true, $content);
+ $rows .= loadTemplate('admin_admins_mails_edit_row', true, $content);
$SW = 3 - $SW;
}
// Edit checked entries
- loadTemplate('admin_admins_mails_edit', false, $rowNameS);
+ loadTemplate('admin_admins_mails_edit', false, $rows);
} else {
// Nothing selected
loadTemplate('admin_settings_saved', false, getMessage('ADMINS_NO_MAIL_CHECKED'));
<tr>
<td align="center" class="switch_sw$content[sw] bottom right">
- $content[mail_template] <input type="hidden" name="template[$content[id2]]"
- value="$content[mail_template]"></td>
+ $content[mail_template]
+ <input type="hidden" name="template[$content[id]]" value="$content[mail_template]" />
+ </td>
<td align="center" class="switch_sw$content[sw] bottom">
- $content[content]</td>
+ $content[content]
+ </td>
</tr>