📄 back_modi.asp
字号:
</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">
<input type="hidden" name="id" value="<%=request("id")%>">
<tr>
<td width="20%" align="right" height="30">产品列表:</td>
<td width="80%" class="category">
<table cellpadding="0" cellspacing="0" width="100%" border=0>
<%
y=0
do while rs_buy.eof=false
y=y+1
%>
<tr id="cailiaohan<%=y%>">
<td>
<input name="huohao<%=y%>" readonly onClick="JavaScript:window.open('produit2.asp?form=form1&field=huohao<%=y%>&field2=price<%=y%>&field3=hidprice<%=y%>&span1=showshulian<%=y%>','','directorys=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=853,height=470,top=176,left=161');" style="width:80px" value="<%=rs_buy("huohao")%>">
数量: <input type="text" name="shulian<%=y%>" style="width:30px" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))" value="<%=rs_buy("shulian")%>">
单价: <input type="text" name="price<%=y%>" style="width:50px" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))" value="<%=rs_buy("price")%>">
<input type="hidden" name="hidprice<%=y%>" value="<%=rs_buy("price")%>">
折扣:<select onChange="chg('price<%=y%>','hidprice<%=y%>',this.value)">
<option value="1">全价</option>
<option value="0.9">九折</option>
<option value="0.8">八折</option>
<option value="0.7">七折</option>
<option value="0.6">六折</option>
<option value="0.5">五折</option>
<option value="0.4">四折</option>
<option value="0.3">三折</option>
<option value="0.2">二折</option>
<option value="0.1">一折</option>
</select>
<%
if session("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,'"&session("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<%=y%>">
<%
do while rs_ku.eof=false
%>
<option value="<%=rs_ku("id")%>"<%if rs_ku("id")=rs_buy("id_ku") then%> selected="selected"<%end if%>><%=rs_ku("ku")%></option>
<%
rs_ku.movenext
loop
%>
</select>
<%if y<>maxproduit then%><span onClick="cailiaohan<%=(y+1)%>.style.display=''" style="cursor:hand;">下一个产品</span><%end if%>
<%if y<>1 then%><input type="button" value="清除" onClick="huohao<%=y%>.value='单击选择产品';shulian<%=y%>.value='1';price<%=y%>.value=''" class="button"><%end if%>
<div id="showshulian<%=y%>"></div>
</td>
</tr>
<%
rs_buy.movenext
loop
%>
<%for x=(y+1) to maxproduit%>
<tr id="cailiaohan<%=x%>" style="display:none;">
<td>
<input name="huohao<%=x%>" readonly onClick="JavaScript:window.open('produit2.asp?form=form1&field=huohao<%=x%>&field2=price<%=x%>&field3=hidprice<%=x%>&span1=showshulian<%=x%>','','directorys=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=853,height=470,top=176,left=161');" style="width:80px" value="单击选择产品">
数量: <input type="text" name="shulian<%=x%>" style="width:30px" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))" value="1">
单价: <input type="text" name="price<%=x%>" style="width:50px" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))">
<input type="hidden" name="hidprice<%=x%>">
折扣:<select onChange="chg('price<%=x%>','hidprice<%=x%>',this.value)">
<option value="1">全价</option>
<option value="0.9">九折</option>
<option value="0.8">八折</option>
<option value="0.7">七折</option>
<option value="0.6">六折</option>
<option value="0.5">五折</option>
<option value="0.4">四折</option>
<option value="0.3">三折</option>
<option value="0.2">二折</option>
<option value="0.1">一折</option>
</select>
<%
if session("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,'"&session("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<%=x%>">
<%
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>
<%if x<>maxproduit then%><span onClick="cailiaohan<%=(x+1)%>.style.display=''" style="cursor:hand;">下一个产品</span><%end if%>
<%if x<>1 then%><input type="button" value="清除" onClick="huohao<%=x%>.value='单击选择产品';shulian<%=x%>.value='1';price<%=x%>.value=''" class="button"><%end if%>
<div id="showshulian<%=x%>"></div>
</td>
</tr>
<%next%>
</table>
</td>
</tr>
<tr>
<td height="30" align="right">选择会员:</td>
<td class="category">
<input name="huiyuan2" readonly onClick="JavaScript:window.open('../huiyuan/huiyuan1.asp?form=form1&field=huiyuan&field2=huiyuan2&field3=huiyuan3','','directorys=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=853,height=470,top=176,left=161');" style="width:90px" value="<%=nowusername%>"> <input type="text" name="huiyuan3" style="width:150px" readonly value="<%=nowcard%>"><input type="hidden" name="huiyuan" value="<%=nowid%>">
<input type="button" value="清除" onClick="huiyuan2.value='单击选择会员';huiyuan3.value='';huiyuan.value='0'" class="button">
</td>
</tr>
<tr>
<td align="right" height="30">入库时间:</td>
<td class="category">
<input name="selldate" value="<%=rs("selldate")%>" 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 session("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="&session("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("id")=rs("id_login") 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"><%=rs("beizhu")%></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>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -