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

📄 gonggao.asp

📁 网上书店是指在网上建立一个在线销售的图书平台,购书者可以实现在线定单提交,达到买书的目的.
💻 ASP
字号:
<!--#include file="conn.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登录!');window.location.reload('login.asp')</script>"
response.End
else
if session("flag")>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限!</b></font></div>"
response.End
end if
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" 
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('公告修改成功!');window.location.reload('javascript:history.go(-1)')</script>"
response.End
case "savehuikuan"
set rs=server.CreateObject("adodb.recordset")
rs.open "select huikuanfangshi from shop_config",conn,1,3
rs("huikuanfangshi")=HTMLEncode2(trim(request("huikuanfangshi")))
rs.update
rs.close
response.write "<script language=javascript>alert('付款方式修改成功!');window.location.reload('gonggao.asp')</script>"
response.End
case "savetiaoyue"
set rs=server.CreateObject("adodb.recordset")
rs.open "select regtiaoyue from shop_config",conn,1,3
rs("regtiaoyue")=htmlencode2(trim(request("tiaoyue")))
rs.update
set rs=nothing
response.Write "<script language=javascript>alert('条约修改成功!');window.location.reload('gonggao.asp')</script>"
response.End
end select
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/css.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#6B8FC8" ID="Table1">
  <tr> 
    <td height="16" bgcolor="#6B8FC8"><div align="center">更改首页公告</div></td>
  </tr>
  <tr>
    <td height="200" bgcolor="#E8F1FF">
    <form name="form1" method="post" action="gonggao.asp?action=savegongao" ID="Form1">
        <div align="center"><font color="#FF0000">声明:此信息为首页公告,请及时更新,支持HTML代码。</font></div>
        <table width="80%" border="0" align="center" cellpadding="3" cellspacing="0" ID="Table2">
          <tr> 
            <td><div align="center"> 
                <textarea name="gonggao" cols="60" rows="10" ID="Textarea1"><%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"><div align="center">
                <input type="submit" name="Submit" value="提 交" ID="Submit1">
                &nbsp;&nbsp; 
                <input type="reset" name="Submit2" value="恢 复" ID="Reset1">
              </div></td>
          </tr>
        </table>
      </form></td>
  </tr>
</table>
<br>
<table width="80%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#6B8FC8">
  <tr> 
    <td><div align="center">付款方式设置</div></td>
  </tr>
  <tr> 
    <td height="78" bgcolor="#E8F1FF"><div align="center"> 
        <form name="form1" method="post" action="gonggao.asp?action=savehuikuan">
          <div align="center"><font color="#FF0000">以下是您网站的付款方式</font> </div>
          <table width="80%" border="0" align="center" cellpadding="2" cellspacing="1">
            <tr> 
              <td>
                <%set rs=server.CreateObject("adodb.recordset")
			  rs.open "select huikuanfangshi from shop_config",conn,1,1%>
                <div align="center"> 
                  <textarea name="huikuanfangshi" cols="60" rows="10"><%=trim(rs("huikuanfangshi"))%></textarea>
                  <%rs.close
			   set rs=nothing%>
                </div></td>
            </tr>
            <tr> 
              <td><div align="center"> 
                  <input type="submit" name="Submit3" value="提 交">
                  &nbsp;&nbsp; 
                  <input type="reset" name="Submit22" value="恢 复">
                </div></td>
            </tr>
          </table>
        </form>
      </div></td>
  </tr>
</table>
<br>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#6B8FC8">
  <tr> 
    <td height="16" bgcolor="#6B8FC8"><div align="center">更改注册条约</div></td>
  </tr>
  <tr> 
    <td height="200" bgcolor="#E8F1FF"> <form name="form1" method="post" action="gonggao.asp?action=savetiaoyue">
        <div align="center"><font color="#FF0000">声明:此信息将在新用户注册时显视,支持HTML代码。</font></div>
        <table width="80%" border="0" align="center" cellpadding="3" cellspacing="0">
          <tr> 
            <td><div align="center"> 
                <textarea name="tiaoyue" cols="60" rows="10"><%set rs=server.CreateObject("adodb.recordset")
                rs.Open "select regtiaoyue from shop_config",conn,1,1
                response.Write trim(rs("regtiaoyue"))
                rs.Close
                set rs=nothing
                %></textarea>
              </div></td>
          </tr>
          <tr> 
            <td height="20"><div align="center"> 
                <input type="submit" name="Submit4" value="提 交">
                &nbsp;&nbsp; 
                <input type="reset" name="Submit23" value="恢 复">
              </div></td>
          </tr>
        </table>
      </form></td>
  </tr>
</table>
<!--#include file="copyright.asp"-->
</body>
</html>

⌨️ 快捷键说明

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