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

112 lines
5.0KB

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