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

39 lines
1.5KB

  1. <?php
  2. /**
  3. * 采集规则编辑-专家更改模式
  4. *
  5. * @version $Id: co_edit_text.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(dirname(__FILE__) . "/config.php");
  12. CheckPurview('co_EditNote');
  13. if (empty($job)) $job = '';
  14. if ($job == '') {
  15. require_once(DEDEINC . "/oxwindow.class.php");
  16. $wintitle = "更改采集规则";
  17. $wecome_info = "<a href='co_main.php'><u>采集点管理</u></a>::更改采集规则 - 专家更改模式";
  18. $win = new OxWindow();
  19. $win->Init("co_edit_text.php", "js/blank.js", "POST");
  20. $win->AddHidden("job", "yes");
  21. $win->AddHidden("nid", $nid);
  22. $row = $dsql->GetOne("SELECT * FROM `#@__co_note` WHERE nid='$nid' ");
  23. $win->AddTitle("索引与基本信息配置:");
  24. $win->AddMsgItem("<textarea name='listconfig' style='width:100%;height:200px'>{$row['listconfig']}</textarea>");
  25. $win->AddTitle("字段配置:");
  26. $win->AddMsgItem("<textarea name='itemconfig' style='width:100%;height:300px'>{$row['itemconfig']}</textarea>");
  27. $winform = $win->GetWindow("ok");
  28. $win->Display();
  29. exit();
  30. } else {
  31. CheckPurview('co_EditNote');
  32. $query = "UPDATE `#@__co_note` SET listconfig='$listconfig',itemconfig='$itemconfig' WHERE nid='$nid' ";
  33. $rs = $dsql->ExecuteNoneQuery($query);
  34. ShowMsg("成功修改一个规则!", "co_main.php");
  35. exit();
  36. }