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

62 lines
1.7KB

  1. <?php
  2. /**
  3. * 采集地址
  4. *
  5. * @version $Id: co_url.php 1 14:31 2010年7月12日Z tianya $
  6. * @package DedeCMS.Administrator
  7. * @copyright Copyright (c) 2007 - 2019, DesDev, Inc.
  8. * @license http://help.dedecms.com/usersguide/license.html
  9. * @link http://www.dedecms.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. {
  20. $exportbt = "
  21. <input type='button' name='b0' value='导出内容' class='coolbg np'
  22. style='width:80px' onClick=\"location.href='co_export.php?nid=$nid';\" />
  23. <input type='button' name='b0' value='采集本节点' class='coolbg np'
  24. style='width:80px' onClick=\"location.href='co_gather_start.php?nid=$nid';\" />
  25. ";
  26. }
  27. else
  28. {
  29. $exportbt = "";
  30. }
  31. $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
  32. LEFT JOIN `#@__co_note` cn ON cn.nid=cu.nid
  33. LEFT JOIN `#@__arctype` tp ON tp.id=cu.typeid
  34. $where ORDER BY cu.aid DESC";
  35. $dlist = new DataListCP();
  36. $dlist->SetParameter("nid", $nid);
  37. $dlist->SetParameter("small", $small);
  38. if($small==0)
  39. {
  40. $dlist->SetTemplate(DEDEADMIN."/templets/co_url.htm");
  41. }
  42. else
  43. {
  44. $dlist->SetTemplate(DEDEADMIN."/templets/co_url_2.htm");
  45. }
  46. $dlist->SetSource($sql);
  47. $dlist->display();
  48. function IsDownLoad($isd)
  49. {
  50. if($isd=="0") return "未下载";
  51. else return "已下载";
  52. }
  53. function IsExData($isex)
  54. {
  55. if($isex==0) return "未导出";
  56. else return "已导出";
  57. }