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

templets_one_edit.htm 5.4KB

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