<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<!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.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE1 {
	color: #FFFFFF;
	font-weight: bold;
	font-size: 14px;
}
.STYLE2 {color: #FF0000}
-->
</style>
</head>

<body>
<div class="productadd">
<script language="javascript">
function checkproduct()
{
if(window.productform.productname.value=="")
{
alert("产品名称赞不能为空!");
window.productform.productname.focus();
return false;
}
return true;
}
</script>
<form name="productform" action="productsave.asp" method="post" onsubmit="return checkproduct()">
  <table width="50%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr bgcolor="#003366">
      <td height="34" colspan="2"><span class="STYLE1">产品库添加窗口</span></td>
    </tr>
    <tr>
      <td width="12%" height="42"><div align="right">产品型号:</div></td>
      <td width="88%"><input name="productname" type="text" id="productname" size="65" />
        <span class="STYLE2">*</span></td>
    </tr>  <tr>
      <td width="12%" height="48"><div align="right">厂商:</div></td>
      <td width="88%"><select name="factory" id="factory">
	  <%
	  set rsfactory=server.CreateObject("adodb.recordset")
	  rsfactory.activeconnection=conn
	  rsfactory.cursortype=3
	  sql="select * from factory"
	  rsfactory.open sql
	  do while not rsfactory.eof
	  %>
	  <option value="<%=rsfactory("factoryname")%>"><%=rsfactory("factoryname")%></option>
	  <%
	  rsfactory.movenext
	  loop
	  %>
            </select></td>
    </tr>
    <tr>
      <td height="51"><div align="right">类别:</div></td>
      <td><select name="producttype" id="factory">
	  <%
	  set rsproducttype=server.CreateObject("adodb.recordset")
	  rsproducttype.activeconnection=conn
	  rsproducttype.cursortype=3
	  sql="select * from producttype"
	  rsproducttype.open sql
	  do while not rsproducttype.eof
	  %>
	  <option value="<%=rsproducttype("producttypename")%>"><%=rsproducttype("producttypename")%></option>
	  <%
	  rsproducttype.movenext
	  loop
	  %>
            </select></td>
    </tr>
    <tr>
      <td><div align="right">产品参数说明:</div></td>
      <td><textarea name="productcontent" style="DISPLAY:none"></textarea>
      <iframe src="../edit/ewebeditor.htm?id=productcontent" width="600" height="405" scrolling="no" frameborder="0" class="STYLE9" ID="editor"></iframe></td>
    </tr>
    <tr>
      <td><div align="right"></div></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2"><div align="center">
        <input type="submit" name="Submit" value="提交" />
        　　
        <input type="reset" name="Submit2" value="重置" />
      </div></td>
      </tr>
  </table>
  </form>
</div>
</body>
</html>
<%
set rsfactory=nothing
set rsproducttype=nothing
conn.close
%>
