<!--#include file="config/conn1.asp"-->
<!--#include file="config/code.inc"-->
<!--#include file="config/function.asp"-->
<!--#include file="config/config.asp"-->
<% 
title=""
 %>
<!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" />
<META content=TRUE name=MSSmartTagsPreventParsing>
<META http-equiv=MSThemeCompatible content=Yes>

<title><%=title1%></title>
<LINK rel=stylesheet type=text/css href="public/global.css">
<LINK rel=stylesheet type=text/css href="public/grid_blue.css">
<LINK rel=stylesheet type=text/css href="public/index.css">
<LINK rel=stylesheet type=text/css href="public/showtab.css">
</head>

<body>
<!--#include file="head.asp"-->
<!--#include file="head1.asp"-->
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="pad1">
  <tr>
    <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="33" colspan="2" style="background:url(images/wzjs/bg.jpg) repeat-x top; padding-left:20px;">在线提问</td>
        </tr>
      <tr>
        <td width="251" align="center" valign="top" class="border1" style="background:url(images/wzjs/bg1.jpg) no-repeat bottom; padding-top:20px;"><table width="60%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td align="left" class="border2"><img src="images/pro/lefttitle.jpg" width="205" height="37" /></td>
          </tr>
          <tr>
            <td align="left" class="border2"><img src="images/wzjs/icon.gif" width="23" height="29" align="absmiddle" /><a href="pro_ymzc.asp" class="leftmenu">域名注册</a></td>
          </tr>
          <tr>
            <td align="left" class="border2"><img src="images/wzjs/icon.gif" width="23" height="29" align="absmiddle" /><a href="pro_zjzy.asp" class="leftmenu">主机租用</a></td>
          </tr>
          <tr>
            <td align="left" class="border2"><img src="images/wzjs/icon.gif" width="23" height="29" align="absmiddle" /><a href="pro_qyyj.asp" class="leftmenu">企业邮局</a></td>
          </tr>
          <tr>
            <td align="left" class="border2"><img src="images/wzjs/icon.gif" width="23" height="29" align="absmiddle" /><a href="pro_wltg.asp" class="leftmenu">网络推广</a></td>
          </tr>
          <tr>
            <td align="left" class="border2"><img src="images/wzjs/icon.gif" width="23" height="29" align="absmiddle" /><a href="pro_cjwt.asp" class="leftmenu">常见问题</a></td>
          </tr>
        </table>
        <!--#include file="left_lineask.asp"-->
          </td>
        <td align="left" valign="top" class="border2" style="padding-top:30px; padding-left:20px;"><table width="93%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="26" align="left" valign="top" class="red14"  style="border-bottom:#CCCCCC 1px solid;"><img src="images/index/newstitle.jpg" width="186" height="39" /></td>
          </tr>
          <tr>
            <td height="300" align="left" valign="top" style="padding-top:20px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
			<% 
            sql = "select * from news order by sortid"
            Set rs = Server.CreateObject("ADODB.Recordset")
            rs.Open sql,Conn,1,1
            I = 11
            rs.PageSize = I
            PCount = rs.Pagecount
			recordCounts = rs.recordCount
            Pageno = Request.QueryString("pageno")
            If Not IsNumeric(Pageno) Then
            Pageno = 1
            Else
            Pageno = Int(Pageno)
            End If
            If Pageno = "" Or Pageno < 1 Then
            Pageno = 1 
            End If
            If Pageno > PCount Then
            Pageno = PCount
            End If
            rs.AbsolutePage = Pageno
            
            '页码--只显示5个--开始
            if pcount = 5 then
            beginpage = 1
            endpage = 5
            end if
            
            if pcount < 5 then
            beginpage = 1
            endpage = pcount
            end if
            
            if pcount > 5 and Pageno >= 1 then
            beginpage = Pageno
            if pageno+4 > pcount then
            beginpage = pcount - 4
            end if
            endpage = Pageno + 4
            if endpage > pcount then
            endpage = pcount
            end if
            end if
            '页码--只显示5个--结束
            
            do while not rs.eof = true and I > 0
            %>

                <tr>
                  <td height="25" align="left"><img src="images/pro/icon1.jpg" width="14" height="12" /><a href="news_detail.asp?id=<%= rs("newsid") %>" class="content"><%= rs("title") %></a></td>
                </tr>
                <% 
                I = I-1
                rs.movenext
                loop
                if rs.eof and rs.bof then
                %>
                <tr>
                <td align="center">对不起，暂无相关内容！</td>
              </tr>
				<%
                end if
                %>
            </table></td>
          </tr>
          <tr>
            <td align="center" style="padding-top:20px;">共<%= recordCounts %>条记录&nbsp;<%= pageno %>/<%= pcount %>页&nbsp;&nbsp;&nbsp;&nbsp;          <%
                    if rs.recordcount <> 0 then
                    If PCount = 1 Then
                    %>
                      首页&nbsp;&nbsp;&nbsp;
                      上一页&nbsp;&nbsp;&nbsp;
                      <% for pagenum = beginpage to endpage
					  if int(pageno) = pagenum then
					   %>
                      <a href="news.asp?pageno=<%= pagenum %>" class="page1">[<%= pagenum %>]</a>&nbsp;
                      <% else %>
                      <a href="news.asp?pageno=<%= pagenum %>" class="page">[<%= pagenum %>]</a>&nbsp;
            <% 
					  end if
					  next 
					  %>
                      &nbsp;&nbsp;&nbsp;下一页
                      &nbsp;&nbsp;&nbsp;末页
                      <% 
                    Else
                    If Pageno = 1 and Pageno<pcount Then
                    %>
                    首页&nbsp;&nbsp;&nbsp;
                    上一页&nbsp;&nbsp;&nbsp;
                      <% for pagenum = beginpage to endpage
					  if int(pageno) = pagenum then
					   %>
                      <a href="news.asp?pageno=<%= pagenum %>" class="page1">[<%= pagenum %>]</a>&nbsp;
                      <% else %>
                      <a href="news.asp?pageno=<%= pagenum %>" class="page">[<%= pagenum %>]</a>&nbsp;
                      <% 
					  end if
					  next 
					  %>
                    &nbsp;&nbsp;&nbsp;<a href="news.asp?pageno=<%= Pageno+1 %>" class="page">下一页</a>
                    &nbsp;&nbsp;&nbsp;<a href="news.asp?pageno=<%= pcount %>" class="page">末页</a>
                     <%
                    End If
                    If Pageno = PCount and not pcount = 1 Then
                    %>
                    <a href="news.asp?pageno=1" class="page">首页</a>&nbsp;&nbsp;&nbsp;
                    <a href="news.asp?pageno=<%= Pageno-1 %>" class="page">上一页</a>&nbsp;&nbsp;&nbsp;
                    <% for pagenum = beginpage to endpage
					  if int(pageno) = pagenum then
					   %>
                      <a href="news.asp?pageno=<%= pagenum %>" class="page1">[<%= pagenum %>]</a>&nbsp;
                      <% else %>
                      <a href="news.asp?pageno=<%= pagenum %>" class="page">[<%= pagenum %>]</a>&nbsp;
                      <% 
					  end if
					  next 
					  %>
                    &nbsp;&nbsp;&nbsp;下一页
                     &nbsp;&nbsp;&nbsp;末页
                    <%
                    End If
                    If Pageno > 1 And Pageno < PCount Then
                    %>
                    <a href="news.asp?pageno=1" class="page">首页</a>&nbsp;&nbsp;&nbsp;
                    <a href="news.asp?pageno=<%= Pageno-1 %>" class="page">上一页</a>&nbsp;&nbsp;&nbsp;
                     <% for pagenum = beginpage to endpage
					  if int(pageno) = pagenum then
					   %>
                      <a href="news.asp?pageno=<%= pagenum %>" class="page1">[<%= pagenum %>]</a>&nbsp;
                      <% else %>
                      <a href="news.asp?pageno=<%= pagenum %>" class="page">[<%= pagenum %>]</a>&nbsp;
                      <% 
					  end if
					  next 
					  %>
                    &nbsp;&nbsp;&nbsp;<a href="news.asp?pageno=<%= Pageno+1 %>" class="page">下一页</a>
                     &nbsp;&nbsp;&nbsp;<a href="news.asp?pageno=<%= pcount %>" class="page">末页</a>
                    <% 
                    end if
                    end if
                    end if
                    %>
</td>
          </tr>
          <tr>
            <td align="center" style="padding-top:20px;">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="pad1">
  <tr>
    <td align="center" valign="top" bgcolor="#FFFFFF"><!--#include file="bottom.asp"--></td>
  </tr>
</table>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
        
</table>
<!--#include file="foot.asp"-->
</body>
</html>
