123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="renderer" content="webkit|ie-comp|ie-stand">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
- <meta http-equiv="Cache-Control" content="no-siteapp" />
- <LINK rel="Bookmark" href="/favicon.ico" >
- <LINK rel="Shortcut Icon" href="/favicon.ico" />
- <!-- 评论前台页面需要的js引入文件 -->
- <script type='text/javascript' src='${ctx}/assets/lib/jquery/1.9.1/jquery.min.js'></script>
- <script type='text/javascript' src='${ctx}/assets/lib/layer/3.0.3/layer.js'></script>
- <script type="text/javascript" src="${ctx}/assets/lib/jquery.form/jquery.form.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/ueditor/1.4.3/ueditor.config.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/ueditor/1.4.3/ueditor.all.js"> </script>
- <script type="text/javascript" src="${ctx}/assets/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
- <!-- 评论前台页面需要的CSS引入文件 -->
- <link rel='stylesheet' type='text/css' href='${ctx}/assets/lib/comment/css/style.css' />
- <!-- 评论前台页面需要的javascript方法定义 -->
- <script type='text/javascript'>
- //对文章进行评论
- function submitData(){
- $('#form-front').attr('action','${ctx}/myconsole/leadermail/saveData');
- if($('#content').val()!=''&&$('#content').val()!='来说两句吧'){
- $('#form-front').ajaxSubmit(resultHandle);
- }
- else
- {
- layer.alert('请先输入来信内容!', {skin: 'layui-layer-molv',closeBtn: 1},
- function(){
- layer.closeAll('dialog');
- });
- }
- }
- //文章进行评论信息提交后的返回结果,成功则关闭对话框刷新评论列表
- function resultHandle(data){
- var res=eval('(' + data + ')');
- if(res.flag){
- layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 1},
- function(){
- $('#content').val('');
- layer.closeAll('dialog');
- $('#FirstPageContent').empty();
- getFirstPageContent();
- });
- }else{
- if(res.flag == false)
- {
- layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 0}, function(){});
- }
- }
- }
- //取最新留言内容
- function getFirstPageContent(){
- $('#page').val('1');
- $('#form-front').attr('action','${ctx}/myconsole/leadermail/getByPageNew');
- $('#form-front').ajaxSubmit(setFirstData);
- }
- //对文章评论后最新评论内容显示
- function setFirstData(data){
- $('#FirstPageContent').prepend(data);
- }
- //调取更多评论数据
- function More(){
- var iPage=parseInt($('#page').val());
-
- iPage=iPage+1;
- $('#page').val(iPage);
-
- $('#form-front').attr('action','${ctx}/myconsole/leadermail/getByPageNew');
-
- $('#form-front').ajaxSubmit(setData);
-
- }
- //把调取的更多评论数据显示到页面上
- function setData(data){
- if(data=='')
- {
- $('#MoreButton').text('没有更多来信数据了!');
- }
- else
- {
- $('#MoreData').prepend(data);
- }
- }
-
- //打开取消回复框
- function openCloseReply(oSourceObj,dataID){
- if($('#'+dataID).css('display')=='block')
- {
- $('#'+dataID).hide();
- oSourceObj.innerHTML = '查看回复';
- }
- else
- {
- $('#'+dataID).show();
- oSourceObj.innerHTML = '关闭回复';
- }
- }
- </script>
-
- <!--具体前台评论页面定义-->
-
- <title>信息编辑</title>
- <meta name="keywords" content="">
- <meta name="description" content="">
- </head>
- <body style="line-height:1;">
- <div style='width:772px;margin:0 auto'>
- <form id='form-front' method='post'>
- <div style='display: none'>
- <input type='hidden' id='userid' name='leaderMail.userid' value='admin' />
- <input type='hidden' id='page' name='page' value='1' />
- <input type='hidden' id='pagesize' name='pagesize' value='10' />
- </div>
-
- <div class='comment_input_tit'>
- <dl>
- <dt>我要写信</dt>
- <dd><span>${UserAndInfoNum.UserNum!}</span>人来信,<span>${UserAndInfoNum.InfoNum!}</span>条来信</dd>
- </dl>
- </div>
- <div class='comment_input_pl_ly'>
- <div class='liuyankua'>
- <textarea id='content' name='leaderMail.content' cols='' rows='5' style='color:#ccc' onfocus="this.value='',this.style.color='#636363'" >来说两句吧</textarea>
- <div class='comment_input_fabu_bg'>
- <div class='comment_input_fabu_left'>
- <div class='comment_input_fabu_name'><img src='${ctx}/assets/lib/comment/images/pic_tx_sm.png' width='26' height='26' /><span>共产党员网网友</span></div>
- <div class='comment_input_fabu_biaoq'></div>
- <div class='comment_input_fabu_fapic'></div>
- </div>
- <div class='comment_input_liuyanbtn'><a onclick='submitData()' href='javascript:;'>提 交</a></div>
- </div>
- </div>
- </div>
- </form>
- </div>
-
- <div style='width:772px;margin:0 auto'>
- <div class='comment_list_tit'>
- <dl>
- <dt>最新来信</dt>
- <dd></dd>
- </dl>
- </div>
- <div class='jiazai' id=FirstPageContent>
- ${NewListData}
- </div>
- </div>
- <div style='width:772px;margin:0 auto'>
- <div class='jiazai' id=MoreData>
- <div class='more' ><a id=MoreButton onclick='More()' href='javascript:;'>点击查看更多来信</a></div>
- </div>
- </div>
-
-
- </body>
- </html>
|