工会web
This commit is contained in:
52
GonghuiWeb/www/adminxx/user/agent.php
Normal file
52
GonghuiWeb/www/adminxx/user/agent.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?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");
|
||||
$db->links();
|
||||
if($GG['order'] == 'xf'){
|
||||
$order = "ConsumeScore desc";
|
||||
}elseif($GG['order'] == 'sy'){
|
||||
$order = "InsureScore desc";
|
||||
}elseif($GG['order'] == 'cz'){
|
||||
$order = "AgentMoney desc";
|
||||
}elseif($GG['order'] == 'jy'){
|
||||
$order = "Grade desc";
|
||||
}elseif($GG['order'] == 'jf'){
|
||||
$order = "Zjf desc";
|
||||
}else{
|
||||
$order = "InsureScore asc";
|
||||
}
|
||||
$where = " where c.SpreaderID='1'";
|
||||
$data = $db->page([
|
||||
"sql"=>"select a.UserID,a.AgentMoney,c.GameID,c.NickName,c.SpreaderID,c.WXShareTimes,c.Gender,c.LastLogonIP,c.RegisterIP,c.Remark,b.HeadHttp,d.UnionName,a.ConsumeScore,a.InsureScore,a.PlayCount,a.Grade,a.Zjf,convert(char,a.RegisterDate,120) as RegDate,convert(char,a.LastLogonDate,120) as LastDate from QPTreasureDB.dbo.GameScoreInfo as a LEFT JOIN IndividualDatum as b ON(a.UserID=b.UserID) LEFT JOIN AccountsInfo AS c ON(a.UserID=c.UserID) LEFT JOIN QPTreasureDB.dbo.GameUnion As d ON(a.UnionID=d.UnionID) ".$where." order by ".$order,
|
||||
"count"=>"select count(*) from AccountsInfo ".str_ireplace("c.","",$where),
|
||||
"key"=>"UserID",
|
||||
"table"=>"AccountsInfo",
|
||||
"where"=>str_ireplace("c.","",$where),
|
||||
"order"=>$order,
|
||||
"page"=>$GG['page'],
|
||||
"pageSize"=>$GG['pagelist'] ? $GG['pagelist'] : 100
|
||||
]);
|
||||
if($data['data']){
|
||||
foreach($data['data'] as $k=>$v){
|
||||
$info[$k] = $v;
|
||||
$info[$k]['HeadHttp'] = $info[$k]['HeadHttp'];
|
||||
$info[$k]['LastDate'] = strtotime($info[$k]['LastDate']);
|
||||
$info[$k]['RegDate'] = strtotime($info[$k]['RegDate']);
|
||||
}
|
||||
}
|
||||
//print_r($data);
|
||||
//exit;
|
||||
$ppxq -> register_function('timename','timename');
|
||||
$ppxq -> register_function('convertip','convertip');
|
||||
$ppxq -> assign('Pagenum',pages(4));
|
||||
$ppxq -> assign('data',$info);
|
||||
$ppxq -> assign('Link',"pagelist=".$GG['pagelist']."&sotype=".$GG['sotype']."&key=".$GG['key']."&order=".$GG['order']);
|
||||
$ppxq -> assign('Pages',$data['page']);
|
||||
$ppxq -> assign('GG',$GG);
|
||||
$ppxq -> display('user/agent.tpl');
|
||||
$db->close();
|
||||
unset($GG,$ppxq,$db);
|
||||
?>
|
||||
Reference in New Issue
Block a user