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

130 lines
5.6KB

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