📄 ggmanage.asp
字号:
<!--#include file="conn.asp" -->
<!--#include file="setting.asp"-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
width:734px;
height:116px;
z-index:1;
left: 193px;
top: 23px;
background-color: #FFFFFF;
}
-->
</style>
<link href="css/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
background-image: url();
}
-->
</style></head>
<body class="STYLE3">
<div id="Layer1">
<table width="737" border="0" class="tb1">
<tr>
<td height="121" colspan="5"><div align="center" class="STYLE3">
<p class="STYLE2">公告管理 </p>
<form name="form2" method="post" action="gg_add.asp">
<p>标题:
<input name="title" type="text" class="STYLE3" id="title">
</p>
<p>
<label> 发布时间:
<input name="time" type="text" class="STYLE3" id="time" value="<%response.write(""&now)%>">
</label>
</p>
<p>
<label> 公告内容:<br>
<textarea name="content" cols="50" rows="10" id="content"></textarea>
</label>
</p>
<p>
<label>
<input name="Submit" type="submit" class="STYLE3" value="ok!">
</label>
<label>
<input name="Submit2" type="reset" class="STYLE3" value="reset!">
</label>
</p>
</form>
<form name="form1" method="post" action="">
<%
page=clng(request("page"))
Set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from gonggao"
rs.Open sql,conn,1,1
if rs.eof and rs.bof then
response.Write("你暂时还没发布公告<br>")
else
rs.PageSize=10
if page=0 then page=1
pages=rs.pagecount
if page > pages then page=pages
rs.AbsolutePage=page
for j=1 to rs.PageSize
%>
</form>
</div></td>
</tr>
<tr>
<td width="112"><div align="center" class="STYLE3">
<div align="center">编号</div>
</div></td>
<td width="137"><div align="center" class="STYLE3">
<div align="center">标题</div>
</div></td>
<td width="184"><div align="center" class="STYLE3">
<div align="center">时间</div>
</div></td>
<td width="185"><div align="center">内容</div></td>
<td width="95"><div align="center" class="STYLE3">
<div align="center">操作</div>
</div></td>
</tr>
<tr>
<td><div align="center">
<%response.write(""&rs("bh"))%>
</div></td>
<td><div align="center">
<%response.write(""&rs("title"))%>
</div></td>
<td><div align="center">
<%response.write(""&rs("time"))%>
</div></td>
<td><div align="center">
<form name="form3" method="post" action="">
<label>
<textarea name="textarea" cols="50" rows="5" class="STYLE3" readonly="readonly"><%=rs("content")%></textarea>
</label>
</form>
</div></td>
<td><div align="left" class="STYLE3">
<div align="center"><a href="gg_del.asp?bh=<%=rs("bh")%>">删除</a> </div>
</div></td>
<%
rs.movenext
if rs.eof then exit for
next
%>
</tr>
</table>
<div align="center">
<%if Page<2 then
response.write "首页 上一页 "
else
response.write "<a href=admin_info.asp?page=1>首页</a> "
response.write "<a href=admin_info.asp?page=" & Page-1 & ">上一页</a> "
end if
if rs.pagecount-page<1 then
response.write "下一页 尾页"
else
response.write "<a href=admin_info.asp?page=" & (page+1) & ">"
response.write "下一页</a> <a href=admin_info.asp?page="&rs.pagecount&">尾页</a>"
end if
response.write " 页次:<strong><font color=red>"&Page&"</font>/"&rs.pagecount&"</strong>页 "
response.write " 共<b><font color='#FF0000'>"&rs.recordcount&"</font></b>条记录 <b>"&rs.pagesize&"</b>条记录/页"
response.write " 转到:<input type='text' name='page' size=4 maxlength=10 class=input value="&page&">"
response.write " <input class=input type='submit' value=' Goto ' name='cndok'></span></p>"
%>
</div>
</div>
<%
end if
rs.close
set rs=nothing
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -