<!--#include virtual="/conn.asp"-->
<!--#include virtual="/function/fd_function.asp"-->
<!--#include virtual="/function/fd_set.asp"-->
<%
if qx2=0 then
response.Write "<script language=javascript>alert('没有权限！');history.back();</script>"
response.end()
end if
%>
<% 
set cn=fd_cn(cn)
'==================一级类别====================
sql="select * from chinammc_class where mmc_jb=1 order by mmc_orderid asc"
set rs=fd_rs(cn,sql)
opt=""
do until rs.eof
opt=opt&"<option value="&trim(rs("mmc_id"))&">"&rs("mmc_title")&"</option>"
rs.movenext
loop
fd_free(rs)
'================二级类别======================
sql="select * from chinammc_class where mmc_jb=2 order by mmc_orderid asc"
set rs=fd_rs(cn,sql)
opta=""
do until rs.eof
opta=opta&"<option value="&trim(rs("mmc_id"))&">"&rs("mmc_title")&"</option>"
rs.movenext
loop
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:#000000;}
.input{ height:14px;}
.input2{ 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:2px solid #e3e3e3">
  <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=add">  
  <tr>
  <td class="add_protd">
      新闻标题:
        <input name="mmc_title" type="text" class="input" id="mmc_title" size="70" />&nbsp;&nbsp;</td>
  </tr><tr><td height="1" bgcolor="#E3E3E3"></td></tr><tr><td height="1" bgcolor="#E3E3E3"></td></tr><tr><td height="1" bgcolor="#E3E3E3"></td></tr><tr><td height="1" bgcolor="#E3E3E3"></td></tr>
  <tr>
  <td class="add_protd" id="show" style="display:block">
       <font color="#ffffff">新闻内容: </font>
       <textarea cols="100" rows="10" name="mmc_content" id="sc_copyright"></textarea>
       <input name="aa" type="hidden" id="aa">  </td>
  </tr><tr><td height="1" bgcolor="#E3E3E3"></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="重置商品信息"  />  </td>
  </tr><tr><td height="1" bgcolor="#E3E3E3"></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;
	}
}
function show()
{ 
    if(document.add_pro.mmc_check.checked==true)
    {
	document.getElementById('show').style.display='none';
	return false;
	}
	else
	{
	document.getElementById('show').style.display='block';
	}
}
</script>
