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

95 lines
4.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 href='css/base.css' rel='stylesheet' type='text/css'>
  7. <script>
  8. function checkSubmit()
  9. {
  10. if(document.form1.title.value=="")
  11. {
  12. document.form1.title.focus();
  13. alert("标题必须设定");
  14. return false;
  15. }
  16. }
  17. </script>
  18. </head>
  19. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  20. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6">
  21. <form action="mynews_edit.php" method="post" name="form1" onSubmit="return checkSubmit();">
  22. <input type="hidden" name="dopost" value="editsave">
  23. <input type="hidden" name="aid" value="<?php echo $myNews['aid']?>">
  24. <tr>
  25. <td height="26" background="images/tbg.gif">
  26. <table width="99%" border="0" cellspacing="0" cellpadding="0">
  27. <tr>
  28. <td><strong>&nbsp;站内新闻管理-&gt;增加消息</strong></td>
  29. <td align="right"> <a href="mynews_main.php"><img src="images/file_edit.gif" width="15" height="16" border="0">返回管理页</a>
  30. </td>
  31. </tr>
  32. </table></td>
  33. </tr>
  34. <tr>
  35. <td height="127" align="center" bgcolor="#FFFFFF">
  36. <table width="98%" border="0" cellspacing="2" cellpadding="0">
  37. <tr>
  38. <td height="26" colspan="2" align="left">  说明:站内新闻是为了方便站长发布站点公告而设置的一种小功能,由于要读取包括text字段的信息,应定期删除太旧的信息,否则可能会让模板解析速度变慢。如果没有选择显示频道,则在这个频道中使用这个标记时会被“所有位置...”的标记内容代替。</td>
  39. </tr>
  40. <tr>
  41. <td height="26" colspan="2" align="left">  站内新闻调用代码:{dede:mynews row='条数' titlelen='标题长度'}Innertext{/dede:mynews},Innertext支持的字段为:[field:title
  42. /],[field:writer /],[field:senddate /](时间),[field:body /]。 </td>
  43. </tr>
  44. <tr>
  45. <td width="10%" height="30" align="right">标 题:</td>
  46. <td align="left"> <input name="title" type="text" id="title" value="<?php echo $myNews['title']?>" size="30" style="width:300">
  47. </td>
  48. </tr>
  49. <tr>
  50. <td height="30" align="right">显示频道:</td>
  51. <td align="left">
  52. <select name="typeid" style="width:150">
  53. <?php
  54. $dsql->SetQuery("Select id,typename From #@__arctype where reid=0 order by ABS(".$myNews['typeid']." - id) asc");
  55. $dsql->Execute();
  56. while($row = $dsql->GetObject())
  57. {
  58. echo "<option value='".$row->id."'>".$row->typename."</option>\r\n";
  59. }
  60. if($myNews['typeid']=="0") echo "<option value=\"0\" selected>所有位置...</option>\r\n";
  61. else echo "<option value=\"0\">所有位置...</option>\r\n";
  62. ?>
  63. </select>
  64. </td>
  65. </tr>
  66. <tr>
  67. <td height="30" align="right">发言人:</td>
  68. <td align="left"><input name="writer" type="text" id="writer" value="<?php echo $myNews['writer']?>" size="16"></td>
  69. </tr>
  70. <tr>
  71. <td height="30" align="right">日期:</td>
  72. <td align="left"><input name="sdate" type="text" id="sdate" size="25" value="<?php echo GetDateTimeMk($myNews['senddate'])?>"></td>
  73. </tr>
  74. <tr>
  75. <td height="172" valign="top" align="right">信息内容:</td>
  76. <td height="172">
  77. <?php
  78. GetEditor("body",$myNews['body'],250,"Small");
  79. ?>
  80. </td>
  81. </tr>
  82. <tr>
  83. <td height="36">&nbsp;</td>
  84. <td><input type="submit" name="Submit" value="更新新闻"> &nbsp;</td>
  85. </tr>
  86. <tr>
  87. <td colspan="2">&nbsp;</td>
  88. </tr>
  89. </table>
  90. </td>
  91. </tr>
  92. </form>
  93. </table>
  94. </body>
  95. </html>