<head>

<!--#include file="include/conn.asp"-->
<!--#include file="include/config.asp"-->
<% 
classid=clng(request.querystring("classid"))
boardid=clng(request.querystring("boardid"))
boardname=request.querystring("boardname")
if classid<>"" then
sqlt="select * from bigclass2 where bigclassid="&classid
set rst=server.createobject("adodb.recordset")
rst.open sqlt,conn,1,1
owen1=rst("bigclassname")
bigid=rst("bigclassid")
rst.close
set rst=nothing
else
owen1=request.querystring("owen1")
end if
%>
<script language="javascript" type="text/javascript">

function page()
{
window.location.href="list.asp?page="+ pageg.value;
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title>大唐信息网</title>

<style type="text/css">
<!--
@import url("css.css");
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>

</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top" background="images/bg.jpg"><table width="976" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="336" valign="top">          <table width="97%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="26" class="a10">&nbsp;</td>
              </tr>
            <tr>
              <td><table width="320" border="0" cellpadding="0" cellspacing="0" class="k1">
                <tr>
                  <td><%call imgnews()%></td>
                    </tr>
                </table></td>
              </tr>
            <tr>
              <td height="20" valign="middle">&nbsp;</td>
              </tr>
            <tr>
              <td height="25" valign="middle"><table width="322" border="0" cellpadding="0" cellspacing="0" class="k7">
                <%call gosearch()%>
                </table></td>
              </tr>
            <tr>
              <td height="20" valign="middle">&nbsp;</td>
              </tr>
            <tr>
              <td height="187" valign="top"><table width="322" height="162" border="0" cellpadding="0" cellspacing="0" class="k2">
                <tr>
                  <td height="26">&nbsp; <span class="a2">友情</span><span class="a5">链接　　　　　　　　　　　　<a href="link.asp" class="a3">更多&gt;&gt;</a></span></td>
                    </tr><tr><td align="left" style="text-align:center; line-height:230%" valign="top"><%=getlinks()%></td></tr>
                </table></td>
              </tr>
          </table></td>
        <td width="640" valign="top">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="136" valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="72%"><img src="images/lxy1.jpg" width="432" height="80"></td>
                      <td width="28%" rowspan="2" valign="bottom" class="a10"><table width="100%" height="62" border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            <td height="60" class="a10">·中共浙江林学院委员会主办<br>
                              ·大唐信息网编缉部出版<br>
                            ·国内统一刊号：CN33-0808/(G)</td>
                          </tr>
                      </table></td>
                    </tr>
                <tr>
                  <td><img src="images/lxy2.gif" width="432" height="33"></td>
                    </tr>
                </table></td>
              </tr>
   <tr>
            <td height="34" class="a4">　　<a href="index.asp" class="a4">首页</a> | <a href="list.asp?classid=5" class="a4">发展历程</a> | <a href="bjb.asp" class="a4">编辑部</a> | <a href="list.asp?classid=7" class="a4">记者之家</a> | <a href="list.asp?classid=8" class="a4">获奖情况</a> | <a href="list.asp?classid=9" class="a4">汉语言实习基地</a> | <a href="mailto:ybbjb@zjfc.edu.cn" class="a4">投稿信息</a> | <a href="link.asp" class="a4">友情链接</a></td>
          </tr>
            <tr>
              <td height="54" valign="bottom"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="k2">
                <tr>
                  <td width="61%" height="39">　　　　 <span class="a6">校报导航</span>　　<span class="a9">总第<%call gettotalsum()%>期</span> 　<span class="a9"><%call gettotalname()%></span></td>
                        <form method="get" action="cx.asp?classid=classid" name="search">       <td width="39%">　　<img src="images/s1.jpg" width="26" height="32" align="absbottom" /><span class="a1"> 第</span>
			<input name="classid" type="text" value="..." onFocus="this.value=''" onBlur="if (value ==''){value=' '}" size="6" /> 
			<span class="a1">期</span> <input type="image" src="images/go.gif" width="30" height="23" align="absbottom" /></td></form>
                    </tr>
                </table></td>
              </tr>
          </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="96%" height="26" valign="bottom"><div align="right"><span class="a12">首页&gt;&gt;<%=owen1%></span></div></td>
                <td width="4%">&nbsp;</td>
              </tr>
            <tr>
              <td height="28" colspan="2" bgcolor="#98BA3F" class="a123">　<span class="a14"><%=owen1%></span></td>
              </tr>
            <tr>
              <td colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#F6F9E8" class="k2">
                <tr>
                  <td height="500" valign="top"><table width="90%" height="86%" border="0" align="center" cellpadding="0" cellspacing="0"> 
				 
                    <tr>
                      <td height="420" valign="top" style="padding-top:10px;"><% 
page=clng(request.querystring("page"))		 
set rs=server.createobject("adodb.recordset") 
if owen1<>"" and boardname <>"" then
sql="select id,title,oColor,oStyle,top,hits,infotime,firstimagename from news2 where bigclassname='"&owen1&"' and smallclassname='"&boardname&"' order by top desc,id desc"
elseif owen1<>"" then
sql="select id,title,oColor,oStyle,top,hits,infotime,firstimagename from news2 where bigclassname='"&owen1&"' order by top desc,id desc"
else
sql="select id,title,oColor,oStyle,top,hits,infotime,firstimagename from news2 order by top desc,id desc"
end if
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write("暂时没有记录")
else 
%>
<% 
rs.pagesize=15
if page=0 then page=1 
pages=rs.pagecount
if page > pages then page=pages
rs.absolutepage=page  
for j=1 to rs.pagesize 
%> 
<table width="100%" height="28" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                          <td background="images/bg3.gif" class="a12"> &nbsp;&nbsp; <span class="a122">· <a class=<%=rs("oColor")%> href="xbnews2.asp?id=<%=rs("id")%>" target="_blank"><span class="<%=rs("oStyle")%>"><%= rs("title") %></span></a></span> <span class="a3">[<%= rs("infotime") %>] </span></td>
                            </tr>
                        </table><%
rs.movenext
if rs.eof then exit for
next
%>				
</td>
                        </tr>	

                    <tr>
                      <td height="48"><span class="a1">
              <%if page<2 then      
    response.write "首页 上一页&nbsp;"
  else
    response.write "<a href=list.asp?classid="&classid&"&boardname="&boardname&"&page=1>首页</a>&nbsp;"
    response.write "<a href=list.asp?classid="&classid&"&boardname="&boardname&"&page=" & page-1 & ">上一页</a>&nbsp;"
  end if
  if rs.pagecount-page<1 then
    response.write "下一页 尾页"
  else
    response.write "<a href=list.asp?classid="&classid&"&boardname="&boardname&"&page=" & (page+1) & ">"
    response.write "下一页</a> <a href=list.asp?classid="&classid&"&boardname="&boardname&"&page="&rs.pagecount&">尾页</a>"
  end if
   response.write "&nbsp;页次：<strong><font color=red>"&page&"</font>/"&rs.pagecount&"</strong>页 "
    response.write "&nbsp;共<b><font color='#ff0000'>"&rs.recordcount&"</font></b>条记录 <b>"&rs.pagesize&"</b>条记录/页"
   response.write " 转到：<input type='text' name='pageg' size=2 maxlength=10 class=input value="&page&">"
   response.write " <input class=input type='submit'  value='转到'  name='cndok'  onclick='page()'></span></p>"     
%>
       </td>
                        </tr>
                    </table></td>
                    </tr>
                </table></td>
              </tr>
          </table></td>
      </tr>
   <% 
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>    
      <tr>
        <td colspan="2">&nbsp;</td>
      </tr>
      
      
    </table></td>
  </tr>
  <tr>
    <td height="50">      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="50" bgcolor="#478015"><div align="center" class="a10">版权所有 [中共浙江林学院委员会] copyright 2006 All Rights Resenrved</div></td>
        </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
