-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintegral.php
More file actions
26 lines (22 loc) · 792 Bytes
/
integral.php
File metadata and controls
26 lines (22 loc) · 792 Bytes
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
<?php
/**
* Created by PhpStorm.
* User: apple
* Date: 15/9/16
* Time: 上午1:54
*/
include 'library/init.inc.php';
//获取用户信息
$get_user_info = 'select * from '.$db->table('member').' where `account`=\''.$_SESSION['account'].'\'';
$user_info = $db->fetchRow($get_user_info);
assign('user_info', $user_info);
//获取明细
$get_member_exchange = 'select * from '.$db->table('member_exchange_log').' where `account`=\''.$_SESSION['account'].
'\' and `integral`<>0 order by `add_time` DESC';
$member_exchange = $db->fetchAll($get_member_exchange);
assign('member_exchange', $member_exchange);
assign('mode', 'integral');
assign('unit', '分');
assign('notice', '小积分大作用');
assign('title', '我的积分');
$smarty->display('points.phtml');