📄 sj_edit1.asp
字号:
<%@ codepage ="936" %><%if id=session("id") thensession("pageid")="xxfb"response.redirect "../../login/login.asp"elseid=session("id")%><!--#include file="../../conn/dbconn2.asp"--><!--#include file="../../inc/config.asp"--><!--#include file="../../inc/hylb.asp"--><script LANGUAGE="JavaScript">function check(){if (document.Form1.showname.value==""){alert("信息标题不能为空")document.Form1.showname.focus()document.Form1.showname.select()return}if (document.Form1.jgsm.value==""){alert("价格说明不能为空")document.Form1.jgsm.focus()document.Form1.jgsm.select()return}if (document.Form1.type.value =="") { alert("请选择交易类别!"); document.Form1.type.focus(); return (false); } if (document.Form1.content.value==""){alert("信息内容不能为空")document.Form1.content.focus()document.Form1.content.select() return}if (document.Form1.linkman.value==""){alert("联系人不能为空")document.Form1.linkman.focus()document.Form1.linkman.select() return}if (document.Form1.phone.value==""){alert("联系电话不能为空")document.Form1.phone.focus()document.Form1.phone.select() return}if (document.Form1.address.value==""){alert("联系地址不能为空")document.Form1.address.focus()document.Form1.address.select() return}if (document.Form1.country.value==""){alert("所在区域不能为空")document.Form1.country.focus()document.Form1.country.select() return}if (document.Form1.city.value==""){alert("所在城市不能为空")document.Form1.city.focus()document.Form1.city.select() return} if (document.Form1.email.value==""){alert("电子邮件不能为空")document.Form1.email.focus()document.Form1.email.select() return} if (document.Form1.postcode.value==""){alert("邮政编码不能为空")document.Form1.postcode.focus()document.Form1.postcode.select() return} document.Form1.submit()}</SCRIPT><%if not isEmpty(request("info_id")) theninfo_id=request("info_id")elseinf_id=1end ifsql="select * from info where info_id="+cstr(info_id)+" order by info_ID desc"Set rs= Server.CreateObject("ADODB.Recordset") rs.open sql,conn,1,1 %><script language="javascript">function show_sader(mylink){window.open(mylink,'','top=50,left=50,width=430,height=400,scrollbars=no')}</script><head><STYLE type=text/css>TD {COLOR: #000; FONT-FAMILY: 宋体; FONT-SIZE: 12px}.GR {COLOR: #666}</STYLE></head><BODY text=#000000 leftMargin=0 topMargin=0 marginheight="0" marginwidth="0"><div align="center"><center><TABLE cellSpacing=1 width="100%" bgColor=#ffffff border=0 style="border-collapse: collapse" bordercolor="#111111" height="449"><TBODY><tr><TD width="100%" height="446"><form method="POST" action="sj_Save_Edit.asp?info_id=<%=rs("info_id")%>" name="Form1"><center><table border="0" width="100%" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" height="420"> <tr><td width="100%" height="22"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3" height="20"><tr><td width="23" bgColor="#96a5e2" style="color: #000; font-size: 12px; font-family: 宋体" height="20"><img border="0" src="../images/z3.gif"></td><td width="160" bgColor="#5298D1" style="color: #000; font-size: 12px; font-family: 宋体" height="20"><b> <font color="#FFFFFF"><span style="font-size: 10.5pt">要修改的信息</span></font></b></td><td style="color: #000; font-size: 12px; font-family: 宋体" height="20" width="12"><img border="0" src="../images/z4.gif"></td><td style="color: #000; font-size: 12px; font-family: 宋体" height="20" width="583"><p align="right"><font color="#FF0000"> </font><font color=#ff6600>【</font><font color="#FF6600">*</font><font color=#ff6600>为必填写】 【<a href='javascript:show_sader("explanation1.asp")' style="text-decoration: none"><font color=#ff6600>发布须知</font></a>】 </td></tr></table></td></tr><tr><td width="100%" bgcolor="#D7EFFB" height="139"><div align="center"><center><table border="0" cellspacing="1" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" bordercolorlight="#FFFFFF" cellpadding="2" bordercolordark="#FFFFFF" height="84"><tr><td width="15%" height="24"><p align="right">信息主题:</td><td width="34%" height="24"><input type="text" size="21" name="showname" style="border-style: solid; border-width: 1" value="<%=rs("showname")%>"><font color="#FF6600"> *</font></td><td width="51%" rowspan="5" valign="top" height="79"><table border="0" cellspacing="1" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber4"><tr><td width="100%">信息内容:<font color="#800000">(请详细描述您发布的供求信息)</font></td></tr><tr><td width="100%"><textarea rows="8" cols="33" name="content" class="f11" style="border-style:solid; border-width:1; font-family: 宋体"><%=rs("content")%></textarea></td></tr></table></td></tr><tr><td width="15%" height="24"><p align="right">价格说明:</td><td width="34%" height="24"><input type="text" size="21" name="jgsm" style="border-style: solid; border-width: 1" value="<%=rs("jgsm")%>"><font color="#FF6600"> *</font></td></tr><tr><td width="15%" height="25"><p align="right">交易类别:</td><td width="34%" height="25"><select size="1" style="font-size: 9pt" name="type"><option value="<%=rs("type")%>" selected><%=rs("type")%></option><OPTION value="采购">采购</OPTION> <OPTION value="供应">供应</OPTION> <OPTION value="合作">合作</OPTION> <OPTION value="代理">代理</OPTION></SELECT><font color="#FF6600"> *</font></td></tr><tr><td width="15%" height="11"><p align="right">有 效 期:</td><td width="34%" height="11"><select size="1" name="period" style="font-size: 9pt"> <option selected value="<%=rs("period")%>"><%=rs("period")%></option><OPTION value="一周">一周</OPTION> <OPTION value="半月">半月</OPTION><OPTION value="一个月">一个月</OPTION> <OPTION value="三个月">三个月</OPTION> <OPTION value="六个月">六个月</OPTION> <OPTION value="一年">一年</OPTION> <OPTION value="长期">长期</OPTION></select><font color="#FF6600"> *</font></td></tr><tr><td width="15%" height="10"></td><td width="34%" height="10"></td></tr></table></center></div></td></tr><tr><td width="100%" height="25"> </td></tr><tr><td width="100%" height="22"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3" height="20"><tr><td width="23" bgColor="#96a5e2" style="color: #000; font-size: 12px; font-family: 宋体" height="20"><img border="0" src="../images/z3.gif"></td><td width="160" bgColor="#5298D1" style="color: #000; font-size: 12px; font-family: 宋体" height="20"><b> </b><font color="#FFFFFF" style="font-size: 10.5pt"><b>您的联系资料</b></font></td><td style="color: #000; font-size: 12px; font-family: 宋体" height="20" width="13"><img border="0" src="../images/z4.gif"></td><td style="color: #000; font-size: 12px; font-family: 宋体" height="20" width="582"><p align="right"><font color="#800000">注:修改后的信息,系统自动放在</font><font color="#FF0000">今日最新</font><font color="#800000">一栏</font><font color="#FF0000">。 </font></td></tr></table></td></tr><tr bgcolor="#F0F4F0" height="25"><td width="100%" bgcolor="#D7EFFB" height="147"><div align="center"><center><table border="1" cellspacing="1" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" bordercolorlight="#FFFFFF" cellpadding="3" bordercolordark="#FFFFFF" height="154"><tr><td width="100%" colspan="4" height="12"></td></tr><tr><td width="15%" height="19"><p align="right">联 系 人:</td><td width="34%" height="19"><input type="text" class="smallInput" size="21" name="linkman" value=<%=rs("linkman")%>><font color="#FF6600"> *</font></td><td width="16%" height="19"><p align="right">联系电话:</td><td width="35%" height="19"><input type="text" class="smallInput" size="21" name="phone" value=<%=rs("phone")%>><font color="#FF6600"> *</font></td></tr><tr><td width="15%" height="19"><p align="right">公司名称:</td><td width="34%" height="19"><input type="text" class=smallInput size="21" name="company" value=<%=rs("company")%>><font color="#FF6600"> </font></td><td width="16%" height="19"><p align="right">公司地址:</td><td width="35%" height="19"><input class=smallInput type="text" class=smallInput size="21" name="address" value=<%=rs("address")%>><font color="#FF6600"> *</font></td></tr><tr><td width="15%" height="19"><p align="right">所在区域:</td><td width="34%" height="19"><input type="text" class=smallInput size="21" name="country" value=<%=rs("country")%>><font color="#FF6600"> *</font></td><td width="16%" height="19"><p align="right">所属城镇:</td><td width="35%" height="19"><input type="text" class=smallInput size="21" name="city" value=<%=rs("city")%>><font color="#FF6600"> *</font></td></tr><tr><td width="15%" height="19"><p align="right">电子邮件:</td><td width="34%" height="19"><input class="smallInput" type="text" size="21" name="email" value=<%=rs("mail")%>><font color="#FF6600"> *</font></td><td width="16%" height="19"><p align="right">邮政编码:</td><td width="35%" height="19"><input class="smallInput" type="text" size="16" name="postcode" value=<%=rs("postcode")%>> <font color="#FF6600"> *</font></td></tr><tr><td width="15%" height="24"><p align="right">公司传真:</td><td width="34%" height="24"><input class="smallInput" type="text" size="21" name="fax" value=<%=rs("fax")%>></td><td width="16%" height="24"><p align="right">公司网址:</td><td width="35%" height="24"><input class="smallInput" type="text" size="21" name="web" value=<%=rs("web")%>></td></tr></table></center></div></td></tr><tr><td align="center" width="100%" bgcolor="#D7EFFB" height="31"><br><input type="button" value="修 改" onclick="check()"> <input type="button" class="smallInput"value="返 回" onclick=javascript:history.go(-1)><br> </td></tr></table></form><%end if%> </TD></tr></TBODY></TABLE></center></div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -