<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--#include file="../head.asp"-->
<!--#include file="../checkrole.asp"-->
<script language="javascript">
function check_null()
{
if(document.Form1.title.value=="")
{
	alert("新闻标题不能为空");
	document.Form1.title.focus();
	return false;
}
if(document.Form1.content.value=="")
{
	alert("新闻内容不能为空");
	document.Form1.content.focus();
	return false;
}
}

</script>
<%
dim id
id=request.QueryString("id")
if id="" then
response.Redirect("look_newsinfo.asp")
response.End()
end if
set rss=server.CreateObject("adodb.recordset")
ssql="select * from yixiang_news where newsid="&id
rss.open ssql,conn,1,1
if not rss.eof then
%>
<br/>
<TABLE width=778 border=0 align="center" cellPadding=0 cellSpacing=0>
  <TBODY>
  <TR>
    <TD 
    style="BACKGROUND-POSITION: right 50%; BACKGROUND-IMAGE: url(i../mages/bg1.gif); BACKGROUND-REPEAT: repeat-y; BACKGROUND-COLOR: #ffffff" 
    vAlign=top align=middle>      <TABLE cellSpacing=0 cellPadding=0 width=100% border=0>
        <TBODY>
        <TR>
          <TD width="74%"><img height=32 src="../images/update_newsinfo.gif" width=576 
            border=0></TD>
          <TD width="26%" background="../images/info_bg.gif">&nbsp;</TD>
        </TR></TBODY></TABLE>
      <TABLE class=content_border cellSpacing=0 cellPadding=0 width=100% 
border=0>
        <TBODY>
        <TR>
          <TD align=middle>
<FORM name="Form1" action="save_edit.asp?id=<%=id%>" method="post" onSubmit="return check_null()">
 <TABLE cellSpacing=0 cellPadding=4 width="100%" border=0>
              <TBODY>
              <TR>
                <TD align=right bgcolor="#EFF7FF">为提高发布效率，获得更多贸易机会，请用汉字如实填写以下表格。 （打<FONT 
                  color=#ff0000>*</FONT>为必填项）</TD>
              </TR></TBODY></TABLE>
            
            <table width="100%"  >
        <tr>
          <td height="30" bgcolor="#F9F9F9"><font color="red">◆</font><strong><font style="font-size:14px;">修改新闻</font> </strong></td>
        </tr>
      </table>
            <TABLE cellSpacing=2 cellPadding=1 width="100%" border=0>
              <COLGROUP>
              <COL class=formtop></COLGROUP>
              <TBODY>
              
              <TR>
                <TD class=C width="28%" bgColor=#eff7ff><FONT color=#ff0000>* 
                  </FONT><B><B>新闻标题</B>：</B></TD>
                <TD width="75%" bgColor=#ffffde><input type="text" name="title" value="<%=rss("title")%>"></TD>
              </TR>
				              <tr>
        <td class="C" bgcolor=EFF7FF><font color="ff0000">*</font> <b><B>新闻分类</B>：</b></td>
        <td bgcolor=FFFFDE>
		<select name="typeid" style="width:152px">
		<%
		set rs=server.CreateObject("adodb.recordset")
		sql="select * from yixiang_newsType"
		rs.open sql,conn,1,1
		if not rs.eof then
		do while not rs.eof 
		%>
		<option value='<%=rs("typeid")%>' <%if rs("typeid")=rss("typeid") then response.Write("selected") end if %>><%=rs("type")%></option> 
		<%
		rs.movenext
		loop
		rs.close
		end if
		%>
		</select>
		</td>
      </tr>
            <tr>
        <td class="C" bgcolor=EFF7FF><font color="ff0000">*</font> <strong>新闻属性</strong>：</td>
        <td bgcolor=FFFFDE>
		
		<input name="tjnews" <%if rss("tjnews")=1 then response.write"checked"%> type="checkbox" id="tjnews" value="1"> <span style="font-size:12px">推荐</span></td>
      </tr>
				<TR>
                <TD class=C width="28%" bgColor=#eff7ff><FONT color=#ff0000>* 
                  </FONT><B>新闻内容：</B><BR>                          </TD>
                <TD width="75%" bgColor=#ffffde><textarea name="content" style="display:none"><%=rss("content")%></textarea><iframe ID="eWebEditor1" src="../../editor/ewebeditor.asp?id=content&style=standard&originalfilename=d_originalfilename &savefilename=d_savefilename &savepathfilename=d_savepathfilename" frameborder="0" scrolling="no" width="617" HEIGHT="450"></iframe><BR>
				  </TD></TR>
	                </TBODY>
            </TABLE>
			
            <TABLE cellSpacing=0 cellPadding=4 border=0>
              <TBODY>
              <TR>
                
                <TD vAlign=top noWrap><INPUT class=subbutton style="WIDTH: 160px"  type=submit value=" 填好了，提交！ "> 
                </TD></TR></TBODY></TABLE></FORM></TD></TR></TBODY></TABLE></TD></TR>
</TABLE>
<%
end if
rss.close
set rss=nothing
%>