国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

103 řádky
4.5KB

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