1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?
/**
* 我的学员
* $Id: user_search_list.inc,v 1.1
* @author taocy
* @package src.admin.templates
*/
?>
<b>赠送积分</b><br /><br />
<table>
<tr>
<td>手机号码</td>
<td class="begin_blank"><?=htmlspecialchars($user_mst->mobile) ?></td>
</tr>
<tr>
<td>昵称</td>
<td class="begin_blank"><?=htmlspecialchars($user_mst->nickname) ?></td>
</tr>
</table>
<div style="clear:both"></div>
<div id="result_list" style="width:50%">
<?
if (!empty($user_point_log)) {
?>
<table >
<tr>
<th class="contents_title">ID</th>
<th class="contents_title">日期</th>
<th class="contents_title">名目</th>
<th class="contents_title">积分变动</th>
<th class="contents_title">积分余额</th>
</tr>
<?
foreach($user_point_log as $user_point) {
$plus = "";
if($user_point->point > 0) {
$plus = "+";
}
$action_title = PointActionType::getTitleById($user_point->action_type);
?>
<tr>
<td align="center"><?=$user_point->id ?></td>
<td align="center"><?=substr($user_point->registration_date,0,10)?></td>
<td align="center"><?=$action_title ?></td>
<td align="center"><?=$plus?><?=$user_point->point?></td>
<td align="center"><?=$user_point->point_left ?></td>
</tr>
<?
}
?>
</table>
<?
}
?>
</div>
<br />
<table>
<tr>
<td><a class="flatbutton" href="ocean_user_list.php">返回</a></td>
</tr>
</table>