forked from qqcdn/jieqi2.4_utf8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmysettlelog.php
32 lines (31 loc) · 1.68 KB
/
mysettlelog.php
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
<?php
define('JIEQI_MODULE_NAME', 'system');
require_once 'global.php';
jieqi_checklogin();
jieqi_getconfigs(JIEQI_MODULE_NAME, 'configs');
$jieqiTset['jieqi_contents_template'] = JIEQI_ROOT_PATH . '/templates/mysettlelog.html';
include_once JIEQI_ROOT_PATH . '/header.php';
jieqi_includedb();
$query = JieqiQueryHandler::getInstance('JieqiQueryHandler');
$jieqiPset = jieqi_get_pageset();
$sql = 'SELECT * FROM ' . jieqi_dbprefix('system_settlelog') . ' WHERE userid = ' . intval($_SESSION['jieqiUserId']) . ' ORDER BY logid DESC LIMIT ' . intval($jieqiPset['start']) . ', ' . intval($jieqiPset['rows']);
$query->execute($sql);
$settlerows = array();
$k = 0;
$growthmax = 0;
while ($row = $query->getRow()) {
$settlerows[$k] = jieqi_query_rowvars($row);
$k++;
}
$jieqiTpl->assign_by_ref('settlerows', $settlerows);
$jieqiTpl->assign('_request', jieqi_funtoarray('jieqi_htmlstr', $_REQUEST));
$channelerate = isset($jieqiConfigs['system']['channelerate']) ? $jieqiConfigs['system']['channelerate'] : 0;
$jieqiTpl->assign('channelerate', $channelerate);
$channeldlimit = isset($jieqiConfigs['system']['channeldlimit']) && is_numeric($jieqiConfigs['system']['channeldlimit']) ? intval($jieqiConfigs['system']['channeldlimit']) : 0;
$jieqiTpl->assign('channeldlimit', $channeldlimit);
$exchangerate = isset($jieqiConfigs['system']['exchangerate']) ? $jieqiConfigs['system']['exchangerate'] : 0;
$jieqiTpl->assign('exchangerate', $exchangerate);
$settlemin = isset($jieqiConfigs['system']['settlemin']) && is_numeric($jieqiConfigs['system']['settlemin']) ? $jieqiConfigs['system']['settlemin'] : 0;
$jieqiTpl->assign('settlemin', $settlemin);
$jieqiTpl->setCaching(0);
include_once JIEQI_ROOT_PATH . '/footer.php';