bulletin.asp

来自「网上购物,不错的购物系统,花了好长时间来改的」· ASP 代码 · 共 50 行

ASP
50
字号
<!--#include file="conn.asp"-->
<!--#include file="session2.asp"-->
<%
dim action
action=request.QueryString("action")
select case action
case "savegongao" 
set rs=server.CreateObject("adodb.recordset")
rs.open "select gonggao from config",conn,1,3
rs("gonggao")=request("gonggao")
rs.update
set rs=nothing
response.Write "<script language=javascript>alert('公告修改成功!');history.go(-1);</script>"
response.End
end select
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="style.css" rel="stylesheet" type="text/css">
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<br><br><br><br><br>
<form name="form1" method="post" action="bulletin.asp?action=savegongao" id="Form1">
  <table cellpadding="3" cellspacing="1" border="0" width="100%" class="tableBorder" align=center>
    <tr> 
      <th class="tableHeaderText" colspan=6 height=25>更改首页公告</th>
    </tr>
    <tr> 
      <td class="forumRowHighlight"><div align="center">
          <textarea name="gonggao" cols="60" rows="10" id="Textarea1">
			<%set rs=server.CreateObject("adodb.recordset")
				rs.Open "select gonggao from config",conn,1,1
				response.Write trim(rs("gonggao"))
				rs.Close
				set rs=nothing
                %></textarea>
        </div></td>
    </tr>
    <tr> 
      <td height="20" class="forumRowHighlight"> <div align="center"> 
          <input class="button" type="submit" name="Submit" value="提 交" id="Submit1">
          &nbsp;&nbsp; 
          <input class="button" type="reset" name="Submit2" value="恢 复" id="Reset1">
        </div></td>
    </tr>
  </table>
</form>
</body>
</html>

⌨️ 快捷键说明

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