?? produit_add.asp
字號:
<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="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" 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 + -