
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
<title>站内新闻发布</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
<script>
function checkSubmit()
{
  if(document.form1.title.value=="")
  {
     document.form1.title.focus();
     alert("标题必须设定！");
     return false;
  }
}
</script>
</head>
<body>
<div class="bodytitle">
	<div class="bodytitleleft"></div>
	<div class="bodytitletxt">辅助插件</div>
</div>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#E2F5BC;">
  <form action="mynews_edit.php" method="post" name="form1" onSubmit="return checkSubmit();">
  <input type="hidden" name="dopost" value="editsave">
  <input type="hidden" name="aid" value="<?php echo $myNews['aid']?>">
  <tr>
      <td height="24" bgcolor="#EDF9D5"> 
        <table width="90%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td><strong>&nbsp;站内新闻管理-&gt;增加消息</strong></td>
            <td align="right"> <a href="mynews_main.php"><img src="img/file_edit.gif" width="15" height="16" border="0"><u>返回管理页</u></a> 
            </td>
          </tr>
        </table></td>
</tr>
<tr>
    <td height="127" align="center" bgcolor="#FFFFFF"> 
      <table width="98%" border="0" cellspacing="2" cellpadding="0">
          <tr> 
            <td height="20" colspan="2" align="left">　　说明：站内新闻是为了方便站长发布站点公告而设置的一种小功能，由于要读取包括text字段的信息，应定期删除太旧的信息，否则可能会让模板解析速度变慢。如果没有选择显示频道，则在这个频道中使用这个标记时会被“所有位置...”的标记内容代替。</td>
          </tr>
          <tr> 
            <td height="20" colspan="2" align="left">　　站内新闻调用代码： {dede:mynews row='条数' titlelen='标题长度'}Innertext{/dede:mynews}，Innertext支持的字段为：[field:title 
              /],[field:writer /],[field:senddate /](时间),[field:body /]。 </td>
          </tr>
          <tr> 
            <td width="13%" height="30" align="left">标　题：</td>
            <td width="87%" align="left"> <input name="title" type="text" id="title" value="<?php echo $myNews['title']?>" size="30" style="width:300"> 
            </td>
          </tr>
          <tr>
            <td height="30" align="left">显示频道：</td>
            <td align="left">
			  <select name="typeid" style="width:150">     
        <?php 
			  $dsql->SetQuery("Select ID,typename From #@__arctype where reID=0 order by ABS(".$myNews['typeid']." - ID) asc");
			  $dsql->Execute();
			  while($row = $dsql->GetObject())
			  {
			     echo "<option value='".$row->ID."'>".$row->typename."</option>\r\n";
			  }
			  if($myNews['typeid']=="0") echo "<option value=\"0\" selected>所有位置...</option>\r\n";
			  else echo "<option value=\"0\">所有位置...</option>\r\n";
			  ?>
        </select>
			   </td>
          </tr>
          <tr> 
            <td height="30" align="left">发言人：</td>
            <td align="left"><input name="writer" type="text" id="writer" value="<?php echo $myNews['writer']?>" size="16">
              　 日期： 
              <input name="sdate" type="text" id="sdate" size="25" value="<?php echo GetDateTimeMk($myNews['senddate'])?>"></td>
          </tr>
          <tr> 
            <td height="172" align="left" valign="top">信息内容：</td>
            <td height="172" align="left"> 
              <?php 
	GetEditor("body",$myNews['body'],250,"Small");
	?>            </td>
          </tr>
          <tr> 
            <td height="38" align="left">&nbsp;</td>
            <td align="left"><input type="submit" name="Submit" value="提交新闻" class="inputbut"> &nbsp;</td>
          </tr>
          <tr bgcolor="#F1FAF2"> 
            <td colspan="2">&nbsp;</td>
          </tr>
        </table>
      </td>
</tr>
</form>
</table>
</body>
</html>