45 lines
1.7 KiB
PHP
45 lines
1.7 KiB
PHP
|
|
<?php
|
||
|
|
//ini_set('display_errors','On');
|
||
|
|
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['del']){
|
||
|
|
$db->query("TRUNCATE TABLE ErrorUnion");
|
||
|
|
echo "<script>location.href='jcgh.php';</script>";
|
||
|
|
exit;
|
||
|
|
}
|
||
|
|
$sql = "select a.*,convert(char,a.DateTime,120) as Date,e.UserID,e.UnionName,e.UnionGoldOpen,e.UnionCode,c.GameID,c.NickName,c.SpreaderID,c.WXShareTimes,c.Gender,c.LastLogonIP,c.RegisterIP,c.Remark,b.HeadHttp from ErrorUnion as a LEFT JOIN QPTreasureDB.dbo.GameUnion as e ON(a.UnionID=e.UnionID) LEFT JOIN IndividualDatum as b ON(e.UserID=b.UserID) LEFT JOIN AccountsInfo AS c ON(e.UserID=c.UserID) LEFT JOIN QPTreasureDB.dbo.GameScoreInfo As d ON(e.UserID=d.UserID) order by EUid desc";
|
||
|
|
$data = $db->page([
|
||
|
|
"sql"=>$sql,
|
||
|
|
"count"=>"select count(*) from ErrorUnion ".str_ireplace("a.","",$where),
|
||
|
|
"key"=>"EUid",
|
||
|
|
"table"=>"ErrorUnion",
|
||
|
|
"where"=>str_ireplace("a.","",$where),
|
||
|
|
"order"=>"EUid desc",
|
||
|
|
"page"=>$GG['page'],
|
||
|
|
"pageSize"=>$GG['pagelist'] ? $GG['pagelist'] : 100
|
||
|
|
]);
|
||
|
|
if($data['data']){
|
||
|
|
foreach($data['data'] as $k => $v){
|
||
|
|
$info[$k] = $v;
|
||
|
|
$info[$k]['data'] = json_decode($v['Error'],true);
|
||
|
|
$info[$k]['Date'] = strtotime($info[$k]['Date']);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
//print_r($data);
|
||
|
|
//exit;
|
||
|
|
$ppxq -> register_function('timename','timename');
|
||
|
|
$ppxq -> assign('data',$info);
|
||
|
|
$ppxq -> assign('Pagenum',pages());
|
||
|
|
$ppxq -> assign('Link',"pagelist=".$GG['pagelist']."&kid=".$GG['kid']."&key=".$GG['key']."&order=".$GG['order']);
|
||
|
|
$ppxq -> assign('Pages',$data['page']);
|
||
|
|
$ppxq -> assign('GG',$GG);
|
||
|
|
$ppxq -> display('user/jcgh.tpl');
|
||
|
|
$db->close();
|
||
|
|
unset($GG,$ppxq,$db);
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
?>
|