<!--#include file="top.asp" -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center" style="background: url(images/banner_top.jpg) repeat-x center top #E2E2E2"><img src="images/tt6.jpg" width="999" height="173" /></td>
  </tr>
  <tr>
    <td height="25" style="background: url(images/b_bg.jpg) repeat-x center bottom #E2E2E2">&nbsp;</td>
  </tr>
</table>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<%
sql="select name,parentid,fid from forum where fid="&cint(request("fid"))&" and tid='n'"
rs3.open sql,conn,1,1
if rs3.eof then response.Redirect "index.asp"
'sql="select fid,name from forum where fid="&rs("parentid")&""
'rs2.open sql,conn,1,1
%>
  <tr>
    <td height="30" style="background:url(images/position.jpg) no-repeat bottom left; color:#999; font-size:14px; font-weight:bold">　　　Position &gt; <a href="news.asp?fid=1" class="grayb">News&Events</a> &gt; <a href="?fid=<%=rs3("fid")%>" class="grayb"><%=rs3("name")%></a></td>
  </tr>
  <tr>
    <td height="30">&nbsp;</td>
  </tr>
<%
'rs2.close
'rs.close
%>
</table>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="224" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="35" style=" background:url(images/left_title.jpg) no-repeat left bottom;color:#97c45f; font-weight:bold; font-size:14px">　　<%=rs3("name")%> </td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <%
	  i = year(now())
	  do while i>=2007
	  'for i=2007 to year(now())
	  %>
      <tr>
        <td height="36" style="background:url(images/line.jpg) repeat-x bottom"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="34"><img src="images/dot.jpg" width="34" height="34" /></td>
            <td><a href="news.asp?fid=<%=cint(request("fid"))%>&amp;key=<%=i%>" class="gray2"><%=i%></a></td>
          </tr>
        </table></td>
      </tr>
      <%
	  'next
	  i = i-1
	  loop
	  %>
    </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td height="35" style=" background:url(images/left_title.jpg) no-repeat left bottom;color:#97c45f; font-weight:bold; font-size:14px"><%
		  sql="select * from forum where fid in(1,2) and fid<>"&cint(request("fid"))
		  rs.open sql,conn,1,1
		  response.write "　　<a href='?fid="&rs("fid")&"' style='color:#97c45f;font-weight:bold; font-size:14px; text-decoration:none'>"&rs("name")&"</a>"
		  rs.close
		  %></td>
        </tr>
    </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td height="35" style=" background:url(images/left_title.jpg) no-repeat left bottom;color:#97c45f; font-weight:bold; font-size:14px">　　Site Search</td>
        </tr>
        <tr>
          <td height="50"><table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <form id="form" name="form2" method="post" action="?key=keys&amp;fid=<%=cint(request("fid"))%>">
                <td height="27" valign="top"><input name="keys" type="text" id="keys" style="background:url(images/left_s_key.jpg) left; height:25px; border:0px; width:201px; padding-left:20px; line-height:25px"/></td>
                <td height="27"><input type="submit" name="button" id="button" value="" style="background:url(images/left_s_key.jpg) right; height:27px; border:0px; width:40px;"/></td>
                <td width="20">&nbsp;</td>
              </form>
            </tr>
          </table></td>
        </tr>
    </table></td>
    <td width="41" background="images/split3.jpg">&nbsp;</td>
    <td valign="top">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="35" style="background:url(images/title.jpg) no-repeat; color:#000; font-size:14px; font-weight:bold">　 <%=rs3("name")%></td>
      </tr>
      <%
	  rs3.close
	  %>
      <tr>
        <td>&nbsp;</td>
        </tr>
      <tr>
        <td style="line-height:20px"><table width="100%" border="0" cellspacing="0" cellpadding="10">
          <tr>
            <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <%
			  sql="select * from texts where fid ="&cint(request("fid"))&" order by orders,tid desc"
			  if len(cint(request("key")))=4 then 
			  sql="select * from texts where fid ="&cint(request("fid"))&" and addtime like '%"&cint(request("key"))&"%' order by orders,addtime,tid desc"
			  end if
			  if trim(request("key"))="keys" then 
			  sql="select * from texts where fid ="&cint(request("fid"))&" and title like '%"&trim(request("keys"))&"%' order by orders,addtime,tid desc"
			  end if
			  rs.open sql,conn,1,1
			  rs.pagesize=20
			  if cint(request("page"))>rs.pagecount or cint(request("page"))<=0 then 
			  pagenum=1
			  else
			  pagenum=cint(request("page"))
			  end if
			  i=0
			  rs.move (pagenum-1)*rs.pagesize
			  do while not (rs.eof or i>=rs.pagesize)
				  	sql="select * from forum where fid="&rs("fid")
					rs2.open sql,conn,1,1
				  %>
              <tr>
                <td align="left" valign="middle" background="images/line.gif" style="background-position:bottom; background-repeat:repeat-x; margin:15px 0px; padding:10px 0px"><a href="newsshow.asp?tid=<%=rs("tid")%>&amp;fid=<%=cint(request("fid"))%>" class="blue t14"><%=rs("title")%></a></td>
                <td width="100" valign="middle" background="images/line.gif" style="background-position:bottom; background-repeat:repeat-x">[&nbsp;<%=DateFormat("YYYY-MM-DD",split(rs("addtime"))(0))%>&nbsp;]</td>
              </tr>
              <%
				  	rs2.close
				  i=i+1
				  rs.movenext
				  loop
				  %>
            </table>
              <table width="100%" border="0" cellspacing="1" cellpadding="0">
                <tr>
                  <td align="right"><br />
                    <p>Page <b><font color="#ff0000"><%=pagenum%></font></b> / <%=rs.pagecount %> , total <%=rs.recordcount %> pcs , display <%=rs.pagesize %> pcs per page. <br />
                      ［
                      <%
		  for j=1 to pagenum-1
		  response.write " <a href=?fid="&cint(request("fid"))&"&page="&j&">"&cstr(j)&"</a> "
		  next
		  response.write " "&pagenum&" "
		  for j=pagenum+1 to rs.pagecount
		  response.write " <a href=?fid="&cint(request("fid"))&"&page="&j&">"&cstr(j)&"</a> "
		  next
		  rs.close
		  %>
                      ］ </p></td>
                </tr>
              </table></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<!--#include file="bottom.asp" -->