工会web
This commit is contained in:
50
GonghuiWeb/www/adminxx/user/gh-gold.php
Normal file
50
GonghuiWeb/www/adminxx/user/gh-gold.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?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['gid']){
|
||||
$where = " where b.GameID = '".$GG['gid']."'";
|
||||
}elseif($GG['uid']){
|
||||
$where = " where a.UnionID = '".$GG['uid']."'";
|
||||
}
|
||||
|
||||
if($GG['order'] == 'fk'){
|
||||
$order = "OperCard desc";
|
||||
}else{
|
||||
$order = "UnionGoldID 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.GameUnionGold 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.GameUnionGold ".str_ireplace("b.","",$where)." ",
|
||||
"key"=>"UnionGoldID",
|
||||
"table"=>"QPTreasureDB.dbo.GameUnionGold",
|
||||
"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-gold.tpl');
|
||||
$db->close();
|
||||
unset($GG,$ppxq,$db);
|
||||
?>
|
||||
Reference in New Issue
Block a user