国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.3KB

  1. <?php
  2. /**
  3. * 流量统计列表
  4. *
  5. * @version $id:statchart.php 2024-04-15 xushubieli $
  6. * @package DedeBIZ.Administrator
  7. * @copyright Copyright (c) 2022 DedeBIZ.COM
  8. * @license GNU GPL v2 (https://www.dedebiz.com/license)
  9. * @link https://www.dedebiz.com
  10. */
  11. require_once(dirname(__FILE__)."/config.php");
  12. require_once(DEDEINC.'/datalistcp.class.php');
  13. //检查权限
  14. if ($id == 0 && $reid == 0) {
  15. CheckPurview('c_List');
  16. }
  17. if (empty($mobile)) $mobile = '';
  18. if ($dopost=="delete") {
  19. $ids = explode('`',$aids);
  20. $dquery = "";
  21. foreach ($ids as $id) {
  22. if ($dquery=="") $dquery .= "id='$id' ";
  23. else $dquery .= " OR id='$id' ";
  24. }
  25. if($dquery!="") $dquery = " WHERE ".$dquery;
  26. $dsql->ExecuteNoneQuery("DELETE FROM `#@__statistics_detail` $dquery");
  27. ShowMsg("成功删除指定的记录", "statchart.php");
  28. exit();
  29. } else {
  30. $addsql = " WHERE ip LIKE '%$ip%' ";
  31. $sql = "SELECT * FROM `#@__statistics_detail` $addsql ORDER BY id DESC";
  32. $dlist = new DataListCP();
  33. //文档列表数
  34. $dlist->pageSize = 30;
  35. $tplfile = DEDEADMIN."/templets/statchart.htm";
  36. $dlist->SetTemplate($tplfile); //载入模板
  37. $dlist->SetSource($sql); //设定查询SQL
  38. $dlist->Display(); //显示
  39. }
  40. ?>