- // Load template
- loadTemplate('admin_edit_email', false, $content);
- } elseif (isPostRequestParameterSet('save')) {
- // Save changes
+ // Fetch row
+ $content = SQL_FETCHARRAY($result);
+
+ // Free result
+ SQL_FREERESULT($result);
+
+ // Load template
+ loadTemplate('admin_edit_email', false, $content);
+} elseif (isGetRequestElementSet('bid')) {
+ // Make also this email editable
+ $result = SQL_QUERY_ESC("SELECT
+ `id`,`subject`,`text`,`url`
+FROM
+ `{?_MYSQL_PREFIX?}_bonus`
+WHERE
+ `id`=%s
+LIMIT 1",
+ array(bigintval(getRequestElement('bid'))), __FILE__, __LINE__);
+
+ // Fetch row
+ $content = SQL_FETCHARRAY($result);
+
+ // Free result
+ SQL_FREERESULT($result);
+
+ // Load template
+ loadTemplate('admin_edit_bonus_email', false, $content);
+} elseif (isFormSent('save')) {
+ // Save changes
+ if (isPostRequestElementSet('mid')) {
+ // Update pool