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

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