You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
332 lines
12 KiB
332 lines
12 KiB
{if $iframe}
|
|
<!--[框架头部]-->
|
|
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="{DT_CHARSET}"/>
|
|
<title>{if $seo_title}{$seo_title}{else}{if $head_title}{$head_title}{$DT[seo_delimiter]}{/if}{$DT[sitename]}{/if}</title>
|
|
{if $head_keywords}
|
|
<meta name="keywords" content="{$head_keywords}"/>
|
|
{/if}
|
|
{if $head_description}
|
|
<meta name="description" content="{$head_description}"/>
|
|
{/if}
|
|
<link rel="stylesheet" type="text/css" href="{DT_SKIN}style.css?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"/>
|
|
<link rel="stylesheet" type="text/css" href="{DT_SKIN}extend.css?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"/>
|
|
<link rel="stylesheet" type="text/css" href="{DT_SKIN}comment.css?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"/>
|
|
<script type="text/javascript" src="{DT_STATIC}lang/{DT_LANG}/lang.js?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"></script>
|
|
<script type="text/javascript" src="{DT_STATIC}file/script/config.js?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"></script>
|
|
<!--[if lte IE 9]><!-->
|
|
<script type="text/javascript" src="{DT_STATIC}file/script/jquery-1.5.2.min.js?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"></script>
|
|
<!--<![endif]-->
|
|
<!--[if (gte IE 10)|!(IE)]><!-->
|
|
<script type="text/javascript" src="{DT_STATIC}file/script/jquery-2.1.1.min.js?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"></script>
|
|
<!--<![endif]-->
|
|
<script type="text/javascript" src="{DT_STATIC}file/script/common.js?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"></script>
|
|
<script type="text/javascript" src="{DT_STATIC}file/script/page.js?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"></script>
|
|
<script type="text/javascript">if(parent.location == window.location) Go('{$linkurl}');</script>
|
|
</head>
|
|
<body oncontextmenu="return false">
|
|
<div id="destoon_space" style="display:none;"></div>
|
|
<iframe id="proxy_iframe" src="" style="display:none;"></iframe>
|
|
{else}
|
|
<!--[列表头部]-->
|
|
{template 'header'}
|
|
<div id="destoon_space" style="display:none;"></div>
|
|
<div class="m">
|
|
<div class="nav"><span class="f_r"><a href="javascript:;" class="b" onclick="Golast();">发表评论</a></span><a href="{$MODULE[1][linkurl]}">首页</a> <i>></i> <a href="{$MODULE[$mid][linkurl]}">{$MODULE[$mid][name]}</a> <i>></i> <a href="{$linkurl}">{$title}</a> <i>></i> <a href="{$EXT[comment_url]}{rewrite('index.php?mid='.$mid.'&itemid='.$itemid)}">评论列表</a></div>
|
|
</div>
|
|
<div class="m m3">
|
|
<div class="m3l">
|
|
|
|
{/if}
|
|
|
|
<!--[特殊情况]-->
|
|
{if $iframe}
|
|
{if $template == 'close'}
|
|
<div class="comment_close">[该评论已关闭]</div>
|
|
<script style="text/javascript">
|
|
$(function(){
|
|
try{parent.Dd('comment_div').style.display = 'none';}catch(e){}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|
|
{exit}
|
|
{/if}
|
|
{else}
|
|
{if $EXT[comment_api] == 'changyan'}
|
|
<div class="b20"></div>
|
|
<div id="SOHUCS" sid="{$mid}-{$itemid}"></div>
|
|
<script charset="utf-8" type="text/javascript" src="http://changyan.sohu.com/upload/changyan.js?v=<?php echo DT_DEBUG ? DT_TIME : DT_REFRESH;?>"></script>
|
|
<script type="text/javascript">
|
|
window.changyan.api.config({
|
|
appid: '{$EXT[comment_api_id]}',
|
|
conf: '{$EXT[comment_api_key]}'
|
|
});
|
|
</script>
|
|
</div>
|
|
{template 'footer'}
|
|
{exit}
|
|
{/if}
|
|
{/if}
|
|
|
|
|
|
<div id="destoon_comment">
|
|
<a name="top"></a>
|
|
<div class="stat">
|
|
<table cellpadding="6" cellspacing="1" width="100%">
|
|
<tr align="center">
|
|
<td width="100"><img src="{DT_STATIC}file/image/star5.gif" width="60" height="12" alt="5星"/> </td>
|
|
<td><div class="stat_p"><div style="width:{$stat[pc5]};"></div></div></td>
|
|
<td class="stat_c" width="100">{$stat[pc5]}</td>
|
|
</tr>
|
|
<tr align="center">
|
|
<td><img src="{DT_STATIC}file/image/star4.gif" width="60" height="12" alt="4星"/> </td>
|
|
<td><div class="stat_p"><div style="width:{$stat[pc4]};"></div></div></td>
|
|
<td class="stat_c">{$stat[pc4]}</td>
|
|
</tr>
|
|
<tr align="center">
|
|
<td><img src="{DT_STATIC}file/image/star3.gif" width="60" height="12" alt="3星"/> </td>
|
|
<td><div class="stat_p"><div style="width:{$stat[pc3]};"></div></div></td>
|
|
<td class="stat_c">{$stat[pc3]}</td>
|
|
</tr>
|
|
<tr align="center">
|
|
<td><img src="{DT_STATIC}file/image/star2.gif" width="60" height="12" alt="2星"/></td>
|
|
<td><div class="stat_p"><div style="width:{$stat[pc2]};"></div></div></td>
|
|
<td>{$stat[pc2]}</td>
|
|
</tr>
|
|
<tr align="center">
|
|
<td><img src="{DT_STATIC}file/image/star1.gif" width="60" height="12" alt="1星"/></td>
|
|
<td><div class="stat_p"><div style="width:{$stat[pc1]};"></div></div></td>
|
|
<td>{$stat[pc1]}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
{loop $lists $k $v}
|
|
<div class="comment">
|
|
<table>
|
|
<tr>
|
|
<td class="comment_l" valign="top">
|
|
<div>
|
|
{if $v[uname]}<a href="{userurl($v[uname])}" target="_blank">{/if}<img src="{useravatar($v[uname])}" width="48" height="48" alt="" align="absmiddle"/>{if $v[uname]}</a>{/if}
|
|
</div>
|
|
</td>
|
|
<td valign="top">
|
|
<div class="comment_title">
|
|
{if $v[floor]}<span class="comment_floor"><strong>{$v[floor]}</strong> 楼</span>{else}<span class="comment_top">精选</span>{/if}
|
|
<span id="i_{$v[itemid]}">{$v[name]} 于 <span class="comment_time">{$v[addtime]}</span> 评论:</span>
|
|
</div>
|
|
<div class="comment_content" id="c_{$v[itemid]}">{if $v[quotation]}{$v[quotation]}{else}{$v[content]}{/if}</div>
|
|
{if $v[reply]}
|
|
<div class="comment_reply">
|
|
{if $v[editor]}<span style="color:red;">管理员</span>{else}<span style="color:blue;">{$v[replyer]}</span>{/if} <span style="font-size:11px;">{$v[replytime]}</span> 回复: {nl2br($v[reply])}
|
|
</div>
|
|
{/if}
|
|
<div class="comment_info">
|
|
<span class="comment_vote">
|
|
{if $MOD[comment_vote]}
|
|
<i class="ui-ico-like" onclick="Dlike(3, 0, {$v[itemid]});">支持 <span id="like-3-0-{$v[itemid]}">{$v[likes]}</span></i>
|
|
<i class="ui-ico-hate" onclick="Dhate(3, 0, {$v[itemid]});">反对 <span id="hate-3-0-{$v[itemid]}">{$v[hates]}</span></i>
|
|
{/if}
|
|
<i class="ui-ico-quote" onclick="Q({$v[itemid]});">回复 {$v[quotes]}</i>
|
|
<i class="ui-ico-report" onclick="R({$v[itemid]});">举报</i>
|
|
{if $could_del}
|
|
<a href="?mid={$mid}&itemid={$itemid}&page={$page}&action=delete&cid={$v[itemid]}&proxy={$proxy}" target="send" onclick="return confirm('确定要删除此评论吗?')"><i class="ui-ico-delete">删除</i></a>
|
|
{/if}
|
|
</span>
|
|
<img src="{DT_STATIC}file/image/star{$v[star]}.gif" width="60" height="12" alt="" align="absmiddle"/>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
{/loop}
|
|
<a name="last"></a>
|
|
{if $pages}<div class="pages">{$pages}</div>{/if}
|
|
<iframe src="" name="send" id="send" style="display:none;" scrolling="no" frameborder="0"></iframe>
|
|
<div class="comment_form">
|
|
<form method="post" action="?" target="send" onsubmit="return C();">
|
|
<input type="hidden" name="proxy" value="{$proxy}"/>
|
|
<input type="hidden" name="mid" value="{$mid}"/>
|
|
<input type="hidden" name="itemid" value="{$itemid}"/>
|
|
<input type="hidden" name="items" value="{$items}"/>
|
|
<input type="hidden" name="page" value="{$page}"/>
|
|
<input type="hidden" name="qid" value="0" id="qid"/>
|
|
<table cellpadding="10" cellspacing="1" width="100%">
|
|
<tr>
|
|
<td id="qbox" style="display:none;" bgcolor="#FFFFFF"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<input type="hidden" name="star" id="star" value="5"/>
|
|
<div class="stars f_r" style="background:url('{DT_SKIN}image/star5.png') no-repeat;" id="stars">
|
|
<span title="1星" data-id="1"></span>
|
|
<span title="2星" data-id="2"></span>
|
|
<span title="3星" data-id="3"></span>
|
|
<span title="4星" data-id="4"></span>
|
|
<span title="5星" data-id="5"></span>
|
|
</div>
|
|
<img src="{DT_STATIC}file/image/face.gif" title="插入表情" class="face" onmouseover="face_show();"/>
|
|
<div id="face" style="display:none;">
|
|
<div><span onclick="face_hide();" title="点击关闭" class="sc">x</span><strong>选择表情</strong></div>
|
|
{if $faces}
|
|
<table cellspacing="0" cellpadding="0" title="点击选择">
|
|
{loop $faces $k $v}
|
|
{if $k%10==0}<tr>{/if}
|
|
<td><img src="{DT_STATIC}file/face/{$v}.png" onclick="face_into('{$v}');" width="24"/></td>
|
|
{if $k%10==9}</tr>{/if}
|
|
{/loop}
|
|
</table>
|
|
{/if}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><textarea class="comment_area" onfocus="F();face_hide();" onkeyup="S();" name="content" id="content" placeholder="请输入评论内容" style="resize:none;"></textarea></td>
|
|
</tr>
|
|
{if $need_captcha}
|
|
<tr id="tr_captcha" style="display:none;">
|
|
<td>
|
|
<div class="comment_input">
|
|
<table cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td> <span>*</span> 验证码:</td>
|
|
<td> {template 'captcha', 'chip'} <span class="f_red" id="dcaptcha"></span></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
<tr>
|
|
<td>
|
|
<input type="submit" name="submit" value="我来说两句" class="btn-blue"/>
|
|
<input type="checkbox" name="hidden" value="1"/> 匿名发表
|
|
<span style="color:#666666;">(内容限{$MOD[comment_min]}至{$MOD[comment_max]}字)
|
|
当前已经输入 <span style="color:red;" id="chars">0</span> 字
|
|
<span class="f_red" id="dcontent"></span>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<script style="text/javascript">
|
|
{if $iframe}
|
|
function H() {
|
|
Dd('proxy_iframe').src = '{if $proxy}{decrypt($proxy, DT_KEY.'PROXY')}{else}{$MODULE[$mid][linkurl]}{/if}ajax.php?action=proxy&itemid=1#'+Dd('destoon_comment').scrollHeight+'|{$items}';
|
|
}
|
|
function F() {
|
|
{if $need_captcha}
|
|
Ds('tr_captcha');
|
|
{/if}
|
|
H();
|
|
}
|
|
$(function(){
|
|
try{parent.Dd('comment_count').innerHTML = {$items};}catch(e){}
|
|
H();
|
|
});
|
|
{else}
|
|
function Golast() {
|
|
$('html,body').animate({scrollTop:$("[name='last']").offset().top}, 500);
|
|
Dd('content').focus();
|
|
}
|
|
function F() {
|
|
{if $need_captcha}
|
|
Ds('tr_captcha');
|
|
{/if}
|
|
}
|
|
{/if}
|
|
function face_show(){
|
|
$('#face').toggle();F();
|
|
}
|
|
function face_hide(){
|
|
$('#face').hide();
|
|
}
|
|
function face_into(s){
|
|
Dd('content').value+=':'+s+')';
|
|
}
|
|
function R(id) {
|
|
Dreport(3, 0, id, '评论举报,评论ID:'+id+'\n评论内容:\n'+Dd('c_'+id).innerHTML);
|
|
}
|
|
function Q(qid){
|
|
Dd('qid').value = qid;
|
|
Ds('qbox');
|
|
Dd('qbox').innerHTML = ' <strong>回复:</strong><div class="comment_title">'+Dd('i_'+qid).innerHTML+'</div><div class="comment_content">'+Dd('c_'+qid).innerHTML+'</div>';
|
|
Dd('content').focus();
|
|
}
|
|
function S() {
|
|
Inner('chars', Dd('content').value.length);
|
|
}
|
|
function C() {
|
|
var user_status = {$user_status};
|
|
if(user_status == 1) {
|
|
alert('您的会员组没有评论权限');
|
|
return false;
|
|
}
|
|
if(user_status == 2) {
|
|
if(confirm('您还没有登录,是否现在登录?')) {
|
|
top.location = '{$MODULE[2][linkurl]}{$DT[file_login]}?forward={urlencode($linkurl)}';
|
|
}
|
|
return false;
|
|
}
|
|
if(Dd('content').value.length < {$MOD[comment_min]}) {
|
|
Dmsg('内容最少{$MOD[comment_min]}字', 'content');
|
|
return false;
|
|
}
|
|
if(Dd('content').value.length > {$MOD[comment_max]}) {
|
|
Dmsg('内容最多{$MOD[comment_max]}字', 'content');
|
|
return false;
|
|
}
|
|
{if $need_captcha}
|
|
if($('#ccaptcha').html().indexOf('ok.png') == -1) {
|
|
Dmsg('请填写验证码', 'captcha');
|
|
Ds('tr_captcha');
|
|
return false;
|
|
}
|
|
{/if}
|
|
return true;
|
|
}
|
|
$(function(){
|
|
$('#stars span').mouseover(function() {
|
|
var id = $(this).data('id');
|
|
$('#stars').css('background', "url('{DT_SKIN}image/star"+id+".png') no-repeat");
|
|
});
|
|
$('#stars span').mouseleave(function() {
|
|
var id = $('#star').val();
|
|
$('#stars').css('background', "url('{DT_SKIN}image/star"+id+".png') no-repeat");
|
|
});
|
|
$('#stars span').click(function() {
|
|
var id = $(this).data('id');
|
|
$('#stars').css('background', "url('{DT_SKIN}image/star"+id+".png') no-repeat");
|
|
$('#star').val(id);
|
|
});
|
|
});
|
|
</script>
|
|
|
|
{if $iframe}
|
|
<!--[框架尾部]-->
|
|
</body>
|
|
</html>
|
|
{else}
|
|
<!--[列表尾部]-->
|
|
</div>
|
|
<div class="m3r">
|
|
{if $mid == 4}
|
|
<div class="head-sub"><strong>评论排行</strong></div>
|
|
<div class="list-rank"><!--{tag("moduleid=$mid&condition=groupid>5&areaid=$cityid&order=comments desc&key=comments&pagesize=9&template=list-rank")}--></div>
|
|
{else}
|
|
<div class="head-sub"><strong>评论月排行</strong></div>
|
|
<div class="list-rank"><!--{tag("moduleid=$mid&condition=status=3 and addtime>$DT_TODAY-30*86400&areaid=$cityid&order=comments desc&key=comments&pagesize=9&template=list-rank")}--></div>
|
|
<div class="head-sub"><strong>评论年排行</strong></div>
|
|
<div class="list-rank"><!--{tag("moduleid=$mid&condition=status=3 and addtime>$DT_TODAY-365*86400&areaid=$cityid&order=comments desc&key=comments&pagesize=9&template=list-rank")}--></div>
|
|
<div class="head-sub"><strong>评论总排行</strong></div>
|
|
<div class="list-rank"><!--{tag("moduleid=$mid&condition=status=3&areaid=$cityid&order=comments desc&key=comments&pagesize=9&template=list-rank")}--></div>
|
|
{/if}
|
|
</div>
|
|
<div class="b10 c_b"></div>
|
|
</div>
|
|
{template 'footer'}
|
|
{/if}
|