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

50 lines
1.9KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  6. <title>文档自定义属性</title>
  7. <link rel="stylesheet" href="/static/web/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. <form name="form1" action="content_att.php" method="post">
  13. <input type="hidden" name="dopost" value="save">
  14. <table class="table shadow-sm my-3">
  15. <tr>
  16. <td colspan="3">文档自定义属性</td>
  17. </tr>
  18. <tr>
  19. <td colspan="3">
  20. <div class="alert alert-info mb-0">自定义属性说明:文档发布时选择属性后arclist标签加上flag='自定义属性',例:{dede:arclist flag='h,c'}h,c表示组合属性头条和推荐</div>
  21. </td>
  22. </tr>
  23. <tr align="center">
  24. <td width="6%">id</td>
  25. <td width="16%">排序</td>
  26. <td align="left">属性</td>
  27. </tr>
  28. <?php
  29. $dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
  30. $dsql->Execute();
  31. $k=0;
  32. while($row = $dsql->GetObject())
  33. {
  34. $k++;
  35. ?>
  36. <input type="hidden" name="att_<?php echo $k?>" value="<?php echo $row->att?>">
  37. <tr align="center">
  38. <td><?php echo $row->att;?></td>
  39. <td><input type="text" name="sortid_<?php echo $k?>" value="<?php echo $row->sortid;?>" id="sortid_<?php echo $k?>" class="admin-input-xs"></td>
  40. <td align="left"><input type="text" name="attname_<?php echo $k?>" value="<?php echo $row->attname;?>" id="attname_<?php echo $k?>" class="admin-input-sm"></td>
  41. </tr>
  42. <?php }?>
  43. <input type="hidden" name="idend" value="<?php echo $k?>">
  44. <tr>
  45. <td colspan="3" align="center"><button type="submit" class="btn btn-success btn-sm">保存</button></td>
  46. </tr>
  47. </table>
  48. </form>
  49. </body>
  50. </html>