-- @end文章区域 -->
<div class="basehr"></div>
<!-- 评论 -->
<div class="article-comment" id="comment">
<div class="inner">
<div class="m-head title-head">
<p class="f-r">
<a href="http://app.71.cn/?app=comment&controller=review&action=index&topicid=969971" title="点击查看全部评论">
已有<span class="comments">0</span>人发表了评论
</a>
</p>
<em class="ico"></em>
<div class="title"><a href="javascript:;" title="" class="words">网友评论</a></div>
</div>
<div class="m-main">
<!-- 评论模块 -->
<div class="comment">
<!-- 注意: 这里只显示5条评论 -->
<div class="comment-list" id="commentWrapper">
</div>
<!-- 评论框 -->
<div id="comment_form_1509348066" class="comment-form">
<div class="c-inner">
<form action="http://app.71.cn/?app=comment&controller=review&action=add" method="post">
<input type="hidden" name="topicid" value="">
<input type="hidden" name="followid" value="">
<div class="textarea-wrap"><textarea name="content" class="textarea"></textarea></div>
<div class="ov">
<div id="logout_user_info"><div class="loginform-user-info"><div>
<span class="info">
<a class="cloud-login" href="javascript:;">登录</a>
|
<a href="http://app.71.cn/?app=member&controller=index&action=register">注册</a>
</span>
<div class="seccode-area" style="visibility: hidden;"></div>
</div></div></div>
<input class="btn-post" type="submit" value="发表评论">
</div>
</form>
</div>
</div>
<script id="afterlogin_1509348066" type="text/template">
//unused
<div>
<div class="username-area">
<em></em>
<a class="quickLogout" id="logout" href="javascript:;" onclick='logout();'>退出</a>
</div>
<span class="anonymous"></span>
<div class="share-area"></div>
<div class="seccode-area" style="visibility: hidden;"></div>
</div>
</script>
<script id="beforelogin_1509348066" type="text/template">
<div>
<span class="info">
<a class="cloud-login" href="javascript:;">登录</a>
|
<a href="http://app.71.cn/?app=member&controller=index&action=register">注册</a>
</span>
<div class="seccode-area" style="visibility: hidden;"></div>
</div>
</script>
<script type="text/javascript" src="http://img.71.cn/apps/comment/js/comment.post.js"></script>
<script type="text/javascript">
var qiguaiid = '1509348066';
$(function() {
var rid = '1509348066',
form = $('#comment_form_'+rid).find('form');
commentPost = new CommentPost({
form: form,
isLogin: 0,
isCheck: 1,
isSeccode: 0,
topicid: 969971,
afterLoginTemplate: $('#afterlogin_'+rid).html(),
beforeLoginTemplate: $('#beforelogin_'+rid).html(),
userInfoPanel: form.find('.loginform-user-info'),
warningPanel: form.find('.login-warn'),
loginSelector: '.cloud-login'
//logoutSelector: '.quickLogout'
});
});
function logout(){
$.ajax({
type: "POST",
url:'http://www.71.cn/api/logout.php',
data:"username=1",
success: function(msg){
var rid = '1509348066',
form = $('#comment_form_'+rid).find('form');
commentPost = new CommentPost({
form: form,
isLogin: 0,
isCheck: 1,
isSeccode: 0,
topicid: topicid,
afterLoginTemplate: $('#afterlogin_'+rid).html(),
beforeLoginTemplate: $('#beforelogin_'+rid).html(),
userInfoPanel: form.find('.loginform-user-info'),
warningPanel: form.find('.login-warn'),
loginSelector: '.cloud-login',
logoutSelector: '.quickLogout'
});
}
});
}
</script> <!-- @end 评论框 -->
</div>
</div>
</div>
</div>
<!-- @end 评论 -->
<script type="text/javascript">
var commentTpl = '<div class="comment-item">\
<div class="comment-content">\
<dl>\
<dt><span class="username">{location} {username}</span>\
<span class="userdate">{date}</span></dt>\
<dd><p class="cont">{content}</p>\
</dd>\
</dl>\
</div>\
</div>';
$(function(){
getCommemt(topicid,$('#commentWrapper'),function(json) {
$('.comments').html(json.total);
if(json.total >0 ) $('.view-comment').show();
});
});
//取评论函数
function getCommemt(topicid,wrapper,callback) {
if(!topicid) return ;
$.getJSON(APP_URL+'?app=comment&controller=review&action=page&pagesize=5&all=1&topicid='+topicid+'&jsoncallback=?', function(json){
if(typeof(json) == 'object') {
for (var i=0,item;item=json.data[i++];) {
var html = commentTpl;
for (var key in item) {
html = html.replace(new RegExp('{'+key+'}',"gm"), item[key]);
}
wrapper.append(html); }
}
// 非评论页不能进行评论操作
$('.operate').remove();
typeof callback == 'function' && callback(json);
});
}
</script> </div><!-- 主内容区域end -->
<div class="column_right fr" style="display: none;"><!--column_right start-->
<!--精选专题 start-->
<h2 class="cor-c00">精选专题</h2>
<div class="topic mb20 topic0"><a href="http://special.71.cn/170915/index.shtml" target="_blank" title="学习宣传贯彻党的十九大精神专题"><img src="http://upload.71.cn/2017/1107/1510017036816.jpg" width="300" height="120" alt="学习宣传贯彻党的十九大精神专题"></a></div>
<!--精选专题 end-->
<!--精选文章 start-->
<h2 class="cor-c00">精选文章</h2>
<ul class="column_right_article">
<li><a href="http://www.71.cn/2019/0612/1046824.shtml" target="_blank" title="新时代组工干部当有“余裕心”">新时代组工干部当有“余裕心”</a></li>
<li><a href="http://www.71.cn/2019/0612/1046823.shtml" target="_blank" title="“改”字贯穿主题教育始终">“改”字贯穿主题教育始终</a></li>
<li><a href="http://www.71.cn/2019/0612/1046822.shtml" target="_blank" title="找准主题教育的“契合点”">找准主题教育的“契合点”</a></li>
<li><a href="http://www.71.cn/2019/0612/1046820.shtml" target="_blank" title="为实现伟大复兴中国梦夯实健康基础">为实现伟大复兴中国梦夯实健康基础</a></li>
<li><a href="http://www.71.cn/2019/0612/1046817.shtml" target="_blank" title="不忘初心,砥砺前行">不忘初心,砥砺前行</a></li>
<li><a href="http://www.71.cn/2019/0612/1046816.shtml" target="_blank" title="在主题教育中学思践悟">在主题教育中学思践悟</a></li>
<li><a href="http://www.
Back to home |
File page
Subscribe |
Register |
Login
| N