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

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