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

111 lines
4.9KB

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