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

33 lines
1.1KB

  1. <?php
  2. /**
  3. * 采集规则管理
  4. *
  5. * @version $Id: co_main.php 1 17:13 2010年7月12日Z tianya $
  6. * @package DedeBIZ.Administrator
  7. * @copyright Copyright (c) 2020, DedeBIZ.COM
  8. * @license 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. setcookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, "/");
  14. $sql = "SELECT co.nid,co.channelid,co.notename,co.sourcelang,co.uptime,co.cotime,co.pnum,ch.typename";
  15. $sql .= " FROM `#@__co_note` co LEFT JOIN `#@__channeltype` ch ON ch.id=co.channelid ORDER BY co.nid DESC";
  16. $dlist = new DataListCP();
  17. $dlist->SetTemplet(DEDEADMIN . "/templets/co_main.htm");
  18. $dlist->SetSource($sql);
  19. $dlist->display();
  20. function GetDatePage($mktime)
  21. {
  22. return $mktime == '0' ? '从未采集过' : MyDate('Y-m-d', $mktime);
  23. }
  24. function TjUrlNum($nid)
  25. {
  26. global $dsql;
  27. $row = $dsql->GetOne("SELECT COUNT(*) AS dd FROM `#@__co_htmls` WHERE nid='$nid' ");
  28. return $row['dd'];
  29. }