<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="setup.asp"-->
<!--#include file="conn.asp"-->
<html>
<head>
<LINK href="img/css.css" type=text/css rel=stylesheet>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=site_name%></title>
<style type="text/css">
<!--
.style3 {color: #0099CC}
-->
</style>
</head>

<body class="body_qian"><!--#include file="top.asp"-->

<table width="908" height="258" border="3" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
  <tr>
    <td width="200" height="252" valign="top" bgcolor="#FFFFFF">&nbsp;
<br>	</td>
    <td valign="top" bgcolor="#FFFFFF">	
	  <table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0" style="line-height:140% ">
        <tr>
          <td height="38" align="center" valign="top" style="color: #0099CC;font-size:12px ">当前位置：院系名称→图片新闻
          </td>
        </tr>
        <tr>
          <td><%
set rs=server.createobject("ADODB.recordset")
sql="select * from news where shoupic<>'' order by id DESC"
rs.open sql,conn,1,1
if rs.eof then
response.write "暂无相关信息"
else
number=san_lanmu_no  '设置梅页显示条数
if request("page")="" then
curpage = 1
else
curpage = cint(request("page"))
end if

rs.pagesize=cint(number)
rs.absolutepage = curpage

for i= 1 to rs.pagesize
'response.Write "<li type=circle><a href='show.asp?id=" & rs("id") & "' target='_blank'  title='"& rs("title") & "  [" & rs("newstime")& "]" & "'>"&rs("title")&"</a>"
response.Write "<table width='98%'cellSpacing=0 cellPadding=0 border=0 style='line-height:140% '><tr><td width='15'><img src='img/icon.gif'></td><td style='border-bottom: 1px dotted #cccccc' width='550'><a href='show.asp?id=" & rs("id") & "' target='_blank'  title='"& rs("title") & "  [" & rs("newstime")& "]" & "'>"
'rs("title")
if len(trim(rs("title")))<=15 then
					    response.write left(trim(rs("title")),18)
						else
						response.write left(trim(rs("title")),18) & "…"
end if
if date()<rs("newstime")+2 then
						response.write  "<img src='img/news2.gif' border=0>"
end if
response.write "</a></td><td style='border-bottom: 1px dotted #cccccc'>["&gettime(rs("newstime"))&"]</td></tr></table>"

rs.movenext
if rs.eof then
           i=i+1
           exit for
       end if
next
%></td>
        </tr>
        <tr>
          <td align="center">


<br>
<span class="style3" style="font-size:13px ">
<%     response.Write "页次<b>"&curpage&"/"&rs.pagecount&"</b>--每页<b>"&number&"</b>--共<b>"&rs.recordcount&"</b>条&nbsp;&nbsp;&nbsp;"
     if curpage = 1 then 
		response.write "<font face='Webdings'>9</font> <font face='Webdings'>7</font> "
	else
		if er="ok" then response.write "<a class='xiahua' href='?page=1'><font face='Webdings'>9</font></a> <a class='xiahua' href='?page=" & cstr(curpage-1) & "'><font face='Webdings'>7</font></a> " else response.write "<a class='xiahua' href='?page=1'><font face='Webdings'>9</font></a> <a class='xiahua' href='?page=" & cstr(curpage-1) & "'><font face='Webdings'>7</font></a> " end if
	end if
	if  curpage = rs.pagecount then
		response.write "<font face='Webdings'>8</font> <font face='Webdings'>:</font>"
	else
	    if er="ok"	then response.write "<a class='xiahua' href='?page=" & cstr(curpage+1) & "'><font face='Webdings'>8</font></a> <a class='xiahua' href='?page=" & cstr(rs.pagecount) & "'><font face='Webdings'>:</font></a>" else response.write "<a class='xiahua' href='?page=" & cstr(curpage+1) & "'><font face='Webdings'>8</font></a> <a class='xiahua' href='?page=" & cstr(rs.pagecount) & "'><font face='Webdings'>:</font></a>" end if
	end if
	response.write "(总共"&rs.recordcount&"条新闻)"
''''''''设置上一页,下一页功能////////////////////////////////////////////////////////////////////////////////////
end if
%>
</span></td>
        </tr>
      </table>
  	<br>	</td>
  </tr>
</table><!--#include file="bottom.asp"-->
<%

rs.close
set rs=nothing
conn.close
set conn=nothing
%>
</body>
</html>
