<%
select case request.QueryString("flag")
case ""
response.end()


case "155"
lb="where aaid=155"
nclass="新闻快递"
imt_bt="Contentli_express"

case "156"
lb="where aaid=156"
nclass="学术动态"

imt_bt="Contentli_news"

case "157"
lb="where aaid=157"
nclass="公告"
imt_bt="Contentli_announcement"

case "164"
lb="where aaid=164"
nclass="专家论坛"
imt_bt="zjrt"


case "158"
lb="where aaid=158"
nclass="食品安全 >> 食品安全法律法规"
imt_bt="shipin"

case "159"
lb="where aaid=159"
nclass="食品安全 >> 食品安全小贴士"
imt_bt="shipin"


case "160"
lb="where aaid=160"
nclass="食品安全 >> 食品安全事件"
imt_bt="shipin"

case "161"
lb="where aaid=161"
nclass="国际会议 >> 历届会议"
imt_bt="xueshu"


case "163"
lb="where aaid=163"
nclass="对外服务 >> 食品安全培训 >> 公益培训"
imt_bt="fuwu"


case "2009"
if request.Form("key")="" then
response.write("<script language='javascript'>alert('对不起，请输入关键字！');history.go(-1);</script>")
response.End()
end if
lb="where title like '%"+request.Form("key")+"%'"
nclass="搜索结果"
dl="27"
case else

if request.QueryString("lb")<>"" then
lb="where aaid="&request.QueryString("flag")
nclass="国际会议 >> 历届会议"
imt_bt="xueshu"

else
response.end()
end if
end select
link="&flag="&request.QueryString("flag")&""
%>
<!--#include file="top.asp"-->
<!--#include file="ljconn.asp"-->
<div class="Content">
  <table width="900" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="225">
	  
	  
	  <div class="Contentleft">
<div class="baikuang">
<div class="biaoti"><img src="images/<%=imt_bt%>.jpg" width="140" height="24" /></div>
<div class="link1_tu">

  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="15"></td>
          <td align="left">
		  
		  
		  
		  <%
		  select case request.QueryString("flag")
		  case "155"
		  %>
		  
		  <table width="65%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
			
            <tr>
              <td align="left" height="30">·<a href="news.asp?flag=155">新闻快递</a></td>
            </tr>
			
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
            <tr>
              <td height="15"></td>
            </tr>
          </table>
		  <%case "156"%>
		  <table width="65%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
			
            <tr>
              <td align="left" height="30">·<a href="news.asp?flag=156">学术动态</a></td>
            </tr>
			
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
            <tr>
              <td height="15"></td>
            </tr>
          </table>
		  
		  <%case "157"%>
		  <table width="65%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
			
            <tr>
              <td align="left" height="30">·<a href="news.asp?flag=157">公告</a></td>
            </tr>
			
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
            <tr>
              <td height="15"></td>
            </tr>
          </table>
		  <%case "164"%>
		  <table width="65%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
			
            <tr>
              <td align="left" height="30">·<a href="news.asp?flag=164">专家论坛</a></td>
            </tr>
			
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
            <tr>
              <td height="15"></td>
            </tr>
          </table>
		  <%case "161"%>
		  
<table width="65%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td align="left" height="30">·<a href="about.asp?id=1118">2010会议</a></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  
		  
		  <table width="65%" border="0" cellspacing="0" cellpadding="0" style="display:none;">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td align="left" height="30">·<a href="about.asp?id=1119">2009会议</a></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  <table width="65%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td align="left" height="30">·<a href="news.asp?flag=161">历届会议</a></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
                  <%
				  set rse=server.CreateObject("adodb.recordset")
                  rse.Open "select * from aa where aid=47 order by px,id desc",conn,1,1
				  if rse.recordcount=0 then
				  else
				  while not rse.eof
				  %>
			<tr>
              <td align="left" height="30">&nbsp;&nbsp;&nbsp;&nbsp;·<a href="news.asp?lb=lf&flag=<%=rse("id")%>"><%=rse("name")%></a></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
			<%
			rse.movenext
			wend
			end if
			rse.close
			set rse=nothing
			%>
			
			
          </table>		  
		  
		  
		  
		  <%case 163%>
		  <table width="65%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
			
            <tr>
              <td align="left" height="30">·<a href="about.asp?id=1115">食品安全培训</a></td>
            </tr>
			
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  
		  <table width="65%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
			
            <tr>
              <td align="left" height="30">&#160;&#160;·<a href="about.asp?id=1115">HACCP高级培训班</a></td>
            </tr>
			
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  
		  
		  <table width="70%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
			
            <tr>
              <td align="left" height="30">&#160;&#160;·<a href="about.asp?id=1123">餐饮行业人员培训</a></td>
            </tr>
			
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  
		  
		  <table width="65%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
			
            <tr style="display:none;">
              <td align="left" height="30">&#160;&#160;·<a href="about.asp?id=1124">公益培训</a></td>
            </tr>
<tr>
              <td align="left" height="30">&#160;&#160;·<a href="news.asp?flag=163">公益培训</a></td>
            </tr>            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  
		  <table width="65%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td align="left" height="30">·<a href="about.asp?id=1116">样品检测</a></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
            <tr>
              <td height="15"></td>
            </tr>
          </table>		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  <%case else%>














<%if request.QueryString("flag")="161" or request.QueryString("lb")<>"" then%>

<table width="65%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td align="left" height="30">·<a href="about.asp?id=1118">2010会议</a></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  
		  
		  <table width="65%" border="0" cellspacing="0" cellpadding="0" style="display:none;">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td align="left" height="30">·<a href="about.asp?id=1119">2009会议</a></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  <table width="65%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td align="left" height="30">·<a href="news.asp?flag=161">历届会议</a></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
                  <%
				  set rse=server.CreateObject("adodb.recordset")
                  rse.Open "select * from aa where aid=47 order by px,id desc",conn,1,1
				  if rse.recordcount=0 then
				  else
				  while not rse.eof
				  %>
			<tr>
              <td align="left" height="30">&nbsp;&nbsp;&nbsp;&nbsp;·<a href="news.asp?lb=lf&flag=<%=rse("id")%>"><%=rse("name")%></a></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
			<%
			rse.movenext
			wend
			end if
			rse.close
			set rse=nothing
			%>
			
			
          </table><%else%>
		  <table width="65%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
			
            <tr>
              <td align="left" height="30">·<a href="news.asp?flag=158">食品安全法律法规</a></td>
            </tr>
			
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  <table width="65%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td align="left" height="30">·<a href="news.asp?flag=159">食品安全小贴士</a></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  <table width="65%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td align="left" height="30">·<a href="news.asp?flag=160">食品安全事件</a></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table>
		  <table width="65%" border="0" cellspacing="0" cellpadding="0" style="display:none;">
            <tr>
              <td height="5"></td>
            </tr>
            <tr>
              <td align="left" height="30">·<a href="bbs/index.asp" target="_blank">讨论区</a></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
          </table><%end if%>
		  <%end select%>
		  
		  
		  </td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td height="300">&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
    </tr>
  </table>

</div>
</div>
	  </div>
	  
	  
	  
	  
	  
	  
	  
	  </td>
      <td align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="28" align="left" valign="bottom" style="font-size:12px;">&nbsp;&nbsp;<img src="images/nyrightlm.jpg" width="10" height="10" align="absmiddle" />&nbsp;当前位置：<a href="index.asp" class="ly">首页</a> &gt;&gt; <%=nclass%><%if request.QueryString("flag")=161 then%> &gt;&gt; 2009届<%end if%></td>
        </tr>
        <tr>
          <td align="center" valign="10"><table width="99%">
              <tr>
                <td height="3"></td>
              </tr>
              <tr>
                <td height="1" background="images/ny_line.jpg"></td>
              </tr>
          </table></td>
        </tr>
        <tr>
          <td align="center" valign="top"><table width="98%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="5"></td>
              </tr>
            </table>
              <table width="98%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td align="left" valign="top" style="font-size:12px; line-height:20px;"><%
set rse=server.CreateObject("adodb.recordset")

if request.QueryString("flag")=161 or request.QueryString("lb")<>"" then
rse.Open "select * from shop_books "&lb&" order by fbsj desc,id",conn,1,1
else

rse.Open "select * from shop_books "&lb&" order by fbsj desc,id desc",conn,1,1
end if
%>
                      <%
if rse.recordcount=0 then
%>
                      <%else%>
                      <%
	if not isempty(request("page")) then
      					currentPage=cint(request("page"))
   					else
      					currentPage=1
   					end if
					rse.pagesize=15
   					totalPut=rse.recordcount '记录总数    
   					totalPage=rse.pagecount    
   					MaxPerPage=rse.pagesize    
      				if currentpage<1 then    
          				currentpage=1    
      				end if    
      				if currentpage>totalPage then    
          				currentpage=totalPage    
      				end if    
   					if currentPage=1 then    
      					showContent    
                        showpages1
    				else    
         				if (currentPage-1)*MaxPerPage<totalPut then    
         					rse.move  (currentPage-1)*MaxPerPage    
         					dim bookmark    
         					bookmark=rse.bookmark '移动到开始显示的记录位置    
         					showContent    

                  showpages1
      					end if    
   					end if    
					'set rs=nothing      
					%>
                      <%sub showContent   
					dim i
					%>
                      <%for i=1 to rse.pagesize%>
                      <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="15" align="left" valign="top"><img src="images/gif2.gif" width="10" height="11" /></td>
                          <td width="80%" height="22" align="center" valign="top"><table width="99%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td align="left" valign="top"><a href="shownews.asp?id=<%=rse("id")%>" target="_blank" style="color:#000000;"><%=rse("title")%></a></td>
                              </tr>
                          </table></td>
                          <td align="right" valign="top"><span style="font-size:12px;"><%if rse("fbsj")<>"" then%><%=rse("fbsj")%><%else%><%=year(rse("adddate"))%>-<%if len(month(rse("adddate")))<2 then%>0<%end if%><%=month(rse("adddate"))%>-<%if len(day(rse("adddate")))<2 then%>0<%end if%><%=day(rse("adddate"))%><%end if%></span></td>
                        </tr>
                      </table>
                    <%rse.movenext
  if rse.eof then exit for
  next%>
                      <%end sub%>
                      <%
sub showpages1()     
dim n     
n=totalPage
%>
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td align="center" style="padding-right:14px;font-size:12px;"><% If currentPage <> 1 Then %>
                            &nbsp;<a href="?Page=1<%=link%>" class="sy">首页</a>&nbsp;<a href="?Page=<%=(currentPage-1)%><%=link%>" class="sy">上一页</a>
                            <%else%>
                            &nbsp;首页<span class="STYLE2" style="color: #000000"><span style="color: #3E722A">&nbsp;</span></span><span class="STYLE2">上一页</span><span class="STYLE2 STYLE9" style="color: #000000">
                              <% End If %>
                              <% If currentPage <> rse.PageCount Then %>
                              <a href="?Page=<%=(currentPage+1)%><%=link%>" class="sy">下一页</a>&nbsp;<a href="?Page=<%=totalPage%><%=link%>" class="sy">尾页</a>
                              <%else%>
                              </span><span class="STYLE2">下一页&nbsp;尾页
                                <% End If %>
                                第<%=currentPage%>页/共<%=totalPage%>页</span></td>
                        </tr>
                      </table>
                    <%end sub%>
                      <%end if%>
                      <%
	  rse.close
	  set rse=nothing
	  %>
                  </td>
                </tr>
                <tr>
                  <td height="5"></td>
                </tr>
            </table></td>
        </tr>
      </table></td>
    </tr>
  </table>

<div class="clear"></div>
</div>
<!--#include file="foot.asp"-->
<%
conn.close
set conn=nothing
%>
