OtherMain.php 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <?php
  2. define('EmpireCMSAdmin','1');
  3. require("../../class/connect.php");
  4. require("../../class/db_sql.php");
  5. require("../../class/functions.php");
  6. require("../../member/class/user.php");
  7. $link=db_connect();
  8. $empire=new mysqlquery();
  9. $editor=1;
  10. //验证用户
  11. $lur=is_login();
  12. $logininid=$lur['userid'];
  13. $loginin=$lur['username'];
  14. $loginrnd=$lur['rnd'];
  15. $loginlevel=$lur['groupid'];
  16. $loginadminstyleid=$lur['adminstyleid'];
  17. //ehash
  18. $ecms_hashur=hReturnEcmsHashStrAll();
  19. //验证权限
  20. //CheckLevel($logininid,$loginin,$classid,"pl");
  21. $todaydate=date('Y-m-d');
  22. $yesterday=date('Y-m-d',time()-24*3600);
  23. //会员
  24. $membertb=eReturnMemberTable();
  25. $checkmembernum=$empire->gettotal("select count(*) as total from ".$membertb." where ".egetmf('checked')."=0");
  26. $allmembernum=eGetTableRowNum($membertb);
  27. //管理员
  28. $adminnum=eGetTableRowNum($dbtbpre.'enewsuser');
  29. //订单
  30. $showshopmenu=stristr($public_r['closehmenu'],',shop,')?0:1;
  31. if($showshopmenu)
  32. {
  33. $allddnum=eGetTableRowNum($dbtbpre.'enewsshopdd');
  34. $todayddnum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsshopdd where ddtime>='".$todaydate." 00:00:00' and ddtime<='".$todaydate." 23:59:59' limit 1");
  35. $yesterdayddnum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsshopdd where ddtime>='".$yesterday." 00:00:00' and ddtime<='".$yesterday." 23:59:59' limit 1");
  36. }
  37. //留言
  38. $allgbooknum=eGetTableRowNum($dbtbpre.'enewsgbook');
  39. $checkgbooknum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsgbook where checked=1");
  40. //反馈
  41. $allfeedbacknum=eGetTableRowNum($dbtbpre.'enewsfeedback');
  42. $noreadfeedbacknum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsfeedback where haveread=0");
  43. //广告
  44. $alladnum=eGetTableRowNum($dbtbpre.'enewsad');
  45. $outtimeadnum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsad where endtime<'$todaydate' and endtime<>'0000-00-00'");
  46. //错误报告
  47. $errornum=eGetTableRowNum($dbtbpre.'enewsdownerror');
  48. //友情链接
  49. $sitelinknum=eGetTableRowNum($dbtbpre.'enewslink');
  50. ?>
  51. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  52. <html>
  53. <head>
  54. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  55. <title>统计</title>
  56. <link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
  57. <script>
  58. function OpenShopSysDdPage(){
  59. 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','');
  60. }
  61. </script>
  62. </head>
  63. <body>
  64. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  65. <tr>
  66. <td>位置:<a href="OtherMain.php<?=$ecms_hashur['whehref']?>">其他统计</a></td>
  67. </tr>
  68. </table>
  69. <br>
  70. <table width="100%" border="0" cellspacing="1" cellpadding="0">
  71. <tr>
  72. <td width="10%" height="25" bgcolor="#C9F1FF"><div align="center"><a href="../info/InfoMain.php<?=$ecms_hashur['whehref']?>">信息统计</a></div></td>
  73. <td width="10%" bgcolor="#C9F1FF"><div align="center"><a href="../pl/PlMain.php<?=$ecms_hashur['whehref']?>">评论统计</a></div></td>
  74. <td width="10%" class="header"><div align="center"><a href="../other/OtherMain.php<?=$ecms_hashur['whehref']?>">其他统计</a></div></td>
  75. <td width="58%">&nbsp;</td>
  76. <td width="6%">&nbsp;</td>
  77. <td width="6%">&nbsp;</td>
  78. </tr>
  79. </table>
  80. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  81. <tr class="header">
  82. <td height="25" colspan="2">其他统计</td>
  83. </tr>
  84. <tr bgcolor="#FFFFFF">
  85. <td width="18%" height="25">
  86. <div align="center"><strong>会员</strong></div></td>
  87. <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>
  88. </tr>
  89. <tr bgcolor="#C3EFFF">
  90. <td height="25"><div align="center"><strong>管理员</strong></div></td>
  91. <td align="right"><div align="left">管理员总数:<a href="../user/ListUser.php<?=$ecms_hashur['whehref']?>" target="_blank"><?=$adminnum?></a></div></td>
  92. </tr>
  93. <?php
  94. if($showshopmenu)
  95. {
  96. ?>
  97. <tr bgcolor="#FFFFFF">
  98. <td height="25"><div align="center"><strong>商城订单</strong></div></td>
  99. <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>
  100. </tr>
  101. <?php
  102. }
  103. ?>
  104. <tr bgcolor="#C3EFFF">
  105. <td height="25"><div align="center"><strong>留言</strong></div></td>
  106. <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>
  107. </tr>
  108. <tr bgcolor="#FFFFFF">
  109. <td height="25"><div align="center"><strong>反馈</strong></div></td>
  110. <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>
  111. </tr>
  112. <tr bgcolor="#C3EFFF">
  113. <td height="25"><div align="center"><strong>广告</strong></div></td>
  114. <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>
  115. </tr>
  116. <tr bgcolor="#FFFFFF">
  117. <td height="25"><div align="center"><strong>错误报告</strong></div></td>
  118. <td align="right"><div align="left">错误报告数:<a href="../DownSys/ListError.php<?=$ecms_hashur['whehref']?>" target="_blank"><?=$errornum?></a></div></td>
  119. </tr>
  120. <tr bgcolor="#C3EFFF">
  121. <td height="25"><div align="center"><strong>友情链接</strong></div></td>
  122. <td align="right"><div align="left">友情链接数:<a href="../tool/ListLink.php<?=$ecms_hashur['whehref']?>" target="_blank"><?=$sitelinknum?></a></div></td>
  123. </tr>
  124. </table>
  125. <table width="100%" border="0" cellspacing="1" cellpadding="3">
  126. <tr>
  127. <td height="23"><font color="#666666">说明:点击“数量”可进入相应的管理。</font></td>
  128. </tr>
  129. </table>
  130. </body>
  131. </html>
  132. <?php
  133. db_close();
  134. $empire=null;
  135. ?>