51 lines
1.9 KiB
PHP
51 lines
1.9 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");
|
|||
|
|
include_once("../../../inc/ip.php");
|
|||
|
|
|
|||
|
|
if($GG['del']){//ɾ<><C9BE><EFBFBD><EFBFBD>־
|
|||
|
|
$db->deldate("QPTreasureDB.dbo.GameUnionCard","UnionCardID='".$GG['del']."'");
|
|||
|
|
}
|
|||
|
|
if($GG['gid']){
|
|||
|
|
$where = " where b.GameID = '".$GG['gid']."'";
|
|||
|
|
}
|
|||
|
|
if($GG['order'] == 'fk'){
|
|||
|
|
$order = "OperCard desc";
|
|||
|
|
}else{
|
|||
|
|
$order = "UnionCardID desc";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
$sql = "select a.*,b.GameID,b.NickName,b.WXShareTimes,b.Gender,b.SpreaderID,c.HeadHttp,d.UnionName,d.UnionCode,d.UnionGoldOpen,d.UnionCard,d.People,d.GameHit,convert(char,a.InsertTime,120) as Date from QPTreasureDB.dbo.GameUnionCard as a LEFT JOIN AccountsInfo AS b ON(a.UserID=b.UserID) LEFT JOIN IndividualDatum as c ON(a.UserID=c.UserID) LEFT JOIN QPTreasureDB.dbo.GameUnion As d ON(a.UnionID=d.UnionID) ".$where." order by ".$order;
|
|||
|
|
|
|||
|
|
$data = $db->page([
|
|||
|
|
"sql"=>$sql,
|
|||
|
|
"count"=>"select count(*) from QPTreasureDB.dbo.GameUnionCard ".str_ireplace("b.","",$where)." ",
|
|||
|
|
"key"=>"UnionCardID",
|
|||
|
|
"table"=>"QPTreasureDB.dbo.GameUnionCard",
|
|||
|
|
"where"=>str_ireplace("b.","",$where),
|
|||
|
|
"order"=>$order,
|
|||
|
|
"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'];
|
|||
|
|
$info[$k]['Date'] = strtotime($info[$k]['Date']);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
//print_r($info);
|
|||
|
|
//exit;
|
|||
|
|
$ppxq -> register_function('timename','timename');
|
|||
|
|
$ppxq -> register_function('convertip','convertip');
|
|||
|
|
$ppxq -> assign('Pagenum',pages());
|
|||
|
|
$ppxq -> assign('data',$info);
|
|||
|
|
$ppxq -> assign('Link',"pagelist=".$GG['pagelist']."&dj=".$GG['dj']."&&username=".$GG['username']."&order=".$GG['order']);
|
|||
|
|
$ppxq -> assign('Pages',$data['page']);
|
|||
|
|
$ppxq -> assign('GG',$GG);
|
|||
|
|
$ppxq -> display('user/gh-rec.tpl');
|
|||
|
|
$db->close();
|
|||
|
|
unset($GG,$ppxq,$db);
|
|||
|
|
?>
|