⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit.asp

📁 asp+access开发的网上购物程序
💻 ASP
字号:
<%@ codepage ="936" %><!--#include file="../../conn/dbconn2.asp" --><head><LINK href="../Style.css" rel=stylesheet type=text/css><script LANGUAGE="JavaScript">function check(){if (document.Form1.cpbh.value==""){alert("产品编号不能为空")document.Form1.cpbh.focus()document.Form1.cpbh.select()return}if (document.Form1.cpmc.value==""){alert("产品名称不能为空")document.Form1.cpmc.focus()document.Form1.cpmc.select() return}if (document.Form1.cpsb.value==""){alert("产品商标不能为空")document.Form1.cpsb.focus()document.Form1.cpsb.select()return}if (document.Form1.cpcd.value==""){alert("产品产地不能为空")document.Form1.cpcd.focus()document.Form1.cpcd.select() return}if (document.Form1.cpjg.value==""){alert("参考价格不能为空")document.Form1.cpjg.focus()document.Form1.cpjg.select()return}if (document.Form1.cpgg.value==""){alert("产品规格不能为空")document.Form1.cpgg.focus()document.Form1.cpgg.select()return}if (document.Form1.sortid.value==""){alert("行业类别不能为空")return}if (document.Form1.typeid.value==""){alert("行业子类别为能为空!")return}if (document.Form1.jysm.value==""){alert("简要说明不能为空!")document.Form1.jysm.focus()document.Form1.jysm.select() return}if (document.Form1.xxsm.value==""){alert("详细说明不能为空!")document.Form1.xxsm.focus()document.Form1.xxsm.select() return}document.Form1.submit() }</SCRIPT><SCRIPT language=javascript>function PopupCatSel(){var selProdWnd=window.open("select_sort.asp","new","resizable=yes,width=580,height=320,top=0,scrollbars=yes");if(selProdWnd.opener== null) selProdWnd.opener = self;return (false);}</SCRIPT><SCRIPT language=javascript>var upfile_obj;function OnUpFile(){upfile_obj.src=upfile_obj.lowsrc;upfile_obj.src=document.forms["form1"].upfile.value;}</SCRIPT></head><%if not isEmpty(request("id")) thenid=request("id")elseid=1end ifSet rs= Server.CreateObject("ADODB.Recordset")sql="select * from spzs where id="&cstr(id) rs.open sql,conn,1,1Set rssort= Server.CreateObject("ADODB.Recordset") sortsql="select * from class_1 where sortid="&rs("sortid")&""rssort.open sortsql,conn,1,1sortname=rssort("sort")rssort.closeset rstype=server.createobject("adodb.recordset") typesql="select * from class_2 where typeid="&rs("typeid")&""rstype.open typesql,conn,1,1name=rstype("typename")rstype.close%><BODY bgcolor="#ffffff" topmargin="0" leftmargin="0"><CENTER><TABLE border=0 cellPadding=4 cellSpacing=1 width="100%"><FORM method="POST" Action="Save_Edit.asp" Name="Form1"><input type="hidden" name="id" value="<%=id%>"><TR><TD colSpan=2 height="28" bgcolor=#e8f4ff><b>产品信息审核与修改--</b></TD></TR><TR><TD colSpan=2 height="10"></TD></TR><TR height="25"><TD width=40% align="center">产品编号&nbsp;</td><TD width=60%>&nbsp;<input name="cpbh" size="25" value=<%=rs("cpbh")%>><font color="#FF6600"> *(输入产品编号,如LH-002)</font></td></TR><TR height="25"><TD align="center">产品名称&nbsp;</TD><TD>&nbsp;<INPUT name="cpmc" size="25" value=<%=rs("cpmc")%>>&nbsp;<font color="#FF6600">*</font></td></tr><tr><TD align="center">产品商标&nbsp;</td><TD>&nbsp;<INPUT name="cpsb" size="25" value=<%=rs("cpsb")%>>&nbsp;<font color="#FF6600">*</font></TD></TR><TR height="25"><TD align="center">产品产地&nbsp;</td><TD>&nbsp;<input name="cpcd" size="25" value=<%=rs("cpcd")%>>&nbsp;<font color="#FF6600">*</font></td></tr><tr><TD align="center">参考价格&nbsp;</td><TD>&nbsp;<input name="cpjg" size="25" value=<%=rs("cpjg")%>>&nbsp;<font color="#FF6600">*</font></TD></TR><TR height="25"><TD align="center">产品图片&nbsp;</td><TD>&nbsp;<iframe name="ad" frameborder=0 width=100% height=30 scrolling=no src=e_upload.asp?upfile=<%=rs("picture")%>></iframe></TD></TR><TR height="25"> <TD align="center">产品规格&nbsp;</td><TD>&nbsp;<input name="cpgg" size="60" value=<%=rs("cpgg")%>>&nbsp;<font color="#FF6600">*</font></td></TR><TR height="25"><TD align="center">行业频道&nbsp;</TD><TD>&nbsp;<INPUT name=sortid type=hidden value="<%=rs("sortid")%>"><INPUT name=typeid type=hidden value="<%=rs("typeid")%>"><INPUT disabled name=cat_sel_name size=30 value="<%=sortname%> >> <%=name%>"> <INPUT name=cat onclick=return(PopupCatSel()) type=button value=请选择您的类别> <FONT color="#FF6600">*</font></TD></TR><TR><TD align="center">简要说明&nbsp;</TD><TD>&nbsp;<TEXTAREA class="f11" rows="6" name="jysm" cols="75"><%=rs("jysm")%></TEXTAREA><FONT color="#FF6600">&nbsp;*</font></TD></TR><TR><TD><p align="center">详细说明&nbsp;</TD><TD>&nbsp;<TEXTAREA class="f11" rows="6" name="xxsm" cols="75"><%=rs("xxsm")%></TEXTAREA><FONT color="#FF6600">&nbsp;*</FONT></TD></TR><TR><TD colSpan=2 height="10"></TD></TR><TR><TD colSpan=2 height="28" bgcolor=#e8f4ff><b>联系信息修改--</b></TD></TR><TR><TD colSpan=2 height="10"></TD></TR><TR height=25><TD align="center">联 系 人&nbsp;</TD><TD>&nbsp;<input size="20" name="lxr" value=<%=rs("lxr")%>>&nbsp;<font color="#FF6600">*</font></TD></tr><tr><TD align="center">邮政编码&nbsp;</TD><TD>&nbsp;<input size="16" name="postcode" value=<%=rs("postcode")%>>&nbsp;<font color="#FF6600">*</font></TD></TR><TR height=25><TD align="center">公司名称&nbsp;</TD><TD colspan="3">&nbsp;<input name="sccj" size="35" value=<%=rs("sccj")%>>&nbsp;<font color="#FF6600">*</font></TD></TR><TR height=25><TD align="center">公司地址&nbsp;</TD><TD>&nbsp;<input size="35" name="address" value=<%=rs("address")%>>&nbsp;<font color="#FF6600">*</font></TD></TR><TR height=25><TD align="center">所在省份&nbsp;</TD><TD>&nbsp;<input size="10" name="sf" value=<%=rs("sf")%>>&nbsp;<font color="#FF6600">*</font></TD></tr><tr><TD align="center">所属城市&nbsp;</TD><TD>&nbsp;<input size="10" name="city" value=<%=rs("city")%>>&nbsp;<font color="#FF6600">*</font></TD></TR><TR height=25><TD align="center">联系电话&nbsp;</TD><TD>&nbsp;<input size="15" name="phone" value=<%=rs("phone")%>>&nbsp;<font color="#FF6600">*</font></TD></tr><tr><TD align="center">传真号码&nbsp;</TD><TD>&nbsp;<input size="15" name="fax" value=<%=rs("fax")%>>&nbsp;<font color="#FF6600">*</font></TD></TR><TR height=25><TD align="center">公司网址&nbsp;</TD><TD>&nbsp;<input size="40" name="web" value=<%=rs("web")%>>&nbsp;<font color="#FF6600">*</font></TD></TR><TR height=25><TD align="center">电子邮件&nbsp;&nbsp;</TD><TD>&nbsp;<input size="40" name="email" value=<%=rs("email")%>>&nbsp;<font color="#FF6600">*</font></TD></TR><TR><TD bgcolor=#e8f4ff colspan="2" align="center"><INPUT type="button" value="递 交" onclick="check()">&nbsp;&nbsp;&nbsp;&nbsp;<INPUT type="button" value="关  闭" onclick=javascript:window.close()></TD></TR></FORM></TABLE></CENTER>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -