41 lines
1.7 KiB
PHP
41 lines
1.7 KiB
PHP
<?php
|
|
include_once("../../../inc/admin.inc.php");
|
|
include_once("../../../inc/class.php");
|
|
include_once("../../../inc/admin.smarty.php");
|
|
include_once("../../../inc/admin.power.php");
|
|
//if($GG['key']){
|
|
// $where = " WHERE (c.NickName like '%".$GG['key']."%' or c.GameID like '%".$GG['key']."%')";
|
|
//}
|
|
if($GG['elid']){
|
|
$db->update('QPPlatformManagerDB.dbo.ExchangeLog',['Echeck'=>1],"Elid='".$GG['elid']."'");
|
|
}
|
|
$sql = "select a.*,convert(char,a.Eldate,120) as Date,b.Epy,b.Etitle,c.UserID,c.GameID,c.NickName,c.Gender,d.HeadHttp from QPPlatformManagerDB.dbo.ExchangeLog as a LEFT JOIN QPPlatformManagerDB.dbo.ExchangeInfo as b ON(a.Eid=b.Eid) LEFT JOIN AccountsInfo AS c ON(a.GameID=c.GameID) LEFT JOIN IndividualDatum as d ON(c.UserID=d.UserID) ".$where." order by Elid desc";
|
|
$data = $db->page([
|
|
"sql"=>$sql,
|
|
"count"=>"select count(*) from QPPlatformManagerDB.dbo.ExchangeLog ".str_ireplace("a.","",$where)." ",
|
|
"key"=>"Elid",
|
|
"table"=>"QPPlatformManagerDB.dbo.ExchangeLog",
|
|
"where"=>str_ireplace("a.","",$where),
|
|
"order"=>"Elid desc",
|
|
"page"=>$GG['page'],
|
|
"pageSize"=>$GG['pagelist'] ? $GG['pagelist'] : 30
|
|
]);
|
|
if($data['data']){
|
|
foreach($data['data'] as $k=>$v){
|
|
$info[$k] = $v;
|
|
$info[$k]['HeadHttp'] = $info[$k]['HeadHttp'] ? substr($info[$k]['HeadHttp'],0,-1).'46' : '';
|
|
$info[$k]['Date'] = strtotime($info[$k]['Date']);
|
|
}
|
|
}
|
|
//print_r($info);
|
|
//exit;
|
|
$ppxq -> register_function('timename','timename');
|
|
$ppxq -> assign('Pagenum',pages());
|
|
$ppxq -> assign('data',$info);
|
|
$ppxq -> assign('Link',"pagelist=".$GG['pagelist']."&username=".$GG['username']."&order=".$GG['order']);
|
|
$ppxq -> assign('Pages',$data['page']);
|
|
$ppxq -> assign('GG',$GG);
|
|
$ppxq -> display('user/dh-log.tpl');
|
|
$db->close();
|
|
unset($GG,$ppxq,$db);
|
|
?>
|