<!--#include file="Inc/syscode.asp"-->
<!-- #include file="Inc/Head.asp" -->
<table width="1003" height="100" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <TD vAlign="top" width="200" background="images/1_24.jpg" style="padding-bottom:8px;">
	<table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
		<tr>
			<td width="200" valign="top"><!-- #include file="L_CoProfile.asp" --></td>
		</tr>
		<tr>
    <td valign="top"><!-- #include file="L_Search.asp" --></td>
  </tr>
  <tr>
    <td valign="top"><!-- #include file="L_product.asp" --></td>
  </tr>
  <tr>
    <td valign="top">&nbsp;</td>
  </tr>
	</table></TD>

    <td width="803" valign="top">
    <TABLE cellSpacing=0 cellPadding=0 border=0>
        <TBODY>
        <TR>
          <TD height="2" colspan="2"></TD>
        </TR>
        <TR>
          <TD width=2 height=160></TD>
          <TD vAlign=top width=801><div id=makewing style="height:160">
        <table width="803"  border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="160" bgcolor="#66CCFF"><img src="gg/1.png"></td>
          </tr>
          <tr>
            <td height="160" bgcolor="#FFCC66"><img src="gg/2.png"></td>
          </tr>
          <tr>
            <td height="160" bgcolor="#99CC66"><img src="gg/3.png"></td>
          </tr>
          <tr>
            <td height="160" bgcolor="#66CCFF"><img src="gg/4.png"></td>
          </tr>
          <tr>
            <td height="160" bgcolor="#FFCC66"><img src="gg/5.png"></td>
          </tr>
          <tr>
            <td height="160" bgcolor="#99CC66"><img src="gg/6.png"></td>
          </tr>
        </table>
        <script language=JavaScript src="js/powerpoint.js"></script>
</div></TD>
        </TR>
        <tr>
          <td height="12" colspan="2"></td>
        </tr>
       </TBODY>
    </TABLE>
    <TABLE width="100%" border="0" cellPadding="0" cellSpacing="0">
		<TR> 
			<TD height=1 background=img/naBialym.gif><IMG height=1 src="img/1x1_pix.gif" width=10></TD>
		</TR>
		<TR> 
			<TD vAlign="top"> 
				<TABLE width="100%" border=0 align="center" cellPadding=0 cellSpacing=0>
					<TR> 
						<TD width="100%" height=32><table width="95%" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
					<tr> 
						<td width="14%" height="18">&nbsp;<img src="img/arrow.gif" width="16" height="13"><strong>公司新闻</strong></td>
						<td width="86%">&nbsp;</td>
					</tr>
				</table></TD>
					</TR>
					<TR> 
			<TD height="1" bgcolor="#666666"><IMG height=1 src="img/1x1_pix.gif" width=10></TD>
		</TR>
				</TABLE>
			</TD>
		</TR>
		<TR> 
			<TD height=1 background=img/naBialym.gif vAlign="top"><IMG height=1 src="img/1x1_pix.gif" width=10></TD>
		</TR>
		<TR> 
			<TD height=1 vAlign="top">
	<%
flag="尚未处理"
set rs=server.createobject("adodb.recordset")
sqltext="select * from Conews Order BY id desc"
rs.open sqltext,conn,1,1
dim PerPage
PerPage=20
'假如没有数据时
If rs.eof and rs.bof then
call showpages
response.write "<p align='center'><font color='#ff0000'>还没任何新闻</font></p>"
response.end
End if
'取得页数,并判断用户输入的是否数字类型的数据，如不是将以第一页显示
text="0123456789"
Rs.PageSize=PerPage
for i=1 to len(request("page"))
checkpage=instr(1,text,mid(request("page"),i,1))
if checkpage=0 then
exit for
end if
next

If checkpage<>0 then
If NOT IsEmpty(request("page")) Then
CurrentPage=Cint(request("page"))
If CurrentPage < 1 Then CurrentPage = 1
If CurrentPage > Rs.PageCount Then CurrentPage = Rs.PageCount
Else
CurrentPage= 1
End If
If not Rs.eof Then Rs.AbsolutePage = CurrentPage end if
Else
CurrentPage=1
End if

call showpages
call list

If Rs.recordcount > PerPage then
call showpages
end if

'显示帖子的子程序
Sub list()
%> 
			<table width="98%" border="0" align="center" cellpadding="0" cellspacing="3" bgcolor="#FBFEFF">
					<tr> 
						<td height="8"></td>
					</tr>
<%
if not rs.eof then
do while not rs.eof
%>
					<tr> 
						<td>&nbsp;&nbsp;※&nbsp;<a href="NewsInfo.asp?id=<%=rs("id")%>"><%=rs("title")%></a>&nbsp;&nbsp;<font color="#0066CC" face="Arial"><%=rs("time")%></font>&nbsp; <%if rs("time")=date() then%> <strong><font color="#FF0000" face="Arial">New</font></strong><%end if%></td>
					</tr>
<%
i=i+1
if i >= Perpage then exit do
rs.movenext
loop
end if
%>
					<tr> 
						<td height="8"></td>
					</tr>
				</table></TD>
		</TR>
		<TR> 
			<TD height=1 background=img/naBialym.gif><IMG height=1 src="img/1x1_pix.gif" width=10></TD>
		</TR>
		<TR> 
			<TD> 
<table width="100%" height="19" border="0" align="center" cellpadding="0" cellspacing="0">
					<tr> 
						<td width="4%" height="18" bgcolor="#eeeeee">&nbsp;</td>
						<td width="96%" bgcolor="#eeeeee"> 
<%
Response.write "<strong><font color='#000000'>-> 全部-</font>"
Response.write "共</font>" & "<font color=#FF0000>" & Cstr(Rs.RecordCount) & "</font>" & "<font color='#000000'>条新闻</font></strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
Response.write "<strong><font color='#000000'>第</font>" & "<font color=#FF0000>" & Cstr(CurrentPage) &  "</font>" & "<font color='#000000'>/" & Cstr(rs.pagecount) & "</font></strong>&nbsp;"
If currentpage > 1 Then
response.write "<strong><a href='News.asp?&page="+cstr(1)+"'><font color='#000000'>首页</font></a><font color='#ffffff'> </font></strong>"
Response.write "<strong><a href='News.asp?page="+Cstr(currentpage-1)+"'><font color='#000000'>上一页</font></a><font color='#ffffff'> </font></strong>"
Else
Response.write "<strong><font color='#000000'>上一页 </font></strong>"
End if
If currentpage < Rs.PageCount Then
Response.write "<strong><a href='News.asp?page="+Cstr(currentPage+1)+"'><font color='#000000'>下一页</font></a><font color='#ffffff'> </font>"
Response.write "<a href='News.asp?page="+Cstr(Rs.PageCount)+"'><font color='#000000'>尾页</font></a></strong>&nbsp;&nbsp;"
Else
Response.write ""
Response.write "<strong><font color='#000000'>下一页</font></strong>&nbsp;&nbsp;"
End if
'response.write "</td><td align='right'>"
'response.write "<font color='#000000' >转到：</font><input type='text' name='page' size=4 maxlength=4 class=smallInput value="&Currentpage&">&nbsp;"
'response.write "<input class=buttonface type='submit'  value='Go'  name='cndok'>&nbsp;&nbsp;"
%> 
					  </td>
					</tr>
					<tr> 
						<td height="1" colspan="2" bgcolor="#999999"></td>
					</tr>
				</table>
			</TD>
<%
End sub
rs.close
%> 
		</TR>
	</TABLE>    
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>   
        
</td>
  </tr>
</table>

<!-- #include file="Inc/Foot.asp" -->
</BODY></HTML>
