主题 : 留言板问题 |
级别: 解元
![]() |
11# 发表于:2012-03-16 11:00:16 IP:117.92.*.*
|
||||
---|---|---|---|---|---|
级别: 解元
![]() |
12# 发表于:2012-03-16 11:01:08 IP:117.92.*.*
<a href="${base}/guestbook.jspx" target="_blank">网友留言</a> 这个就提示页面不存在
|
||
---|---|---|---|
级别: 总版主
![]() |
13# 发表于:2012-03-16 11:02:55 IP:59.166.*.*
<a href="${base}/guestbook.jspx" target="_blank">这样链接啊
|
||
---|---|---|---|
级别: 总版主
![]() |
15# 发表于:2012-03-16 11:14:19 IP:59.166.*.*
那可以这样写
<div class="w720 fl"> <div class="gblist-box"> <div class="w96"> <div class="gb-tit"> 留言列表 </div> [@cms_guestbook_page siteId=site.id count='5' checked='1'] [#list tag_pagination.list as m] <dl class="gb-dl w96"> <dt class="fr"><span class="red">[${m.ctg.name!}]</span>${m.titleHtml!}</dt> <dd class="gb-photo fl"> [#if m.member.userImg??] [#if m.member.userImg!=""] <img src="${guestbook.member.userImg!}" height="50" width="50"/> [#else] <img src="/${res}/img/member/member-phtot.gif" height="50" width="50"/> [/#if] [#else] <img src="/${res}/img/member/member-phtot.gif" height="50" width="50"/> [/#if] </dd> <dd class="gb-time fr">${(m.member.username)!'匿名网友'} 于${m.createTime} 评论道:</dd> <dd class="gb-txt fr">${m.contentHtml!}</dd> <dd class="relpy fr"><img src="/${res}/img/guestbook/replay.gif" align="absmiddle"/> 管理员回复:${m.replyHtml!}</dd> <div class="clear"></div> </dl> [/#list] <div class="pagination">[@cms_pagination sysPage='1'/]</div> [/@cms_guestbook_page] </div> </div> <div class="gb-box mt10"> <div class="w96"> <div class="gb-tit"> 发表留言</div> <div class="gb-book"> <form id="guestbookForm" action="${base}/guestbook.jspx" method="post"> <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#EAEAEA"> <tr> <td width="15%" height="30" align="right" bgcolor="#fafafa"><strong>类 别:</strong></td> <td width="32%" bgcolor="#FFFFFF"> <select name="ctgId"> [@cms_guestbook_ctg_list siteId=site.id] [#list tag_list as ctg] <option value="${ctg.id}">${ctg.name}</option> [/#list] [/@cms_guestbook_ctg_list] </select> </td> <td width="15%" align="right" bgcolor="#FAFAFA"><strong>电子邮箱:</strong></td> <td width="34%" bgcolor="#FFFFFF"><input type="text" name="email" class="email" maxlength="100"/></td> </tr> <tr> <td width="15%" height="30" align="right" bgcolor="#fafafa"><strong>电 话:</strong></td> <td width="32%" bgcolor="#FFFFFF"><input type="text" name="phone" maxlength="50"/></td> <td width="15%" align="right" bgcolor="#FAFAFA"><strong>QQ:</strong></td> <td width="34%" bgcolor="#FFFFFF"><input type="text" name="qq"/></td> </tr> <tr> <td width="15%" height="30" align="right" bgcolor="#fafafa"><strong>标题:</strong></td> <td colspan="3" bgcolor="#FFFFFF"><input name="title" type="text" size="40" class="required" maxlength="255"/></td> </tr> <tr> <td width="15%" height="80" align="right" bgcolor="#fafafa"><strong>留言内容:</strong></td> <td colspan="3" bgcolor="#FFFFFF"> <textarea name="content" class="cinput required" cols="55" rows="4" style="width:300px;"></textarea></td> </tr> <tr> <td width="15%" height="80" align="right" bgcolor="#fafafa"><strong>验证码:</strong></td> <td colspan="3" bgcolor="#FFFFFF"> <input type="text" name="captcha" class="required" maxlength="20"/> <img id="guestbookCaptcha" src="${base}/captcha.svl" onclick="this.src='${base}/captcha.svl?d='+new Date()"/> </td> </tr> <tr> <td height="30" colspan="4" align="center" bgcolor="#FFFFFF"> <input type="image" src="/${res}/img/guestbook/gb-button.gif" name="submit" /> </td> </tr> </table> </form> <script type="text/javascript"> $(function() { $("#guestbookForm").validate( { submitHandler : function(form) { $(form).ajaxSubmit( { "success" : function(data) { if(data.status==0) { alert("留言提交成功"); location.href=location.href; } else if(data.status==1) { alert("验证码错误"); $("#guestbookCaptcha").click(); } else { alert("留言提交失败"); } }, "dataType" : "json" }); } }); }); </script> </div> </div> </div> </div> |
||
---|---|---|---|
级别: 总版主
![]() |
17# 发表于:2012-03-16 11:26:54 IP:59.166.*.*
请描述下您的系统使用环境,如版本,操作系统,JDK版本,tocmat版本,mysql版本等
|
||
---|---|---|---|
级别: 解元
![]() |
18# 发表于:2012-03-16 11:32:55 IP:117.92.*.*
系统W2003 jeecms2012 JDK1.6 mysql5.0 这不影响哇
|
||
---|---|---|---|
级别: 解元
![]() |
20# 发表于:2012-03-16 15:30:26 IP:117.92.*.*
恩 是呀,就是要这个页面还有就是管理员回复审核完后显示的页面
![]() 俩都要啊,要咋样实现呢? |
||
---|---|---|---|