📄 edit.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">产品编号 </td><TD width=60%> <input name="cpbh" size="25" value=<%=rs("cpbh")%>><font color="#FF6600"> *(输入产品编号,如LH-002)</font></td></TR><TR height="25"><TD align="center">产品名称 </TD><TD> <INPUT name="cpmc" size="25" value=<%=rs("cpmc")%>> <font color="#FF6600">*</font></td></tr><tr><TD align="center">产品商标 </td><TD> <INPUT name="cpsb" size="25" value=<%=rs("cpsb")%>> <font color="#FF6600">*</font></TD></TR><TR height="25"><TD align="center">产品产地 </td><TD> <input name="cpcd" size="25" value=<%=rs("cpcd")%>> <font color="#FF6600">*</font></td></tr><tr><TD align="center">参考价格 </td><TD> <input name="cpjg" size="25" value=<%=rs("cpjg")%>> <font color="#FF6600">*</font></TD></TR><TR height="25"><TD align="center">产品图片 </td><TD> <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">产品规格 </td><TD> <input name="cpgg" size="60" value=<%=rs("cpgg")%>> <font color="#FF6600">*</font></td></TR><TR height="25"><TD align="center">行业频道 </TD><TD> <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">简要说明 </TD><TD> <TEXTAREA class="f11" rows="6" name="jysm" cols="75"><%=rs("jysm")%></TEXTAREA><FONT color="#FF6600"> *</font></TD></TR><TR><TD><p align="center">详细说明 </TD><TD> <TEXTAREA class="f11" rows="6" name="xxsm" cols="75"><%=rs("xxsm")%></TEXTAREA><FONT color="#FF6600"> *</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">联 系 人 </TD><TD> <input size="20" name="lxr" value=<%=rs("lxr")%>> <font color="#FF6600">*</font></TD></tr><tr><TD align="center">邮政编码 </TD><TD> <input size="16" name="postcode" value=<%=rs("postcode")%>> <font color="#FF6600">*</font></TD></TR><TR height=25><TD align="center">公司名称 </TD><TD colspan="3"> <input name="sccj" size="35" value=<%=rs("sccj")%>> <font color="#FF6600">*</font></TD></TR><TR height=25><TD align="center">公司地址 </TD><TD> <input size="35" name="address" value=<%=rs("address")%>> <font color="#FF6600">*</font></TD></TR><TR height=25><TD align="center">所在省份 </TD><TD> <input size="10" name="sf" value=<%=rs("sf")%>> <font color="#FF6600">*</font></TD></tr><tr><TD align="center">所属城市 </TD><TD> <input size="10" name="city" value=<%=rs("city")%>> <font color="#FF6600">*</font></TD></TR><TR height=25><TD align="center">联系电话 </TD><TD> <input size="15" name="phone" value=<%=rs("phone")%>> <font color="#FF6600">*</font></TD></tr><tr><TD align="center">传真号码 </TD><TD> <input size="15" name="fax" value=<%=rs("fax")%>> <font color="#FF6600">*</font></TD></TR><TR height=25><TD align="center">公司网址 </TD><TD> <input size="40" name="web" value=<%=rs("web")%>> <font color="#FF6600">*</font></TD></TR><TR height=25><TD align="center">电子邮件 </TD><TD> <input size="40" name="email" value=<%=rs("email")%>> <font color="#FF6600">*</font></TD></TR><TR><TD bgcolor=#e8f4ff colspan="2" align="center"><INPUT type="button" value="递 交" onclick="check()"> <INPUT type="button" value="关 闭" onclick=javascript:window.close()></TD></TR></FORM></TABLE></CENTER>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -