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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Mon Apr 14 02:14:40 2025 UTC (11 months ago) by sysadm
Branch: MAIN
Refact score_detail with theme support

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     <table cols="3" border="1" cellpadding="8" cellspacing="0" width="90%" bgcolor="#ffdead">
23     <tr>
24     <td colspan=3>
25     目前剩余积分:<span style="color:red;font-style:italic;"><? echo $result_set["data"]["score"]; ?></span>
26     </td>
27     </tr>
28     </table>
29     <p style="FONT-WEIGHT: bold; FONT-SIZE: 16px; COLOR: red; FONT-FAMILY: 楷体">
30     积分变动明细(最近3年)
31     </p>
32     <table cols="3" border="1" cellpadding="8" cellspacing="0" width="90%" bgcolor="#ffdead">
33     <tr style="font-weight:bold;">
34     <td width="30%" align="middle">
35     时间
36     </td>
37     <td width="10%" align="middle">
38     数量
39     </td>
40     <td width="60%" align="center">
41     原因
42     </td>
43     </tr>
44     <?
45     foreach ($result_set["data"]["transactions"] as $transaction)
46     {
47     ?>
48     <tr>
49     <td align="middle">
50     <? echo $transaction["dt"]->format("Y-m-d H:i:s"); ?>
51     </td>
52     <td align="middle" style="color: <? echo ($transaction["amount"] < 0 ? "red" : "green"); ?>;">
53     <? echo $transaction["amount"]; ?>
54     </td>
55     <td>
56     <? echo $transaction["reason"]; ?>
57     </td>
58     </tr>
59     <?
60     }
61     ?>
62     </table>
63     </center>
64     </body>
65     </html>

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