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

101 lines
4.1KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  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. <script src="../static/web/js/jquery.min.js"></script>
  11. <script src="../static/web/js/bootstrap.min.js"></script>
  12. <script src="js/main.js"></script>
  13. </head>
  14. <body>
  15. <form action="templets_one_edit.php" method="post" name="form1" onSubmit="return checkSubmit()">
  16. <input type="hidden" name="dopost" value="saveedit">
  17. <input type="hidden" name="aid" value="<?php echo $aid?>">
  18. <table align="center" class="table maintable my-3">
  19. <tr>
  20. <td bgcolor="#f5f5f5" colspan="2"><a href="templets_one.php">文档单页管理</a> - 修改自定义页面</td>
  21. </tr>
  22. <tr>
  23. <td colspan="2">
  24. <div class="alert alert-info mb-0">文档单页管理仅适用于页面较少的情况(建议小于500个页面)标签“{dede:field name='body'/}”调用</div>
  25. </td>
  26. </tr>
  27. <tr>
  28. <td width="260">页面标题:</td>
  29. <td><input type="text" name="title" id="title" value="<?php echo $row['title'];?>" class="admin-input-lg"></td>
  30. </tr>
  31. <tr>
  32. <td>页面关键词:</td>
  33. <td><input type="text" name="keywords" id="keywords" value="<?php echo $row['keywords'];?>" class="admin-input-lg"></td>
  34. </tr>
  35. <tr>
  36. <td>页面摘要信息:</td>
  37. <td><textarea name="description" id="description" class="admin-textarea-sm"><?php echo $row['description'];?></textarea></td>
  38. </tr>
  39. <tr>
  40. <td>关联标识:</td>
  41. <td>
  42. <input type="text" name="likeid" id="likeid" value="<?php echo $row['likeid'];?>" class="admin-input-lg">
  43. <input type="hidden" name="oldlikeid" id="oldlikeid" value="<?php echo $row['likeid'];?>">
  44. <?php
  45. echo "<select name='likeidsel' id='likeidsel' class='admin-input-sm'>";
  46. $dsql->Execute('s',"Select likeid From `#@__sgpage` group by likeid ");
  47. echo "<option value='{$row['likeid']}' selected>{$row['likeid']}</option>";
  48. while($arr = $dsql->GetArray('s'))
  49. {
  50. if ($arr['likeid']!=$row['likeid']) echo "<option value='{$arr['likeid']}'>{$arr['likeid']}</option>";
  51. }
  52. echo "</select>";
  53. ?>
  54. </td>
  55. </tr>
  56. <tr>
  57. <td>保存位置:</td>
  58. <td>
  59. <input type="hidden" name="oldfilename" id="oldfilename" value="<?php echo $row['filename'];?>" class="admin-input-lg">
  60. <input type="text" name="nfilename" id="nfilename" value="<?php echo $row['filename'];?>" class="admin-input-lg">(填写路径文件夹)
  61. </td>
  62. </tr>
  63. <tr>
  64. <td>模板文件名:</td>
  65. <td><input type="text" name="template" id="template" value="<?php echo $row['template'];?>" class="admin-input-lg">(填写模板名称)</td>
  66. </tr>
  67. <tr>
  68. <td>是否编译文档:</td>
  69. <td>
  70. <?php if (!DEDEBIZ_SAFE_MODE) {?> <label><input type="radio" name="ismake" value="1" <?php if ($row['ismake']==1) echo "checked";?>> 含模板标记,要编译</label> <?php }?>
  71. <label><input type="radio" name="ismake" value="0" <?php if ($row['ismake']==0 || DEDEBIZ_SAFE_MODE) echo "checked";?>> 不含模板标记,不需要编译</label>
  72. </td>
  73. </tr>
  74. <tr>
  75. <td colspan="2"><?php GetEditor("body",$row['body'],"400","Default","print","false");?></td>
  76. </tr>
  77. <tr>
  78. <td bgcolor="#f5f5f5" colspan="2" align="center">
  79. <button type="submit" name="button1" id="button1" class="btn btn-success btn-sm">保存</button>
  80. <button type="button" class="btn btn-outline-success btn-sm" onclick="document.form1.reset();">重置</button>
  81. </td>
  82. </tr>
  83. </table>
  84. </form>
  85. <script>
  86. function checkSubmit()
  87. {
  88. if (document.form1.title.value == '') {
  89. ShowMsg("页面名称不能为空");
  90. document.form1.title.focus();
  91. return false;
  92. }
  93. if (document.form1.nfilename.value=="") {
  94. ShowMsg("文件名不能为空");
  95. document.form1.nfilename.focus();
  96. return false;
  97. }
  98. }
  99. </script>
  100. </body>
  101. </html>