工会web
This commit is contained in:
55
GonghuiWeb/www/adminxx/user/count.php
Normal file
55
GonghuiWeb/www/adminxx/user/count.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
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['order'] == 'dl'){
|
||||
$order = "GameLogonSuccess desc";
|
||||
}elseif($GG['order'] == 'hy'){
|
||||
$order = "ActiveUserNum desc";
|
||||
}elseif($GG['order'] == 'zc'){
|
||||
$order = "GameRegisterSuccess desc";
|
||||
}elseif($GG['order'] == 'zkf'){
|
||||
$order = "ConsumeScore desc";
|
||||
}elseif($GG['order'] == 'kf0'){
|
||||
$order = "GameRule0Num desc";
|
||||
}elseif($GG['order'] == 'kf1'){
|
||||
$order = "GameRule1Num desc";
|
||||
}elseif($GG['order'] == 'kf2'){
|
||||
$order = "GameRule2Num desc";
|
||||
}else{
|
||||
$order = "DateID desc";
|
||||
}
|
||||
$table = "SystemStreamInfo";
|
||||
$sql = "select *,convert(char,CollectDate,120) as Date from SystemStreamInfo ".$where." order by ".$order;
|
||||
$count = "select count(*) from ".$table." ".str_ireplace("a.","",$where);
|
||||
$data = $db->page([
|
||||
"sql"=>$sql,
|
||||
"count"=>$count,
|
||||
"key"=>"DateID",
|
||||
"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 -> assign('Week',['<font color=red>ÈÕ</font>','Ò»','¶þ','Èý','ËÄ','Îå','<font color=red>Áù</font>']);
|
||||
$ppxq -> display('user/count.tpl');
|
||||
$db->close();
|
||||
unset($GG,$ppxq,$db);
|
||||
?>
|
||||
Reference in New Issue
Block a user