templates/de/html/admin/admin_del_cats_row.tpl -text
templates/de/html/admin/admin_del_email_bonus.tpl -text
templates/de/html/admin/admin_del_email_normal.tpl -text
+templates/de/html/admin/admin_del_email_notify.tpl -text
templates/de/html/admin/admin_del_payments.tpl -text
templates/de/html/admin/admin_del_payments_row.tpl -text
templates/de/html/admin/admin_del_sponsor.tpl -text
templates/de/html/admin/admin_list_links_problem.tpl -text
templates/de/html/admin/admin_list_links_row.tpl -text
templates/de/html/admin/admin_list_notify_emails.tpl -text
+templates/de/html/admin/admin_list_notify_emails_row.tpl -text
templates/de/html/admin/admin_list_payments.tpl -text
templates/de/html/admin/admin_list_payouts.tpl -text
templates/de/html/admin/admin_list_payouts_banner.tpl -text
define('SERVER_URL', "http://www.mxchange.org");
// This current patch level
-define('CURR_SVN_REVISION', "472");
+define('CURR_SVN_REVISION', "473");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
define('ADMIN_BONUS_RALLYE_NOTIFY_WAIT', "Wie lange soll die Wartezeit der Bonus-Mail sein?");
define('ADMIN_BONUS_INCLUDE_OWN', "Soll Ihre Mitglieder-ID an der Aktiv-Rallye dran teilnehmen?");
define('ADMIN_NOTIFCATION_TITLE', "Ausgesendete Benachrichtigungen");
+define('ADMIN_DELETE_NOTIFY_MAIL', "Obrige Benachrichtigung entfernen");
+define('ADMIN_NOTIFY_MAIL_ALREADY_DELETED', "Benachrichtigung bereits entfernt.");
+define('ADMIN_NOTIFICATION_DELETED_TITLE', "Benachrichtigung entfernt");
// Switches
define('ADMIN_BONUS_RALLYE_IS_ACTIVE' , "Ist die Aktiv-Rallye aktiv?");
// Mail already deleted!
LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_BONUS_MAIL_ALREADY_DELETED);
}
+} elseif ((!empty($_GET['nid'])) && (GET_EXT_VERSION("bonus") >= "0.8.7")) {
+ // Load data from bonus mail
+ $result = SQL_QUERY_ESC("SELECT id, subject, url, timestamp FROM "._MYSQL_PREFIX."_bonus WHERE id=%s",
+ array(bigintval($_GET['nid'])), __FILE__, __LINE__);
+
+ // Delete mail only once
+ if (SQL_NUMROWS($result) == 1) {
+ // Load data
+ list ($id, $subject, $url, $timestamp) = SQL_FETCHROW($result);
+ SQL_FREERESULT($result);
+
+ // Delete bonus mail entirely from database
+ $result = SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_bonus WHERE id=%s LIMIT 1",
+ array(bigintval($_GET['nid'])), __FILE__, __LINE__);
+ $result = SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_user_links WHERE bonus_id=%s",
+ array(bigintval($_GET['nid'])), __FILE__, __LINE__);
+
+ // Prepare data for the template
+ define('__ID' , $id);
+ define('__SUBJECT', $subject);
+ define('__URL' , DEREFERER($url));
+ define('__ORDERED', MAKE_DATETIME($timestamp, "0"));
+
+ // Load template
+ LOAD_TEMPLATE("admin_del_email_notify");
+ } else {
+ // Mail already deleted!
+ LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_NOTIFY_MAIL_ALREADY_DELETED);
+ }
} else {
// No mail orders fond
LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_WRONG_CALL);
$content['timestamp'] = MAKE_DATETIME($content['timestamp'], "0");
// Load row template
- $OUT .= LOAD_TEMPLATE("admin_list_bonus_emails_row", true, $content);
+ $OUT .= LOAD_TEMPLATE("admin_list_notify_emails_row", true, $content);
}
// Add navigation (without change box but with colspan=3)
--- /dev/null
+<TABLE border="0" cellspacing="0" cellpadding="0" class="admin_table dashed" width="99%">
+ <TR>
+ <TD class="admin_header" colspan="8" align="center" height="35">
+ <STRONG class="admin_misc">{--ADMIN_NOTIFICATION_DELETED_TITLE--}</STRONG></TD>
+ </TR>
+ <TR>
+ <TD class="top2 right2" align="center"><STRONG>{--ID_SELECT--}</STRONG></TD>
+ <TD class="top2 right2" align="center"><STRONG>{--EMAIL_SUBJECT--}</STRONG></TD>
+ <TD class="top2 right2" align="center"><STRONG>{--EMAIL_URL--}</STRONG></TD>
+ <TD class="top2 right2" align="center"><STRONG>{--EMAIL_TIMESTAMP--}</STRONG></TD>
+ </TR>
+ <TR>
+ <TD class="top2 right2 admin_misc" align="center">{!__ID!}</TD>
+ <TD class="top2 right2 admin_misc" align="center">{!__SUBJECT!}</TD>
+ <TD class="top2 right2 admin_misc" align="center"><A
+ href="{!__URL!}" target="_blank">{--ADMIN_TEST_URL--}</A></TD>
+ <TD class="top2 right2 admin_misc" align="center">{!__ORDERED!}</TD>
+ </TR>
+</TABLE>
</tr>
<tr>
<td align="center" class="top2 admin_del_link" colspan="3">
- <a href="{--URL--}/modules.php?module=admin&what=del_email&bid=$content[id]">{--ADMIN_DELETE_BONUS_MAIL--}</a>
+ <a href="{!URL!}/modules.php?module=admin&what=del_email&bid=$content[id]">{--ADMIN_DELETE_BONUS_MAIL--}</a>
</td>
</tr>
</TR>
<TR>
<TD align="center" class="top2 admin_del_link" colspan="3">
- <A href="{--URL--}/modules.php?module=admin&what=del_email&mid=$content[id]">{--ADMIN_DELETE_NORMAL_MAIL--}</A>
+ <A href="{!URL!}/modules.php?module=admin&what=del_email&mid=$content[id]">{--ADMIN_DELETE_NORMAL_MAIL--}</A>
</TD>
</TR>
--- /dev/null
+<tr>
+ <td class="bottom top2 right" colspan="2" width="46%" align="center">
+ {--EMAIL_SUBJECT--}:<br />
+ <strong class="admin_misc">$content[subject]</strong>
+ </td>
+ <td class="bottom top2" width="54%" align="center">
+ {--EMAIL_TEXT--}:<br />
+ <strong class="admin_misc">$content[text]</strong>
+ </td>
+</tr>
+<tr><td height="5" colspan="3" class="seperator"> </td></tr>
+<tr>
+ <td align="center" class="top bottom right" width="23%">
+ {--EMAIL_POINTS--}:<br />
+ <strong class="admin_misc">$content[points] {!POINTS!}</strong>
+ </td>
+ <td align="center" class="top bottom right" width="23%">
+ {--EMAIL_SECONDS--}:<br />
+ <strong class="admin_misc">$content[time]</strong>
+ </td>
+ <td align="center" class="top bottom">
+ {--EMAIL_CATEGORY--}:<br />
+ <strong class="admin_misc">$content[category]</strong>
+ </td>
+</tr>
+<tr><td height="5" colspan="3" class="seperator"> </td></tr>
+<tr>
+ <td align="center" class="top bottom right">
+ {--EMAIL_RECEIVERS--}:<br />
+ <strong class="admin_misc">$content[mails_sent]</strong>
+ ({--EMAIL_RUIDS--}: <strong class="admin_misc">$content[receivers]</strong>)
+ </td>
+ <td align="center" class="top bottom right">
+ {--USERS_LINKS--}:<br />
+ <strong class="admin_misc">$content[unconfirmed]</strong>
+ </td>
+ <td align="center" class="top bottom">
+ {--EMAIL_POOL_TYPE--}:<br />
+ <strong class="admin_misc">$content[type]</strong>
+ </td>
+</tr>
+<tr><td height="5" colspan="3" class="seperator"> </td></tr>
+<tr>
+ <td align="center" class="top bottom right">
+ {--EMAIL_TSEND--}:<br />
+ <strong class="admin_misc">$content[target_send]</strong>
+ </td>
+ <td align="center" class="top bottom right">
+ {--EMAIL_URL--}:<br />
+ <strong class="admin_misc"><a href="$content[frametester]" target="_blank">{--ADMIN_TEST_URL--}</a></strong>
+ </td>
+ <td align="center" class="top bottom">
+ {--EMAIL_TIMESTAMP--}:<br />
+ <strong class="admin_misc">$content[timestamp]</strong>
+ </td>
+</tr>
+<tr><td height="5" colspan="3" class="seperator"> </td></tr>
+<tr>
+ <td align="center" class="top right" colspan="2">
+ <div>{--EMAIL_URL--}:</div>
+ <div><strong class="admin_misc">$content[url]</strong></div>
+ </td>
+ <td align="center" class="top">
+ {--__UNUSED--}:<br />
+ <strong class="admin_misc">---</strong>
+ </td>
+</tr>
+<tr>
+ <td align="center" class="top2 admin_del_link" colspan="3">
+ <a href="{!URL!}/modules.php?module=admin&what=del_email&nid=$content[id]">{--ADMIN_DELETE_NOTIFY_MAIL--}</a>
+ </td>
+</tr>