- $unconfirmed = "<STRONG><A href=\"".URL."/modules.php?module=admin&what=list_unconfirmed&bid=".$bonus[0]."\">".$unconfirmed."</A></STRONG>";
- }
-
- OUTPUT_HTML("<TR>
- <TD class=\"bottom top2 right\" colspan=\"2\" width=\"46%\" align=\"center\">
- ".EMAIL_SUBJECT.":<br />
- <STRONG class=\"admin_misc\">".$bonus[1]."</STRONG>
- </TD>
- <TD class=\"bottom top2\" width=\"54%\" align=\"center\">
- ".EMAIL_TEXT.":<br />
- <STRONG class=\"admin_misc\">".$bonus[2]."</STRONG>
- </TD>
-</TR>
-<TR><TD height=\"5\" colspan=\"3\"></TD></TR>
-<TR>
- <TD align=\"center\" class=\"top bottom right\" width=\"23%\">
- ".EMAIL_POINTS.":<br />
- <STRONG class=\"admin_misc\">".$bonus[4]." ".POINTS."
- </TD>
- <TD align=\"center\" class=\"top bottom right\" width=\"23%\">
- ".EMAIL_SECONDS.":<br />
- <STRONG class=\"admin_misc\">".$bonus[5]." ".SECS."
- </TD>
- <TD align=\"center\" class=\"top bottom\">
- ".EMAIL_CATEGORY.":<br />
- <STRONG class=\"admin_misc\">".GET_CATEGORY($bonus[9])."
- </TD>
-</TR>
-<TR><TD height=\"5\" colspan=\"3\"></TD></TR>
-<TR>
- <TD align=\"center\" class=\"top bottom right\">
- ".EMAIL_RECEIVERS.":<br />
- <STRONG class=\"admin_misc\">".$bonus[11]."</STRONG> (".EMAIL_RUIDS.": <STRONG class=\"admin_misc\">".str_replace(";", ", ", $bonus[3])."</STRONG>)
- </TD>
- <TD align=\"center\" class=\"top bottom right\">
- ".USERS_LINKS.":<br />
- <STRONG class=\"admin_misc\">".$unconfirmed."</STRONG>
- </TD>
- <TD align=\"center\" class=\"top bottom\">
- ".EMAIL_POOL_TYPE.":<br />
- <STRONG class=\"admin_misc\">".GET_POOL_TYPE($bonus[6])."</STRONG>
- </TD>
-</TR>
-<TR><TD height=\"5\" colspan=\"3\"></TD></TR>
-<TR>
- <TD align=\"center\" class=\"top right\">
- ".EMAIL_TSEND.":<br />
- <STRONG class=\"admin_misc\">".$bonus[10]."</STRONG>
- </TD>
- <TD align=\"center\" class=\"top right\">
- ".EMAIL_URL.":<br />
- <STRONG class=\"admin_misc\"><A href=\"".FRAMETESTER($bonus[8])."\" target=\"_blank\">".EMAIL_URL_TEST."</A></STRONG>
- </TD>
- <TD align=\"center\" class=\"top\">
- ".EMAIL_TIMESTAMP.":<br />
- <STRONG class=\"admin_misc\">".MAKE_DATETIME($bonus[7], "0")."</STRONG>
- </TD>
-</TR>
-<TR>
- <TD align=\"center\" class=\"top2 admin_del_link\" colspan=\"3\">
- <A href=\"".URL."/modules.php?module=admin&what=del_email&bid=".$bonus[0]."\">".ADMIN_DELETE_BONUS_MAIL."</A>
- </TD>
-</TR>");
- }
+ $bonus['unconfirmed'] = "<strong><a href=\"{%url=modules.php?module=admin&what=list_unconfirmed&bid=" . $bonus['id'] . "%}\">" . $bonus['unconfirmed'] . "</a></strong>";
+ } // END - if
+
+ // Prepare content
+ $content = $bonus;
+ $content['time'] = createFancyTime($content['time']);
+ $content['category'] = getCategory($content['cat_id']);
+ $content['receivers'] = convertReceivers($content['receivers']);
+ $content['type'] = translatePoolType($content['data_type']);
+ $content['frametester'] = generateFrametesterUrl($content['url']);
+ $content['timestamp'] = generateDateTime($content['timestamp'], 0);
+
+ // Load row template
+ $OUT .= loadTemplate('admin_list_bonus_emails_row', true, $content);
+ } // END - while