$OUT = ""; $SW = 2;
while (list($tid, $uid, $points, $reason, $stamp) = SQL_FETCHROW($result)) {
if ($type == "OUT") $points = "$points-";
- $OUT .= "<TR>
- <TD class=\"transfer_row1 switch_sw".$SW." bottom2 right2\">
+ $OUT .= "<tr>
+ <td class=\"transfer_row1 switch_sw".$SW." bottom2 right2\">
<div class=\"transfer_row1\">".$tid."</div>
- </TD>
- <TD class=\"transfer_row2 switch_sw".$SW." bottom2 right2\">
+ </td>
+ <td class=\"transfer_row2 switch_sw".$SW." bottom2 right2\">
<div class=\"transfer_row2\">".MAKE_DATETIME($stamp, "3")."</div>
- </TD>
- <TD class=\"transfer_row3 switch_sw".$SW." bottom2 right2\">
+ </td>
+ <td class=\"transfer_row3 switch_sw".$SW." bottom2 right2\">
<div class=\"transfer_row3\">".$uid."</div>
- </TD>
- <TD class=\"transfer_row4 switch_sw".$SW." bottom2 right2\">
+ </td>
+ <td class=\"transfer_row4 switch_sw".$SW." bottom2 right2\">
<div class=\"transfer_row4\">".$reason."</div>
- </TD>
- <TD class=\"transfer_row5 switch_sw".$SW." bottom2\">
+ </td>
+ <td class=\"transfer_row5 switch_sw".$SW." bottom2\">
<div class=\"transfer_row5\">".$points."</div>
- </TD>
-</TR>\n";
+ </td>
+</tr>\n";
$total += $points;
$SW = 3 - $SW;
}
SQL_FREERESULT($result);
} else {
// Nothing for in or out
- $OUT = "<TR>
- <TD colspan=\"5\" align=\"center\" class=\"bottom2\" height=\"70\">
+ $OUT = "<tr>
+ <td colspan=\"5\" align=\"center\" class=\"bottom2\" height=\"70\">
".LOAD_TEMPLATE("admin_settings_saved", true, $NOTHING)."
- </TD>
-</TR>";
+ </td>
+</tr>";
}
// ... and add them to a constant for the template
$result = SQL_QUERY("SELECT party_uid, trans_id, points, reason, time_trans, trans_type FROM "._MYSQL_PREFIX."_transfers_tmp ORDER BY time_trans DESC", __FILE__, __LINE__);
while(list($uid, $idx, $points, $reason, $stamp, $type) = SQL_FETCHROW($result)) {
if ($type == "OUT") $points = "-$points";
- $OUT .= "<TR>
- <TD class=\"transfer_row1 switch_sw".$SW." bottom2 right2\">
+ $OUT .= "<tr>
+ <td class=\"transfer_row1 switch_sw".$SW." bottom2 right2\">
<div class=\"transfer_row1\">".$idx."</div>
- </TD>
- <TD class=\"transfer_row2 switch_sw".$SW." bottom2 right2\">
+ </td>
+ <td class=\"transfer_row2 switch_sw".$SW." bottom2 right2\">
<div class=\"transfer_row2\">".MAKE_DATETIME($stamp, "3")."</div>
- </TD>
- <TD class=\"transfer_row3 switch_sw".$SW." bottom2 right2\">
+ </td>
+ <td class=\"transfer_row3 switch_sw".$SW." bottom2 right2\">
<div class=\"transfer_row3\">".$uid."</div>
- </TD>
- <TD class=\"transfer_row4 switch_sw".$SW." bottom2 right2\">
+ </td>
+ <td class=\"transfer_row4 switch_sw".$SW." bottom2 right2\">
<div class=\"transfer_row4\">".$reason."</div>
- </TD>
- <TD class=\"transfer_row5 switch_sw".$SW." bottom2\">
+ </td>
+ <td class=\"transfer_row5 switch_sw".$SW." bottom2\">
<div class=\"transfer_row5\">".$points."</div>
- </TD>
-</TR>\n";
+ </td>
+</tr>\n";
$total += $points;
$SW = 3 - $SW;
}
SQL_FREERESULT($result);
} else {
// Nothing for in and out
- $OUT = "<TR>
- <TD colspan=\"5\" align=\"center\" class=\"bottom2\" height=\"70\">
+ $OUT = "<tr>
+ <td colspan=\"5\" align=\"center\" class=\"bottom2\" height=\"70\">
".LOAD_TEMPLATE("admin_settings_saved", true, TRANSFER_NO_INOUT_TRANSFERS)."
- </TD>
-</TR>";
+ </td>
+</tr>";
}
// ... and add them to a constant for the template