55 lines
1.8 KiB
PHP
55 lines
1.8 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");
|
|||
|
|
|
|||
|
|
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><3E><></font>','һ','<27><>','<27><>','<27><>','<27><>','<font color=red><3E><></font>']);
|
|||
|
|
$ppxq -> display('user/count.tpl');
|
|||
|
|
$db->close();
|
|||
|
|
unset($GG,$ppxq,$db);
|
|||
|
|
?>
|