<!--#include file="html_Fun.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="<%=sitepath%>css/bootstrap.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/font-awesome.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/animate.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/style.min.css" rel="stylesheet">
<link href="<%=sitepath%>plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<link href="<%=sitepath&adminPath%>css/adminstyle.css" rel="stylesheet">
<script src="<%=sitepath%>js/jquery.min.js"></script>
<script src="<%=sitepath&adminPath%>js/adminjs.js"></script>
<!--[if lte IE 9]>
<script src="<%=sitepath%>js/respond.min.js"></script>
<script src="<%=sitepath%>js/html5.js"></script>
<![endif]-->
<style>
.sitemap { overflow: auto; height: 300px; width: 100%; }
</style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content">
  <div class="row">
    <div class="col-sm-4">

<div class="panel">
								<div class="panel-heading">
									<h3 class="panel-title">分类链接</h3>
									<div class="panel-aj">
										<button type="button" class="btn-toggle-collapse"><i class="fa fa-chevron-down"></i></button>
										<button type="button" class="btn-remove"><i class="fa fa-times"></i></button>
									</div>
								</div>
<div class="panel-body">
<div class="panel-body no-padding">		
<div class="ibox-content">
          <div class="sitemap">
            <%
		dim data,links,page,j,Template,Templatesize
		data=dbload("[dbpre]sort","sid,s_name,S_Type,S_URL,S_Template","","S_OnOff=1","S_Order asc,sid asc")
		if ubound(data)>=0 then
		for i=0 to ubound(data,2)
			page= dbcount("[dbpre]content","c_onoff=1 and C_sid in ("&endstr(getSortid(data(0,i),3),",")&")")			
			if page>8 then
				Template=loadfile(sitepath&"template/pc/"&zset.PcTemplate&zset.PchtmlPath&data(4,i))
				if ifstrin(Template,"size=") then 
					Templatesize=parseArr(Template)("size")
				else
					Templatesize=8
				end if
				for j=0 to cint(page/8)
					links=endstr(zset.siteUrl,"/")&getSortLink(data(2,i), data(0,i),data(3,i),0,j+1)
					echop "<a href='"&links&"' target='_blank'>"&links&"</a>"
				next
			else
			links=endstr(zset.siteUrl,"/")&getSortLink(data(2,i), data(0,i),data(3,i),0,1)
			echop "<a href='"&links&"' target='_blank'>"&links&"</a>"
			end if			
		next
		end if	
		%>
          </div>
        </div>
</div>
</div>
    </div>

	</div>
    <div class="col-sm-4">

<div class="panel">
								<div class="panel-heading">
									<h3 class="panel-title">内容链接</h3>
									<div class="panel-aj">
										<button type="button" class="btn-toggle-collapse"><i class="fa fa-chevron-down"></i></button>
										<button type="button" class="btn-remove"><i class="fa fa-times"></i></button>
									</div>
								</div>
<div class="panel-body">
<div class="panel-body no-padding">		
<div class="ibox-content">
          <div class="sitemap">
            <%
		data=dbload("[dbpre]content","C_sid,cid,C_Link,C_PageName,C_Type","","C_OnOff=1","C_Type asc ,C_Order asc,Cid asc")
		if ubound(data)>=0 then
		for i=0 to ubound(data,2)
				links= endstr(zset.siteUrl,"/")&getContentLink(data(0,i),data(1,i),data(2,i),data(3,i),data(4,i),1)
				echop "<a href='"&links&"' target='_blank'>"&links&"</a>"
			
		next
		end if			
		%>
          </div>
        </div>
</div>
</div>
    </div>

	</div>
    <div class="col-sm-4">

<div class="panel">
								<div class="panel-heading">
									<h3 class="panel-title">品牌链接</h3>
									<div class="panel-aj">
										<button type="button" class="btn-toggle-collapse"><i class="fa fa-chevron-down"></i></button>
										<button type="button" class="btn-remove"><i class="fa fa-times"></i></button>
									</div>
								</div>
<div class="panel-body">
<div class="panel-body no-padding">		
<div class="ibox-content"> 
          <div class="sitemap">
            <%
		data=dbload("[dbpre]brand","bid,B_filename","","B_OnOff=1","B_Order asc,Bid asc")
		if ubound(data)>=0 then
		for i=0 to ubound(data,2)
			links= endstr(zset.siteUrl,"/")&sitepath&"brand/?"&data(0,i)&"_1"&siteExt		
			echop "<a href='"&links&"' target='_blank'>"&links&"</a>"
		next
		end if		
		%>
          </div>
        </div>
</div>
</div>
    </div>

	</div>	

</div>
</div>
</div>
<script src="<%=sitepath%>js/klorofil-common.js"></script>
<script src="<%=sitepath%>js/bootstrap.min.js"></script> 
<script src="<%=sitepath%>plugins/bootstrap-table/bootstrap-table.min.js"></script> 
<script src="<%=sitepath%>plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script> 
<script src="<%=sitepath%>plugins/layer/layer.min.js"></script>
</BODY>
</HTML>