<!--#include virtual="/incs/config.asp"-->
<!--#include virtual="/incs/web_top.asp"-->
<%
perpage=20
ThePage=0
page=0
rcount=0
thepage=0
'''''''''''''''''''''''''''''''''

query="select * from artlst  where  n_ifshw=1  order by n_addtme desc"
rs.open query,conn,1,1



if rs.RecordCount<=0 then
         
	   else
	      rcount=rs.recordcount
	      rs.pagesize=perpage
		  ThePage=rs.pagecount
		  if Chk_Int(SafeRequest("page"))=false then
		  page=1
		  else
		   page=cint(SafeRequest("page"))
		    if page<=0  then
		       page=1
		    elseif page>ThePage then
		       page=ThePage
		    end if	  
		  end if
		    rs.absolutepage=page
       end if   

%>
<script language="javascript">
<!--

function tofirst()
{searchform.page.value=1;
searchform.submit();
 }
  function toprev()
{searchform.page.value-=1;
searchform.submit();
 }
  function tonext()
{
searchform.page.value=<%=page%>-1+2;
searchform.submit();
 }
  function tolast()
{searchform.page.value=<%=ThePage%>;
searchform.submit();
 }
 function toorder(ordn)
{searchform.ordernum.value=ordn;
searchform.page.value=1;
searchform.submit();
 }

 //-->
 </script>
      <table cellspacing=0 cellpadding=0 width="100%" border=0>
        <tbody> 
        <tr> 
          <td colspan=2><img height=3 
            src="/imgs/spacer.gif" width=3></td>
        </tr>
        <tr> 
          
          
    <td width=438 
          background=/imgs/bg_inside_pages_link.jpg 
          height=30><img height=11 
            src="/imgs/aword_square.gif" width=11 
            align=absMiddle> <a href="/">首 页</a> <strong>&gt;</strong> <a href="/article/">行业新闻</a></td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td colspan=2><img height=10 
            src="/imgs/shadow_inside_pages.jpg" 
        width=438></td>
        </tr>
        </tbody>
      </table>
 <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD vAlign=top width=180 bgColor=#f3f3f3><!--#include virtual="/help/menu.asp"-->
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
          </TD>
          <TD vAlign=top width=10 
          background=/imgs/bg_inside_pages_block.jpg><IMG 
            height=1 src="/imgs/bg_inside_pages_block.jpg" 
            width=10></TD>
          <TD vAlign=top> 
            <table cellspacing=2 cellpadding=0 width="100%" border=0>
              <tbody> 
              <tr> 
                <td  colspan=2 valign="middle"> <br>
                </td>
              </tr>
              <tr> 
                <td  colspan=2 valign="middle" height="28">
<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tbody> 
  <form action=index.asp method=post name=searchform2>
          <tr> 
            <td height=20 width="119">&nbsp;共计 <b> <%=rcount%> </b>条记录 </td>
            <td height=20> 
                          <div align="center"> 
                            <input type=hidden name=ordernum value="<%=ordernum%>">
                <%=page_turn%></div>
            </td>
            <td height=20 width="120"> 
              <div align="right">转第 
                <select name="page" onChange="javascript:document.searchform2.submit();">
                  <option selected value=<%=page%>><%=page%></option>
                  <%
				   for i=1 to thepage
				   response.write "<option value="&i&">"&i&"</option>"
				   next
				   %> 
                </select>
                页</div>
            </td>
          </tr>
        </form>
        </tbody> 
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height=8></td>
        </tr>
      </table>
                  <table border=0 cellpadding=2 
                        cellspacing=1 bordercolordark="#FFFFFF" align="center"  width="100%" bgcolor="#666666">
                    <tbody> 
                    <form action="index.asp" method=post>
                      <tr bgcolor="#8b8b8b" > 
                        <td height="26" width="6%" align=center> 
                          <div align="center"><font color="#FFFFFF">序号</font></div>
                        </td>
                        <%
			if ordernum=11 then
			odr1=12
			else
			odr1=11
			end if
			if ordernum=21 then
			odr2=22
			else
			odr2=21
			end if
			if ordernum=31 then
			odr3=32
			else
			odr3=31
			end if
			if ordernum=41 then
			odr4=42
			else
			odr4=41
			end if
			if ordernum=51 then
			odr5=52
			else
			odr5=51
			end if
			%>
                        <td height="26" align=center bgcolor="#8b8b8b"><a href="javascript:toorder(<%=odr1%>);"><font color=#000000><u><font color="#FFFFFF">标题</font></u></font></a></td>
                        <td height="26" align=center width="23%"><a href="javascript:toorder(<%=odr3%>);"><font color=#000000><u><font color="#FFFFFF">日期</font></u></font></a></td>
                      </tr>
                      <%
			dim ifshw(2)
			ifshw(0)="NO"
			ifshw(1)="<b>YES</b>"
		  i=1
	Do While Not rs.eof 
	%>
                      <tr bgcolor="#FFFFFF" > 
                        <td height="25"  align=center><%=i+perpage*(page-1)%></td>
                        <td height="25" bgcolor="#FFFFFF">&nbsp;<a href="art_dtl.asp?nid=<%=rs("n_id")%>" target=_blank><font color=#000000 style="FONT-FAMILY: Tahoma,verdana,arial;"><%=rs("n_ttl")%></font></a> 
                          
                        </td>
                        <td height="25"  align=center><%=rs("n_addtme")%></td>
                      </tr>
                      <%
  rs.movenext
i=i+1
if i>perpage then
exit do
end if

  loop 
  	rs.close
  %>
                    </form>
                    </tbody> 
                  </table>
        <div align="center"></div>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height=8></td>
        </tr>
      </table>
      
<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tbody> 
  <form action=index.asp method=post name=searchform>
          <tr> 
            <td height=20 width="120">&nbsp;共计 <b> <%=rcount%> </b>条记录 </td>
            <td height=20> 
                          <div align="center"> 
                            <input type=hidden name=ordernum value="<%=ordernum%>">
                <%=page_turn%>
              </div>
            </td>
            <td height=20 width="120"> 
              <div align="right">转第 
                <select name="page" onChange="javascript:document.searchform.submit();">
                  <option selected value=<%=page%>><%=page%></option>
                  <%
				   for i=1 to thepage
				   response.write "<option value="&i&">"&i&"</option>"
				   next
				   %>
                </select>
                页</div>
            </td>
          </tr>
        </form>
        </tbody> 
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height=8></td>
        </tr>
      </table> 
<br>
</td>
              </tr>
              </tbody> 
            </table>
          </TD>
        </TR></TBODY></TABLE>
      
	  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD bgColor=#cccccc><IMG height=1 
            src="/imgs/spacer.gif" 
      width=1></TD></TR></TBODY></TABLE>
<!--#include virtual="/incs/web_bottom.asp"-->