Commit d9ad22de authored by Huang's avatar Huang
Browse files

no commit message

parent c235571d
<%@ page contentType="text/html;charset=UTF-8" %><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Cache-Control" content="no-store" /><meta http-equiv="Pragma" content="no-cache" /><meta http-equiv="Expires" content="0" />
<meta name="author" content="http://thinkgem.iteye.com"/><meta http-equiv="X-UA-Compatible" content="IE=7,IE=9,IE=10" />
<script src="${ctxStatic}/jquery/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="${ctxStatic}/jquery/jquery-migrate-1.1.1.min.js" type="text/javascript"></script>
<c:if test="${site.theme eq 'basic'}">
<link href="${ctxStatic}/bootstrap/2.3.1/css_${not empty cookie.theme.value ? cookie.theme.value : 'readable'}/bootstrap.min.css" type="text/css" rel="stylesheet" />
<script src="${ctxStatic}/bootstrap/2.3.1/js/bootstrap.min.js" type="text/javascript"></script>
<!--[if lte IE 6]><link href="${ctxStatic}/bootstrap/bsie/css/bootstrap-ie6.min.css" type="text/css" rel="stylesheet" />
<script src="${ctxStatic}/bootstrap/bsie/js/bootstrap-ie.min.js" type="text/javascript"></script><![endif]-->
<link href="${ctxStatic}/common/jeespring.css" type="text/css" rel="stylesheet" />
<link href="${ctxStaticTheme}/style.css" type="text/css" rel="stylesheet" />
<script src="${ctxStaticTheme}/script.js" type="text/javascript"></script>
</c:if>
\ No newline at end of file
<%@ taglib prefix="shiro" uri="/WEB-INF/tlds/shiros.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fns" uri="/WEB-INF/tlds/fns.tld" %>
<%@ taglib prefix="fnc" uri="/WEB-INF/tlds/fnc.tld" %>
<%@ taglib prefix="sys" tagdir="/WEB-INF/tags/sys" %>
<%@ taglib prefix="act" tagdir="/WEB-INF/tags/act" %>
<%@ taglib prefix="cms" tagdir="/WEB-INF/tags/cms" %>
<c:set var="ctx" value="${pageContext.request.contextPath}${fns:getFrontPath()}"/>
<c:set var="ctxStatic" value="${pageContext.request.contextPath}/static"/>
<c:set var="ctxStaticView" value="${pageContext.request.contextPath}/staticViews"/>
<c:set var="ctxStaticFront" value="${ctxStatic}/modules/cms/front"/>
<c:set var="ctxStaticTheme" value="${ctxStaticFront}/themes/${site.theme}"/>
<c:set var="urlSuffix" value="${fns:getUrlSuffix()}"/>
\ No newline at end of file
<%@ 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.0/jquery.validate.min.css" type="text/css" rel="stylesheet" />
<script src="${ctxStatic}/jquery-validation/1.11.0/jquery.validate.min.js" type="text/javascript"></script>
<script src="${ctxStatic}/jquery-validation/1.11.0/jquery.validate.method.min.js" type="text/javascript"></script>
<style type="text/css">.reply{border:1px solid #ddd;background:#fefefe;margin:10px;}</style>
<link href="${ctxStaticView}/cms/front/theme.css" type="text/css" rel="stylesheet" />
<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}" />
<%@include file="/WEB-INF/views/modules/cms/front/include/head.jsp" %>
<link href="${ctxStatic}/jquery-validation/1.11.0/jquery.validate.min.css" type="text/css" rel="stylesheet" />
<script src="${ctxStatic}/jquery-validation/1.11.0/jquery.validate.min.js" type="text/javascript"></script>
<script src="${ctxStatic}/jquery-validation/1.11.0/jquery.validate.method.min.js" type="text/javascript"></script>
<link href="${ctxStaticView}/cms/front/theme.css" type="text/css" rel="stylesheet" />
<script type="text/javascript">
$(document).ready(function() {
<c:if test="${not empty message}">alert("${message}");</c:if>
$("#inputForm").validate({
rules: {
validateCode: {remote: "${pageContext.request.contextPath}/servlet/validateCodeServlet"}
},
messages: {
content: {required: "请填写留言内容"},
validateCode: {remote: "验证码不正确"}
},
errorContainer: "#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);
}
}
});
$("#main_nav li").each(function(){
$(this).toggleClass("active", $(this).text().indexOf('公共留言')>=0);
});
});
function page(n,s){
location="${ctx}/guestbook?pageNo="+n+"&pageSize="+s;;
}
</script>
</head>
<body>
<%@ include file="/WEB-INF/views/modules/cms/front/themes/basic/layouts/default_head.jsp"%>
<div style="padding:0 0 20px;">
<h4>公共留言</h4>
<ul>
<c:forEach items="${page.list}" var="guestbook">
<li>
<h5>姓名: ${guestbook.name} &nbsp;时间:<fmt:formatDate value="${guestbook.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></h5>
<div>内容:${guestbook.content}</div>
<h6>回复人:${guestbook.reUser.name} 时间:<fmt:formatDate value="${guestbook.reDate}" pattern="yyyy-MM-dd HH:mm:ss"/></h6>
<div>回复内容:${guestbook.reContent}</div>
</li>
</c:forEach>
<c:if test="${fn:length(page.list) eq 0}">
<li>暂时还没有人留言!</li>
</c:if>
</ul>
<div class="pagination">${page.getPageHtml()}</div>
<h4>我要留言</h4>
<form:form id="inputForm" action="${ctx}/guestbook" method="post" class="form-horizontal">
<div class="control-group">
<label class="control-label">名称:</label>
<div class="controls">
<input type="text" name="name" maxlength="11" class="required" style="width:300px;"/>
</div>
</div>
<div class="control-group">
<label class="control-label">邮箱:</label>
<div class="controls">
<input type="text" name="email" maxlength="50" class="required email" style="width:300px;"/>
</div>
</div>
<div class="control-group">
<label class="control-label">电话:</label>
<div class="controls">
<input type="text" name="phone" maxlength="50" class="required phone" style="width:300px;"/>
</div>
</div>
<div class="control-group">
<label class="control-label">单位:</label>
<div class="controls">
<input type="text" name="workunit" maxlength="50" class="required" style="width:300px;"/>
</div>
</div>
<div class="control-group">
<label class="control-label">留言分类:</label>
<div class="controls">
<select name="type" class="txt required" style="width:100px;">
<option value="">请选择</option>
<c:forEach items="${fns:getDictList('cms_guestbook')}" var="type">
<option value="${type.value}">${type.label}</option>
</c:forEach>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">留言内容:</label>
<div class="controls">
<textarea name="content" rows="4" maxlength="200" class="required" style="width:400px;"></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label">验证码:</label>
<div class="controls">
<sys:validateCode name="validateCode" />
</div>
</div>
<div class="form-actions">
<input class="btn" type="submit" value="提 交"/>&nbsp;
</div>
<div id="messageBox" class="alert alert-error" style="display:none">输入有误,请先更正。</div>
</form:form>
</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 lang="en">
<head>
<title>JeeSpringCloud</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="${ctxStaticView}/cms/css/bootstrap.min.css">
<link rel="stylesheet" href="${ctxStaticView}/cms/css/font-awesome.min.css">
<link rel="stylesheet" href="${ctxStaticView}/cms/css/magnific-popup.css">
<link rel="stylesheet" href="${ctxStaticView}/cms/css/owl.theme.css">
<link rel="stylesheet" href="${ctxStaticView}/cms/css/owl.carousel.css">
<!-- MAIN CSS -->
<link rel="stylesheet" href="${ctxStaticView}/cms/css/tooplate-style.css">
</head>
<body>
<!-- PRE LOADER -->
<!--div class="preloader" style="display:none">
<div class="spinner">
<span class="sk-inner-circle"></span>
</div>
</div-->
<!-- MENU -->
<div class="navbar custom-navbar navbar-fixed-top" role="navigation">
<div class="container">
<!-- NAVBAR HEADER -->
<div class="navbar-header">
<button class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon icon-bar"></span>
<span class="icon icon-bar"></span>
<span class="icon icon-bar"></span>
</button>
<!-- lOGO -->
<a href="${ctx}/index-1${fns:getUrlSuffix()}" class="navbar-brand">JeeSpringCloud</a>
</div>
<!-- MENU LINKS -->
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="${ctx}/index-1${fns:getUrlSuffix()}" class="smoothScroll">首页</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>
<a href="${category.url}" class="smoothScroll">${category.name}</a>
</li>
</c:if></c:forEach>
</ul>
</div>
</div>
</div>
<!-- HOME -->
<section id="home" class="parallax-section">
<div class="overlay"></div>
<div class="container">
<div class="row">
<div class="col-md-8 col-sm-12">
<div class="home-text">
<c:set var="article" value="${fnc:getArticle('2')}"/>
<h1>${fns:abbr(article.title,28)}</h1>
<p>${fns:abbr(fns:replaceHtml(article.description),260)}</p>
<ul class="section-btn">
<a href="${article.url}" class="smoothScroll"><span data-hover="Discover More">查看详情</span></a>
</ul>
</div>
</div>
</div>
</div>
<!-- Video -->
<video controls autoplay loop muted>
<source src="${ctxStaticView}/cms/videos/video.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</section>
<!-- ABOUT -->
<section id="about" class="parallax-section">
<div class="container">
<div class="row">
<div class="col-md-offset-1 col-md-10 col-sm-12">
<div class="about-info">
<h1>案例</h1>
<h4>(一款免费开源的JAVA互联网云快速开发平台)微服务分布式代码生成的敏捷开发系统架构。</h4>
</div>
</div>
</div>
</div>
</section>
<!-- PROJECT -->
<section id="project" class="parallax-section">
<div class="container">
<div class="row">
<div class="col-md-6 col-sm-6">
<!-- PROJECT ITEM -->
<div class="project-item">
<a href="${ctxStaticView}/cms/images/project-image1.jpg" class="image-popup">
<img src="${ctxStaticView}/cms/images/project-image1.jpg" class="img-responsive" alt="">
<div class="project-overlay">
<div class="project-info">
<h1>Beautiful Women</h1>
<h3>Click to pop up!</h3>
</div>
</div>
</a>
</div>
</div>
<div class="tlinks">Collect from <a href="http://www.cssmoban.com/">网页模板</a></div>
<div class="col-md-6 col-sm-6">
<!-- PROJECT ITEM -->
<div class="project-item">
<a href="${ctxStaticView}/cms/images/project-image2.jpg" class="image-popup">
<img src="${ctxStaticView}/cms/images/project-image2.jpg" class="img-responsive" alt="">
<div class="project-overlay">
<div class="project-info">
<h1>Nulla efficitur quam</h1>
<h3>Sed ligula accumsan</h3>
</div>
</div>
</a>
</div>
</div>
<div class="col-md-6 col-sm-6">
<!-- PROJECT ITEM -->
<div class="project-item">
<a href="${ctxStaticView}/cms/images/project-image3.jpg" class="image-popup">
<img src="${ctxStaticView}/cms/images/project-image3.jpg" class="img-responsive" alt="">
<div class="project-overlay">
<div class="project-info">
<h1>Large Sea Wave</h1>
<h3>Nam feugiat dui in nisi</h3>
</div>
</div>
</a>
</div>
</div>
<div class="col-md-6 col-sm-6">
<!-- PROJECT ITEM -->
<div class="project-item">
<a href="${ctxStaticView}/cms/images/project-image4.jpg" class="image-popup">
<img src="${ctxStaticView}/cms/images/project-image4.jpg" class="img-responsive" alt="">
<div class="project-overlay">
<div class="project-info">
<h1>Lorem ipsum dolor</h1>
<h3>Mollis aliquam faucibus urna</h3>
</div>
</div>
</a>
</div>
</div>
</div>
</div>
</section>
<!-- TEAM -->
<section id="team" class="parallax-section">
<div class="container">
<div class="row">
<div class="col-md-offset-2 col-md-8 col-sm-12">
<!-- SECTION TITLE -->
<div class="section-title">
<h1>产品</h1>
</div>
</div>
<div class="clearfix"></div>
<div id="owl-team" class="owl-carousel">
<div class="col-md-4 col-sm-4 item">
<div class="team-item">
<img src="${ctxStaticView}/cms/images/team-image1.jpg" class="img-responsive" alt="">
<div class="team-overlay">
<ul class="social-icon">
<li><a href="#" class="fa fa-twitter"></a></li>
<li><a href="#" class="fa fa-linkedin"></a></li>
</ul>
</div>
</div>
<p>Catherine Jann</p>
<h3>Head Designer</h3>
</div>
<div class="col-md-4 col-sm-4 item">
<div class="team-item">
<img src="${ctxStaticView}/cms/images/team-image2.jpg" class="img-responsive" alt="">
<div class="team-overlay">
<ul class="social-icon">
<li><a href="#" class="fa fa-instagram"></a></li>
<li><a href="#" class="fa fa-github"></a></li>
<li><a href="#" class="fa fa-facebook"></a></li>
</ul>
</div>
</div>
<p>Luke Wara</p>
<h3>Speciality Focus</h3>
</div>
<div class="col-md-4 col-sm-4 item">
<div class="team-item">
<img src="${ctxStaticView}/cms/images/team-image3.jpg" class="img-responsive" alt="">
<div class="team-overlay">
<ul class="social-icon">
<li><a href="#" class="fa fa-instagram"></a></li>
<li><a href="#" class="fa fa-dribbble"></a></li>
<li><a href="#" class="fa fa-behance"></a></li>
</ul>
</div>
</div>
<p>Mono Mana</p>
<h3>Art director</h3>
</div>
<div class="col-md-4 col-sm-4 item">
<div class="team-item">
<img src="${ctxStaticView}/cms/images/team-image4.jpg" class="img-responsive" alt="">
<div class="team-overlay">
<ul class="social-icon">
<li><a href="#" class="fa fa-twitter"></a></li>
<li><a href="#" class="fa fa-facebook"></a></li>
<li><a href="#" class="fa fa-envelope-o"></a></li>
</ul>
</div>
</div>
<p>Phway Phyu</p>
<h3>Designer in Chief</h3>
</div>
<div class="col-md-4 col-sm-4 item">
<div class="team-item">
<img src="${ctxStaticView}/cms/images/team-image1.jpg" class="img-responsive" alt="">
<div class="team-overlay">
<ul class="social-icon">
<li><a href="#" class="fa fa-twitter"></a></li>
<li><a href="#" class="fa fa-linkedin"></a></li>
</ul>
</div>
</div>
<p>Cherry Lynn</p>
<h3>Marketing Manager</h3>
</div>
</div>
</div>
</div>
</section>
<!-- CONTACT -->
<section id="contact" class="parallax-section">
<div class="container">
<div class="row">
<div class="col-md-offset-3 col-md-6 col-sm-12">
<div class="section-title">
<h1>联系我们</h1>
</div>
</div>
<div class="clearfix"></div>
<div class="col-md-offset-2 col-md-8 col-sm-12">
<!-- CONTACT FORM HERE -->
<form id="contact-form" action="#" method="get" role="form">
<!-- IF MAIL SENT SUCCESSFULLY -->
<h6 class="text-success">Your message has been sent successfully. </h6>
<!-- IF MAIL SENDING UNSUCCESSFULL -->
<h6 class="text-danger">E-mail must be valid and message must be longer than 1 character.</h6>
<div class="col-md-6 col-sm-6">
<input type="text" class="form-control" id="cf-name" name="cf-name" placeholder="Name">
</div>
<div class="col-md-6 col-sm-6">
<input type="email" class="form-control" id="cf-email" name="cf-email"
placeholder="Email Address">
</div>
<div class="col-md-12 col-sm-12">
<input type="text" class="form-control" id="cf-subject" name="subject" placeholder="Subject">
<textarea class="form-control" rows="5" id="cf-message" name="cf-message"
placeholder="Message"></textarea>
</div>
<div class="col-md-offset-4 col-md-4 col-sm-offset-4 col-sm-4">
<div class="section-btn">
<button type="submit" class="form-control" id="cf-submit" name="submit"><span
data-hover="Send Message">Send Message</span></button>
</div>
</div>
</form>
</div>
</div>
</div>
</section>
<!-- FOOTER -->
<footer>
<div class="container">
<div class="row">
<div class="col-md-5 col-sm-6">
<h2>Digital Studio</h2>
<p>321 Donec et justo id risus, Malesuada pharetra,<br> Tristique vestibulum,<br> Lorem ipsum dolor</p>
</div>
<div class="col-md-4 col-sm-6">
<div class="footer-info">
<h2>Keep in touch</h2>
<p><a href="tel:010-090-0780">010-090-0780</a></p>
<p><a href="mailto:info@company.com">info@company.com</a></p>
<p><a href="#">Our Location</a></p>
</div>
</div>
<div class="col-md-3 col-sm-12">
<h2>About Us</h2>
<p>Sed vestibulum posuere ante, eget blandit metus. Morbi sodales feugiat erat, et placerat sapien
suscipit ut.</p>
<ul class="social-icon">
<li><a href="#" class="fa fa-twitter"></a></li>
<li><a href="#" class="fa fa-facebook"></a></li>
<li><a href="#" class="fa fa-instagram"></a></li>
<li><a href="#" class="fa fa-linkedin"></a></li>
</ul>
</div>
<div class="clearfix"></div>
<div class="col-md-12 col-sm-12">
<div class="copyright-text">
<p>Copyright © 2018 JeeSpringCloud</p>
</div>
</div>
</div>
</div>
</footer>
<!-- SCRIPTS -->
<script src="${ctxStaticView}/cms/js/jquery.js"></script>
<script src="${ctxStaticView}/cms/js/bootstrap.min.js"></script>
<script src="${ctxStaticView}/cms/js/jquery.parallax.js"></script>
<script src="${ctxStaticView}/cms/js/owl.carousel.min.js"></script>
<script src="${ctxStaticView}/cms/js/jquery.magnific-popup.min.js"></script>
<script src="${ctxStaticView}/cms/js/magnific-popup-options.js"></script>
<script src="${ctxStaticView}/cms/js/modernizr.custom.js"></script>
<script src="${ctxStaticView}/cms/js/smoothscroll.js"></script>
<script src="${ctxStaticView}/cms/js/custom.js"></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>首页</title>
<meta name="decorator" content="cms_default_${site.theme}"/>
<meta name="description" content="JeeSpring ${site.description}" />
<meta name="keywords" content="JeeSpring ${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" />
</head>
<body>
<%@ include file="/WEB-INF/views/modules/cms/front/themes/basic/layouts/default_head.jsp"%>
<div class="hero-unit" style="padding-bottom:35px;margin:10px 0;">
<c:set var="article" value="${fnc:getArticle('2')}"/>
<h1>${fns:abbr(article.title,28)}</h1><p></p>
<p>${fns:abbr(fns:replaceHtml(article.articleData.content),260)}</p>
<p><a href="${article.url}" class="btn btn-primary btn-large">&nbsp;&nbsp;&nbsp;查看详情 &raquo;&nbsp;&nbsp;&nbsp;</a></p>
</div>
<div class="row">
<div class="span4">
<h4><small><a href="${ctx}/list-2${urlSuffix}" class="pull-right">更多&gt;&gt;</a></small>组织机构</h4>
<ul><c:forEach items="${fnc:getArticleList(site.id, 2, 8, '')}" var="article">
<li><span class="pull-right"><fmt:formatDate value="${article.updateDate}" pattern="yyyy.MM.dd"/></span><a href="${article.url}" style="color:${article.color}">${fns:abbr(article.title,28)}</a></li>
</c:forEach></ul>
</div>
<div class="span4">
<h4> <small><a href="${ctx}/list-6${urlSuffix}" class="pull-right">更多&gt;&gt;</a></small>质量监督</h4>
<ul><c:forEach items="${fnc:getArticleList(site.id, 6, 8, '')}" var="article">
<li><span class="pull-right"><fmt:formatDate value="${article.updateDate}" pattern="yyyy.MM.dd"/></span><a href="${article.url}" style="color:${article.color}">${fns:abbr(article.title,28)}</a></li>
</c:forEach></ul>
</div>
<div class="span4">
<h4><small><a href="${ctx}/list-10${urlSuffix}" class="pull-right">更多&gt;&gt;</a></small>政策法规</h4>
<ul><c:forEach items="${fnc:getArticleList(site.id, 10, 8, '')}" var="article">
<li><span class="pull-right"><fmt:formatDate value="${article.updateDate}" pattern="yyyy.MM.dd"/></span><a href="${article.url}" style="color:${article.color}">${fns:abbr(article.title,28)}</a></li>
</c:forEach></ul>
</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>${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">
<h4>${category.name}</h4>
<c:if test="${category.module eq 'article'}">
<ul><c:forEach items="${page.list}" 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="${article.url}" style="color:${article.color}">${fns:abbr(article.title,96)}</a></li>
</c:forEach></ul>
<div class="pagination">${page.getPageHtml()}</div>
<script type="text/javascript">
function page(n,s){
location="${ctx}/list-${category.id}${urlSuffix}?pageNo="+n+"&pageSize="+s;
}
</script>
</c:if>
<c:if test="${category.module eq 'link'}">
<ul><c:forEach items="${page.list}" var="link">
<li><a href="${link.href}" target="_blank" style="color:${link.color}"><c:out value="${link.title}" /></a></li>
</c:forEach></ul>
</c:if>
</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>${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
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