📄 gonggao.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="adminset.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆!');window.location.href='login.asp';</script>"
response.End
end if
%>
<%
function HTMLEncode2(fString)
fString = Replace(fString, CHR(13), "")
fString = Replace(fString, CHR(10) & CHR(10), "</P><P>")
fString = Replace(fString, CHR(10), "<BR>")
HTMLEncode2 = fString
end function
dim action
action=request.QueryString("action")
select case action
case "savegongao"
if session("flag")>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限!</b></font></div>"
response.End
end if
if qx15<>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限!</b></font></div>"
response.End
end if
set rs=server.CreateObject("adodb.recordset")
rs.open "select gonggao from shop_config",conn,1,3
rs("gonggao")=htmlencode2(trim(request("gonggao")))
rs.update
set rs=nothing
response.Write "<script language=javascript>alert('公告修改成功!');history.go(-1);</script>"
response.End
end select
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style1 {color: #000000}
-->
</style></head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/right_top2.gif">
<tr>
<td width="1%"> </td>
<td width="99%"><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="30%" height="26" style="font-size:14px;color:#ffffff"> <strong><font color="#000000">更改首页公告</font></strong></td>
<td width="70%" align="right"> </td>
</tr>
</table></td>
</tr>
</table>
<br>
<form name="form1" method="post" action="gonggao.asp?action=savegongao" id="Form1">
<div align="center"></div>
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#9DB2D4" id="Table2">
<tr>
<td bgcolor="#C7D3E6"> <span class="style1">声明:此信息为首页公告,请及时更新,支持HTML代码。</span></td>
</tr><tr>
<td bgcolor="#F0F3F8">
<div align="center">
<textarea name="gonggao" cols="90" rows="10" id="Textarea1" class="wenbenkuang"><%set rs=server.CreateObject("adodb.recordset")
rs.Open "select gonggao from shop_config",conn,1,1
response.Write trim(rs("gonggao"))
rs.Close
set rs=nothing
%>
</textarea>
</div></td>
</tr>
<tr>
<td height="20" bgcolor="#F0F3F8">
<div align="center">
<input type="submit" name="Submit" value="提 交" id="Submit1" class="go-wenbenkuang">
<input type="reset" name="Submit2" value="恢 复" id="Reset1" class="go-wenbenkuang">
</div></td>
</tr>
</table>
</form><br>
<!--#include file="copyright.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -