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

94 lines
3.8KB

  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/admin.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>
  20. <table width="98%" align="center" cellpadding="2" cellspacing="1">
  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="../static/web/img/tbg.gif">
  26. <table width="99%" cellspacing="0" cellpadding="0">
  27. <tr>
  28. <td>站内新闻管理 &gt; 增加消息</td>
  29. <td align="right"> <a href="mynews_main.php"><img src="../static/web/img/file_edit.gif">返回管理页</a>
  30. </td>
  31. </tr>
  32. </table></td>
  33. </tr>
  34. <tr>
  35. <td height="130" align="center">
  36. <table width="98%" 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 /],[field:writer /],[field:senddate /](时间),[field:body /] </td>
  42. </tr>
  43. <tr>
  44. <td width="10%" height="30" align="right">标题:</td>
  45. <td align="left"> <input name="title" type="text" id="title" value="<?php echo $myNews['title']?>" size="30" style="width:300px">
  46. </td>
  47. </tr>
  48. <tr>
  49. <td height="30" align="right">显示频道:</td>
  50. <td align="left">
  51. <select name="typeid" style="width:150">
  52. <?php
  53. $dsql->SetQuery("Select id,typename From #@__arctype where reid=0 order by ABS(".$myNews['typeid']." - id) asc");
  54. $dsql->Execute();
  55. while($row = $dsql->GetObject())
  56. {
  57. echo "<option value='".$row->id."'>".$row->typename."</option>";
  58. }
  59. if($myNews['typeid']=="0") echo "<option value=\"0\" selected>所有位置</option>";
  60. else echo "<option value=\"0\">所有位置</option>";
  61. ?>
  62. </select>
  63. </td>
  64. </tr>
  65. <tr>
  66. <td height="30" align="right">发言人:</td>
  67. <td align="left"><input name="writer" type="text" id="writer" value="<?php echo $myNews['writer']?>" size="16"></td>
  68. </tr>
  69. <tr>
  70. <td height="30" align="right">日期:</td>
  71. <td align="left"><input name="sdate" type="text" id="sdate" size="25" value="<?php echo GetDateTimeMk($myNews['senddate'])?>"></td>
  72. </tr>
  73. <tr>
  74. <td height="172" align="right">信息内容:</td>
  75. <td height="172">
  76. <?php
  77. GetEditor("body",$myNews['body'],250,"Small");
  78. ?>
  79. </td>
  80. </tr>
  81. <tr>
  82. <td height="36"></td>
  83. <td><input type="submit" name="Submit" value="更新新闻"> &nbsp;</td>
  84. </tr>
  85. <tr>
  86. <td colspan="2"></td>
  87. </tr>
  88. </table>
  89. </td>
  90. </tr>
  91. </form>
  92. </table>
  93. </body>
  94. </html>