<%@ LANGUAGE=VBScript CodePage=65001%>
<% response.charset="utf-8" %>
<% session.codepage=65001 %>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- #include file="../inc/AntiAttack.asp" -->
<!-- #include file="../inc/conn.asp" -->
<!-- #include file="../inc/web_config.asp" -->
<!-- #include file="../inc/html_clear.asp" -->

<div class="list products">

<%'输出二级栏目
id=cint(request.querystring("id"))
show = cint(request.querystring("show"))
if show=0 then '以下拉框展示
set rs2=server.createobject("adodb.recordset")
sql="select id,pid,ppid,name,folder,ClassType,[order] from category where ppid=2 and pid="&id&" order by [order],time"
rs2.open(sql),cn,1,1
if not rs2.eof and not rs2.bof then
		  do while not rs2.eof
ClassType1="caselist.asp"
ClassType2="case.asp"
		  %>
<div class="title">

<a href="/wap/<%=ClassType1%>?id=<%=rs2("id")%>&pid=<%=rs2("pid")%>&name=<%=rs2("name")%>&page=1" title="<%=rs2("name")%>" data-persist-ajax="true"><%=rs2("name")%></a>

<span onclick="tabilists(this);" class="">

</span>

</div>


<div class="waterfall">
<%'输出二级案例下的图片

set rs3=server.createobject("adodb.recordset")
sql="SELECT id,title,description,ArticleType,image from article where cid='"&rs2("pid")&"' and pid='"&rs2("id")&"' order by time desc"
rs3.open(sql),cn,1,1
if not rs3.eof and not rs3.bof then
		  do while not rs3.eof
		  %>
<a href="/wap/<%=ClassType2%>?id=<%=rs3("id")%>&name=<%=rs2("name")%>" title="<%=rs2("name")%>" data-persist-ajax="true">
<div class="img" style="background-image: url(/images/up_images/<%=rs3("image")%>);">
<img src="/images/up_images/<%=rs3("image")%>">
</div>
<span><%=rs3("title")%></span>
</a>
<%
		  rs3.movenext
		  loop 
else
response.write "<li><div><span>未添加案例</span></div></li>"
end if 
		  rs3.close
		  set rs3=nothing

%> 

</div>


<%
		  rs2.movenext
		  loop 
else
response.write "<ol><li><span>无下级栏目</span></li></ol>"
end if 
		  rs2.close
		  set rs2=nothing
%> 
<div class="list_more">
<a href="/wap/icases.asp?id=<%=id%>&show=1" class="button" title="案例中心" data-persist-ajax="true"> 展示全部 </a>
</div>
<%
else '以图片列表展示,对应按钮展示全部
%>
<div class="waterfall">
<%
set rs2=server.createobject("adodb.recordset")
sql="select id,pid,ppid,name,folder,ClassType,[order] from category where ppid=2 and pid="&id&" order by [order],time"
rs2.open(sql),cn,1,1
if not rs2.eof and not rs2.bof then
		  do while not rs2.eof
ClassType2="case.asp"
'输出二级案例下的图片

set rs3=server.createobject("adodb.recordset")
sql="SELECT id,title,description,ArticleType,image from article where cid='"&rs2("pid")&"' and pid='"&rs2("id")&"' order by time desc"
rs3.open(sql),cn,1,1
if not rs3.eof and not rs3.bof then
		  do while not rs3.eof
		  %>
<a href="/wap/case.asp?id=<%=rs3("id")%>&name=<%=rs2("name")%>&classType=<%=rs3("ArticleType")%>" title="<%=rs2("name")%>" data-persist-ajax="true">
<div class="img" style="background-image: url(/images/up_images/<%=rs3("image")%>);">
<img src="/images/up_images/<%=rs3("image")%>">
</div>
<span><%=rs3("title")%></span>
</a>
<%
		  rs3.movenext
		  loop 
else
response.write "<li><div><span>未添加案例</span></div></li>"
end if 
		  rs3.close
		  set rs3=nothing
%> 
<%
		  rs2.movenext
		  loop 
else
response.write "<ol><li><span>无下级栏目</span></li></ol>"
end if 
		  rs2.close
		  set rs2=nothing
%>

</div>
<div class="list_more">
<a href="/wap/icases.asp?id=<%=id%>&show=0" class="button" title="案例中心" data-persist-ajax="true"> 分类展示 </a>
</div>
<%
end if 
%>

<prevnext class="pagePrevNext controlgroup">


</prevnext>


<script>

      swipeView();

    </script>

</div>