📄 produit_modi.asp
字号:
set rs_ku=conn.execute(sql)
%>
<%=rs_ku("ku")%>
</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="<%=rs("shulian")%>">
<font color="#ff0000">* </font><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")%>"<%if rs_danwei("danwei")=rs("danwei") then%> selected="selected"<%end if%>><%=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,''))" value="<%=rs("price")%>">
<font color="#666666">元</font>
<%if session("shiwei_id")="1" or fla87="1" then%>
进货价:<input type="text" name="price2" style="width:100px" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))" value="<%=rs("price2")%>">
<font color="#666666">元</font>
<%else%>
<input type="hidden" name="price2" value="<%=rs("price2")%>">
<%end if%>
</td>
</tr>
<tr>
<td align="right" height="30">规格:</td>
<td class="category"><input type="text" name="guige" style="width:200px" value="<%=rs("guige")%>"></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="<%=rs("baojin")%>">
<font color="#666666">(设为零将不会报警)</font></td>
</tr>
<tr>
<td align="right" height="30">产品类型:</td>
<td class="category">
<select name="class">
<option value="0"<%if rs("class")=0 then%> selected="selected"<%end if%>>正常产品</option>
<option value="1"<%if rs("class")=1 then%> selected="selected"<%end if%>>公司赠品</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="<%=rs("duihuan")%>">
<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"<%if rs("tichen_type")=0 then%> selected="selected"<%end if%>>按百分比提成</option>
<option value="1"<%if rs("tichen_type")=1 then%> selected="selected"<%end if%>>固定提成</option>
</select>
</td>
</tr>
<tr>
<td align="right" height="30">员工提成:</td>
<td class="category">
销售一件提成:<input type="text" name="tichen" style="width:50px" value="<%=rs("tichen")%>">
<font color="#666666"><span id="bian1"><%if rs("tichen_type")=0 then%>%<%else%>元<%end if%></span></font></td>
</tr>
<tr>
<td align="right" height="30">产品备注:</td>
<td class="category">
<textarea name="beizhu" cols="60" rows="3"><%=rs("beizhu")%></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"><%if rs("photo")="" or isnull(rs("photo")) then%><br><br><br> 暂无图片<%else%><img src="../upload/<%=rs("photo")%>" width=100><%end if%></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="reset" value=" 重新填写 " class="button">
<input type="button" value=" 放弃修改返回 " onClick="window.history.go(-1)" class="button">
<input type="hidden" name="hid" value="ok">
<input type="hidden" name="photo" value="<%=rs("photo")%>">
</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>
<%
else
nowbigclass=request("bigclass")
nowsmallclass=request("smallclass")
nowtitle=request("title")
nowhuohao=request("huohao")
nowoldhuohao=request("oldhuohao")
nowshulian=request("shulian")
nowdanwei=request("danwei")
nowprice=request("price")
if nowprice="" then
nowprice=0
end if
nowprice2=request("price2")
if nowprice2="" then
nowprice2=0
end if
nowguige=request("guige")
nowbaojin=request("baojin")
nowclass=request("class")
nowduihuan=request("duihuan")
nowtichen_type=request("tichen_type")
nowtichen=request("tichen")
nowphoto=request("photo")
nowbeizhu=request("beizhu")
if nowoldhuohao<>nowhuohao then
sql="select * from produit where huohao='"&nowhuohao&"'"
set rs=conn.execute(sql)
if rs.eof=false then
%>
<script language="javascript">
alert("您输入的产品货号已经存在,请重新输入!")
window.history.go(-1)
</script>
<%
response.end
end if
end if
set rs=server.createobject("ADODB.RecordSet")
sql="select * from produit where id="&request("id")
rs.open sql,conn,1,3
rs("id_bigclass")=nowbigclass
rs("id_smallclass")=nowsmallclass
rs("title")=nowtitle
rs("huohao")=nowhuohao
rs("shulian")=nowshulian
rs("danwei")=nowdanwei
rs("price")=nowprice
rs("price2")=nowprice2
rs("guige")=nowguige
rs("baojin")=nowbaojin
rs("class")=nowclass
rs("duihuan")=nowduihuan
rs("tichen_type")=nowtichen_type
rs("tichen")=nowtichen
rs("photo")=nowphoto
rs("beizhu")=nowbeizhu
rs.update
rs.close
sql="select * from produit where huohao='"&nowoldhuohao&"' and id<>"&request("id")
rs.open sql,conn,1,3
do while rs.eof=false
rs("id_bigclass")=nowbigclass
rs("id_smallclass")=nowsmallclass
rs("title")=nowtitle
rs("huohao")=nowhuohao
rs("danwei")=nowdanwei
rs("price")=nowprice
rs("price2")=nowprice2
rs("guige")=nowguige
rs("baojin")=nowbaojin
rs("class")=nowclass
rs("duihuan")=nowduihuan
rs("tichen_type")=nowtichen_type
rs("tichen")=nowtichen
rs("photo")=nowphoto
rs("beizhu")=nowbeizhu
rs.movenext
loop
%>
<script language="javascript">
alert("产品修改成功!")
window.location.href="produit.asp?form=<%=request("form")%>&field=<%=request("field")%>&field2=<%=request("field2")%>&page=<%=request("page")%>&keyword=<%=request("keyword")%>&ku=<%=request("ku2")%>&bigclass=<%=request("bigclass2")%>&smallclass=<%=request("smallclass2")%>&order1=<%=request("order1")%>&order2=<%=request("order2")%>&order3=<%=request("order3")%>&order4=<%=request("order4")%>&order5=<%=request("order5")%>&order6=<%=request("order6")%>&order7=<%=request("order7")%>&order8=<%=request("order8")%>&order9=<%=request("order9")%>&order10=<%=request("order10")%>&order11=<%=request("order11")%>&order12=<%=request("order12")%>&order13=<%=request("order13")%>&order14=<%=request("order14")%>&order15=<%=request("order15")%>"
</script>
<%
end if
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -