OtherMain.php
6.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?php
define('EmpireCMSAdmin','1');
require("../../class/connect.php");
require("../../class/db_sql.php");
require("../../class/functions.php");
require("../../member/class/user.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
//驗證用戶
$lur=is_login();
$logininid=$lur['userid'];
$loginin=$lur['username'];
$loginrnd=$lur['rnd'];
$loginlevel=$lur['groupid'];
$loginadminstyleid=$lur['adminstyleid'];
//ehash
$ecms_hashur=hReturnEcmsHashStrAll();
//驗證權限
//CheckLevel($logininid,$loginin,$classid,"pl");
$todaydate=date('Y-m-d');
$yesterday=date('Y-m-d',time()-24*3600);
//會員
$membertb=eReturnMemberTable();
$checkmembernum=$empire->gettotal("select count(*) as total from ".$membertb." where ".egetmf('checked')."=0");
$allmembernum=eGetTableRowNum($membertb);
//管理員
$adminnum=eGetTableRowNum($dbtbpre.'enewsuser');
//訂單
$showshopmenu=stristr($public_r['closehmenu'],',shop,')?0:1;
if($showshopmenu)
{
$allddnum=eGetTableRowNum($dbtbpre.'enewsshopdd');
$todayddnum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsshopdd where ddtime>='".$todaydate." 00:00:00' and ddtime<='".$todaydate." 23:59:59' limit 1");
$yesterdayddnum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsshopdd where ddtime>='".$yesterday." 00:00:00' and ddtime<='".$yesterday." 23:59:59' limit 1");
}
//留言
$allgbooknum=eGetTableRowNum($dbtbpre.'enewsgbook');
$checkgbooknum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsgbook where checked=1");
//反饋
$allfeedbacknum=eGetTableRowNum($dbtbpre.'enewsfeedback');
$noreadfeedbacknum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsfeedback where haveread=0");
//廣告
$alladnum=eGetTableRowNum($dbtbpre.'enewsad');
$outtimeadnum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsad where endtime<'$todaydate' and endtime<>'0000-00-00'");
//錯誤報告
$errornum=eGetTableRowNum($dbtbpre.'enewsdownerror');
//友情鏈接
$sitelinknum=eGetTableRowNum($dbtbpre.'enewslink');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>統計</title>
<link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
<script>
function OpenShopSysDdPage(){
window.open('../openpage/AdminPage.php?leftfile=<?=urlencode('../ShopSys/pageleft.php'.$ecms_hashur['whehref'])?>&mainfile=<?=urlencode('../ShopSys/ListDd.php'.$ecms_hashur['whehref'])?>&title=<?=urlencode('商城系統管理')?><?=$ecms_hashur['ehref']?>','AdminShopSys','');
}
</script>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
<tr>
<td>位置:<a href="OtherMain.php<?=$ecms_hashur['whehref']?>">其他統計</a></td>
</tr>
</table>
<br>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td width="10%" height="25" bgcolor="#C9F1FF"><div align="center"><a href="../info/InfoMain.php<?=$ecms_hashur['whehref']?>">信息統計</a></div></td>
<td width="10%" bgcolor="#C9F1FF"><div align="center"><a href="../pl/PlMain.php<?=$ecms_hashur['whehref']?>">評論統計</a></div></td>
<td width="10%" class="header"><div align="center"><a href="../other/OtherMain.php<?=$ecms_hashur['whehref']?>">其他統計</a></div></td>
<td width="58%"> </td>
<td width="6%"> </td>
<td width="6%"> </td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<tr class="header">
<td height="25" colspan="2">其他統計</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="18%" height="25">
<div align="center"><strong>會員</strong></div></td>
<td width="82%" align="right"><div align="left">待審核會員:<a href="../member/ListMember.php?sear=1&schecked=1<?=$ecms_hashur['ehref']?>" target="_blank"><?=$checkmembernum?></a>,會員總數:<a href="../member/ListMember.php<?=$ecms_hashur['whehref']?>" target="_blank"><?=$allmembernum?></a></div></td>
</tr>
<tr bgcolor="#C3EFFF">
<td height="25"><div align="center"><strong>管理員</strong></div></td>
<td align="right"><div align="left">管理員總數:<a href="../user/ListUser.php<?=$ecms_hashur['whehref']?>" target="_blank"><?=$adminnum?></a></div></td>
</tr>
<?php
if($showshopmenu)
{
?>
<tr bgcolor="#FFFFFF">
<td height="25"><div align="center"><strong>商城訂單</strong></div></td>
<td align="right"><div align="left">今天訂單數:<a href="#empirecms" onclick="OpenShopSysDdPage();"><?=$todayddnum?></a>,昨日訂單數:<a href="#empirecms" onclick="OpenShopSysDdPage();"><?=$yesterdayddnum?></a>,總訂單數:<a href="#empirecms" onclick="OpenShopSysDdPage();"><?=$allddnum?></a></div></td>
</tr>
<?php
}
?>
<tr bgcolor="#C3EFFF">
<td height="25"><div align="center"><strong>留言</strong></div></td>
<td align="right"><div align="left">待審核留言:<a href="../tool/gbook.php?sear=1&checked=2<?=$ecms_hashur['ehref']?>" target="_blank"><?=$checkgbooknum?></a>,總留言數:<a href="../tool/gbook.php<?=$ecms_hashur['whehref']?>" target="_blank"><?=$allgbooknum?></a></div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25"><div align="center"><strong>反饋</strong></div></td>
<td align="right"><div align="left">未查看反饋:<a href="../tool/feedback.php?sear=1&haveread=2<?=$ecms_hashur['ehref']?>" target="_blank"><?=$noreadfeedbacknum?></a>,總反饋數:<a href="../tool/feedback.php<?=$ecms_hashur['whehref']?>" target="_blank"><?=$allfeedbacknum?></a></div></td>
</tr>
<tr bgcolor="#C3EFFF">
<td height="25"><div align="center"><strong>廣告</strong></div></td>
<td align="right"><div align="left">過期廣告數:<a href="../tool/ListAd.php?time=1<?=$ecms_hashur['ehref']?>" target="_blank"><?=$outtimeadnum?></a>,總廣告數:<a href="../tool/ListAd.php<?=$ecms_hashur['whehref']?>" target="_blank"><?=$alladnum?></a></div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25"><div align="center"><strong>錯誤報告</strong></div></td>
<td align="right"><div align="left">錯誤報告數:<a href="../DownSys/ListError.php<?=$ecms_hashur['whehref']?>" target="_blank"><?=$errornum?></a></div></td>
</tr>
<tr bgcolor="#C3EFFF">
<td height="25"><div align="center"><strong>友情鏈接</strong></div></td>
<td align="right"><div align="left">友情鏈接數:<a href="../tool/ListLink.php<?=$ecms_hashur['whehref']?>" target="_blank"><?=$sitelinknum?></a></div></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td height="23"><font color="#666666">說明:點擊「數量」可進入相應的管理。</font></td>
</tr>
</table>
</body>
</html>
<?php
db_close();
$empire=null;
?>