📄 cimg_save.asp
字号:
<% data_path="../../" 'ACC连接数据库路径,对SQL无效 %>
<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/filesystem.asp"-->
<!--#include file="../../inc/safe.asp"-->
<!--#include file="../checkrole.asp"-->
<%
Response.Buffer = true
Response.ExpiresAbsolute=now()-1
Response.Expires=0
Response.CacheControl="no-cache"
call checkuser("st")
if Not ChkPost then
response.write "<script language='javascript'>"
response.write"parent.location.href='"&HOPE_InstallDir&"login/login1.asp';</SCRIPT>"
response.end
end if
id=Replace_Text(request("id"))
action=Replace_Text(request("action"))
picture=Replace_Text(request("picture"))
oldpic=Replace_Text(request("oldpic"))
oldpic1=Replace_Text(request("oldpic1"))
cimg_title=Replace_Text(request("cimg_title"))
picture1=Replace_Text(request("picture1"))
set rs=server.createobject("adodb.recordset")
sql="select * from wygkcn_corporation where id="&id
rs.open sql,conn,1,3
if action="cimg" then
if picture<>"" then
rs("cimg")=picture
if oldpic<>"" then
call FileDel(HOPE_InstallDir&"vipcom/"&oldpic)
end if
end if
rs("cimg_title")=cimg_title
else
if picture1<>"" then
rs("c_logo")=picture1
if oldpic1<>"" then
call FileDel(HOPE_InstallDir&"vipcom/"&oldpic1)
end if
end if
end if
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
set upload=nothing
%>
<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='3;url=cimg_add.asp?id=<%=id%>'>
</head>
<%
'操作提示
Content="<table width='100%' border='0' cellspacing='5' cellpadding='0'>"
Content=Content&" <tr>"
Content=Content&"<td><strong style='color:#6C88A2;font-size:14px;'>操作成功,"
if action="cimg" then
Content=Content&"公司图片"
else
Content=Content&"公司LOGO"
end if
Content=Content&"更新成功!<a href='cimg_add.asp?id="&id&"'>返回</a></strong></td>"
Content=Content&"</tr>"
Content=Content&" <tr>"
Content=Content&" <td style='font-size:12px;color:#96A9BA;'><li>恭喜您,"
if action="cimg" then
Content=Content&"公司图片"
else
Content=Content&"公司LOGO"
end if
Content=Content&"修改成功,3秒钟后返回</td>"
Content=Content&" </tr>"
Content=Content&" </table>"
Call Operation(Content,1)
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -