20ab528591582ef4b5c0230d7c80634a1fed1976.svn-base
1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>站点地图</title>
<meta name="decorator" content="cms_default_${site.theme}"/>
<meta name="description" content="${site.description}" />
<meta name="keywords" content="${site.keywords}" />
<style type="text/css">
dl.map{border:1px solid #efefef;border-top:0;margin:10px 8px 8px;}
dl.map dt{border-top:1px solid #efefef;padding:10px 15px;}
dl.map dd{margin:10px 30px 20px;}
dl.map span{border:1px solid #efefef;padding:8px 10px;}
dl.map span:hover{border:1px solid #bbb;}
dl.map span a:hover{text-decoration:none;color:#333;}
</style>
</head>
<body>
<dl class="map"><c:forEach items="${fnc:getMainNavList(site.id)}" var="tpl">
<dt>
<c:choose>
<c:when test="${not empty tpl.href}">
<c:choose>
<c:when test="${fn:indexOf(tpl.href, '://') eq -1}"><c:set var="url" value="${ctx}${tpl.href}"/></c:when>
<c:otherwise><c:set var="url" value="${tpl.href}"/></c:otherwise>
</c:choose>
</c:when>
<c:otherwise><c:set var="url" value="${ctx}/list-${tpl.id}${urlSuffix}"/></c:otherwise>
</c:choose>
<a href="${url}" target="_blank">${tpl.name}</a>
<dd>
<c:forEach items="${fnc:getCategoryList(site.id, tpl.id, -1, '')}" var="category">
<c:choose>
<c:when test="${not empty tpl.href}">
<c:choose>
<c:when test="${fn:indexOf(tpl.href, '://') eq -1}"><c:set var="url" value="${ctx}${tpl.href}"/></c:when>
<c:otherwise><c:set var="url" value="${tpl.href}"/></c:otherwise>
</c:choose>
</c:when>
<c:otherwise><c:set var="url" value="${ctx}/list-${tpl.id}${urlSuffix}"/></c:otherwise>
</c:choose>
<span><a href="${url}" target="_blank">${tpl.name}</a></span>
</c:forEach>
</dd>
</c:forEach></dl>
</body>
</html>