<ul style="text-align:left;line-height:25px;margin-left:25px;">
        
      <script language="javascript">
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
</script>
<%
myid=request("id")
if myid="" then
	myid=1
end if

'mypage = int(request("page"))

'if request("page")="" then
	'mypage = 1
'end if
myurl = request.ServerVariables("SCRIPT_NAME")
if myurl = "/news.asp" then
	mySQL = "新闻动态"
	
elseif myurl = "/Action.asp" then
	mySQL = "学校活动"

elseif myurl = "/TEACHER.asp" then
	mySQL = "教师风采"
	
elseif myurl = "/Viewport.asp" then
	mySQL = "教研视点"
	
elseif myurl = "/Health.asp" then
	mySQL = "保健课堂"
	
elseif myurl = "/Zone.asp" then
	mySQL = "家校空间"
	
elseif myurl = "/Feature.asp" then
	mySQL = "特色教学"

elseif myurl = "/Parent-child.asp" then
	mySQL = "亲子乐园"	
	
elseif myurl = "/qq.asp" then
	mySQL = "QQ空间"
	
elseif myurl = "/Recruit.asp" then
	mySQL = "招贤纳士"
	
elseif myurl = "/Announcement.asp" then
	mySQL = "公告"	
		
end if
set mrs=server.CreateObject("adodb.recordset")

	mrs.open "select * from news where myid='" & mySQL & "' order by id desc",conn,1,1



if not mrs.eof then
mrs.pagesize = 15 '每页大小
mrs.absolutepage=myid '当前是第几页
i=0
d=0
do while not mrs.eof
d = d + 1
%>
    	<li style="border-bottom:1px dashed #CCCCCC;height:25px;line-height:25px;width:375px;">
        	<div style="float:left;width:20px;margin-top:3px;"><img src="images/left_y.jpg" border="0" /></div>
            <div style="float:left;width:250px;height:25px;"><a href="news_show.asp?id=<%=mrs("id")%>&name=<%=mySQL%>" title="<%=mrs("title")%>"><%=left(mrs("title"),18)%><%if len(mrs("title"))>18 then%>...<%end if%></a></div>
            <div style="float:right;color:#999999;"><%=mrs("date")%></div>
        </li>
        
<%
mrs.movenext
if d >= 15 or mrs.eof then exit do
loop

else
%>        
 <li>暂无信息</li>
<%end if%>      
        
        
        
<li>
<div style="float:left;width:375px; margin-top:30px; margin-left:0px;">
<%
mypage=request("page")
mycount=mrs.recordcount
he=mycount \ 15

if mycount mod 15 = 0 then
mya=0
else
mya=1
end if
myhe=he+mya
%>
          
  页<%=myhe & "/" & myid%>&nbsp;&nbsp;
  <%if int(myid)=1 then %> 
  <font color="#999999" face="宋体" size="2">首页</font>
  <%else%>  
  <a href="<%request.ServerVariables("SCRIPT_NAME")%>?page=<%=mypage%>&id=1">首页</a>
 <%end if %>  
  <%if int(myid)=1 then %> 
  <font color="#999999" face="宋体" size="2">上一页</font>
  <%else%>
<a href="<%request.ServerVariables("SCRIPT_NAME")%>?page=<%=mypage%>&id=<%=myid-1%>">上一页</a>
 <%end if %>
  <%if int(myhe) <= int(myid) then %> 
  <font color="#999999" face="宋体" size="2">下一页</font>
  <%else%>
          <a href="<%request.ServerVariables("SCRIPT_NAME")%>?page=<%=mypage%>&id=<%=myid+1%>">下一页</a>
  <%end if%>
<%if int(myhe) <= int(myid) then %>
  <font color="#999999" face="宋体" size="2">尾页</font>
  <%else%>   
<a href="<%request.ServerVariables("SCRIPT_NAME")%>?page=<%=mypage%>&id=<%=myhe%>">尾页</a>     
 <%end if%>
&nbsp;&nbsp;  <select style="border: 1px solid #999999;" name="jumpMenu" id="jumpMenu" onChange="MM_jumpMenu('parent',this,0)">
    <option value="">选页</option>
<% for t=1 to myhe%>    
    <option value="<%request.ServerVariables("SCRIPT_NAME")%>?page=<%=mypage%>&id=<%=t%>"><%=t%></option>
<%next%>    
    
  </select>

</div>
</li>
<%mrs.close:set mrs=nothing%>
</uL>