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

📄 modify_save.asp

📁 全球商务网站系统介绍 GLOBALEC.COM.CN[生成HTML版] 系统概述: 软件名称:全球商务网站系统 当前版本:V1.0 最新版本:V1.1 运行环境:WINNT+(IIS)
💻 ASP
字号:
<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/safe.asp"-->
<%
  Response.Buffer = true
  Response.ExpiresAbsolute=now()-1
  Response.Expires=0
  Response.CacheControl="no-cache"
%>
<%
if Not ChkPost then 
response.redirect ("../../login/chklogin.asp?login=4")
response.end
end if

if session("id")="" then
response.Redirect("../../login/login1.asp")
response.end
end if

id=session("id")

name1=Replace_Text(request.form("name"))
ch=Replace_Text(request.form("ch"))
email=Replace_Text(request.form("email"))
phonecountry=Replace_Text(request.form("phonecountry"))
phonearea=Replace_Text(request.form("phonearea"))
phonenumber=Replace_Text(request.form("phonenumber"))
phone=phonecountry&"&nbsp;"&phonearea&"&nbsp;"&phonenumber
faxcountry=Replace_Text(request.form("faxcountry"))
faxarea=Replace_Text(request.form("faxarea"))
faxnumber=Replace_Text(request.form("faxnumber"))
fax=faxcountry&"&nbsp;"&faxarea&"&nbsp;"&faxnumber
mobile=Replace_Text(request.form("mobile"))
post=Replace_Text(request.form("post"))
country=Replace_Text(request.form("country1"))
sf=Replace_Text(request.form("province"))
city=Replace_Text(request.form("city"))
address=Replace_Text(request.form("address"))
qymc=Replace_Text(request.form("qymc"))
zw=Replace_Text(request.form("zw"))
tm=Replace_Text(request.form("tm"))
p_z_Z_productionService=Replace_Text(request.form("p_z_Z_productionService"))
sortid=Replace_Text(request.form("p_z_Z_RootCategory"))
CategoryId=split(Replace_Text(request.form("p_z_Z_CategoryId1")),",")
typeid=CategoryId(0)
typeid_2=CategoryId(1)
web=Replace_Text(request.form("web"))
isournotify=Replace_Text(request.form("isournotify"))
if isournotify="" then
isournotify=0
else
isournotify=1
end if
isothernotify=Replace_Text(request.form("isothernotify"))
if isothernotify="" then
isothernotify=0
else
isothernotify=1
end if
%>
<%
sql="select * from corporation where id<>"&id&" and (qymc='"&qymc&"' or email='"&email&"')" 
Set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,1
if not (rs.eof and rs.bof) then
response.write"<SCRIPT language=JavaScript>alert('您填写的公司名称或E-mail已存在,请返回重新填写!!');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end 
end if

set rs=server.CreateObject ("adodb.recordset")
sql="select * from corporation where id="&id&""
rs.open sql,conn,1,3

rs("name")=name1
rs("ch")=ch
rs("email")=email
rs("phone")=phone
rs("fax")=fax
rs("mobile")=mobile
rs("post")=post
rs("country")=country
rs("sf")=sf
rs("city")=city
rs("address")=address
rs("qymc")=qymc
rs("zw")=zw
rs("zycp")=p_z_Z_productionService
rs("sortid")=sortid
rs("typeid")=typeid
rs("typeid_2")=typeid_2
rs("web")=web
rs("isournotify")=isournotify
rs("isothernotify")=isothernotify
rs("tm")=tm
rs.update
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>操作成功</title>
<link href="../../images/css.css" rel="stylesheet" type="text/css">
<meta HTTP-EQUIV=refresh Content='1;url=modify_info.asp'>
</head>

<table border="0" cellspacing="0" width="100%" cellpadding="0" height="418" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="100%" height="418" valign="middle" align="center">
<b>恭喜您,公司介绍已经修改成功!<a href="modify_info.asp">返回</a></b></td>
</tr>
</table>
</body>
</html>
<%
rs.close
set rs=noting
conn.close
set conn=nothing
%>

⌨️ 快捷键说明

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