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

127 lines
5.4KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>增加自定义页面</title>
  6. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  7. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  8. <link href='css/base.css' rel='stylesheet' type='text/css'>
  9. <script language="javascript" src="../static/js/jquery.js"></script>
  10. <script src="../static/js/bootstrap.bundle.js"></script>
  11. <script language="javascript" src="js/main.js"></script>
  12. <script language="javascript">
  13. function checkSubmit() {
  14. if (document.form1.title.value == "") {
  15. ShowMsg("页面名称不能为空");
  16. document.form1.title.focus();
  17. return false;
  18. }
  19. if (document.form1.nfilename.value == "") {
  20. ShowMsg("文件名不能为空");
  21. document.form1.nfilename.focus();
  22. return false;
  23. }
  24. }
  25. </script>
  26. </head>
  27. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  28. <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" class="table maintable table-bordered mt-3">
  29. <tr>
  30. <td height="19" background="images/tbg.gif" style="padding-left:10px;">
  31. <b><a href="templets_one.php">单独页面管理</a></b>&gt;&gt;增加新页面
  32. </td>
  33. </tr>
  34. <tr>
  35. <td height="200" bgcolor="#FFFFFF" valign="top">
  36. <table width="100%" border="0" cellspacing="4" cellpadding="2" class="table table-borderless">
  37. <form action="templets_one_add.php" method="post" name="form1" onSubmit="return checkSubmit()">
  38. <input type='hidden' name='dopost' value='save'>
  39. <tr>
  40. <td colspan="2">
  41. 单独页面管理仅适用于页面较少的情况(建议小于500个页面),大量文档的用文章模型进行管理。
  42. </td>
  43. </tr>
  44. <tr>
  45. <td width="15%" height="26" align="center">页面标题:</td>
  46. <td>
  47. <input name="title" type="text" id="title" size="30">
  48. </td>
  49. </tr>
  50. <tr>
  51. <td height="26" align="center">页面关键字:</td>
  52. <td><input name="keywords" type="text" id="keywords" size="30">
  53. (用&quot;,&quot;分开{dede:field name='keywords'/})</td>
  54. </tr>
  55. <tr>
  56. <td height="26" align="center">页面摘要信息:</td>
  57. <td><textarea name="description" cols="50" id="description"></textarea>
  58. (100字左右{dede:field name='description'/})</td>
  59. </tr>
  60. <tr>
  61. <td height="26" align="center">关联标识:</td>
  62. <td>
  63. <input name="likeid" type="text" id="likeid" value="" size="10">
  64. <?php
  65. echo "<select name='likeidsel' id='likeidsel'>\r\n";
  66. $dsql->Execute('s',"Select likeid From `#@__sgpage` group by likeid ");
  67. echo "<option value='default'>default</option>\r\n";
  68. while($arr = $dsql->GetArray('s'))
  69. {
  70. echo "<option value='{$arr['likeid']}'>{$arr['likeid']}</option>\r\n";
  71. }
  72. echo "</select>\r\n";
  73. ?>
  74. <br />
  75. (通过这个标识来识别类同页面,模板中用{dede:likesgpage id='标识'/}调用有相同标识的页面)
  76. </td>
  77. </tr>
  78. <tr>
  79. <td height="26" align="center">文件名:</td>
  80. <td>
  81. <input name="nfilename" type="text" id="nfilename"
  82. value="<?php echo $cfg_arcdir."/newfile{$nowid}.html"; ?>" size="30">
  83. (相对于CMS安装目录)
  84. </td>
  85. </tr>
  86. <tr>
  87. <td height="26" align="center">模板文件名:</td>
  88. <td><input name="template" type="text" id="template" value="{style}/singlepage.htm" size="30"></td>
  89. </tr>
  90. <tr>
  91. <td height="26" align="center">是否编译内容:</td>
  92. <td>
  93. <label><input name="ismake" type="radio" value="1">
  94. 含模板标记,要编译</label>
  95. <label><input name="ismake" type="radio" value="0" checked>
  96. 不含模板标记,不需要编译</label></td>
  97. </tr>
  98. <tr>
  99. <td height="26" colspan="2">
  100. <div class="alert alert-warning" role="alert">
  101. 内容:(模板里用{dede:field name='body'/}来获得)
  102. </div>
  103. </td>
  104. </tr>
  105. <tr>
  106. <td height=" 80" colspan="2" align="center">
  107. <?php
  108. GetEditor("body","","500","Default","print","false");
  109. ?>
  110. </td>
  111. </tr>
  112. <tr>
  113. <td height="53" align="center">&nbsp;</td>
  114. <td>
  115. <button type="submit" name="button1" id="button1" class="btn btn-success">确定</button>
  116. &nbsp;&nbsp;&nbsp;&nbsp;
  117. <button type="button" onClick="document.form1.reset();" class="btn btn-success">重置</button>
  118. </td>
  119. </tr>
  120. </form>
  121. </table>
  122. </td>
  123. </tr>
  124. </table>
  125. </body>
  126. </html>