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

56 lines
2.9KB

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