<!--#include file="conn.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<style type="text/css">
<!--
@import url("images/br.css");
-->
</style>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
<%
on error resume next
Dim Typeid
Typeid=Trim(Request.QueryString("Typeid"))
if isNumeric(Typeid) then
%>
<table width="95%" border=0 cellpadding=0 cellspacing=2 id="Mytable" >
  <tbody>
    <tr> 
      <td colspan="3"><table width="100%" border="0" cellspacing="4" cellpadding="4">
          <tr> 
            <td width="7%" height="32"><img src="images/2jbe.gif" width="22" height="19"></td>
            <td width="14%" align="center" id="mytitle"  class="2j"><%=conn.execute("Select ts_name from t_type_son where ts_id="&typeid)(0)%></td>
            <td width="79%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td height="20" background="images/2jbe01.gif"><img src="images/2jbe01.gif" width="21" height="19"></td>
                </tr>
              </table></td>
          </tr>
        </table></td>
    </tr>
    <%
				  dim i,page
				  rs.pagesize=15
				  rs.open GetSql(59,typeid)&" order by n_id desc",conn,1,1,1
				  if rs.eof then
%>
    <tr> 
      <td width="19"> <div align="center"></div></td>
      <td height=25 colspan="2">[暂无]</td>
    </tr>
    <%else
				page=clng(request("page"))
				if page<1 Then page=1
				if page>rs.pagecount then page=rs.pagecount
				rs.AbsolutePage=page
				for i=1 to rs.pagesize
				%>
    <tr> 
      <td width="19" class="u1"> <div align="center"></div></td>
      <td height=24 colspan="2" class="u1"
	  <%if i mod 2 = 0 then
								  Response.write "background=""/images/new_zi_bj.jpg"""
							  else
								  Response.write "background=""/images/new_zi_bj2.jpg"""
							  End if
							  %>
	  ><a title="<%=replace(rs("n_title"),"""","")%>" href="?id=<%=rs("n_id")%>" ><%=CutStr(rs("n_title"),32)%></a> 
        <font color="#999999"><%=formatdatetime(rs("n_date"),2)%></font></td>
    </tr>
    <%
				rs.movenext
				if rs.eof then exit for
				next
				end if
				%>
    <tr> 
      <td >&nbsp;</td>
      <td width="427" height=25>&nbsp;共<%=rs.recordcount%>条&nbsp;&nbsp;共<%=rs.pagecount%>页&nbsp;&nbsp;第<%=page%>页　　 
        <%
												  if page>1 then
													  Response.write "<a href=""?typeid="&typeid&"&page="&page-1&""">上一页</a>"
												  else
													  response.write "上一页"
												  end if
												  response.write "&nbsp;&nbsp;&nbsp;"
												  if page<rs.pagecount then
												  		response.write "<a href=""?typeid="&typeid&"&page="&page+1&""">下一页</a>"
													else
														response.write "下一页"
												  end if
												  %>
        转到 
        <select name="select" onChange="location='?typeid=<%=typeid%>&page='+this.value">
          <%
				  for i=1 to rs.pagecount
				  %>
          <option value="<%=i%>" <%if page=i then response.write "selected"%>><%=i%></option>
          <%
				  next
					rs.close
					conn.close
					set rs=nothing
					set conn=nothing
				  %>
        </select>
        页 </td>
      <td width="95" >&nbsp;</td>
    </tr>
  </tbody>
</table>
<%
else
		dim id,title,content
		id=Trim(Request.QueryString("id"))
		if not isnumeric(id) then Response.end
		set rs=conn.execute("Select n_Title,n_content from t_news where n_id="&id)
		if rs.eof then 
		else
		title=rs(0)
		content=rs(1)
		End if
		rs.close
		set rs=nothing
		set conn=nothing
		%>
<table width="98%" border="0" align="center" cellpadding="4" cellspacing="4" id="Mytable">
  <tr> 
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="20" background="images/2jbe01.gif"><img src="images/2jbe01.gif" width="21" height="19"></td>
        </tr>
      </table></td>
  </tr>
  <tr align="center"> 
    <td  class="2j" style="font-size:15px;"><%=title%></td>
  </tr>
  <tr valign="top"> 
    <td height="253"> <script type="text/javascript"><!--
google_ad_client = "pub-6414546412158283";
google_alternate_color = "ffffFF";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text_image";
google_ad_channel ="6078331934";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br><span class="txt"><%=content%></span></td>
  </tr>
  <tr align="right"> 
    <td><a href="#$" onClick="history.back();">&lt;&lt;返回</a></td>
  </tr>
</table>
<%End if%>
<script  language="JavaScript">

parent.document.all.content.height=Mytable.clientHeight
</script>
</body>
</html>
