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

48 lines
2.6KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang;?>">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>自定义属性管理</title>
  7. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. </head>
  11. <body>
  12. <table width="98%" cellpadding="0" cellspacing="1" align="center" class="table maintable my-3">
  13. <form name="form1" action="content_att.php" method="post">
  14. <input type="hidden" name="dopost" value="save">
  15. <tr>
  16. <td bgcolor="#f8f8f8" colspan="3">文档自定义属性管理</td>
  17. </tr>
  18. <tr>
  19. <td colspan="3"><div class="alert alert-info mb-0">自定义属性的意义和使用说明:在以往的版本中,网站主页、封面栏目的设计,都只能单调的用arclist标记把某栏目最新或按特定排序方式的文档无选择的读出来,这样做法存在很大的不足,例如,我希望在最顶部的地方显示我想要的文档,在以往的版本中是无法做到的,但使用自定义属性之后,只要给arclist标记加上att='自定义属性的id'的属性,然后在发布的时候对适合的文档选择专门的属性,那么使用arclist的地方就会按您的意愿显示指定的文档。注意事项:这个版本中att对应的字段是SET类型字段,因此为了数据安全起见不允许用户增加其它类型,但调用时允许使用组合条件,如:att='c,p'表示推荐图片新闻</div></td>
  20. </tr>
  21. <tr bgcolor="#fbfce2">
  22. <td width="15%" align="center">id</td>
  23. <td width="15%">排序</td>
  24. <td width="70%">属性名称</td>
  25. </tr>
  26. <?php
  27. $dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
  28. $dsql->Execute();
  29. $k=0;
  30. while($row = $dsql->GetObject())
  31. {
  32. $k++;
  33. ?>
  34. <input type="hidden" name="att_<?php echo $k?>" value="<?php echo $row->att?>">
  35. <tr>
  36. <td align="center"><?php echo $row->att;?></td>
  37. <td><input type="text" name="sortid_<?php echo $k?>" value="<?php echo $row->sortid;?>" id="sortid_<?php echo $k?>" style="width:50%"></td>
  38. <td><input type="text" name="attname_<?php echo $k?>" value="<?php echo $row->attname;?>" id="attname_<?php echo $k?>" size="30"></td>
  39. </tr>
  40. <?php }?>
  41. <input type="hidden" name="idend" value="<?php echo $k?>">
  42. <tr>
  43. <td colspan="3" bgcolor="#f8f8f8" align="center" class="py-2"><button type="submit" class="btn btn-success btn-sm">保存</button></td>
  44. </tr>
  45. </form>
  46. </table>
  47. </body>
  48. </html>