📄 dx_product_add.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>
<title>商品添加</title>
<!--#include file="Inc/Config.asp"-->
<!--#include file="inc/Dx_admin_check.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="Css/style.css" rel="stylesheet" type="text/css">
<script language="javascript" src="Js/Dx_product.js"></script>
<style>
body {
background-color:#FFFFFF;
}
</style>
<%
if request.Form.Count>0 then
dx_product_class=request.Form("dx_product_class")
dx_product_brand=request.Form("dx_product_brand")
dx_product_model=request.Form("dx_product_model")
dx_product_depot=request.Form("dx_product_depot")
dx_product_parameter=request.Form("dx_product_parameter")
dx_product_about=request.Form("dx_product_about")
dx_product_user=request.Form("dx_product_user")
sql="select * from [dx_product]"
rs.open sql,conn,1,3
rs.addnew
rs("dx_product_class")=dx_product_class
rs("dx_product_brand")=dx_product_brand
rs("dx_product_model")=dx_product_model
rs("dx_product_depot")=dx_product_depot
rs("dx_product_parameter")=dx_product_parameter
rs("dx_product_about")=dx_product_about
rs("dx_product_user")=dx_product_user
rs.update
rs.close
call ShowErr("商品添加成功!","Dx_product.asp")
end if
%>
</HEAD>
<BODY>
<script language="javascript">
function isNumberString (InString,RefString)
{
if(InString.length==0) return (false);
for (Count=0; Count < InString.length; Count++) {
TempChar= InString.substring (Count, Count+1);
if (RefString.indexOf (TempChar, 0)==-1)
return (false);
}
return (true);
}
function check1()
{
if (document.form1.huohao1.value=="单击选择产品")
{
alert("还没有选择产品!");
return false;
}
if (document.form1.shulian1.value=="")
{
alert("请输入数量!");
return false;
}
}
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
<tr>
<td><img src="Images/r_1.gif" alt="" /></td>
<td width="100%" background="Images/r_0.gif">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td> 商品添加(带*号的为必填项)</td>
<td align="right"> </td>
</tr>
</table>
</td>
<td><img src="Images/r_2.gif" alt="" /></td>
</tr>
<tr>
<td></td>
<td>
<table align="center" cellpadding="4" cellspacing="1" class="toptable grid" border="1">
<form name="form1" method="post" onsubmit="return Check_product_add(this)">
<tr>
<td width="20%" align="right" height="30">商品类别:</td>
<td width="80%" class="category">
<select name="dx_product_class">
<option value="">请选择类别</option>
<%
sql="select * from [dx_class] order by dx_class_id desc"
rs.open sql,conn,1,1
if not rs.eof then
while not rs.eof
response.Write("<option value='"&rs("dx_class_id")&"'>"&rs("dx_class_name")&"</option>")
rs.movenext
wend
else
call ShowErr("你还没有添加商品分类,请先添加!","dx_class.asp")
end if
rs.close
%>
</select>
</td>
</tr>
<tr>
<td align="right" height="30">商品品牌:</td>
<td class="category">
<select name="dx_product_brand">
<option value="">请选择品牌</option>
<%
sql="select * from [dx_brand] order by dx_brand_id desc"
rs.open sql,conn,1,1
if not rs.eof then
while not rs.eof
response.Write("<option value='"&rs("dx_brand_id")&"'>"&rs("dx_brand_name")&"</option>")
rs.movenext
wend
else
call ShowErr("你还没有添加商品品牌,请先添加!","dx_brand.asp")
end if
rs.close
%>
</select>
</td>
</tr>
<tr>
<td align="right" height="30">商品名称:</td>
<td class="category">
<input type="text" name="dx_product_model" size="20" value=""> <font color="#FF0000">*</font>
</td>
</tr>
<tr>
<td align="right" height="30">存放仓库:</td>
<td class="category">
<select name="dx_product_depot">
<option value="">请选择仓库</option>
<%
sql="select * from [dx_depot] order by dx_depot_id desc"
rs.open sql,conn,1,1
while not rs.eof
response.Write("<option value='"&rs("dx_depot_id")&"'>"&rs("dx_depot_name")&"</option>")
rs.movenext
wend
rs.close
%>
</select>
</td>
</tr>
<tr>
<td align="right" height="30">商品参数:</td>
<td class="category">
<textarea name="dx_product_parameter" cols="40" rows="7"></textarea> <font color="#FF0000">*</font>
</td>
</tr>
<tr>
<td align="right" height="30">商品介绍:</td>
<td class="category">
<textarea name="dx_product_about" cols="40" rows="7"></textarea>
</td>
</tr>
<tr>
<td align="right" height="30">经办人:</td>
<td class="category">
<select name="dx_product_user">
<option value="<%=Session("Admin")%>"><%=Session("Admin")%></option>
<%
sql="select * from [dx_admin] order by dx_admin_id desc"
rs.open sql,conn,1,1
while not rs.eof
response.Write("<option value='"&rs("dx_admin_name")&"'>"&rs("dx_admin_name")&"</option>")
rs.movenext
wend
rs.close
%>
</select>
</td>
</tr>
<tr>
<td height="30"> </td>
<td class="category">
<input type="submit" value=" 确认添加 " class="button">
<input type="reset" value=" 重新填写 " class="button">
</td>
</tr>
</form>
</table>
</td>
<td></td>
</tr>
<tr>
<td><img src="Images/r_4.gif" alt="" /></td>
<td></td>
<td><img src="Images/r_3.gif" alt="" /></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -