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

113 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. {
  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. <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  33. <tr>
  34. <td height="26" background="../static/web/img/tbg.gif" style="padding-left:10px"><a href="templets_one.php">单独页面管理</a> &gt; 修改自定义页面</td>
  35. </tr>
  36. <tr>
  37. <td height="200">
  38. <table width="100%" cellspacing="4" cellpadding="2" class="table table-borderless">
  39. <form action="templets_one_edit.php" method="post" name="form1" onSubmit="return checkSubmit()">
  40. <input type='hidden' name='dopost' value='saveedit'>
  41. <input type='hidden' name='aid' value='<?php echo $aid?>'>
  42. <tr>
  43. <td width="260" height="26">页面标题:</td>
  44. <td><input name="title" type="text" id="title" value="<?php echo $row['title']; ?>" style="width:260px"></td>
  45. </tr>
  46. <tr>
  47. <td height="26">页面关键词:</td>
  48. <td><input name="keywords" type="text" id="keywords" value="<?php echo $row['keywords']; ?>" style="width:260px">(用&quot;,&quot;分开)</td>
  49. </tr>
  50. <tr>
  51. <td height="26">页面摘要信息:</td>
  52. <td><textarea name="description" id="description" style="width:360px;height:50px"><?php echo $row['description']; ?></textarea>(100字左右)</td>
  53. </tr>
  54. <tr>
  55. <td height="26">关联标识:</td>
  56. <td>
  57. <input name="likeid" type="text" id="likeid" value="<?php echo $row['likeid']; ?>" style="width:260px">
  58. <input name="oldlikeid" type="hidden" id="oldlikeid" value="<?php echo $row['likeid']; ?>">
  59. <?php
  60. echo "<select name='likeidsel' id='likeidsel' style='width:160px'>";
  61. $dsql->Execute('s',"Select likeid From `#@__sgpage` group by likeid ");
  62. echo "<option value='{$row['likeid']}' selected>{$row['likeid']}</option>";
  63. while($arr = $dsql->GetArray('s'))
  64. {
  65. if($arr['likeid']!=$row['likeid']) echo "<option value='{$arr['likeid']}'>{$arr['likeid']}</option>";
  66. }
  67. echo "</select>";
  68. ?>
  69. </td>
  70. </tr>
  71. <tr>
  72. <td height="26">模板文件名:</td>
  73. <td><input name="template" type="text" id="template" value="<?php echo $row['template']; ?>" style="width:260px"></td>
  74. </tr>
  75. <tr>
  76. <td height="26">文件名:</td>
  77. <td>
  78. <input name="oldfilename" type="hidden" id="oldfilename" value="<?php echo $row['filename']; ?>" style="width:260px">
  79. <input name="nfilename" type="text" id="nfilename" value="<?php echo $row['filename']; ?>" style="width:260px">(相对于CMS安装目录)
  80. </td>
  81. </tr>
  82. <tr>
  83. <td height="26">是否编译内容:</td>
  84. <td>
  85. <label><input name="ismake" type="radio" value="1"<?php if($row['ismake']==1) echo " checked"; ?>>
  86. 含模板标记,要编译 </label>
  87. <label><input type="radio" name="ismake" value="0"<?php if($row['ismake']==0) echo " checked"; ?>>
  88. 不含模板标记,不需要编译</label>
  89. </td>
  90. </tr>
  91. <tr>
  92. <td height="26" colspan="2">
  93. <div class="alert alert-warning mb-0">内容:模板里用{dede:field name='body'/}来获得文件内容</div>
  94. </td>
  95. </tr>
  96. <tr>
  97. <td height="80" colspan="2">
  98. <?php GetEditor("body",$row['body'],"450","Default","print","false"); ?>
  99. </td>
  100. </tr>
  101. <tr>
  102. <td colspan="2" align="center" class="py-3">
  103. <button type="submit" name="button1" id="button1" class="btn btn-success btn-sm">保存</button>
  104. <button type="button" onClick="document.form1.reset();" class="btn btn-success btn-sm">重置</button>
  105. </td>
  106. </tr>
  107. </form>
  108. </table>
  109. </td>
  110. </tr>
  111. </table>
  112. </body>
  113. </html>