| 1 |
sysadm |
1.1 |
<?
|
| 2 |
|
|
// Prevent load standalone
|
| 3 |
|
|
if (!isset($result_set))
|
| 4 |
|
|
{
|
| 5 |
|
|
exit();
|
| 6 |
|
|
}
|
| 7 |
|
|
?>
|
| 8 |
|
|
<html>
|
| 9 |
|
|
<head>
|
| 10 |
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
| 11 |
|
|
<title>账户积分</title>
|
| 12 |
|
|
<link rel="stylesheet" href="<? echo get_theme_file('css/default'); ?>" type="text/css">
|
| 13 |
|
|
</head>
|
| 14 |
|
|
<body>
|
| 15 |
|
|
<?
|
| 16 |
|
|
include get_theme_file("view/member_service_guide");
|
| 17 |
|
|
?>
|
| 18 |
|
|
<center>
|
| 19 |
|
|
<p style="FONT-WEIGHT: bold; FONT-SIZE: 16px; COLOR: red; FONT-FAMILY: 楷体">
|
| 20 |
|
|
积分余额
|
| 21 |
|
|
</p>
|
| 22 |
sysadm |
1.2 |
<table cols="3" border="1" cellpadding="8" cellspacing="0" width="1050" bgcolor="#ffdead">
|
| 23 |
sysadm |
1.1 |
<tr>
|
| 24 |
sysadm |
1.2 |
<td colspan="3">
|
| 25 |
sysadm |
1.1 |
目前剩余积分:<span style="color:red;font-style:italic;"><? echo $result_set["data"]["score"]; ?></span>
|
| 26 |
|
|
</td>
|
| 27 |
|
|
</tr>
|
| 28 |
sysadm |
1.2 |
<tr>
|
| 29 |
|
|
<td colspan="3">
|
| 30 |
|
|
<p style="FONT-WEIGHT: bold; FONT-SIZE: 16px; COLOR: red; FONT-FAMILY: 楷体">
|
| 31 |
|
|
积分变动明细(最近3年)
|
| 32 |
|
|
</p>
|
| 33 |
|
|
</td>
|
| 34 |
|
|
</tr>
|
| 35 |
sysadm |
1.1 |
<tr style="font-weight:bold;">
|
| 36 |
|
|
<td width="30%" align="middle">
|
| 37 |
|
|
时间
|
| 38 |
|
|
</td>
|
| 39 |
|
|
<td width="10%" align="middle">
|
| 40 |
|
|
数量
|
| 41 |
|
|
</td>
|
| 42 |
|
|
<td width="60%" align="center">
|
| 43 |
|
|
原因
|
| 44 |
|
|
</td>
|
| 45 |
|
|
</tr>
|
| 46 |
|
|
<?
|
| 47 |
|
|
foreach ($result_set["data"]["transactions"] as $transaction)
|
| 48 |
|
|
{
|
| 49 |
|
|
?>
|
| 50 |
|
|
<tr>
|
| 51 |
|
|
<td align="middle">
|
| 52 |
|
|
<? echo $transaction["dt"]->format("Y-m-d H:i:s"); ?>
|
| 53 |
|
|
</td>
|
| 54 |
|
|
<td align="middle" style="color: <? echo ($transaction["amount"] < 0 ? "red" : "green"); ?>;">
|
| 55 |
|
|
<? echo $transaction["amount"]; ?>
|
| 56 |
|
|
</td>
|
| 57 |
|
|
<td>
|
| 58 |
|
|
<? echo $transaction["reason"]; ?>
|
| 59 |
|
|
</td>
|
| 60 |
|
|
</tr>
|
| 61 |
|
|
<?
|
| 62 |
|
|
}
|
| 63 |
|
|
?>
|
| 64 |
|
|
</table>
|
| 65 |
|
|
</center>
|
| 66 |
|
|
</body>
|
| 67 |
|
|
</html>
|