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

110 lines
4.9KB

  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 language="javascript" src="../static/web/js/jquery.min.js"></script>
  11. <script src="../static/web/js/bootstrap.bundle.min.js"></script>
  12. <script language="javascript" src="js/main.js"></script>
  13. <script language="javascript">
  14. function checkSubmit() {
  15. if (document.form1.title.value == "") {
  16. ShowMsg("页面名称不能为空");
  17. document.form1.title.focus();
  18. return false;
  19. }
  20. if (document.form1.nfilename.value == "") {
  21. ShowMsg("文件名不能为空");
  22. document.form1.nfilename.focus();
  23. return false;
  24. }
  25. }
  26. </script>
  27. </head>
  28. <body>
  29. <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  30. <tr>
  31. <td height="26" background="../static/web/img/tbg.gif" style="padding-left:10px"><a href="templets_one.php">单独页面管理</a> &gt; 增加自定义页面</td>
  32. </tr>
  33. <tr>
  34. <td height="200">
  35. <table width="100%" cellspacing="4" cellpadding="2" class="table table-borderless">
  36. <form action="templets_one_add.php" method="post" name="form1" onSubmit="return checkSubmit()">
  37. <input type='hidden' name='dopost' value='save'>
  38. <tr>
  39. <td colspan="2">单独页面管理仅适用于页面较少的情况(建议小于500个页面)大量文档的用文章模型进行管理</td>
  40. </tr>
  41. <tr>
  42. <td width="260" height="26">页面标题:</td>
  43. <td><input name="title" type="text" id="title" style="width:260px"></td>
  44. </tr>
  45. <tr>
  46. <td height="26">页面关键词:</td>
  47. <td><input name="keywords" type="text" id="keywords" style="width:260px">(用&quot;,&quot;分开{dede:field name='keywords'/})</td>
  48. </tr>
  49. <tr>
  50. <td height="26">页面摘要信息:</td>
  51. <td><textarea name="description" id="description" style="width:360px;height:50px"></textarea>(100字左右{dede:field name='description'/})</td>
  52. </tr>
  53. <tr>
  54. <td height="26">关联标识:</td>
  55. <td>
  56. <input name="likeid" type="text" id="likeid" value="" style="width:260px">
  57. <?php
  58. echo "<select name='likeidsel' id='likeidsel' style='width:160px'>";
  59. $dsql->Execute('s',"Select likeid From `#@__sgpage` group by likeid ");
  60. echo "<option value='default'>default</option>";
  61. while($arr = $dsql->GetArray('s'))
  62. {
  63. echo "<option value='{$arr['likeid']}'>{$arr['likeid']}</option>";
  64. }
  65. echo "</select>";
  66. ?>(通过这个标识来识别类同页面,模板中用{dede:likesgpage id='标识'/}调用有相同标识的页面)
  67. </td>
  68. </tr>
  69. <tr>
  70. <td height="26">文件名:</td>
  71. <td><input name="nfilename" type="text" id="nfilename" value="<?php echo $cfg_arcdir.'/newfile{$nowid}.html'; ?>" style="width:260px">(相对于CMS安装目录)</td>
  72. </tr>
  73. <tr>
  74. <td height="26">模板文件名:</td>
  75. <td><input name="template" type="text" id="template" value="{style}/singlepage.htm" style="width:260px"></td>
  76. </tr>
  77. <tr>
  78. <td height="26">是否编译内容:</td>
  79. <td>
  80. <label><input name="ismake" type="radio" value="1">
  81. 含模板标记,要编译</label>
  82. <label><input name="ismake" type="radio" value="0" checked>
  83. 不含模板标记,不需要编译</label>
  84. </td>
  85. </tr>
  86. <tr>
  87. <td height="26" colspan="2">
  88. <div class="alert alert-warning mb-0">内容:模板里用{dede:field name='body'/}来获得</div>
  89. </td>
  90. </tr>
  91. <tr>
  92. <td height="80" colspan="2">
  93. <?php
  94. GetEditor("body","","450","Default","print","false");
  95. ?>
  96. </td>
  97. </tr>
  98. <tr>
  99. <td colspan="2" align="center" class="py-3">
  100. <button type="submit" name="button1" id="button1" class="btn btn-success btn-sm">保存</button>
  101. <button type="button" onClick="document.form1.reset();" class="btn btn-success btn-sm">重置</button>
  102. </td>
  103. </tr>
  104. </form>
  105. </table>
  106. </td>
  107. </tr>
  108. </table>
  109. </body>
  110. </html>