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

72 lines
3.5KB

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