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

32 lines
1.1KB

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