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

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