?? produit_add.asp
字號:
</td>
</tr>
<tr>
<td align="right" height="30">入庫時間:</td>
<td class="category">
<input name="selldate" value="<%=date()%>" readonly style="width:150px">
<img src="../images/date.gif" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:window.open('day.asp?form=form1&field=selldate&oldDate='+selldate.value,'','directorys=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,width=250,height=170,top=200,left=520');">
</td>
</tr>
<tr>
<td align="right" height="30">經辦人:</td>
<td class="category">
<%
if request.Cookies("shiwei_id")=1 then
sql="select * from login order by id_zu,id"
set rs_login=conn.execute(sql)
else
sql="select * from login where id="&request.Cookies("shiwei_id")
set rs_login=conn.execute(sql)
end if
if rs_login.eof then
%>
<script language="javascript">
alert("請先添加員工!")
window.location.href="../system/user_add.asp"
</script>
<%
response.end
else
%>
<select name="id_login">
<%
do while rs_login.eof=false
%>
<option value="<%=rs_login("id")%>"<%if rs_login("username")=request.Cookies("shiwei_username") then%> selected="selected"<%end if%>><%=rs_login("username")%> (<%=rs_login("bianhao")%>)</option>
<%
rs_login.movenext
loop
%>
</select>
<%
end if
%>
</td>
</tr>
<tr>
<td align="right" height="30">備注:</td>
<td class="category">
<textarea name="beizhu" cols="60" rows="3"></textarea>
</td>
</tr>
<tr>
<td height="30"> </td>
<td class="category">
<input type="submit" value=" 確認添加 " onClick="return check1()" class="button">
<input type="hidden" name="hid1" value="ok">
<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>
<table cellpadding=0 cellspacing=0 width="98%" align=center><tr><td height="5"></td></tr></table>
<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="form3">
<tr>
<td align="right" height="30">所屬大類:</td>
<td class="category">
<%
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>
<%
response.end
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>
<td align="right" height="30">所屬小類:</td>
<td class="category">
<%
sql="select * from smallclass where id_bigclass="&nowbigclass&" order by id"
set rs_smallclass=conn.execute(sql)
%>
<select name="smallclass">
<option value="0"></option>
<%
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>
<td width="20%" height="30" align="right">產品名稱:</td>
<td width="80%" class="category">
<input name="title" type="text" style="width:200px;"> <font color="#ff0000">*</font></td>
</tr>
<tr>
<td align="right" height="30">產品貨號:</td>
<td class="category">
<input type="text" name="huohao" style="width:200px"> <font color="#ff0000">*</font></td>
</tr>
<tr>
<td align="right" height="30">加入倉庫:</td>
<td class="category">
<%
if request.Cookies("shiwei_id")="1" or fla88="1" then
sql="select * from ku order by id"
set rs_ku=conn.execute(sql)
else
sql="select * from ku where instr(login,',"&request.Cookies("shiwei_id")&",')>0 order by id"
set rs_ku=conn.execute(sql)
end if
if rs_ku.eof then
%>
<script language="javascript">
alert("沒有屬于你管理的倉庫,請先添加倉庫!")
window.location.href="../system/ku_add.asp"
</script>
<%
response.end
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>
<td align="right" height="30">入庫數量:</td>
<td class="category"><input type="text" name="shulian" style="width:100px" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))" value="1">
<font color="#ff0000">*</font></td>
</tr>
<tr>
<td align="right" height="30">產品單位:</td>
<td class="category">
<%
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>
<%
response.end
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>
<td align="right" height="30">產品價格:</td>
<td class="category">推薦賣價:<input type="text" name="price" style="width:100px" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))">
<font color="#666666">元</font>
進貨價:<input type="text" name="price2" style="width:100px" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))">
<font color="#666666">元</font></td>
</tr>
<tr>
<td align="right" height="30">規格:</td>
<td class="category"><input type="text" name="guige" style="width:200px"></td>
</tr>
<tr>
<td align="right" height="30">最低庫存報警數量:</td>
<td class="category"><input type="text" name="baojin" style="width:100px" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))" value="0">
<font color="#666666">(設為零將不會報警)</font></td>
</tr>
<tr>
<td align="right" height="30">經辦人:</td>
<td class="category">
<%
if request.Cookies("shiwei_id")=1 then
sql="select * from login order by id_zu,id"
set rs_login=conn.execute(sql)
else
sql="select * from login where id="&request.Cookies("shiwei_id")
set rs_login=conn.execute(sql)
end if
if rs_login.eof then
%>
<script language="javascript">
alert("請先添加員工!")
window.location.href="../system/user_add.asp"
</script>
<%
response.end
else
%>
<select name="id_login">
<%
do while rs_login.eof=false
%>
<option value="<%=rs_login("id")%>"<%if rs_login("username")=request.Cookies("shiwei_username") then%> selected="selected"<%end if%>><%=rs_login("username")%> (<%=rs_login("bianhao")%>)</option>
<%
rs_login.movenext
loop
%>
</select>
<%
end if
%> </td>
</tr>
<tr>
<td align="right" height="30">供應商:</td>
<td class="category">
<%
sql="select * from gys order by id"
set rs_gys=conn.execute(sql)
%>
<select name="id_gys">
<option value="0"></option>
<%
do while rs_gys.eof=false
%>
<option value="<%=rs_gys("id")%>"><%=rs_gys("company")%></option>
<%
rs_gys.movenext
loop
%>
</select>
</td>
</tr>
<tr>
<td align="right" height="30">產品類型:</td>
<td class="category">
<select name="class">
<option value="0">正常產品</option>
<option value="1">公司贈品</option>
</select>
</td>
</tr>
<tr>
<td align="right" height="30">兌換所需積分:</td>
<td class="category">
<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>
<td align="right" height="30">提成類型:</td>
<td class="category">
<select name="tichen_type" onChange="chg1(this.value)">
<option value="0">按百分比提成</option>
<option value="1">固定提成</option>
</select>
</td>
</tr>
<tr>
<td align="right" height="30">員工提成:</td>
<td class="category">
銷售一件提成:<input type="text" name="tichen" style="width:50px" value="0">
<font color="#666666"><span id="bian1">%</span></font></td>
</tr>
<tr>
<td align="right" height="30">產品備注:</td>
<td class="category">
<textarea name="beizhu" cols="60" rows="3"></textarea>
</td>
</tr>
<%if showpic="yes" then%>
<tr>
<td align="right" height="30">產品圖片:</td>
<td class="category">
<table cellpadding="3" cellspacing="0" width="100%"><tr><td width="20%" align="center">
<div id=pic style="width:100;height:100;background-color:ffffff;border:solid 1 #FBA685"><br><br><br> 暫無圖片</div></td>
<td width="80%">
<font color="#ff0000">選擇完圖片后,請點擊上傳按鈕上傳圖片!</font><br>
<iframe src="../uploadpic.asp" width=400 height=30 frameborder=none framespacing=0 scrolling=no noresize marginwidth=0 marginheight=0></iframe><br>
<font color=999999>所選圖片都必須是 jpg 或 gif 格式</font>
</td></tr></table>
</td>
</tr>
<%end if%>
<tr>
<td height="30"> </td>
<td class="category"><input type="submit" value=" 確認添加 " onClick="return check()" class="button">
<input type="hidden" name="hid2" value="ok">
<input type="hidden" name="photo" value="">
<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 + -