6dd1cb1c3881a395cbac69e5c1ab73f1e4ae9ba8.svn-base
6.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<%@ 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="JeeSite ${site.description}" />
<meta name="keywords" content="JeeSite ${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>