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

31 lines
965B

  1. <?php
  2. /**
  3. * 内容属性
  4. *
  5. * @version $Id: content_att.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. CheckPurview('sys_Att');
  13. if (empty($dopost)) $dopost = '';
  14. //保存更改
  15. if ($dopost == "save") {
  16. $startID = 1;
  17. $endID = $idend;
  18. for (; $startID <= $endID; $startID++) {
  19. $att = ${'att_' . $startID};
  20. $attname = ${'attname_' . $startID};
  21. $sortid = ${'sortid_' . $startID};
  22. $query = "UPDATE `#@__arcatt` SET `attname`='$attname',`sortid`='$sortid' WHERE att='$att' ";
  23. $dsql->ExecuteNoneQuery($query);
  24. }
  25. echo "<script> alert('成功更新自定文档义属性表!'); </script>";
  26. }
  27. include DedeInclude('templets/content_att.htm');