工会web
This commit is contained in:
52
GonghuiWeb/www/adminxx/user/bug.php
Normal file
52
GonghuiWeb/www/adminxx/user/bug.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");
|
||||
if($GG['del']){
|
||||
$db->deldate("QPTreasureDB.dbo.PayToPlayerLog","ID='".$GG['del']."'");
|
||||
}
|
||||
if($GG['order'] == 'sy'){
|
||||
$order = "OperNum desc";
|
||||
}elseif($GG['order'] == 'dl'){
|
||||
$order = "CurNum desc";
|
||||
}elseif($GG['order'] == 'qi'){
|
||||
$order = "ToCurNum desc";
|
||||
}else{
|
||||
$order = "ID desc";
|
||||
}
|
||||
if($GG['key']){
|
||||
$where = " where a.UserID='".$GG['key']."' or a.ToID='".$GG['key']."'";
|
||||
}
|
||||
$table = "QPTreasureDB.dbo.PayToPlayerLog";
|
||||
$sql = "select a.*,convert(char,a.InsertTime,120) as Date,b.GameID,b.NickName,c.GameID as CGameID,c.NickName as CNickName from QPTreasureDB.dbo.PayToPlayerLog as a LEFT JOIN AccountsInfo as b ON(a.UserID=b.UserID) LEFT JOIN AccountsInfo as c ON(a.ToID=c.UserID) ".$where." order by ".$order;
|
||||
$count = "select count(*) from ".$table." ".str_ireplace("a.","",$where);
|
||||
$data = $db->page([
|
||||
"sql"=>$sql,
|
||||
"count"=>$count,
|
||||
"key"=>"ID",
|
||||
"table"=>$table,
|
||||
"where"=>str_ireplace("a.","",$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]['OperCount'] = abs($v['OperCount']);
|
||||
}
|
||||
}
|
||||
//print_r($data);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']."&sotype=".$GG['sotype']."&key=".$GG['key']."&order=".$GG['order']);
|
||||
$ppxq -> assign('Pages',$data['page']);
|
||||
$ppxq -> assign('GG',$GG);
|
||||
$ppxq -> display('user/bug.tpl');
|
||||
$db->close();
|
||||
unset($GG,$ppxq,$db);
|
||||
?>
|
||||
Reference in New Issue
Block a user