<%
if request.QueryString("id")="" or isnumeric(request.QueryString("id"))=0 then
response.Redirect("index.asp")
response.End()
end if
%>
<!--#include file="ljconn.asp"-->
<%
set rsn = Server.CreateObject("ADODB.Recordset")
rsn.Open "Select * From shop_books where id="&cint(request.QueryString("id"))&"", conn,1,1
if rsn.recordcount=0 then
rsn.close
set rsn=nothing
conn.close
set conn=nothing
response.Redirect("index.asp")
response.End()
end if

dim page
page=request("page")
if isnumeric(page)=0 then
response.Redirect("index.asp")
response.End()
end if
If page="" Then 
page=1
Elseif CInt(page)<=0 then
page=1
else
page=CInt(page)
End If

select case rsn("aaid")
case 155
bj="<a href='news.asp?flag=155'>新闻快递</a>"
imt_bt="Contentli_express"

case 156
bj="<a href='news.asp?flag=156'>学术动态</a>"
imt_bt="Contentli_news"

case 157
bj="<a href='news.asp?flag=157'>公告</a>"
imt_bt="Contentli_announcement"

case 158
bj="食品安全 >> 食品安全法律法规"
imt_bt="shipin"

case 159
bj="食品安全 >> 食品安全小贴士"
imt_bt="shipin"

case 160
bj="食品安全 >> 食品安全事件"
imt_bt="shipin"

case 164
bj="<a href='news.asp?flag=164'>专家论坛</a>"
imt_bt="zjrt"

case 161
bj="国际会议 >> 历届会议"
imt_bt="xueshu"

case "163"
bj="对外服务 >> 食品安全培训 >> 公益培训"
imt_bt="fuwu"


case 4
bj="<a href='rcpy.asp' class='nydh'>人才培养</a> >> <a href='rcpy.asp#a' class='nydh'>博士</a>"
end select
aaid=rsn("aaid")
%>
<!--#include file="top.asp"-->

<div class="Content">
  <table width="900" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="225" valign="top"><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" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="15"></td>
          <td align="left">
		  
		  
		  
		  <%
		  select case rsn("aaid")
		  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 rst=server.CreateObject("adodb.recordset")
                  rst.Open "select * from aa where aid=47 order by px,id desc",conn,1,1
				  if rst.recordcount=0 then
				  else
				  while not rst.eof
				  %>
			<tr>
              <td align="left" height="30">&nbsp;&nbsp;&nbsp;&nbsp;·<a href="news.asp?lb=lf&flag=<%=rst("id")%>"><%=rst("name")%></a></td>
            </tr>
            <tr>
              <td height="1" background="images/csdh7.jpg"></td>
            </tr>
			<%
			rst.movenext
			wend
			end if
			rst.close
			set rst=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%>
		  <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 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="3"></td>
        </tr>
        <tr>
          <td><table width="99%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="2"></td>
                <td width="10" height="27" align="center"><img src="images/nyrightlm.jpg" width="10" height="10" /></td>
                <td align="left"style=" padding-top:2px;">&nbsp;<a href="index.asp" class="ly">首页</a> <span style="font-size:11px;">&gt;&gt;</span> <%=bj%><%if rsn("aaid")=161 then%> &gt;&gt; 2009届<%end if%></td>
              </tr>
            </table>
              <table width="99%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="1" background="images/csdh7.jpg"></td>
                </tr>
            </table></td>
        </tr>
        <tr>
          <td height="8"></td>
        </tr>
        <tr>
          <td align="center"><table width="97%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td align="left" valign="top" style="font-size:14px; line-height:20px;"><table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
                  <tr>
                    <td height="25" align="center" valign="bottom" style="font-size:15px; font-weight:bold;color:#000000;"><%if request.QueryString("id")=644 then%>2009食品安全与公共政策国际研讨会，暨第五届食品安全国际论坛<%else%><%=rsn("title")%><%end if%></td>
                  </tr>
				  
				  <tr>
              <td height="20" align="center" valign="top" style="font-size:12px;">发布时间：<%if rsn("fbsj")<>"" then%><%=rsn("fbsj")%><%else%><%=year(rsn("adddate"))%>-<%if len(month(rsn("adddate")))<2 then%>0<%end if%><%=month(rsn("adddate"))%>-<%if len(day(rsn("adddate")))<2 then%>0<%end if%><%=day(rsn("adddate"))%><%end if%></td>
            </tr>
				  
				  
                  <tr>
                    <td align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td height="5"></td>
                        </tr>
                        <tr>
                          <td height="1" bgcolor="#E7E7E7"></td>
                        </tr>
                        <tr>
                          <td height="5"></td>
                        </tr>
                        <tr>
                          <td height="5"></td>
                        </tr>
                        <tr>
                          <td align="left" valign="top" style="font-size:13px; line-height:20px;"><%
if Not rsn.eof Then
  str=rsn("content")
End If
dim strtmp
strtmp=Split((str),"$Page_Split$")
Dim n,tmp,i,j,tt
n=0
i=0
j=0
Do While i<=ubound(strtmp)
    tmp=strtmp(i)
    tt=true
    Do While tt
   If i>=ubound(strtmp) then
     tt=false
  j=j+1
    elseif Len(tmp)>=n Then
     tt=false
  j=j+1
   ElseIf Len(tmp)+Len(strtmp(i+1))>=n Then
     tt=false
  j=j+1
   Else
     tmp=tmp+"<br>"+strtmp(i+1)
  i=i+1
   End If
 Loop
    if page=j then  str=tmp
i=i+1
Loop
if page>j then
rsn.close
set rsn=nothing
call conn_gb()
response.Redirect("index.asp")
response.end()
end if
response.write replace(str,"luboxun/","")
 
%></td>
                        </tr>
                        <tr>
                          <td align="center"><%if ubound(strtmp)<>0 then
response.write "<br>"
For n=1 To j
if n=page then
response.write " <span style='font-size:12px;'>"&n&"</span> "
else
response.write "<a href=?flag="&request.QueryString("flag")&"&page="&n&">["&n&"]</a>"&"&nbsp;"
end if
Next
end if
%></td>
                        </tr>
                        <tr>
                          <td height="22" align="center"><a href="javascript:window.close();" class="nydh">[关闭]</a></td>
                        </tr>
                    </table></td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td height="5"></td>
            </tr>
        </table></td>
        </tr>
        <tr>
          <td height="8"></td>
        </tr>
      </table></td>
    </tr>
  </table>

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