<!--#include virtual="/conn.asp"-->
<!--#include virtual="/function/fd_function.asp"-->
<!--#include virtual="/db.asp"-->
<% 
pro_id=T(request.QueryString("pro_id"))

set cn=fd_cn(cn)

sql="select * from chinammc_news where mmc_id="&pro_id&""
set rs=fd_rs(cn,sql)
if not (rs.bof and rs.eof) then
mmc_id=rs("mmc_id")
mmc_title=rs("mmc_title")
mmc_url=rs("mmc_url")
mmc_content=rs("mmc_content")
end if
fd_free(rs)


fd_free(cn)
%>





<!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="images/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.add_protd{height:25px; padding:0px 10px;line-height:24px;color:#4b6888;}
.input{ background-color:#DFDFFF;height:14px;}
.input2{ background-color:#DFDFFF;height:20px;}
</style>
<script language="javascript" src="gethei.js" type="text/javascript"></script>
</head>

<body>

<table width="100%" align="center" cellpadding="0" cellspacing="0" style="border-top:1px solid #B9FFFF">
  <tr>
  <td height="36" style="background:url(images/mrtbg.jpg) repeat-x;" >&nbsp;&nbsp;<font size="3" color="#4b6888"><strong>修改新闻</strong></font></td>
  </tr>

<form name="add_pro" method="post" action="news_ok.asp?action=edit">  
  <tr>
  <td class="add_protd">新闻标题:
        <input name="mmc_title" type="text" class="input" id="mmc_title" value="<%=trim(mmc_title)%>" size="70" />&nbsp;&nbsp;</td>
  </tr>
  <tr>
  <td class="add_protd">外链地址:
        <input name="mmc_url" type="text" class="input" id="mmc_url" value="<%=trim(mmc_url)%>" size="70" />&nbsp;&nbsp;</td>
  </tr>
  
  <tr>
  <td class="add_protd">
       <font color="#4b6888">新闻内容:</font><textarea cols="100" rows="10" name="mmc_content" id="sc_copyright"><%=mmc_content%></textarea>
       <input name="aa" type="hidden" id="aa">  </td>
  </tr><tr><td height="2"></td></tr>
  
  <tr>
  <td class="add_protd">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <input name="tijiao" class="input2" type="submit" value="提交商品信息" onclick="return sbmt()" />&nbsp;&nbsp;&nbsp;&nbsp;
      <input name="chongzhi" class="input2" type="reset" value="重置商品信息"  />
	  <input name="pro_id" type="hidden" value="<%=trim(mmc_id)%>" />  </td>
  </tr><tr><td height="2"></td></tr>
</form> 
</table>
</body>
</html>

<script language="javascript">
function sbmt()
{ 
    if(document.add_pro.mmc_title.value=="")
    {
	alert("新闻标题不能为空!");
	document.add_pro.mmc_title.focus();
	return false;
	}
    if(document.add_pro.mmc_content.value=="")
    {
	alert("新闻内容不能为空!");
	document.add_pro.mmc_content.focus();
	return false;
	}
}
</script>
