<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="connindex.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>新闻中心-<%=sitetitle%></title>
<meta name="keywords" content="<%=keyword%>">
<meta name="description" content="<%=des%>">
<link href="images/css.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="bodytop">
<!--#include file="top.asp"-->
<table width="1003" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30">&nbsp;您的位置：<a href="index.asp">首页</a> &gt; 新闻中心</td>
  </tr>
</table>
<table width="1003" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="242" valign="top">
	<!--#include file="ikc.asp"-->
    <!--#include file="ils.asp"-->
    <!--#include file="ich.asp"-->
      
      </td>
    <td width="761" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="images/mtop.gif" width="761" height="5" /></td>
      </tr>
      <tr>
        <td bgcolor="#FFFFFF"><table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="7" align="left" background="images/mtlbg.gif"><img src="images/mtl.gif" width="5" height="31" /></td>
            <td width="141" align="center" background="images/mtlbg.gif" class="ff14"><b>新闻中心</b></td>
            <td width="5" align="left" background="images/mtmbg.gif"><img src="images/mtm.gif" width="4" height="31" /></td>
            <td width="588" align="right" background="images/mtmbg.gif">&nbsp;</td>
            <td width="9"><img src="images/mtr.gif" width="5" height="31" /></td>
          </tr>
          <tr>
            <td height="840" colspan="5" valign="top" style="line-height:24px;"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td align="left"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="3">
                    <tr>
                      <td valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                          <form action="" method="get" name="form2" id="form2">
                            <%keyword=trim(request("keyword"))
    if keyword="" then
    keywords="所有内容"
    else
    keywords=keyword
    end if 
    %>
                          </form>
                        <%
		set rs=Server.CreateObject("ADODB.Recordset")
		sql="select * from mynews where typeid='zs' order by inpx asc"
		rs.open sql,conn,1,1
		rs.pagesize=10
	
	%>
                          <%if not (rs.eof and rs.bof) then
		Page = cint(Request.querystring("Page"))
   		If Page < 1 Then Page = 1
   		If Page > rs.PageCount Then Page = rs.PageCount
			showpages rs,Page
	%>
                          <%else%>
                          <center>
                            <font color="#000000">没有信息</font>
                          </center>
                        <%end if%>
                          <%Sub showpages( rs,Page )
        rs.AbsolutePage = Page		
		for i=0 to rs.pagesize-1
		
		
		%>
                          <tr>
                            <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td height="150"><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
                                      <tr>
                                        <td width="80%" bgcolor="#FFFFFF"><table width="100%"  border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC">
                                            <tr>
                                              <td bgcolor="#EFEFEF" class="dangqian"><span style="float:right;">[<%=year(rs("n_time"))%>-<%=month(rs("n_time"))%>-<%=day(rs("n_time"))%>]</span><a href="news_show.asp?id=<%=rs("id")%>" target="_blank" class="ft14ye"><b><%=rs("n_title")%></b></a> </td>
                                            </tr>
                                            <tr>
                                              <td height="44" bgcolor="#FFFFFF" class="chei"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                  <tr>
                                                    <td width="17%"><a href="news_show.asp?id=<%=rs("id")%>" target="_blank" class="ft14r"><img src="<%if rs("n_pic")<>"" then%><%=rs("n_pic")%><%else%>../images/no.gif<%end if%>" width="120" height="90" /></a></td>
                                                    <td width="83%"><%=DoTrimProperly((rs.Fields.Item("n_con").Value),100, 0, 1, "...")%>...</td>
                                                  </tr>
                                              </table></td>
                                            </tr>
                                        </table></td>
                                      </tr>
                                  </table></td>
                                </tr>
                                <tr>
                                  <td height="1" background="images/line.gif"></td>
                                </tr>
                            </table></td>
                          </tr>
                          <%
		rs.movenext
  		If rs.EOF Then Exit For
	 	Next%>
                          <%End Sub%>
                        </table>
                          <br />
                          <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="F3F3F3">
                            <form action="?keyword=<%=keyword%>" method="get" name="form1" id="form"  >
                              <tr>
                                <td height="30" align="center" > 页次： <b><%=Page%></b> / <b><%=rs.pagecount%></b> 页
                                  <%
		if Page=1 then 
      		 response.write"<img src=../images/17.gif name=Image48 width=21 height=16 border=0 align=absmiddle title=当前为首页>"
   		end if 
  		 If Page <> 1 Then
		 %>
                                    <a href="?keyword=<%=keyword%>&amp;Page=1&amp;id=<%=id%>" ><img src="../images/18.gif" name="Image48" width="21" height="16" border="0" align="absmiddle" id="Image48" title="首页" /></a> <a href="?keyword=<%=keyword%>&amp;id=<%=id%>&amp;Page=<%=(Page-1)%>" ><img src="../images/20.gif" name="Image47" width="41" height="16" border="0" align="absmiddle" id="Image47" title="上一页" /></a>
                                    <%
   		End If
		%>
                                    <%for i=1 to rs.pagecount
        if i=page then
        %>
                                    <span class="fanye" title="当前为第 <%=i%> 页"><%=i%></span>
                                    <%else%>
                                    <a href="?keyword=<%=keyword%>&amp;Page=<%=i%>&amp;id=<%=id%>" class="fanye2"><%=i%></a>
                                    <%end if%>
                                    <%
        next
        
   		If Page <> rs.PageCount Then
		%>
                                    <a href="?keyword=<%=keyword%>&amp;id=<%=id%>&amp;Page=<%=(Page+1)%>" ><img src="../images/16.gif" name="Image46" width="41" height="16" border="0" align="absmiddle" id="Image46" title="下一页" /></a> <a href="?keyword=<%=keyword%>&amp;id=<%=id%>&amp;Page=<%=rs.PageCount%>" ><img src="../images/14.gif" name="Image49" width="21" height="16" border="0" align="absmiddle" id="Image49" title="尾页" /></a>
                                    <%
        End If
   		if page= rs.PageCount then 
      		response.write"<img src=../images/13.gif name=Image49 width=21 height=16 border=0 align=absmiddle title=当前为尾页>"
  		end if
		%>
                                </td>
                                <%
		If Page = rs.PageCount Then
		response.Write ""
		else
		%>
                                <td> 转到<font class="a">
                                  <input name="page" class="input" value="<%=page%>" size="4" maxlength="8" />
                                  <input type="hidden" value="<%=keyword%>" name="keyword2" />
                                  页<span lang="en-us" xml:lang="en-us"> </span>
                                  <input name="button" type="button" class="buttonface" onClick="check()" value="确定" />
                                  </font></font><br />
                                </td>
                                <%end if%>
                                <%
 rs.close()
 set rs=nothing
 %>
                              </tr>
                            </form>
                          </table></td>
                    </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><img src="images/mdown.gif" width="761" height="5" /></td>
      </tr>
    </table></td>
  </tr>
</table>
<!--#include file="mydown.asp"-->

<!--#include file="down.asp"-->
</body>
</html>
