<!--#include file="conn.asp"-->
<!--#include file="denlu.asp"-->
<%
set rs=server.createobject("adodb.recordset")
rs.open "select * from xinwen where id="&request("id"),conn,3
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel=stylesheet type="text/css" href="js/media.css">
<link rel=stylesheet type="text/css" href="js/form_media.css">
<script language="JavaScript" src="js/whir.js"></script>
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style></head>
<script language=javascript>
function add() {
if (document.form1.title.value=="")
	{
	  alert("请输入标题！")
	  document.form1.title.focus()
	  return false
	 } 
if (document.form1.fbtime.value=="")
	{
	  alert("请输入发布日期！")
	  document.form1.fbtime.focus()
	  return false
	 } 
	 
if (document.form1.Jianjie.value!="")
{	
  var checkname=document.form1.Jianjie.value
  if (checkname.length>100)
  {
    alert("新闻简介（中文）长度不可多余100个汉字！");
	document.form1.Jianjie.focus();
    return false;
  } 
}

if (document.form1.Jianjie_eng.value!="")
{	
  var checkname=document.form1.Jianjie_eng.value
  if (checkname.length>100)
  {
    alert("新闻简介（英文）长度不可多余150个英文字母！");
	document.form1.Jianjie_eng.focus();
    return false;
  } 
}


}
function changepic(num)
{
 if(num==0){
 t1.style.display='none';
 }
  if(num==1){
 t1.style.display='';
  }
}
function changexs(num)
{
 if(num==0){
 t2.style.display='';
 t3.style.display='none';
 }
  if(num==1){
 t2.style.display='none';
 t3.style.display='';
  }
}
</script>	
<body onload="changexs(<%=rs("fbxs")%>);">
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="35"><font color="#FF0000">当前位置：信息发布系统 --＞修改信息　　</font>（带“<font color="#FF0000">*</font>”为必填项） 
    </td>
  </tr>
</table>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
  <form action="xinwen_modiok.asp" method="post" name="form1" onsubmit="return add()">
    <TR> 
      <TD HEIGHT="1" COLSPAN="2" BGCOLOR="#4E6A82"></TD>
    </TR>
    <tr> 
      <td width="27%" height="35" align="right">信息标题（中文）：</td>
      <td width="73%" height="35"> <input name="title" type="text" class="text" id="title" value="<%=rs("title")%>" size="60" maxlength="50"> 
        <font color="#FF0000">*</font></td>
    </tr>
    <tr>
      <td height="35" align="right">信息标题（英文）：</td>
      <td height="35"><input name="title_eng" type="text" class="text" id="title_eng" value="<%=rs("title_eng")%>" size="60" maxlength="200"></td>
    </tr>
    <tr>
      <td height="35" align="right">作者（中文）：</td>
      <td height="35"><input name="Author" type="text" class="text" id="Author" value="<%=rs("author")%>" size="25">
      </td>
    </tr>
    <tr>
      <td height="35" align="right">作者（英文）：</td>
      <td height="35"><input name="Author_eng" type="text" class="text" id="Author_eng" value="<%=rs("Author_eng")%>" size="25"></td>
    </tr>
<%if trim(request("nb"))=2 then%>
    <tr>
      <td height="35" align="right">是否专题快讯：</td>
      <td height="35"><input name="isztkx" type="radio" value="0" <%if rs("isztkx")=0 then%>checked<%end if%>>
否
  <input type="radio" name="isztkx" value="1" <%if rs("isztkx")=1 then%>checked<%end if%>>
是</td>
    </tr>
    <tr>
      <td height="35" align="right">是否热点推荐：</td>
      <td height="35"><input name="isrdtj" type="radio" value="0" <%if rs("isrdtj")=0 then%>checked<%end if%>>
否
  <input type="radio" name="isrdtj" value="1" <%if rs("isrdtj")=1 then%>checked<%end if%>>
是</td>
    </tr>
<%end if%>
    <tr>
      <td height="35" align="right">发布日期：</td>
      <td height="35"><input name="fbtime" type="text" class="text" id="fbtime" onFocus="setday(this)" value="<%=rs("fbtime")%>" size="25" maxlength="25">
        <font color="#FF0000">*</font> </td>
    </tr>
    <tr>
      <td height="35" align="right">发布形式：</td>
      <td height="35"><input name="fbxs" type="radio" value="0" <%if rs("fbxs")=0 then%>checked<%end if%> onclick="javascript:changexs(0);">
HTML内容
  <input type="radio" name="fbxs" value="1" <%if rs("fbxs")=1 then%>checked<%end if%> onclick="javascript:changexs(1);">
上传附件 </td>
    </tr>

    <tr align="center" id="t2">
      <td height="35" colspan="2"><table width="100%" height="35"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td height="35"><div align="center">内容（中文）</div></td>
        </tr>
        <tr>
          <td height="35"><div align="center">
            <textarea name="content" class="css" style="display:'none'" cols="6" rows="2"><%=rs("content")%></textarea>
            <IFRAME NAME=EditBox ID="eWebEditor1" src="edit/ewebeditor.htm?id=content&style=coolblue" frameborder="0" scrolling="no" width="550" height="350"></IFRAME>
</div></td>
        </tr>
        <tr>
          <td height="35"><div align="center">内容（英文）</div></td>
        </tr>
        <tr>
          <td height="35"><div align="center">
            <textarea name="content_eng" cols="6" rows="2" class="css" id="content_eng" style="display:'none'"><%=rs("content_eng")%></textarea>
            <IFRAME NAME=EditBox ID="eWebEditor1" src="edit/ewebeditor.htm?id=content_eng&style=coolblue" frameborder="0" scrolling="no" width="550" height="350"></IFRAME>
          </div></td>
        </tr>
      </table></td>
    </tr>
    <tr id="t3">
      <td height="40" colspan="2" align="center"><table width="100%" height="35"  border="0" cellpadding="０" cellspacing="0">
        <tr>
          <td width="27%" height="35"><div align="right">附件：（中文）：</div></td>
          <td width="73%" height="35"><div align="left">
              <input name="file1" type="text" id="file1" value="<%=rs("file1")%>" readonly>
              <input type="button" name="Submit" value="上传" onClick="open('upload_xinwen.asp?utype=1','photo','scrollbars=yes,width=560,height=350,left=125,top=100')">
          </div></td>
        </tr>
        <tr>
          <td height="35"><div align="right">附件：（英文）：</div></td>
          <td height="35"><div align="left">
              <input name="file2" type="text" id="file2" value="<%=rs("file2")%>" readonly>
              <input type="button" name="Submit" value="上传" onClick="open('upload_xinwen.asp?utype=2','photo','scrollbars=yes,width=560,height=350,left=125,top=100')">
          </div></td>
        </tr>
      </table></td>
    </tr>
    <tr> 
      <td height="40" colspan="2" align="center">
	  <input type="hidden" value="<%=rs("id")%>" name="id">
	  <input type="hidden" value="<%=request("topage")%>" name="topage">
	  <input type="hidden" value="<%=request("nbmc")%>" name="nbmc">
	  <input type="hidden" value="<%=request("nb")%>" name="nb" id="nb">
	  <input name="image" type="image" src="images/modi.gif" width="72" height="21">
	  　<img src="images/back.jpg" width="72" height="21" onclick="history.go(-1)"></td>
    </tr>
  </form>
</table>
</body>
</html>
<%
rs.close
set rs=nothing
conn.close
%>