/[LeafOK_CVS]/fenglin/bbs/themes/default/score_detail.view.php
ViewVC logotype

Contents of /fenglin/bbs/themes/default/score_detail.view.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations)
Fri Apr 25 07:25:35 2025 UTC (10 months, 3 weeks ago) by sysadm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
Rename member_service_guide to user_center_header

1 <?php
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="<?= get_theme_file('css/default'); ?>" type="text/css">
13 </head>
14 <body>
15 <?php
16 include get_theme_file("view/user_center_header");
17 ?>
18 <center>
19 <p style="FONT-WEIGHT: bold; FONT-SIZE: 16px; COLOR: red; FONT-FAMILY: 楷体">
20 积分余额
21 </p>
22 <table cols="3" border="1" cellpadding="8" cellspacing="0" width="1050" bgcolor="#ffdead">
23 <tr>
24 <td colspan="3">
25 目前剩余积分:<span style="color:red;font-style:italic;"><?= $result_set["data"]["score"]; ?></span>
26 </td>
27 </tr>
28 <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 <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 <?php
47 foreach ($result_set["data"]["transactions"] as $transaction)
48 {
49 ?>
50 <tr>
51 <td align="middle">
52 <?= $transaction["dt"]->format("Y-m-d H:i:s"); ?>
53 </td>
54 <td align="middle" style="color: <?= ($transaction["amount"] < 0 ? "red" : "green"); ?>;">
55 <?= $transaction["amount"]; ?>
56 </td>
57 <td>
58 <?= $transaction["reason"]; ?>
59 </td>
60 </tr>
61 <?php
62 }
63 ?>
64 </table>
65 </center>
66 </body>
67 </html>

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1