国内流行的内容管理系统(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.

58 lines
1.6KB

  1. <?php
  2. /**
  3. * 流量统计表
  4. *
  5. * @version $id:statistics_list.php 2024-04-15 tianya,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. function RenderUrlType($t) {
  14. switch ($t) {
  15. case 1:
  16. return "列表";
  17. case 2:
  18. return "文档";
  19. case 3:
  20. return "搜索";
  21. case 4:
  22. return "标签";
  23. default:
  24. return "综合";
  25. }
  26. }
  27. //检查权限
  28. if ($id == 0 && $reid == 0) {
  29. CheckPurview('c_List');
  30. }
  31. $ip = isset($ip) ? HtmlReplace(trim($ip)) : '';
  32. if (empty($mobile)) $mobile = '';
  33. if ($dopost == "delete") {
  34. $ids = explode('`',$aids);
  35. $dquery = "";
  36. foreach ($ids as $id)
  37. {
  38. $id = intval($id);
  39. if ($dquery == "") $dquery .= "id='$id' ";
  40. else $dquery .= " OR id='$id' ";
  41. }
  42. if ($dquery != "") $dquery = " WHERE ".$dquery;
  43. $dsql->ExecuteNoneQuery("DELETE FROM `#@__statistics_detail` $dquery");
  44. ShowMsg("成功删除指定的记录", "statistics_list.php");
  45. exit();
  46. } else {
  47. $addsql = " WHERE ip LIKE '%$ip%' ";
  48. $sql = "SELECT * FROM `#@__statistics_detail` $addsql ORDER BY id DESC";
  49. $dlist = new DataListCP();
  50. //流量列表数
  51. $dlist->pagesize = 30;
  52. $tplfile = DEDEADMIN."/templets/statistics_list.htm";
  53. $dlist->SetParameter("ip",$ip);
  54. $dlist->SetTemplate($tplfile);
  55. $dlist->SetSource($sql);
  56. $dlist->Display();
  57. }
  58. ?>