📄 produit_add.asp
字号:
</tr>
<tr bgcolor="#ffffff">
<td height="30" colspan="8" align="center"><input type="submit" value=" 确认添加 " onClick="return check1()">
<input type="hidden" name="hid1" value="ok">
<input type="reset" value=" 重新填写 ">
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width="98%" align=center><tr><td height="5"></td></tr></table>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="2" align="center" class="TableMenu">
<form name="form3">
<tr class="a1" style="color:#ffffff;font-size:12px;">
<th height="30" style="color:#ffffff;font-size:14px" colspan="2"><img src="../images/add.gif" border="0" hspace="2" align="absmiddle">新产品入库 <font size="-1">(带*号的为必填项)</font></th>
</tr>
<tr class="a3">
<td align="right" height="30"><b>所属大类:</b></td>
<td>
<%
sql="select * from bigclass order by id"
set rs_bigclass=conn.execute(sql)
if rs_bigclass.eof then
%>
<script language="javascript">
alert("请先添加产品大类!")
window.location.href="../system/bigclass_add.asp"
</script>
<%
end if
nowbigclass=request("bigclass")
if nowbigclass="" then
nowbigclass=rs_bigclass("id")
end if
%>
<select name="bigclass" onChange="form3.submit()">
<%
do while rs_bigclass.eof=false
%>
<option value="<%=rs_bigclass("id")%>"<%if trim(cstr(rs_bigclass("id")))=nowbigclass then%> selected="selected"<%end if%>><%=rs_bigclass("bigclass")%></option>
<%
rs_bigclass.movenext
loop
%>
</select>
</td>
</tr>
</form>
<form name="form2">
<input type="hidden" name="bigclass" value="<%=nowbigclass%>">
<tr bgcolor="#ffffff">
<td align="right" height="30"><b>所属小类:</b></td>
<td>
<%
sql="select * from smallclass where id_bigclass="&nowbigclass&" order by id"
set rs_smallclass=conn.execute(sql)
if rs_smallclass.eof then
%>
<script language="javascript">
alert("请先添加产品小类!")
window.location.href="../system/smallclass_add.asp"
</script>
<%
end if
%>
<select name="smallclass">
<%
do while rs_smallclass.eof=false
%>
<option value="<%=rs_smallclass("id")%>"<%if trim(cstr(rs_smallclass("id")))=nowsmallclass then%> selected="selected"<%end if%>><%=rs_smallclass("smallclass")%></option>
<%
rs_smallclass.movenext
loop
%>
</select>
</td>
</tr>
<tr class="a3">
<td width="28%" height="30" align="right"><b>产品名称:</b> </td>
<td width="72%">
<input name="title" type="text" style="width:200px;"> <font color="#ff0000">*</font></td>
</tr>
<tr bgcolor="#ffffff">
<td align="right" height="30"><b>产品货号:</b> </td>
<td>
<input type="text" name="huohao" style="width:200px">
<font color="#ff0000">*</font></td>
</tr>
<tr class="a3">
<td align="right" height="30"><b>加入仓库:</b> </td>
<td>
<%
sql="select * from ku order by id"
set rs_ku=conn.execute(sql)
if rs_ku.eof then
%>
<script language="javascript">
alert("请先添加仓库!")
window.location.href="../system/ku_add.asp"
</script>
<%
end if
%>
<select name="ku">
<%
do while rs_ku.eof=false
%>
<option value="<%=rs_ku("id")%>"<%if rs_ku("moren") then%> selected="selected"<%end if%>><%=rs_ku("ku")%></option>
<%
rs_ku.movenext
loop
%>
</select>
</td>
</tr>
<tr bgcolor="#ffffff">
<td align="right" height="30"><b>入库数量:</b></td>
<td> <input type="text" name="shulian" style="width:100px" onKeyUp="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')" value="1">
<font color="#ff0000">*</font></td>
</tr>
<tr class="a3">
<td align="right" height="30"><b>产品单位:</b></td>
<td>
<%
sql="select * from danwei order by id"
set rs_danwei=conn.execute(sql)
if rs_danwei.eof then
%>
<script language="javascript">
alert("请先添加单位!")
window.location.href="../system/danwei_add.asp"
</script>
<%
end if
%>
<select name="danwei">
<%
do while rs_danwei.eof=false
%>
<option value="<%=rs_danwei("danwei")%>"><%=rs_danwei("danwei")%></option>
<%
rs_danwei.movenext
loop
%>
</select>
<font color="#666666">(只用于普通识别,不能换算)</font> </td>
</tr>
<tr bgcolor="#ffffff">
<td align="right" height="30"><b>推荐卖价:</b></td>
<td> <input type="text" name="price" style="width:100px" onKeyUp="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">
<font color="#666666">元</font></td>
</tr>
<tr class="a3">
<td align="right" height="30"><b>规格:</b></td>
<td> <input type="text" name="guige" style="width:200px"></td>
</tr>
<tr bgcolor="#ffffff">
<td align="right" height="30"><b>最低库存报警数量:</b></td>
<td> <input type="text" name="baojin" style="width:100px" onKeyUp="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" value="0">
<font color="#666666">(设为零将不会报警)</font></td>
</tr>
<tr class="a3">
<td align="right" height="30"><b>经办人:</b></td>
<td>
<%
sql="select * from login order by id"
set rs_login=conn.execute(sql)
if rs_login.eof then
%>
<script language="javascript">
alert("请先添加员工!")
window.location.href="../system/user_add.asp"
</script>
<%
else
%>
<select name="login">
<%
do while rs_login.eof=false
%>
<option value="<%=rs_login("username")%>"<%if rs_login("username")=session("username") then%> selected="selected"<%end if%>><%=rs_login("username")%></option>
<%
rs_login.movenext
loop
%>
</select>
<%
end if
%> </td>
</tr>
<tr bgcolor="#ffffff">
<td align="right" height="30"><b>产品类型:</b></td>
<td>
<select name="class">
<option value="0">正常产品</option>
<option value="1">公司赠品</option>
</select>
</td>
</tr>
<tr class="a3">
<td align="right" height="30"><b>兑换所需积分:</b></td>
<td>
<input type="text" name="duihuan" style="width:100px" onKeyUp="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" value="0">
<font color="#666666">(会员兑换此礼品所需积分)</font></td>
</tr>
<tr bgcolor="#ffffff">
<td align="right" height="30"><b>提成类型:</b></td>
<td>
<select name="tichen_type" onChange="chg1(this.value)">
<option value="0">按百分比提成</option>
<option value="1">固定提成</option>
</select>
</td>
</tr>
<tr class="a3">
<td align="right" height="30"><b>员工提成:</b></td>
<td>
销售一件提成:<input type="text" name="tichen" style="width:50px" value="0" onKeyUp="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">
<font color="#666666"><span id="bian1">%</span></font></td>
</tr>
<tr bgcolor="#ffffff">
<td height="30"> </td>
<td> <input type="submit" value=" 确认添加 " onClick="return check()">
<input type="hidden" name="hid2" value="ok">
<input type="reset" value=" 重新填写 "> </td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -