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

  1. <?php
  2. /**
  3. * 采集地址
  4. *
  5. * @version $Id: co_url.php 1 14:31 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. $where = "";
  15. if (!isset($nid)) $nid = "";
  16. if (!empty($nid)) $where = " where cu.nid='$nid' ";
  17. if (empty($small)) $small = 0;
  18. if ($nid != '') {
  19. $exportbt = "
  20. <input type='button' name='b0' value='导出内容' class='coolbg np'
  21. style='width:80px' onClick=\"location.href='co_export.php?nid=$nid';\" />
  22. <input type='button' name='b0' value='采集本节点' class='coolbg np'
  23. style='width:80px' onClick=\"location.href='co_gather_start.php?nid=$nid';\" />
  24. ";
  25. } else {
  26. $exportbt = "";
  27. }
  28. $sql = "SELECT cu.aid,cu.nid,cu.isexport AS isex,cu.title,cu.url,cu.dtime,cu.isdown,cn.notename,tp.typename FROM `#@__co_htmls` cu
  29. LEFT JOIN `#@__co_note` cn ON cn.nid=cu.nid
  30. LEFT JOIN `#@__arctype` tp ON tp.id=cu.typeid
  31. $where ORDER BY cu.aid DESC";
  32. $dlist = new DataListCP();
  33. $dlist->SetParameter("nid", $nid);
  34. $dlist->SetParameter("small", $small);
  35. if ($small == 0) {
  36. $dlist->SetTemplate(DEDEADMIN . "/templets/co_url.htm");
  37. } else {
  38. $dlist->SetTemplate(DEDEADMIN . "/templets/co_url_2.htm");
  39. }
  40. $dlist->SetSource($sql);
  41. $dlist->display();
  42. function IsDownLoad($isd)
  43. {
  44. if ($isd == "0") return "未下载";
  45. else return "已下载";
  46. }
  47. function IsExData($isex)
  48. {
  49. if ($isex == 0) return "未导出";
  50. else return "已导出";
  51. }