Commit e2a64d42 authored by Huang's avatar Huang
Browse files

no commit message

parent 0844dd86
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>${category.name}</title>
<meta name="decorator" content="cms_default_${site.theme}"/>
<meta name="description" content="${category.description}" />
<meta name="keywords" content="${category.keywords}" />
<%@include file="/WEB-INF/views/modules/cms/front/include/head.jsp" %>
<link href="${ctxStaticView}/cms/front/theme.css" type="text/css" rel="stylesheet" />
</head>
<body>
<%@ include file="/WEB-INF/views/modules/cms/front/themes/basic/layouts/default_head.jsp"%>
<div class="row">
<div class="span2">
<h4>栏目列表</h4>
<ol style="list-style-type: none;">
<cms:frontCategoryList categoryList="${categoryList}"/>
</ol>
<h4>推荐阅读</h4>
<ol style="list-style-type: none;">
<cms:frontArticleHitsTop category="${category}"/>
</ol>
</div>
<div class="span10">
<ul class="breadcrumb">
<cms:frontCurrentPosition category="${category}"/>
</ul>
</div>
<div class="span10">
<c:set var="index" value="1"/>
<c:forEach items="${categoryList}" var="tpl">
<c:if test="${tpl.inList eq '1' && tpl.module ne ''}">
<c:set var="index" value="${index+1}"/>
${index % 2 eq 0 ? '<div class="row">':''}
<div class="span5">
<h4><small><a href="${ctx}/list-${tpl.id}${urlSuffix}" class="pull-right">更多&gt;&gt;</a></small>${tpl.name}</h4>
<c:if test="${tpl.module eq 'article'}">
<ul><c:forEach items="${fnc:getArticleList(site.id, tpl.id, 5, '')}" var="article">
<li>
<img src="<c:if test="${empty article.image || article.image eq null}">/staticViews/cms/images/info.png</c:if><c:if test="${!empty article.image && article.image ne null}">${article.image}</c:if>" style="width: 100%;height: auto">
<span class="pull-right"><fmt:formatDate value="${article.updateDate}" pattern="yyyy.MM.dd"/></span>
<a href="${ctx}/view-${article.category.id}-${article.id}${urlSuffix}" style="color:${article.color}">${fns:abbr(article.title,40)}</a>
</li>
</c:forEach></ul>
</c:if>
<c:if test="${tpl.module eq 'link'}">
<ul><c:forEach items="${fnc:getLinkList(site.id, tpl.id, 5, '')}" var="link">
<li><span class="pull-right"><fmt:formatDate value="${link.updateDate}" pattern="yyyy.MM.dd"/></span><a target="_blank" href="${link.href}" style="color:${link.color}">${fns:abbr(link.title,40)}</a></li>
</c:forEach></ul>
</c:if>
</div>
${index % 2 ne 0 ? '</div>':''}
</c:if>
</c:forEach>
</div>
</div>
<%@ include file="/WEB-INF/views/modules/cms/front/themes/basic/layouts/default_footer.jsp"%>
</body>
</html>
\ No newline at end of file
<%@ 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}" />
<%@include file="/WEB-INF/views/modules/cms/front/include/head.jsp" %>
<link href="${ctxStaticView}/cms/front/theme.css" type="text/css" rel="stylesheet" />
<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>
\ No newline at end of file
<%@ 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}" />
<%@include file="/WEB-INF/views/modules/cms/front/include/head.jsp" %>
<script src="${ctxStatic}/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<style type="text/css">
form.search{margin:12px 20px 5px;} .page{margin:20px;}
form.search input.txt{padding:3px;font-size:16px;width:300px;margin:5px;}
form.search select.txt{padding:3px;font-size:16px;width:308px;margin:5px;}
form.search input.txt.date{width:133px;}
form.search .sel{margin-bottom:8px;padding:0 0 10px 5px;border-bottom:1px solid #efefef;font-size:14px;} form.search .act{font-weight:bold;}
form.search .btn{padding:3px 18px;*padding:1px 0 0;font-size:16px;}
dl.search{line-height:25px;border-bottom:1px solid #efefef;margin:10px 20px 20px;}
dl.search dt{border-top:1px solid #efefef;padding:8px 5px 0px;font-size:16px;}
dl.search dt a.title{color:#0000cc;text-decoration:underline;}
dl.search dd{margin:0 5px 10px;font-size:14px;color:#555}
dl.search dd span,dl.search dd a{font-size:12px;color:#008000;}
dl.search .highlight{color:#DF0037;}
dl.search dd span.highlight{color:#DF0037;font-size:14px;}
dl.search dd span.info span.highlight{color:#DF0037;font-size:13px;}
</style>
<link href="${ctxStaticView}/cms/front/theme.css" type="text/css" rel="stylesheet" />
<c:if test="${not empty message}"><script type="text/javascript">alert("${message}");</script></c:if>
</head>
<body>
<form:form id="searchForm" method="get" class="search">
<input type="hidden" id="pageNo" name="pageNo" value="${page.pageNo}"/>
<input type="hidden" id="t" name="t" value="${not empty t?t:'article'}"/>
<input type="hidden" id="cid" name="cid" value="${cid}"/>
<input type="hidden" id="a" name="a" value="${not empty t?t:'0'}"/>
<div class="sel">
<a href="javascript:" onclick="$('#t').val('article');$('.sel a').removeClass('act');$(this).addClass('act')" class="${empty t || t eq 'article'?'act':''}">文章搜索</a> &nbsp;
<a href="javascript:" onclick="$('#t').val('guestbook');$('.sel a').removeClass('act');$(this).addClass('act')" class="${t eq 'guestbook'?'act':''}">留言搜索</a>
</div>
<c:choose>
<c:when test="${param.a eq '1'}">
<table>
<tr><td>包含以下<strong>任意一个</strong>关键词</td><td><input type="text" name="q" value="${q}" class="txt"/>
<input type="submit" value="搜 索" class="btn" onclick="$('#a').val('1')"/>
<input type="submit" value="简单搜索" class="btn" onclick="$('#a').val('0')"/></td></tr>
<tr><td>包含以下<strong>全部</strong>的关键词</td><td><input type="text" name="qand" value="${qand}" class="txt"/></td></tr>
<tr><td><strong>不包含</strong>以下关键词</td><td><input type="text" name="qnot" value="${qnot}" class="txt"/></td></tr>
<tr><td>检索结果每页显示的条数</td><td>
<select name="pageSize" class="txt">
<option value="10"${page.pageSize eq '10'?' selected':''}>每页显示10条</option>
<option value="20"${page.pageSize eq '20'?' selected':''}>每页显示20条</option>
<option value="30"${page.pageSize eq '30'?' selected':''}>每页显示30条</option>
<option value="40"${page.pageSize eq '40'?' selected':''}>每页显示40条</option>
<option value="50"${page.pageSize eq '50'?' selected':''}>每页显示50条</option>
</select></td></tr>
<tr><td><c:if test="${empty t || t eq 'article'}">最后更新日期范围</c:if><c:if test="${t eq 'guestbook'}">留言日期范围</c:if></td><td>
<input id="bd" name="bd" type="text" readonly="readonly" maxlength="20" class="txt date"
value="${param.bd}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>&nbsp;~&nbsp;
<input id="ed" name="ed" type="text" readonly="readonly" maxlength="20" class="txt date"
value="${param.ed}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
</td></tr>
</table>
</c:when><c:otherwise>
<input type="hidden" id="pageSize" name="pageSize" value="${page.pageSize}"/>
<input type="text" name="q" value="${q}" class="txt"/>
<input type="submit" value="搜 索" class="btn" onclick="$('#a').val('0')"/>
<input type="submit" value="高级搜索" class="btn" onclick="$('#a').val('1')"/>
</c:otherwise>
</c:choose>
</form:form>
<dl class="search">
<c:if test="${empty t || t eq 'article'}">
<c:forEach items="${page.list}" var="article">
<dt><a href="${ctx}/view-${article.category.id}-${article.id}${urlSuffix}" class="title" target="_blank">${article.title}</a></dt>
<dd>${article.description}<span class="info"><br/>发布者:${article.createBy.name} &nbsp; 点击数:${article.hits} &nbsp; 发布时间:<fmt:formatDate value="${article.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/> &nbsp; 更新时间:<fmt:formatDate value="${article.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/></span>
&nbsp;&nbsp;<a href="${ctx}/view-${article.category.id}-${article.id}${urlSuffix}" target="_blank">查看全文</a><br/></dd>
</c:forEach>
</c:if>
<c:if test="${t eq 'guestbook'}">
<c:forEach items="${page.list}" var="guestbook"><dt>${fns:getDictLabel(guestbook.type,'cms_guestbook','')}</dt>
<dd>${guestbook.content}<span class="info"><br/>姓名:${guestbook.name} &nbsp; 留言时间:<fmt:formatDate value="${guestbook.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></span></dd>
<dd>回复:${guestbook.reContent}<span class="info"><br/>回复人:${guestbook.reUser.name} &nbsp; 回复时间:<fmt:formatDate value="${guestbook.reDate}" pattern="yyyy-MM-dd HH:mm:ss"/></span></dd>
</c:forEach>
</c:if>
<c:if test="${fn:length(page.list) eq 0}">
<dt><c:if test="${empty q}">请键入要查找的关键字。</c:if><c:if test="${not empty q}">抱歉,没有找到与“${q}”相关内容。</c:if><br/><br/>建议:</dt>
<dd><ul><li>检查输入是否正确;</li><li>简化输入词;</li><li>尝试其他相关词,如同义、近义词等。</li></ul></dd>
</c:if>
</dl>
<div class="pagination">${page.getPageHtml()}</div>
<script type="text/javascript">
function page(n,s){
$("#pageNo").val(n);
$("#pageSize").val(s);
$("#searchForm").submit();
return false;
}
</script>
</body>
</html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>${article.title} - ${category.name}</title>
<meta name="decorator" content="cms_default_${site.theme}"/>
<meta name="description" content="${article.description} ${category.description}" />
<meta name="keywords" content="${article.keywords} ${category.keywords}" />
<%@include file="/WEB-INF/views/modules/cms/front/include/head.jsp" %>
<link href="${ctxStaticView}/cms/front/theme.css" type="text/css" rel="stylesheet" />
<script type="text/javascript">
$(document).ready(function() {
if ("${category.allowComment}"=="1" && "${article.articleData.allowComment}"=="1"){
$("#comment").show();
page(1);
}
});
function page(n,s){
$.get("${ctx}/comment",{theme: '${site.theme}', 'category.id': '${category.id}',
contentId: '${article.id}', title: '${article.title}', pageNo: n, pageSize: s, date: new Date().getTime()
},function(data){
$("#comment").html(data);
});
}
</script>
</head>
<body>
<%@ include file="/WEB-INF/views/modules/cms/front/themes/basic/layouts/default_head.jsp"%>
<div class="row">
<div class="span2">
<h4>栏目列表</h4>
<ol>
<cms:frontCategoryList categoryList="${categoryList}"/>
</ol>
<h4>推荐阅读</h4>
<ol>
<cms:frontArticleHitsTop category="${category}"/>
</ol>
</div>
<div class="span10">
<ul class="breadcrumb">
<cms:frontCurrentPosition category="${category}"/>
</ul>
</div>
<div class="span10">
<div class="row">
<div class="span10">
<h3 style="color:#555555;font-size:20px;text-align:center;border-bottom:1px solid #ddd;padding-bottom:15px;margin:25px 0;">${article.title}</h3>
<c:if test="${not empty article.description}"><div>摘要:${article.description}</div></c:if>
<div>${article.articleData.content}</div>
<div style="border-top:1px solid #ddd;padding:10px;margin:25px 0;">发布者:${article.user.name} &nbsp; 点击数:${article.hits} &nbsp; 发布时间:<fmt:formatDate value="${article.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/> &nbsp; 更新时间:<fmt:formatDate value="${article.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/></div>
</div>
</div>
<div class="row">
<div id="comment" class="hide span10">
正在加载评论...
</div>
</div>
<div class="row">
<div class="span10">
<h5>相关文章</h5>
<ol><c:forEach items="${relationList}" var="relation">
<li style="float:left;width:230px;"><a href="${ctx}/view-${relation[0]}-${relation[1]}${urlSuffix}">${fns:abbr(relation[2],30)}</a></li>
</c:forEach></ol>
</div>
</div>
</div>
</div>
<%@ include file="/WEB-INF/views/modules/cms/front/themes/basic/layouts/default_footer.jsp"%>
</body>
</html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<%@ taglib prefix="sitemesh" uri="http://www.opensymphony.com/sitemesh/decorator" %>
<!DOCTYPE html>
<html>
<head>
<title><sitemesh:title default="欢迎光临"/> - ${site.title} - Powered By JeeSpring</title>
<%@include file="/WEB-INF/views/modules/cms/front/include/head.jsp" %>
<!-- Baidu tongji analytics --><script>var _hmt=_hmt||[];(function(){var hm=document.createElement("script");hm.src="//hm.baidu.com/hm.js?82116c626a8d504a5c0675073362ef6f";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm,s);})();</script>
<sitemesh:head/>
</head>
<body>
<div class="navbar navbar-fixed-top" style="position:static;margin-bottom:10px;">
<div class="navbar-inner">
<div class="container">
<c:choose>
<c:when test="${not empty site.logo}">
<img alt="${site.title}" src="${site.logo}" class="container" onclick="location='${ctx}/index-${site.id}${fns:getUrlSuffix()}'">
</c:when>
<c:otherwise><a class="brand" href="${ctx}/index-${site.id}${fns:getUrlSuffix()}">${site.title}</a></c:otherwise>
</c:choose>
<div class="nav-collapse">
<ul id="main_nav" class="nav nav-pills">
<li class="${not empty isIndex && isIndex ? 'active' : ''}"><a href="${ctx}/index-1${fns:getUrlSuffix()}"><span>${site.id eq '1'?'首  页':'返回主站'}</span></a></li>
<c:forEach items="${fnc:getMainNavList(site.id)}" var="category" varStatus="status"><c:if test="${status.index lt 6}">
<c:set var="menuCategoryId" value=",${category.id},"/>
<li class="${requestScope.category.id eq category.id||fn:indexOf(requestScope.category.parentIds,menuCategoryId) ge 1?'active':''}"><a href="${category.url}" target="${category.target}"><span>${category.name}</span></a></li>
</c:if></c:forEach>
<li id="siteSwitch" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" title="站点"><i class="icon-retweet"></i></a>
<ul class="dropdown-menu">
<c:forEach items="${fnc:getSiteList()}" var="site"><li><a href="#" onclick="location='${ctx}/index-${site.id}${urlSuffix}'">${site.title}</a></li></c:forEach>
</ul>
</li>
<li id="themeSwitch" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" title="主题切换"><i class="icon-th-large"></i></a>
<ul class="dropdown-menu">
<c:forEach items="${fns:getDictList('theme')}" var="dict"><li><a href="#" onclick="location='${pageContext.request.contextPath}/theme/${dict.value}?url='+location.href">${dict.label}</a></li></c:forEach>
</ul>
<!--[if lte IE 6]><script type="text/javascript">$('#themeSwitch').hide();</script><![endif]-->
</li>
</ul>
<form class="navbar-form pull-right" action="${ctx}/search" method="get">
<input type="text" name="q" maxlength="20" style="width:65px;" placeholder="全站搜索..." value="${q}">
</form>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container">
<div class="content">
<sitemesh:body/>
</div>
<hr style="margin:20px 0 10px;">
<footer>
<div class="footer_nav"><a href="${ctx}/guestbook" target="_blank">公共留言</a> | <a href="${ctx}/search" target="_blank">全站搜索</a> | <a href="${ctx}/map-${site.id}${fns:getUrlSuffix()}" target="_blank">站点地图</a> | <a href="mailto:thinkgem@163.com">技术支持</a> | <a href="${pageContext.request.contextPath}${fns:getAdminPath()}" target="_blank">后台管理</a></div>
<div class="pull-right">${fns:getDate('yyyy年MM月dd日 E')}</div><div class="copyright">${site.copyright}</div>
</footer>
</div> <!-- /container -->
</body>
</html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
</div>
<hr style="margin:20px 0 10px;">
<footer>
<div class="footer_nav"><a href="${ctx}/guestbook" target="_blank">公共留言</a> | <a href="${ctx}/search" target="_blank">全站搜索</a> | <a href="${ctx}/map-${site.id}${fns:getUrlSuffix()}" target="_blank">站点地图</a> | <a href="mailto:thinkgem@163.com">技术支持</a> | <a href="${pageContext.request.contextPath}${fns:getAdminPath()}" target="_blank">后台管理</a></div>
<div class="pull-right">${fns:getDate('yyyy年MM月dd日 E')}</div><div class="copyright">${site.copyright}</div>
</footer>
</div> <!-- /container --></html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<div class="navbar navbar-fixed-top" style="position:static;margin-bottom:10px;">
<div class="navbar-inner">
<div class="container">
<c:choose>
<c:when test="${not empty site.logo}">
<img alt="${site.title}" src="${site.logo}" class="container" onclick="location='${ctx}/index-${site.id}${fns:getUrlSuffix()}'">
</c:when>
<c:otherwise><a class="brand" href="${ctx}/index-${site.id}${fns:getUrlSuffix()}">${site.title}</a></c:otherwise>
</c:choose>
<div class="nav-collapse">
<ul id="main_nav" class="nav nav-pills">
<!--${not empty isIndex && isIndex ? 'active' : ''}-->
<li class=""><a href="${ctx}/index-1${fns:getUrlSuffix()}"><span>${site.id eq '1'?'首  页':'返回主站'}</span></a></li>
<c:forEach items="${fnc:getMainNavList(site.id)}" var="category" varStatus="status"><c:if test="${status.index lt 6}">
<c:set var="menuCategoryId" value=",${category.id},"/>
<!-${requestScope.category.id eq category.id||fn:indexOf(requestScope.category.parentIds,menuCategoryId) ge 1?'active':''}->
<li class=""><a href="${category.url}" target="${category.target}"><span>${category.name}</span></a></li>
</c:if></c:forEach>
<li id="siteSwitch" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" title="站点"><i class="icon-retweet"></i></a>
<ul class="dropdown-menu">
<c:forEach items="${fnc:getSiteList()}" var="site"><li><a href="#" onclick="location='${ctx}/index-${site.id}${urlSuffix}'">${site.title}</a></li></c:forEach>
</ul>
</li>
<li id="themeSwitch" class="dropdown hide">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" title="主题切换"><i class="icon-th-large"></i></a>
<ul class="dropdown-menu">
<c:forEach items="${fns:getDictList('theme')}" var="dict"><li><a href="#" onclick="location='${pageContext.request.contextPath}/theme/${dict.value}?url='+location.href">${dict.label}</a></li></c:forEach>
</ul>
<!--[if lte IE 6]><script type="text/javascript">$('#themeSwitch').hide();</script><![endif]-->
</li>
</ul>
<form class="navbar-form pull-right hide" action="${ctx}/search" method="get">
<input type="text" name="q" maxlength="20" style="width:65px;" placeholder="全站搜索..." value="${q}">
</form>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="row">
<img src="/staticViews/cms/images/info.png" style="width: 100%;height: auto">
</div>
<div class="container">
<div class="contentx">
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<link href="${ctxStatic}/jquery-validation/1.11.1/jquery.validate.min.css" type="text/css" rel="stylesheet" />
<script src="${ctxStatic}/jquery-validation/1.11.1/jquery.validate.min.js" type="text/javascript"></script>
<script src="${ctxStatic}/jquery-validation/1.11.1/jquery.validate.method.min.js" type="text/javascript"></script>
<style type="text/css">.reply{border:1px solid #ddd;background:#fefefe;margin:10px;}</style>
<script type="text/javascript">
$(document).ready(function() {
comment(0);
});
function commentForm(form){
$(form).validate({
rules: {
validateCode: {remote: "${pageContext.request.contextPath}/servlet/validateCodeServlet"}
},
messages: {
content: {required: "请填写评论内容"},
validateCode: {remote: "验证码不正确", required: "请填写验证码"}
},
submitHandler: function(form){
$.post($(form).attr("action"), $(form).serialize(), function(data){
data = eval("("+data+")");
alert(data.message);
if (data.result==1){
page(1);
}
});
},
errorContainer: form + " .messageBox",
errorPlacement: function(error, element) {
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
error.appendTo(element.parent().parent());
} else {
error.insertAfter(element);
}
}
});
}
function comment(id){
if ($("#commentForm"+id).html()==""){
$(".validateCodeRefresh").click();
$(".commentForm").hide(500,function(){$(this).html("");});
$("#commentForm"+id).html($("#commentFormTpl").html()).show(500);
$("#commentForm"+id+" input[name='replyId']").val(id);
commentForm("#commentForm"+id + " form");
}else{
$("#commentForm"+id).hide(500,function(){$(this).html("");});
}
}
</script>
<h5>评论列表</h5>
<ul>
<c:forEach items="${page.list}" var="comment">
<li>
<h6>姓名: ${comment.name} &nbsp;时间:<fmt:formatDate value="${comment.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
<a href="javascript:comment(${comment.id})">回复</a></h6>
<div>${comment.content}</div>
<div id="commentForm${comment.id}" class="commentForm hide"></div>
</li>
</c:forEach>
<c:if test="${fn:length(page.list) eq 0}">
<li>暂时还没有人评论!</li>
</c:if>
</ul>
<div class="pagination">${page.getPageHtml()}</div>
<h5>我要评论</h5>
<div id="commentForm0"></div>
<script id="commentFormTpl" type="text/javascript"><!--/*-->
<form:form action="${ctx}/comment" method="post" class="form-horizontal">
<input type="hidden" name="category.id" value="${comment.category.id}"/>
<input type="hidden" name="contentId" value="${comment.contentId}"/>
<input type="hidden" name="title" value="${comment.title}"/>
<input type="hidden" name="replyId"/>
<div class="control-group">
<label class="control-label">留言内容:</label>
<div class="controls">
<textarea name="content" rows="4" maxlength="200" class="txt required" style="width:400px;"></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label">姓名:</label>
<div class="controls">
<input type="text" name="name" maxlength="11" class="txt required" style="width:100px;" value="匿名"/>
<label class="mid">验证码:</label><sys:validateCode name="validateCode" />
<input class="btn mid" type="submit" value="提 交"/>&nbsp;
</div>
</div>
<div class="alert alert-error messageBox" style="display:none">输入有误,请先更正。</div>
</form:form><!--*/-->
</script>
\ No newline at end of file
<%@ 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="JeeSpring ${site.description}" />
<meta name="keywords" content="JeeSpring ${site.keywords}" />
<script src="${ctxStaticTheme}/lyb/jquery-1.7.1.min.js"></script>
<script src="${ctxStaticTheme}/lyb/jquery.alerts.js" type="text/javascript"></script>
<link href="${ctxStaticTheme}/lyb/jquery.alerts.css" rel="stylesheet" type="text/css" media="screen" />
<link rel="stylesheet" href="${ctxStaticTheme}/lyb/bootstrap.min.css">
<link href="${ctxStaticTheme}/lyb/yly002.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(function(){
$(".lybinput,.ly_reply,.reply,.fanghui").hide();
$(".takeamessage").click(function(){
if ($(this).parents().next(".lybinput").is(":hidden")){
$(this).parents().next(".lybinput").show();
}else{
$(this).parents().next(".lybinput").hide();
}
});
//留言表单
$("#ly_submit_bottom").click(function(){
if ('' == $("#lyform_bottom input[name=nickname]").val()) {
jAlert('请输入昵称');
return false;
}else if('' == $("#lyform_bottom input[name=content]").val()) {
jAlert('请输入您的留言');
return false;
}else{
$("#lyform_bottom").submit();
}
});
//回复表单
$(".reply_submit").click(function(){
if ('' == $(this).siblings(".nicheng").children().children("input[name=reply_nickname]").val()) {
jAlert('请输入昵称');
return false;
}else if('' == $(this).siblings(".liuyan").children().children("input[name=reply_content]").val()) {
jAlert('请输入您的回复');
return false;
}else{
$(this).parents("form").submit();
}
});
$(".huifu").click(function(){
$(this).hide();
$(this).parents().next(".ly_reply").show();
$(this).siblings(".fh,.chakang").hide();
$(this).siblings(".quit").show();
});
$(".chakang").click(function(){
$(this).hide();
$(this).parents().next().next(".reply").show();
$(this).siblings(".fanghui").show();
$(this).siblings(".quit").hide();
});
$(".fh").click(function(){
$(this).parents().next().next(".reply").hide();
$(this).siblings(".chakang,.huifu").show();
$(this).hide();
});
$(".quit").click(function(){
$(this).hide();
$(this).parents().next(".ly_reply").hide();
$(this).siblings(".ly_reply").hide();
$(this).siblings(".huifu").show();
$(this).siblings(".chakang").show();
if ($(this).parents().next().next(".reply").is(":visible")){
$(this).parents().next().next(".reply").hide();
}
});
//提交留言表单
$("#ly_submit").click(function(){
if ('' == $("#lyform input[name=name]").val()) {
jAlert('请输入昵称');
return false;
}else if('' == $("#lyform input[name=content]").val()) {
jAlert('请输入您的留言');
return false;
}else{
$("#lyform").submit();
}
});
});
</script>
</head>
<body>
<div class="wrapper">
<div class="header">
<div class="header_img"><img src="${ctxStaticTheme}/lyb/lyb_02.png" /></div>
<div class="name">${site.title}</div>
<div class="wrapper_wodeliuyan">
<!-- <div class="wodeliuyan"><a href="#">我的留言</a></div> -->
</div>
<a href="javascript:history.go(-2);" target="_blank"><div class="wrapper_back"></div></a>
</div>
<div class="content_wrapper">
<div class="content">
<div class="djly">
<div class="djly_02 takeamessage">
<img src="${ctxStaticTheme}/lyb/ly_03.png" />
</div>
</div>
<!--<div class="lybinput"> end lybinput -->
<form class="lybinput" id="lyform" action="" method="POST">
<div class="nicheng">
<div>
<input class="nicheng_02 form-control" name="name" value="" type="text" placeholder="请输入昵称" required="required">
</div>
</div>
<div class="liuyan">
<div>
<input class="nicheng_02 form-control" name="content" id="textinput1" placeholder="请输入您的留言" required="required" value="" type="text">
</div>
</div>
<div class="tijiao" id="ly_submit" >
<div class="tijiao_02">
<a>提交</a>
</div>
</div>
</form>
<!--</div> end lybinput -->
<c:forEach items="${page.list}" var="guestbook" varStatus="vs">
<div class="date"><fmt:formatDate value="${guestbook.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/> </div>
<div class="neirong_001">
<div class="yonghunicheng">${guestbook.name}</div>
<div class="zhuyaoneirong">${guestbook.content}</div>
</div>
<div class="neirong_001_buttom">
<div class="date_time"></div>
<div class="shuliang"></div>
<div class="huifu"><a></a></div>
<div class="chakang"><a></a></div><div class="fanghui fh"><a>返回</a></div>
<div class="fanghui quit"><a>取消</a></div>
</div>
<div class="reply">
<div class="neirong_001_smm">
<div class="zhuyaoneirong_smm"><strong style="color: #000">${guestbook.reUser.name}: </strong>${guestbook.reContent}</div>
</div>
<div class="neirong_001_buttom_smm">
<div class="date_time_smm">${guestbook.reContent}</div>
<div class="yonghunicheng_smm"></div>
</div>
</div>
</c:forEach>
<!--<div class="ly_reply"> start ly_reply -->
<form class="ly_reply" action="http://shibo.55zhe.net/wz.php?mod=board&boardid=1299&openid=fromuserid" method="POST">
<div class="nicheng">
<div>
<input class="nicheng_02 form-control rnickname" name="reply_nickname" type="text" value="" placeholder="请输入昵称" />
</div>
</div>
<div class="liuyan">
<div>
<input class="nicheng_02 form-control" name="reply_content" placeholder="请输入您的回复" value="" type="text">
</div>
</div>
<div class="tijiao reply_submit">
<div class="tijiao_02">
<a>提交</a>
</div>
</div>
</form>
<!--</div> end ly_reply -->
</div><!-- content--><div class="clfl"></div>
</div><!--content_wrapper-->
<div class="footer">
感谢您的宝贵意见
</div>
</div><!-- wrapper -->
</body>
</html>
\ No newline at end of file
<%@ 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="JeeSpring ${site.description}" />
<meta name="keywords" content="JeeSpring ${site.keywords}" />
<style type="text/css">
@charset "utf-8";
*{margin:0;padding:0;}.wz_17_wrapper a{ display:block;color: #FFF;text-decoration: none;}
.wz_17_flat_left{float:left;}.wz_17_flat_right{float:right;}.clfl{ float:none;clear:both;}
.wz_17_color_01{background-color:#228981;}.wz_17_color_02{background-color:#8019bf;}
.wz_17_color_03{background-color:#22601a;}.wz_17_color_04{background-color:#1f4b89;}
.wz_17_color_05{background-color:#af1d42;}.wz_17_color_06{background-color:#ce6619;}
.wz_17_color_07{background-color:#228981;}.wz_17_color_08{background-color:#8019bf;}
.wz_17_color_09{background-color:#22601a;}.wz_17_color_010{background-color:#1f4b89;}
.wz_17_color_011{background-color:#af1d42;}.wz_17_color_012{background-color:#ce6619;}
.wz_17_color_013{background-color:#af1d42;}.wz_17_color_014{background-color:#ce6619;}
.wz_17_color_015{background-color:#af1d42;}.wz_17_color_016{background-color:#ce6619;}
.wz_17_color_017{background-color:#af1d42;}.wz_17_color_018{background-color:#ce6619;}
.wz_17_color_019{background-color:#af1d42;}.wz_17_color_020{background-color:#ce6619;}
.wz_17_wrapper {width: 320px;margin-right: auto;margin-left: auto;}
.wz_17_line{color:#FFF;font-size:16px;font-family:"微软雅黑";background-color:#999;height:103px;width:100%;margin-bottom:10px;}
.wz_17_text{overflow:hidden;text-align:center;line-height:103px;width:103px;height:103px;}
.wz_17_img{ overflow:hidden;height:103px;width:217px;}
.wz_17_img img{ width:100%;min-height:103px;}
.foot_bq{width:300px;margin:auto;bottom:0;font-size:12px;text-align:center;line-height:60px;color:#fff;}
.btn_music {width:40px;height:40px;margin:5px 0 20px 20px;background: none;background-image: url("${ctxStaticTheme}/wz/images/wz26/music.png");
background-size: 100%;background-repeat: no-repeat;border: none;}
.btn_music.on {background-image: url("${ctxStaticTheme}/wz/images/wz26/musicstop.png");}
/*.btn_music:hover{background-image:url(${ctxStaticTheme}/wz/images/wz26/musichover.png);}*/
</style>
</head>
<body>
<img id="ygj_bg_show" src="${ctxStaticTheme}/images/idx_bg.jpg"
style="width: 100%; height: 100%; min-width: 320px; z-index: -1; position: fixed; top: 0; left: 0" />
<div class="wz_17_wrapper" style="z-index:100;">
<c:forEach items="${fnc:getMainNavList(site.id)}" var="category" varStatus="status">
<c:if test="${status.index lt 20}">
<div class="wz_17_line">
<a href="${category.url}">
<div class="wz_17_text wz_17_color_0${status.index+1} wz_17_flat_${status.index % 2 eq 0 ? 'left' : 'right'}">${category.name}</div>
<div class="wz_17_img ">
<img src="${category.image}" />
</div>
</a>
<div class="clfl"></div>
</div>
</c:if>
</c:forEach>
</div>
<div class="foot_bq"></div>
</body>
</html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>${category.name}</title>
<meta name="decorator" content="cms_default_${site.theme}"/>
<meta name="description" content="${category.description}" />
<meta name="keywords" content="${category.keywords}" />
<link href="${ctxStaticTheme}/wz/css/wz.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="ui-header_xiao">
<div class="ui-btn-left" onclick="dourl('${ctx}/index-${site.id}${fns:getUrlSuffix()}')"></div>
<a class="ui-btn-right" href="javascript:window.location.reload();"></a>
</div>
<div class="Listpage">
<div class="top46"></div>
<div class="focus">
<ul>
<li><div style="max-height:250px;"><img src="${category.image}" ></div>
<div class="opacity"></div>
<h2>${category.name}</h2>
</li>
</ul>
</div>
<div id="todayList">
<ul class="todayList">
<c:if test="${category.module eq 'article'}">
<c:forEach items="${page.list}" var="article">
<li class="only1_xiao" onclick="dourl('${article.url}')">
<h2>${fns:abbr(article.title,96)}</h2>
<div class="img">
<img style="width:72px;height:auto;max-height:55px;" src="${article.image}" >
</div>
<p class="onlyheight_60">${article.description} <fmt:formatDate value="${article.updateDate}" pattern="yyyy.MM.dd"/></p>
<div class="commentNum"></div>
</li>
</c:forEach>
</c:if>
</ul>
<div class="page pagination pagination-mini">${page.getPageHtml()}</div>
<script type="text/javascript">
function page(n,s){
location="${ctx}/list-${category.id}${urlSuffix}?pageNo="+n+"&pageSize="+s;
}
</script>
</div>
</div>
<script>
function dourl(url){
location.href= url;
}
</script>
</body>
</html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>${category.name}</title>
<meta name="decorator" content="cms_default_${site.theme}"/>
<meta name="description" content="${category.description}" />
<meta name="keywords" content="${category.keywords}" />
</head>
<body>
<div class="row">
<div class="span2">
<h4>栏目列表</h4>
<ol>
<cms:frontCategoryList categoryList="${categoryList}"/>
</ol>
<h4>推荐阅读</h4>
<ol>
<cms:frontArticleHitsTop category="${category}"/>
</ol>
</div>
<div class="span10">
<ul class="breadcrumb">
<cms:frontCurrentPosition category="${category}"/>
</ul>
</div>
<div class="span10">
<c:set var="index" value="1"/>
<c:forEach items="${categoryList}" var="tpl">
<c:if test="${tpl.inList eq '1' && tpl.module ne ''}">
<c:set var="index" value="${index+1}"/>
${index % 2 eq 0 ? '<div class="row">':''}
<div class="span5">
<h4><small><a href="${ctx}/list-${tpl.id}${urlSuffix}" class="pull-right">更多&gt;&gt;</a></small>${tpl.name}</h4>
<c:if test="${tpl.module eq 'article'}">
<ul><c:forEach items="${fnc:getArticleList(site.id, tpl.id, 5, '')}" var="article">
<li><span class="pull-right"><fmt:formatDate value="${article.updateDate}" pattern="yyyy.MM.dd"/></span><a href="${ctx}/view-${article.category.id}-${article.id}${urlSuffix}" style="color:${article.color}">${fns:abbr(article.title,40)}</a></li>
</c:forEach></ul>
</c:if>
<c:if test="${tpl.module eq 'link'}">
<ul><c:forEach items="${fnc:getLinkList(site.id, tpl.id, 5, '')}" var="link">
<li><span class="pull-right"><fmt:formatDate value="${link.updateDate}" pattern="yyyy.MM.dd"/></span><a target="_blank" href="${link.href}" style="color:${link.color}">${fns:abbr(link.title,40)}</a></li>
</c:forEach></ul>
</c:if>
</div>
${index % 2 ne 0 ? '</div>':''}
</c:if>
</c:forEach>
</div>
</div>
</body>
</html>
\ No newline at end of file
<%@ 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>
\ No newline at end of file
<%@ 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}" />
<script src="${ctxStatic}/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<style type="text/css">
form.search{margin:12px 20px 5px;} .page{margin:20px;}
form.search input.txt{padding:3px;font-size:16px;width:300px;margin:5px;}
form.search select.txt{padding:3px;font-size:16px;width:308px;margin:5px;}
form.search input.txt.date{width:133px;}
form.search .sel{margin-bottom:8px;padding:0 0 10px 5px;border-bottom:1px solid #efefef;font-size:14px;} form.search .act{font-weight:bold;}
form.search .btn{padding:3px 18px;*padding:1px 0 0;font-size:16px;}
dl.search{line-height:25px;border-bottom:1px solid #efefef;margin:10px 20px 20px;}
dl.search dt{border-top:1px solid #efefef;padding:8px 5px 0px;font-size:16px;}
dl.search dt a.title{color:#0000cc;text-decoration:underline;}
dl.search dd{margin:0 5px 10px;font-size:14px;color:#555}
dl.search dd span,dl.search dd a{font-size:12px;color:#008000;}
dl.search .highlight{color:#DF0037;}
dl.search dd span.highlight{color:#DF0037;font-size:14px;}
dl.search dd span.info span.highlight{color:#DF0037;font-size:13px;}
</style>
<c:if test="${not empty message}"><script type="text/javascript">alert("${message}");</script></c:if>
</head>
<body>
<form:form id="searchForm" method="get" class="search">
<input type="hidden" id="pageNo" name="pageNo" value="${page.pageNo}"/>
<input type="hidden" id="t" name="t" value="${not empty t?t:'article'}"/>
<input type="hidden" id="cid" name="cid" value="${cid}"/>
<input type="hidden" id="a" name="a" value="${not empty t?t:'0'}"/>
<div class="sel">
<a href="javascript:" onclick="$('#t').val('article');$('.sel a').removeClass('act');$(this).addClass('act')" class="${empty t || t eq 'article'?'act':''}">文章搜索</a> &nbsp;
<a href="javascript:" onclick="$('#t').val('guestbook');$('.sel a').removeClass('act');$(this).addClass('act')" class="${t eq 'guestbook'?'act':''}">留言搜索</a>
</div>
<c:choose>
<c:when test="${param.a eq '1'}">
<table>
<tr><td>包含以下<strong>任意一个</strong>关键词</td><td><input type="text" name="q" value="${q}" class="txt"/>
<input type="submit" value="搜 索" class="btn" onclick="$('#a').val('1')"/>
<input type="submit" value="简单搜索" class="btn" onclick="$('#a').val('0')"/></td></tr>
<tr><td>包含以下<strong>全部</strong>的关键词</td><td><input type="text" name="qand" value="${qand}" class="txt"/></td></tr>
<tr><td><strong>不包含</strong>以下关键词</td><td><input type="text" name="qnot" value="${qnot}" class="txt"/></td></tr>
<tr><td>检索结果每页显示的条数</td><td>
<select name="pageSize" class="txt">
<option value="10"${page.pageSize eq '10'?' selected':''}>每页显示10条</option>
<option value="20"${page.pageSize eq '20'?' selected':''}>每页显示20条</option>
<option value="30"${page.pageSize eq '30'?' selected':''}>每页显示30条</option>
<option value="40"${page.pageSize eq '40'?' selected':''}>每页显示40条</option>
<option value="50"${page.pageSize eq '50'?' selected':''}>每页显示50条</option>
</select></td></tr>
<tr><td><c:if test="${empty t || t eq 'article'}">最后更新日期范围</c:if><c:if test="${t eq 'guestbook'}">留言日期范围</c:if></td><td>
<input id="bd" name="bd" type="text" readonly="readonly" maxlength="20" class="txt date"
value="${param.bd}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>&nbsp;~&nbsp;
<input id="ed" name="ed" type="text" readonly="readonly" maxlength="20" class="txt date"
value="${param.ed}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
</td></tr>
</table>
</c:when><c:otherwise>
<input type="hidden" id="pageSize" name="pageSize" value="${page.pageSize}"/>
<input type="text" name="q" value="${q}" class="txt"/>
<input type="submit" value="搜 索" class="btn" onclick="$('#a').val('0')"/>
<input type="submit" value="高级搜索" class="btn" onclick="$('#a').val('1')"/>
</c:otherwise>
</c:choose>
</form:form>
<dl class="search">
<c:if test="${empty t || t eq 'article'}">
<c:forEach items="${page.list}" var="article">
<dt><a href="${ctx}/view-${article.category.id}-${article.id}${urlSuffix}" class="title" target="_blank">${article.title}</a></dt>
<dd>${article.description}<span class="info"><br/>发布者:${article.createBy.name} &nbsp; 点击数:${article.hits} &nbsp; 发布时间:<fmt:formatDate value="${article.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/> &nbsp; 更新时间:<fmt:formatDate value="${article.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/></span>
&nbsp;&nbsp;<a href="${ctx}/view-${article.category.id}-${article.id}${urlSuffix}" target="_blank">查看全文</a><br/></dd>
</c:forEach>
</c:if>
<c:if test="${t eq 'guestbook'}">
<c:forEach items="${page.list}" var="guestbook"><dt>${fns:getDictLabel(guestbook.type,'cms_guestbook','')}</dt>
<dd>${guestbook.content}<span class="info"><br/>姓名:${guestbook.name} &nbsp; 留言时间:<fmt:formatDate value="${guestbook.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></span></dd>
<dd>回复:${guestbook.reContent}<span class="info"><br/>回复人:${guestbook.reUser.name} &nbsp; 回复时间:<fmt:formatDate value="${guestbook.reDate}" pattern="yyyy-MM-dd HH:mm:ss"/></span></dd>
</c:forEach>
</c:if>
<c:if test="${fn:length(page.list) eq 0}">
<dt><c:if test="${empty q}">请键入要查找的关键字。</c:if><c:if test="${not empty q}">抱歉,没有找到与“${q}”相关内容。</c:if><br/><br/>建议:</dt>
<dd><ul><li>检查输入是否正确;</li><li>简化输入词;</li><li>尝试其他相关词,如同义、近义词等。</li></ul></dd>
</c:if>
</dl>
<div class="pagination">${page.getPageHtml()}</div>
<script type="text/javascript">
function page(n,s){
$("#pageNo").val(n);
$("#pageSize").val(s);
$("#searchForm").submit();
return false;
}
</script>
</body>
</html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>${article.title} - ${category.name}</title>
<meta name="decorator" content="cms_default_${site.theme}"/>
<meta name="description" content="${article.description} ${category.description}" />
<meta name="keywords" content="${article.keywords} ${category.keywords}" />
<link href="${ctxStaticTheme}/wz/css/zf.css-02.css" rel="stylesheet" type="text/css" />
<style id="table">div table.noBorderTable td,div table.noBorderTable th,div table.noBorderTable caption{border:1px dashed #ddd !important}div table{margin-bottom:10px;border-collapse:collapse;display:table;}div td,div th{ background:white; padding: 5px 10px;border: 1px solid #DDD;}div caption{border:1px dashed #DDD;border-bottom:0;padding:3px;text-align:center;}div th{border-top:2px solid #BBB;background:#F7F7F7;}div td p{margin:0;padding:0;}</style>
<style type="text/css">
body {font-family: Helvetica, STHeiti STXihei, Microsoft JhengHei, Microsoft YaHei, Tohoma, Arial;margin: 0;color: #222222;
/* background: none repeat scroll 0 0 #F8F7F4; */height: 100%;position: relative;}
#wz_title {color: #000000;font-size: 20px;font-weight: bold;margin: 0;}
#wz_date {color: #8C8C8C;font-size: 11px;}
.wz_fengmian {margin: 10px 0;}
.wz_content {color: #3E3E3E;line-height: 1.5;overflow: hidden;width: 100%;font-size: 15px;}
.wz_content img,.wz_content embed{max-width: 100%;}
.seemore {background: none repeat scroll 0 0 #FFFFFF;border: 1px solid #D9D9D9;border-radius: 10px 10px 10px 10px;color: #DDDDDD;display: block;font-size: 16px;height: 33px;line-height: 33px;margin: 10px auto;text-align: center;text-decoration: none;}
.seemore a.no_border {border: medium none;}
.seemore a {border-right: 1px solid #DDDDDD;color: #535353;display: inline-block;text-align: center;text-decoration: none;width: 100%;}
a.activity-meta {outline: 0 none;text-decoration: none;}
a.activity-meta:active {color: #607FA6;}
a.activity-meta:active .icon_link_arrow {background: url("${ctxStaticTheme}/images/link_arrow.png") no-repeat scroll 0 0/100% auto transparent;}
.activity-info .icon_link_arrow {margin-left: 3px;margin-top: -5px;}
.icon_link_arrow {background: url("${ctxStaticTheme}/images/link_arrow.png") no-repeat scroll 0 0/100% auto transparent;display: inline-block;height: 7px;vertical-align: middle;width: 7px;}
.activity-meta {color: #607FA6;display: inline-block;font-size: 11px;margin-left: 8px;padding-bottom: 2px;padding-top: 2px;}
.text-ellipsis {display: inline-block;max-width: 104px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}
/*顶部微信号*/
#biz-link {background: url("${ctxStaticTheme}/images/wz_toptiao.png") no-repeat scroll center center / 100% 100% transparent;border: medium none;border-radius: 0 0 0 0;box-shadow: none;height: 42px;padding: 12px 12px 12px 62px;position: relative;text-align: left;}#biz-link .arrow {position: absolute;right: 15px;top: 25px;}#biz-link .logo {height: 42px;left: 5px;overflow: hidden;padding: 6px;position: absolute;top: 6px;width: 42px;}#biz-link .logo img {border-radius: 15px 15px 15px 15px;height: 42px;position: relative;width: 42px;z-index: 10;}#biz-link .logo .circle {background: url("${ctxStaticTheme}/images/wz_topquan.png") no-repeat scroll center center / 100% 100% transparent;height: 54px;left: 0;position: absolute;top: 0;width: 54px;z-index: 100;}#nickname {color: #454545;font-size: 15px;text-shadow: 0 1px 1px white;}#weixinid {color: #A3A3A3;font-size: 12px;line-height: 20px;text-shadow: 0 1px 1px white;}
.icons {border-radius: 5px 5px 5px 5px;height: 25px;overflow: hidden;position: relative;width: 25px;}.icons.arrow-r {background: url("${ctxStaticTheme}/images/mesgIcon.png") no-repeat scroll center center / 100% auto transparent;height: 16px;width: 12px;}
.btn {background-color: #FCFCFC;border: 1px solid #CCCCCC;border-radius: 5px 5px 5px 5px;box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);color: #222222;cursor: pointer;display: block;font-size: 15px;font-weight: bold;margin: 8px 0;padding: 10px;text-align: center;text-decoration: none;}
</style>
<style type="text/css">
.wz_header {/*position:relative;height:100%;*/color:#222;font-family:Microsoft YaHei,Helvitica,Verdana,Tohoma,Arial,san-serif;/*background-color:#f0f0f0;*/margin:0;padding: 0;text-decoration: none;}
.wz_header a {color:#000000;text-decoration: none;}
#ui-header {width: 100%;height: 46px;line-height: 46px;z-index: 3;position: absolute;left: 0;top: 0;right: 0;}
#ui-header .fixed {display: block;margin: 0 auto;min-width: 320px;height: 46px;top: 0;border-bottom: 1px solid #D1D1D1;box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.15);-moz-box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.15);-webkit-box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.15);background-image: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#f9f9f9) );background-image: -webkit-linear-gradient(#ffffff, #f9f9f9);background-image: -moz-linear-gradient(#ffffff, #f9f9f9);background-image: -ms-linear-gradient(#ffffff, #f9f9f9);background-image: -o-linear-gradient(#ffffff, #f9f9f9);background-image: linear-gradient(#ffffff, #f9f9f9);/*opacity: 0.95;*/}
.ui-title {min-height: 46px;text-align: center;font-size: 16px;font-weight: normal;display: block;margin: 10px 70px 0;padding: 0;text-overflow: ellipsis;overflow: hidden;white-space: nowrap;outline: 0 !important;display: none;text-indent: -10px;}
.ui-btn-left {position: absolute;top: 0px;left: 0px;background: url("${ctxStaticTheme}/images/wz_menu.png") no-repeat center center;display: block;width: 60px;height: 44px;text-indent: -9999px;margin: 0;padding: 0;background-size: 24px auto;}
.ui-btn-left_pre {position: absolute;top: 0px;left: 0px;background: url("${ctxStaticTheme}/images/wz_pre.png") no-repeat center center;display: block;width: 60px;height: 44px;text-indent: -9999px;margin: 0;padding: 0;background-size: 24px auto;}
.ui-btn-right {position: absolute;top: 0px;right: 0px;background: url("${ctxStaticTheme}/images/wz_refresh.png") no-repeat center center;display: block;width: 60px;height: 44px;text-indent: -9999px;margin: 0;padding: 0;background-size: 28px auto;}
.ui-btn-right_menu {position: absolute;top: 0px;right: 0px;background: url("${ctxStaticTheme}/images/wz_menu.png") no-repeat center center;display: block;width: 60px;height: 44px;text-indent: -9999px;margin: 0;padding: 0;background-size: 24px auto;}
.ui-btn-right_home {position: absolute;top: 0px;right: 0px;background: url("${ctxStaticTheme}/images/wz_home.png") no-repeat center center;display: block;width: 60px;height: 44px;text-indent: -9999px;margin: 0;padding: 0;background-size: 24px auto;}
#ui-header li:hover {background-color: #000000;}
#ui-header li:active {background-color: #000000;}
#overlay {position: absolute;top: 0;left: 0;width: 100%;height: 100%;background: #fff;opacity: 0;filter: alpha(opacity = 0);display: none;z-index: 4;}
#win {position: absolute;top: 55px;left: 50%;width: 200px;margin: 0 0 0 -100px;display: none;z-index: 5;}
/*popmenu*/
#popmenu{cursor:pointer; display:block; position:relative; text-align: center; width: 200px; margin:0 auto}
#popmenu:after {content: "";width: 0;height: 0;position: absolute;right: 50px;top: 50%;margin-top: -2px;border-width: 5px 5px 0 5px;border-style: solid;border-color: #9D9D9D transparent;}
.dropdown { /* Size and position */position: relative;display: block;margin: 0 auto;padding: 5px;/* Styles */background-color: rgba(47, 47, 47, 1);border-radius: 7px;border: 1px solid rgba(0, 0, 0, 0.15);box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.15);-moz-box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.15);-webkit-box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.15);cursor: pointer;outline: none;list-style: none outside none;}
.dropdown:after {content: "";width: 0;height: 0;position: absolute;bottom: 100%;right: 90px;border-width: 0 6px 6px 6px;border-style: solid;border-color: rgba(47, 47, 47, 0.9) transparent;}
.dropdown:before {content: "";width: 0;height: 0;position: absolute;bottom: 100%;right: 88px;border-width: 0 8px 8px 8px;border-style: solid;border-color: rgba(0, 0, 0, 0.1) transparent;}
.dropdown li {background-color: rgba(58, 58, 58, 1);display: block;float: left;height: 37px;overflow: hidden;width: 50%;}
.dropdown li span {border-color: #494949 #181818 #181818 #494949;border-left: 1px solid #494949;border-style: solid;border-width: 1px;color: #FFFFFF;line-height: 37px;display: block;font-size: 15px;height: 37px;text-align: center;text-shadow: 0 2px 2px #000000;width: 100%;overflow: hidden;}
.dropdown li:hover {background-color: rgba(0, 0, 0, 0.9);}
.clr {display: block;clear: both;height: 1px;overflow: hidden;}
.top46 {height: 46px;padding: 0;margin: 0}
</style>
<script src="${ctxStaticTheme}/template/default/vip/js/jquery.js" type="text/javascript"></script>
<script src="http://res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/wxm-core1530d0.js" ></script>
<script type="text/javascript">
function cli_hide2(){
$("#layer_mask2").hide();
$('#forward2').hide();
$('#men_pho_id').hide();
}
function men_pho_cli2(){
$("#layer_mask2").show();
$('#men_pho_id').show();
}
function cli_zhuanfa(){
$("#layer_mask2").show();
$('#forward2').show();
}
</script>
</head>
<body>
<div class="layer-mask" id="layer_mask2" style="z-index: 10002;display:none; position: absolute; position: fixed; width: 100%; height: 100%; background-color: #1b1b1b; opacity: 0.9; top: 0;left: 0;" onClick="cli_hide2()"></div>
<div class="helper forward" id="forward2" style="z-index:11111;;display:none"></div>
<div class="men_pho" id="men_pho_id" style=" z-index:10003;display:none"></div>
<script type="text/javascript">
window.onload = function () {
var oWin = document.getElementById("win");
var oLay = document.getElementById("overlay");
var oBtn = document.getElementById("popmenu");
oBtn.onclick = function ()
{
oLay.style.display = "block";
oWin.style.display = "block";
};
oLay.onclick = function ()
{
oLay.style.display = "none";
oWin.style.display = "none";
};
};
function clickBack(){
window.location.href = "${ctx}/list-${category.id}${urlSuffix}";
/* if (/(iPhone|iPad|iPod)/i.test(navigator.userAgent)) {
window.location.href = "wz.php-mod=wzfenlei&openid=fromuserid&wzid=14251.htm#yyy.qq.com";
} else { window.history.go("-1"); }*/
}
</script>
<div class="wz_header">
<div id="ui-header">
<div class="fixed">
<a class="ui-title" id="popmenu">选择分类</a>
<a class="ui-btn-left_pre" href="javascript:" onClick="clickBack();"></a>
<a class="ui-btn-right" href="javascript:window.location.reload();"></a>
</div>
</div>
<div id="overlay"></div>
<div id="win">
<ul class="dropdown">
<c:forEach items="${fnc:getMainNavList(site.id)}" var="category" varStatus="status">
<li><a href="${category.url}" ><span>${category.name}</span></a></li>
</c:forEach>
<div class="clr"></div>
</ul>
</div>
<div class="top46"></div>
</div>
<div class="container" style="padding: 15px 15px 0;">
<div class="row-fluid">
<div class="span12">
<div>
<h4 id="wz_title">${article.title}</h4>
<span id="wz_date">发布者:${article.createBy.name} &nbsp; 点击数:${article.hits} &nbsp; 发布时间:<fmt:formatDate value="${article.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/> &nbsp; 更新时间:<fmt:formatDate value="${article.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/></span>
<a class="activity-meta" href="weixin://addfriend/chinatea2014" onclick="men_pho_cli2()">
<span class="text-ellipsis">${article.description}</span> <i class="icon_link_arrow"></i>
</a>
</div>
<div class="wz_fengmian">
<img width="100%" src="${article.image}" ></img>
</div>
<div class="wz_content">${article.articleData.content}</div>
<div class="seemore">
<a class="no_border" href="${ctx}/index-${site.id}${fns:getUrlSuffix()}" >查看更多</a>
</div>
<div class="seemore" style="background: none repeat scroll 0 0 #5BB75B;">
<a class="no_border" style="color:#FFFFFF;" href="weixin://addfriend/thinkgem" onclick="men_pho_cli2()">关注公众账号</a>
</div>
<div class="zf_wrapper_001">
<div id="gallery">
<button class="zf_wrapper_zhuangfa" type="button" onclick="cli_zhuanfa()"> <span>转发</span><span><img src="${ctxStaticTheme}/wz/images/zf.png" width="16" /></span></button>
<button class="zf_wrapper_fenxiang" type="button" onclick="cli_zhuanfa()"> <span>分享</span><span><img src="${ctxStaticTheme}/wz/images/fx.png" width="16" /></span></button>
</div><!-- end of gallery-->
</div>
<div style="height: 30px;"></div> <div style="height: 50px;"></div>
</div>
</div>
</div>
</body>
</html>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<%@ taglib prefix="sitemesh" uri="http://www.opensymphony.com/sitemesh/decorator" %>
<!DOCTYPE html>
<html>
<head>
<title><sitemesh:title default="欢迎光临"/> - ${site.title} - Powered By JeeSpring</title>
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<sitemesh:head/>
</head>
<body>
<sitemesh:body/>
</body>
</html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>留言管理</title>
<meta name="decorator" content="default"/>
<%@ include file="/WEB-INF/views/include/head.jsp"%>
<script type="text/javascript">
$(document).ready(function() {
$("#reContent").focus();
$("#inputForm").validate({
submitHandler: function(form){
loading('正在提交,请稍等...');
form.submit();
},
errorContainer: "#messageBox",
errorPlacement: function(error, element) {
$("#messageBox").text("输入有误,请先更正。");
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
error.appendTo(element.parent().parent());
} else {
error.insertAfter(element);
}
}
});
});
</script>
</head>
<body>
<ul class="nav nav-tabs">
<li><a href="${ctx}/cms/guestbook/">留言列表</a></li>
<li class="active"><a href="${ctx}/cms/guestbook/form?id=${guestbook.id}">留言<shiro:hasPermission name="cms:guestbook:edit">${guestbook.delFlag eq '2'?'审核':'查看'}</shiro:hasPermission><shiro:lacksPermission name="cms:guestbook:edit">查看</shiro:lacksPermission></a></li>
</ul><br/>
<form:form id="inputForm" modelAttribute="guestbook" action="${ctx}/cms/guestbook/save" method="post" class="form-horizontal">
<form:hidden path="id"/>
<form:hidden path="delFlag"/>
<sys:message content="${message}"/>
<div class="control-group">
<label class="control-label">名称:</label>
<div class="controls">
<c:out value="${guestbook.name}"/>
</div>
</div>
<div class="control-group">
<label class="control-label">邮箱:</label>
<div class="controls">
<c:out value="${guestbook.email}"/>
</div>
</div>
<div class="control-group">
<label class="control-label">电话:</label>
<div class="controls">
<c:out value="${guestbook.phone}"/>
</div>
</div>
<div class="control-group">
<label class="control-label">单位:</label>
<div class="controls">
<c:out value="${guestbook.workunit}"/>
</div>
</div>
<div class="control-group">
<label class="control-label">留言分类:</label>
<div class="controls">
<span style="font-weight:bold;"><c:out value="${fns:getDictLabel(guestbook.type, 'cms_guestbook', '无')}"/></span>
</div>
</div>
<div class="control-group">
<label class="control-label">IP:</label>
<div class="controls">
<c:out value="${guestbook.ip}"/>
</div>
</div>
<div class="control-group">
<label class="control-label">留言时间:</label>
<div class="controls">
<fmt:formatDate value="${guestbook.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
</div>
</div>
<div class="control-group">
<label class="control-label">留言内容:</label>
<div class="controls">
<form:textarea path="content" htmlEscape="false" rows="4" maxlength="200" class="input-xxlarge" disabled="true"/>
</div>
</div>
<c:if test="${not empty guestbook.reUser}">
<div class="control-group">
<label class="control-label">回复人:</label>
<div class="controls">
<c:out value="${guestbook.reUser.name}"/>
</div>
</div>
<div class="control-group">
<label class="control-label">回复时间:</label>
<div class="controls">
<fmt:formatDate value="${guestbook.reDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
</div>
</div>
</c:if>
<div class="control-group">
<label class="control-label">回复内容:</label>
<div class="controls">
<form:textarea path="reContent" htmlEscape="false" rows="4" maxlength="200" class="required input-xxlarge"/>
</div>
</div>
<div class="form-actions"><c:if test="${guestbook.delFlag eq '2'}">
<shiro:hasPermission name="cms:guestbook:edit"><input id="btnSubmit" class="btn btn-success" type="submit" value="通 过" onclick="$('#delFlag').val('0')"/>&nbsp;
<input id="btnSubmit" class="btn btn-inverse" type="submit" value="驳 回" onclick="$('#delFlag').val('1')"/>&nbsp;</shiro:hasPermission></c:if>
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
</div>
</form:form>
</body>
</html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
<title>留言管理</title>
<meta name="decorator" content="default"/>
<%@ include file="/WEB-INF/views/include/headMeta.jsp" %>
<%@ include file="/WEB-INF/views/include/headCss.jsp" %>
<%@ include file="/WEB-INF/views/include/headJs.jsp" %>
<script type="text/javascript">
function page(n, s) {
$("#pageNo").val(n);
$("#pageSize").val(s);
$("#searchForm").submit();
return false;
}
</script>
</head>
<body>
<!-- 内容-->
<div class="wrapper">
<!-- 内容盒子-->
<div class="box box-main">
<!-- 内容盒子头部 -->
<div class="box-header">
<div class="box-title"><i class="fa fa-edit"></i>留言列表</div>
<div class="box-tools pull-right">
<a id="btnSearchView" href="#" class="btn btn-sm btn-default" title="查询"><i class="fa fa-filter"></i>查询</a>
<button id="btnRefresh" class="btn btn-default btn-sm" title="刷新"><i
class="glyphicon glyphicon-repeat"></i> 刷新
</button>
</div>
</div>
<!-- 内容盒子身体 -->
<div class="box-body">
<form:form id="searchForm" modelAttribute="guestbook" action="${ctx}/cms/guestbook/" method="post"
class="form-inline">
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
<div class="form-group">
<label class="control-label">分类:</label>
<div class="control-inline">
<form:select id="type" path="type" class="form-control">
<form:option value="" label=""/>
<form:options items="${fns:getDictList('cms_guestbook')}" itemValue="value" itemLabel="label"
htmlEscape="false"/>
</form:select>
</div>
</div>
<div class="form-group">
<label class="control-label">内容 :</label>
<form:input path="content" htmlEscape="false" maxlength="50" class="form-control input-sm"/>
</div>
<div class="form-group">
<label class="control-label">状态:</label>
<form:radiobuttons onclick="$('#searchForm').submit();" path="delFlag"
items="${fns:getDictList('cms_del_flag')}" itemLabel="label"
itemValue="value" htmlEscape="false"/>
</div>
<div class="form-group">
<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
</div>
</form:form>
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>留言分类</th>
<th>留言内容</th>
<th>留言人</th>
<th>留言时间</th>
<th>回复人</th>
<th>回复内容</th>
<th>回复时间</th>
<shiro:hasPermission name="cms:guestbook:edit">
<th>操作</th>
</shiro:hasPermission></tr>
</thead>
<tbody>
<c:forEach items="${page.list}" var="guestbook">
<tr>
<td>${fns:getDictLabel(guestbook.type, 'cms_guestbook', '无分类')}</td>
<td><a href="${ctx}/cms/guestbook/form?id=${guestbook.id}">${fns:abbr(guestbook.content,40)}</a>
</td>
<td>${guestbook.name}</td>
<td><fmt:formatDate value="${guestbook.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
<td>${guestbook.reUser.name}</td>
<td>${fns:abbr(guestbook.reContent,40)}</td>
<td><fmt:formatDate value="${guestbook.reDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
<shiro:hasPermission name="cms:guestbook:edit">
<td>
<c:if test="${guestbook.delFlag ne '2'}"><a
href="${ctx}/cms/guestbook/delete?id=${guestbook.id}${guestbook.delFlag ne 0?'&isRe=true':''}"
onclick="return confirmx('确认要${guestbook.delFlag ne 0?'恢复审核':'删除'}该留言吗?', this.href)">${guestbook.delFlag ne 0?'恢复审核':'删除'}</a></c:if>
<c:if test="${guestbook.delFlag eq '2'}"><a
href="${ctx}/cms/guestbook/form?id=${guestbook.id}">审核</a></c:if>
</td>
</shiro:hasPermission>
</tr>
</c:forEach>
</tbody>
</table>
<!-- 分页代码 -->
${page.toStringPage()}
</div>
</div>
</div>
<!-- 信息-->
<div id="messageBox">${message}</div>
<%@ include file="/WEB-INF/views/include/footJs.jsp" %>
<script src="/staticViews/viewBase.js"></script></body>
</html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>链接管理</title>
<meta name="decorator" content="default"/>
<%@ include file="/WEB-INF/views/include/head.jsp"%>
<script type="text/javascript">
$(document).ready(function() {
$("#name").focus();
$("#inputForm").validate({
submitHandler: function(form){
if ($("#categoryId").val()==""){
$("#categoryName").focus();
top.$.jBox.tip('请选择归属栏目','warning');
}else{
loading('正在提交,请稍等...');
form.submit();
}
},
errorContainer: "#messageBox",
errorPlacement: function(error, element) {
$("#messageBox").text("输入有误,请先更正。");
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
error.appendTo(element.parent().parent());
} else {
error.insertAfter(element);
}
}
});
});
</script>
</head>
<body>
<ul class="nav nav-tabs">
<li><a href="${ctx}/cms/link/?category.id=${link.category.id}">链接列表</a></li>
<li class="active"><a href="<c:url value='${fns:getAdminPath()}/cms/link/form?id=${link.id}&category.id=${link.category.id}'><c:param name='category.name' value='${link.category.name}'/></c:url>">链接<shiro:hasPermission name="cms:link:edit">${not empty link.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="cms:link:edit">查看</shiro:lacksPermission></a></li>
</ul><br/>
<form:form id="inputForm" modelAttribute="link" action="${ctx}/cms/link/save" method="post" class="form-horizontal">
<form:hidden path="id"/>
<sys:message content="${message}"/>
<div class="control-group">
<label class="control-label">归属栏目:</label>
<div class="controls">
<sys:treeselect id="category" name="category.id" value="${link.category.id}" labelName="category.name" labelValue="${link.category.name}"
title="栏目" url="/cms/category/treeData" module="link" selectScopeModule="true" notAllowSelectRoot="false" notAllowSelectParent="true" cssClass="required"/>
</div>
</div>
<div class="control-group">
<label class="control-label">名称:</label>
<div class="controls">
<form:input path="title" htmlEscape="false" maxlength="200" class="input-xxlarge required measure-input"/>
&nbsp;<label>颜色:</label>
<form:select path="color" class="input-mini">
<form:option value="" label="默认"/>
<form:options items="${fns:getDictList('color')}" itemLabel="label" itemValue="value" htmlEscape="false" />
</form:select>
</div>
</div>
<div class="control-group">
<label class="control-label">链接图片:</label>
<div class="controls">
<form:hidden path="image" htmlEscape="false" maxlength="255" class="input-xlarge"/>
<sys:ckfinder input="image" type="images" uploadPath="/cms/link" selectMultiple="false"/>
</div>
</div>
<div class="control-group">
<label class="control-label">链接地址:</label>
<div class="controls">
<form:input path="href" htmlEscape="false" maxlength="255" class="input-xxlarge"/>
</div>
</div>
<div class="control-group">
<label class="control-label">权重:</label>
<div class="controls">
<form:input path="weight" htmlEscape="false" maxlength="200" class="input-mini required digits"/>&nbsp;
<span>
<input id="weightTop" type="checkbox" onclick="$('#weight').val(this.checked?'999':'0')"><label for="weightTop">置顶</label>
</span>
&nbsp;过期时间:
<input id="weightDate" name="weightDate" type="text" readonly="readonly" maxlength="20" class="input-small Wdate"
value="<fmt:formatDate value="${link.weightDate}" pattern="yyyy-MM-dd"/>"
onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
<span class="help-inline">数值越大排序越靠前,过期时间可为空,过期后取消置顶。</span>
</div>
</div>
<div class="control-group">
<label class="control-label">备注:</label>
<div class="controls">
<form:textarea path="remarks" htmlEscape="false" rows="4" maxlength="200" class="input-xxlarge"/>
</div>
</div>
<shiro:hasPermission name="cms:article:audit">
<div class="control-group">
<label class="control-label">发布状态:</label>
<div class="controls">
<form:radiobuttons path="delFlag" items="${fns:getDictList('cms_del_flag')}" itemLabel="label" itemValue="value" htmlEscape="false" class="required"/>
<span class="help-inline"></span>
</div>
</div>
</shiro:hasPermission>
<div class="form-actions">
<shiro:hasPermission name="cms:link:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
</div>
</form:form>
</body>
</html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>链接管理</title>
<meta name="decorator" content="default"/>
<%@ include file="/WEB-INF/views/include/head.jsp"%>
<script type="text/javascript">
function page(n,s){
$("#pageNo").val(n);
$("#pageSize").val(s);
$("#searchForm").submit();
return false;
}
</script>
</head>
<body>
<ul class="nav nav-tabs">
<li class="active"><a href="${ctx}/cms/link/?category.id=${link.category.id}">链接列表</a></li>
<shiro:hasPermission name="cms:link:edit"><li><a href="<c:url value='${fns:getAdminPath()}/cms/link/form?id=${link.id}&category.id=${link.category.id}'><c:param name='category.name' value='${link.category.name}'/></c:url>">链接添加</a></li></shiro:hasPermission>
</ul>
<form:form id="searchForm" modelAttribute="link" action="${ctx}/cms/link/" method="post" class="breadcrumb form-search">
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
<label>栏目:</label><sys:treeselect id="category" name="category.id" value="${link.category.id}" labelName="category.name" labelValue="${link.category.name}"
title="栏目" url="/cms/category/treeData" module="link" notAllowSelectRoot="false" cssClass="input-small"/>
<label>名称:</label><form:input path="title" htmlEscape="false" maxlength="50" class="input-small"/>&nbsp;
<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>&nbsp;&nbsp;
<label>状态:</label><form:radiobuttons onclick="$('#searchForm').submit();" path="delFlag" items="${fns:getDictList('cms_del_flag')}" itemLabel="label" itemValue="value" htmlEscape="false" />
</form:form>
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
<thead><tr><th>栏目</th><th>名称</th><th>权重</th><th>发布者</th><th>更新时间</th><shiro:hasPermission name="cms:link:edit"><th>操作</th></shiro:hasPermission></tr></thead>
<tbody>
<c:forEach items="${page.list}" var="link">
<tr>
<td><a href="javascript:" onclick="$('#categoryId').val('${link.category.id}');$('#categoryName').val('${link.category.name}');$('#searchForm').submit();return false;">${link.category.name}</a></td>
<td><a href="${ctx}/cms/link/form?id=${link.id}" title="${link.title}">${fns:abbr(link.title,40)}</a></td>
<td>${link.weight}</td>
<td>${link.user.name}</td>
<td><fmt:formatDate value="${link.updateDate}" type="both"/></td>
<shiro:hasPermission name="cms:link:edit"><td>
<a href="${ctx}/cms/link/form?id=${link.id}">修改</a>
<a href="${ctx}/cms/link/delete?id=${link.id}${link.delFlag ne 0?'&isRe=true':''}&categoryId=${link.category.id}" onclick="return confirmx('确认要${link.delFlag ne 0?'发布':'删除'}该链接吗?', this.href)" >${link.delFlag ne 0?'发布':'删除'}</a>
</td></shiro:hasPermission>
</tr>
</c:forEach>
</tbody>
</table>
<div class="pagination">${page.getPageHtml()}</div>
</body>
</html>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment