<?php exit("Powered by www.wikin.cn"); ?>
<!--{eval $threadsorts = null;}-->
<!--{template common/header}-->
<!--{hook/viewthread_top_mobile}-->
<!-- main postlist start -->
<div class="my_place b_bottom"><a href="forum.php?mod=guide&view=hot">{lang homepage}</a><em class="wqiconfont wqicon-youyou"></em><a href="forum.php?mod=forumdisplay&fid={$_G['forum']['fid']}"><!--{eval echo strip_tags($_G['forum']['name']) ? strip_tags($_G['forum']['name']) : $_G['forum']['name'];}--></a><em class="wqiconfont wqicon-youyou"></em>{$Tlang['72009302eb9a6b36']}</div>
<div class="postlist">
    <h2>
        <!--{if $_G[forum][threadsorts][types][$_G[forum_thread][sortid]]}-->
        <span class="wq_typehtml ts_txt">{$_G[forum][threadsorts][types][$_G[forum_thread][sortid]]}</span>
        <!--{/if}-->
        <!--{if $_G['forum_thread']['typeid'] && $_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}-->
        <span class="wq_typehtml ts_txt">{$_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}</span>
        <!--{/if}-->
        <!--{if $threadsorts && $_G['forum_thread']['sortid']}-->
        <span class="wq_typehtml ts_txt">{$_G['forum']['threadsorts']['types'][$_G['forum_thread']['sortid']]}</span>
        <!--{/if}-->
        <!--{if $wq_touch_setting['view_click']}-->
        <a href="forum.php?mod=viewthread&tid={$_G[forum_thread][tid]}">$_G[forum_thread][subject]</a>
        <!--{else}-->
        $_G[forum_thread][subject]
        <!--{/if}-->
        <!--{if $_G['forum_thread'][displayorder] == -2}--> <span>({lang moderating})</span>
        <!--{elseif $_G['forum_thread'][displayorder] == -3}--> <span>({lang have_ignored})</span>
        <!--{elseif $_G['forum_thread'][displayorder] == -4}--> <span>({lang draft})</span>
        <!--{/if}-->
    </h2>
    <!--{eval $postcount = 0;}-->
    <!--{template common/checked}-->
    <!--{loop $postlist $post}-->
    <!--{eval $needhiddenreply = ($hiddenreplies && $_G['uid'] != $post['authorid'] && $_G['uid'] != $_G['forum_thread']['authorid'] && !$post['first'] && !$_G['forum']['ismoderator']);}-->
    <!--{hook/viewthread_posttop_mobile $postcount}-->
    <div class="plc cl b_bottom" id="pid$post[pid]">
        <span class="avatar"><a href="home.php?mod=space&do=profile&uid=$post[authorid]">
                <img src="{if !$post['authorid'] || $post['anonymous']}{avatar(0, small, true)}{else}{avatar($post[authorid], small, true)}{/if}" style="width:32px;height:32px;" /></a></span>
        <div class="display bpi<!--{if !$post[first]}--> m_b10 wq_post_list<!--{/if}-->" href="#replybtn_$post[pid]">
            <ul class="authi">
                <li class="grey cl disuser_nick">
                    <div class="width100">
                        <!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
                        <a href="home.php?mod=space&do=profile&uid=$post[authorid]" {if $post[groupcolor]} style="color: $post[groupcolor]"{/if}>$post[author]</a>
                        <!--{else}-->
                        <!--{if !$post['authorid']}-->
                        <a href="javascript:;">{lang guest} <em>$post[useip]{if $post[port]}:$post[port]{/if}</em></a>
                        <!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}-->
                        <!--{if $_G['forum']['ismoderator']}-->
                        <a href="home.php?mod=space&do=profile&uid=$post[authorid]">{lang anonymous}</a>
                        <!--{else}-->
                        {lang anonymous}
                        <!--{/if}-->
                        <!--{else}-->
                        $post[author]
                        <em>{lang member_deleted}</em>
                        <!--{/if}-->
                        <!--{/if}-->
                    </div>
                    <!--{if $post[first]}-->
                    <span class="the_landlord_t">
                        <!--{if isset($post[isstick])}-->
                        <img src ="{IMGDIR}/settop.png" title="{lang replystick}" class="vm" /> {lang from} {$post[number]}{$postnostick}
                        <!--{elseif $post[number] == -1}-->
                        {lang recommend_post}
                        <!--{else}-->
                        <!--{if !empty($postno[$post[number]])}-->$postno[$post[number]]<!--{else}-->{$post[number]}{$postno[0]}<!--{/if}-->
                        <!--{/if}-->
                    </span>
                    <!--{else}-->
                    <!--{eval $_self = $thread['author'] && $post['author'] == $thread['author'] && $post['position'] !== '1';}-->
                    <!--{if $_self}-->
                    <span class="the_landlord_t">$postno[1]</span>
                    <!--{/if}-->
                    <span class="grey y f12 m_l10 m_t3">
                        <!--{if isset($post[isstick])}-->
                        <img src ="{IMGDIR}/settop.png" title="{lang replystick}" class="vm" /> {lang from} {$post[number]}{$postnostick}
                        <!--{elseif $post[number] == -1}-->
                        {lang recommend_post}
                        <!--{else}-->
                        <!--{if !empty($postno[$post[number]])}-->
                        $postno[$post[number]]
                        <!--{else}-->
                        {$post[number]}{$postno[0]}
                        <!--{/if}-->
                        <!--{/if}-->
                    </span>
                    <!--{/if}-->
                    <!--{if $_G['forum']['ismoderator']}-->
                    <!-- manage start -->
                    <!--{if $post[first]}-->
                    <em class="y"><a href="#moptions_$post[pid]" onclick="return false" class="popup blue">{lang manage}</a></em>
                    <div id="moptions_$post[pid]" name="moptions_$post[pid]" popup="true" class="manage" style="display:none;">
                        <div class="ass_fl">
                            <!--{if !$_G['forum_thread']['special']}-->
                            <button type="button" class="redirect button" href="forum.php?mod=post&action=edit&fid=$_G[fid]&tid=$_G[tid]&pid=$post[pid]<!--{if $_G[forum_thread][sortid]}--><!--{if $post[first]}-->&sortid={$_G[forum_thread][sortid]}<!--{/if}--><!--{/if}-->{if !empty($_GET[modthreadkey])}&modthreadkey=$_GET[modthreadkey]{/if}&page=$page">{lang edit}</button>
                            <!--{/if}-->
                            <button type="button" class="dialog button" href="forum.php?mod=topicadmin&action=moderate&fid={$_G[fid]}&moderate[]={$_G[tid]}&operation=delete&optgroup=3&from={$_G[tid]}">{lang delete}</button>
                            <button type="button" class="dialog button" href="forum.php?mod=topicadmin&action=moderate&fid={$_G[fid]}&moderate[]={$_G[tid]}&from={$_G[tid]}&optgroup=4">{lang close}</button>
                            <button type="button" class="dialog button" href="forum.php?mod=topicadmin&action=banpost&fid={$_G[fid]}&tid={$_G[tid]}&topiclist[]={$_G[forum_firstpid]}">{lang admin_banpost}</button>
                            <button type="button" class="dialog button" href="forum.php?mod=topicadmin&action=warn&fid={$_G[fid]}&tid={$_G[tid]}&topiclist[]={$_G[forum_firstpid]}">{lang topicadmin_warn_add}</button>
                        </div>
                    </div>
                    <!--{else}-->
                    <em class="y"><a href="#moptions_$post[pid]" onclick="return false"  class="popup blue">{lang manage}</a></em>
                    <!--{if $_G['forum_thread']['special'] == 3 && ($_G['forum']['ismoderator'] && (!$_G['setting']['rewardexpiration'] || $_G['setting']['rewardexpiration'] > 0 && ($_G[timestamp] - $_G['forum_thread']['dateline']) / 86400 > $_G['setting']['rewardexpiration']) || $_G['forum_thread']['authorid'] == $_G['uid']) && $post['authorid'] != $_G['forum_thread']['authorid'] && $post['first'] == 0 && $_G['uid'] != $post['authorid'] && $_G['forum_thread']['price'] > 0}-->
                    <em class="y">
                        <a href="forum.php?mod=misc&action=bestanswer&tid={$post['tid']}&pid={$post['pid']}" class="bestanswer">{lang reward_set_bestanswer}</a>
                    </em>
                    <!--{/if}-->
                    <div id="moptions_$post[pid]" name="moptions_$post[pid]" popup="true" class="manage" style="display:none;">
                        <div class="ass_fl">
                            <button type="button" class="redirect button" href="forum.php?mod=post&action=edit&fid=$_G[fid]&tid=$_G[tid]&pid=$post[pid]{if !empty($_GET[modthreadkey])}&modthreadkey=$_GET[modthreadkey]{/if}&page=$page">{lang edit}</button>
                            <!--{if $_G['group']['allowdelpost']}-->
                            <button type="button" class="dialog button" href="forum.php?mod=topicadmin&action=delpost&fid={$_G[fid]}&tid={$_G[tid]}&operation=&optgroup=&page=&topiclist[]={$post[pid]}">{lang modmenu_deletepost}</button><!--{/if}-->
                            <!--{if $_G['group']['allowbanpost']}--><button type="button" class="dialog button" href="forum.php?mod=topicadmin&action=banpost&fid={$_G[fid]}&tid={$_G[tid]}&operation=&optgroup=&page=&topiclist[]={$post[pid]}">{lang modmenu_banpost}</button><!--{/if}-->
                            <!--{if $_G['group']['allowwarnpost']}--><button type="button" class="dialog button" href="forum.php?mod=topicadmin&action=warn&fid={$_G[fid]}&tid={$_G[tid]}&operation=&optgroup=&page=&topiclist[]={$post[pid]}">{lang modmenu_warn}</button><!--{/if}-->
                        </div>
                    </div>
                    <!--{/if}-->
                    <!-- manage end -->
                    <!--{/if}-->


                    <!--{if $post[first]}-->
                    <!--{if !IS_ROBOT && !$_GET['authorid'] && !$_G['forum_thread']['archiveid']}-->
                    <em class="y"><a href="forum.php?mod=viewthread&tid=$_G[tid]&page=$page&authorid=$_G[forum_thread][authorid]" rel="nofollow" class="blue" style="font-size:12px;font-weight:normal;margin-left:10px;">{lang viewonlyauthorid}</a></em>
                    <!--{elseif !$_G['forum_thread']['archiveid']}-->
                    <em class="y"><a href="forum.php?mod=viewthread&tid=$_G[tid]&page=$page" rel="nofollow" class="blue" style="font-size:12px;font-weight:normal;margin-left:10px;;margin-right:10px;">{lang thread_show_all}</a></em>
                    <!--{/if}-->

                    <!--{/if}-->
                </li>

                <!--{if !$post[first]}-->
                <li>
                    <!--{template forum/viewthread_message}-->
                </li>
                <!--{/if}-->

                <!--{if $post[first]}-->
                <!--{eval $replies =  $thread[replies] < 0 ? 0 : $thread[replies]}-->
                <li class="grey rela">
                    <em>
                        <a href="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]&repquote=$post[pid]&extra=$_GET[extra]&page=$page">  <span class="num y"><i class="wqiconfont wqicon-massage f16 c_grey m_r2 m_tf2"></i>$replies</span></a>
                        <span class="y browse_record"><i class="wqiconfont wqicon-view c_grey m_r2 f20"></i>$thread[views]</span>
                    </em>
                    $post[dateline]
                </li>
                <!--{else}-->
                <li class="grey rela hudong">
                    <em>
                        <span class="y">
                            <a class="reply_posts" href="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]&repquote=$post[pid]&extra=$_GET[extra]&page=$page">
                                <i class="wqiconfont wqicon-massage f16 c_grey m_tf2"></i>
                            </a>
                        </span>
                        <!--{if !$_G['forum_thread']['special'] && !$rushreply && !$hiddenreplies && $_G['setting']['repliesrank'] && !$post['first'] && !($post['isWater'] && $_G['setting']['filterednovote'])}-->
                        <span class="y">
                            <a href="forum.php?mod=misc&action=postreview&do=against&tid=$_G[tid]&pid=$post[pid]&hash={FORMHASH}" data="$post[pid]" class="oppose">
                                <i class="wqiconfont wqicon-bad f14 c_grey"></i>
                            </a>
                            <i id="review_supportss_$post[pid]">$post[postreview][against]</i>
                        </span>
                        <span class="y">
                            <a href="forum.php?mod=misc&action=postreview&do=support&tid=$_G[tid]&pid=$post[pid]"  data="$post[pid]" class="support support_forum">
                                <i class="wqiconfont wqicon-zan f14 c_grey"></i>
                            </a>
                            <i id="review_support_$post[pid]">$post[postreview][support]</i>
                        </span>
                        <!--{/if}-->
                        <!--{if ($_G['group']['raterange'] && $post['authorid'])||($_GET['from'] != 'preview' && !empty($post['ratelog']))}-->
                        <!--{if $_GET['from'] != 'preview' && !empty($post['ratelog'])}-->
                        <!--{eval $ajax_action="viewratings";$rate_class="rate_viewratings"}-->
                        <!--{else}-->
                        <!--{eval $ajax_action="rate";$rate_class="grades";}-->
                        <!--{/if}-->
                        <span class="y">
                            <a href="forum.php?mod=misc&action=$ajax_action&tid=$_G[tid]&pid=$post[pid]"  class="support {$rate_class}" {if $_G['group']['raterange'] && $post['authorid']}pid="$post[pid]"{/if}>
                               <i class="wqiconfont wqicon-icon02 c_grey"></i>
                            </a>
                            <!--{if count($postlist[$post[pid]][totalrate])>0}-->
                            <i class="m_l-4"><!--{echo count($postlist[$post[pid]][totalrate]);}--></i>
                            <!--{/if}-->
                        </span>
                        <!--{/if}-->
                    </em>
                    <em class="width60">$post[dateline]</em>
                </li>
                <!--{/if}-->
            </ul>
        </div>
        <div class="message_img">
            <!--{if $post[first]}-->
            <div class="l_b1 b_bottom"></div>
            <!--{template forum/viewthread_message}-->
            <!--{/if}-->
            <!--{if $post[first]}-->
            <!--{if $post['first'] && ($post[tags] || $relatedkeywords) && $_GET['from'] != 'preview'}-->
            <div class="label_txt">
                <i class="wqiconfont wqicon-biaoqian m_r2 f20"></i>
                <!--{if $post[tags]}-->
                <!--{eval $tagi = 0;}-->
                <!--{loop $post[tags] $var}-->
                <!--{if $tagi}-->, <!--{/if}--><a title="$var[1]" href="misc.php?mod=tag&id=$var[0]">$var[1]</a>
                <!--{eval $tagi++;}-->
                <!--{/loop}-->
                <!--{/if}-->
                <!--{if $relatedkeywords}--><span>$relatedkeywords</span><!--{/if}-->
            </div>
            <!--{/if}-->
            <!--{if $_GET['from'] != 'preview' && !empty($post['ratelog'])}-->
            <dl id="ratelog_$post[pid]" class="rate{if !empty($_G['cookie']['ratecollapse'])} rate_collapse{/if}">
                <dd style="margin:0">
                    <div class="rate_num">
                        <p><span class="xi1"><!--{echo count($postlist[$post[pid]][totalrate]);}--></span>{$Tlang['a355ecd8d5fdf8df']}</p>
                        <p class="rate_l"><!--{loop $post['ratelog'] $uid $ratelog}--><a href="home.php?mod=space&uid=$uid"><!--{echo avatar($uid, 'small');}--></a><!--{/loop}--></p>
                    </div>
                </dd>
            </dl>
            <!--{else}-->
            <div id="post_rate_div_$post[pid]"></div>
            <!--{/if}-->
            <!--{if $_G['group']['raterange'] && $post['authorid']}-->
            <!--{eval $mobiscroll_select=1;}-->
            <!--{template common/calendar}-->
            <div class="my_rate grades" href="" style="display: none" ><a href="javascript:;">{$Tlang['f26bdb744e87d798']}</a></div>
            <!--{/if}-->
            <div class="mb_share">
                <ul>
                    <li class="mb_collection">
                        <a href="home.php?mod=spacecp&ac=favorite&type=thread&id=$_G[tid]" class="favbtn">
                            <i class="wqiconfont wqicon-iconfontshoucang f18"></i>
                            <span<!--{if $_G['thread']['favtimes'] == '0'}--><!--{/if}-->>{$_G['thread']['favtimes']}</span>
                        </a>
                    </li>
                    <!--{if ($_G['group']['raterange'] && $post['authorid'])||($_GET['from'] != 'preview' && !empty($post['ratelog']))}-->
                    <!--{if $_GET['from'] != 'preview' && !empty($post['ratelog'])}-->
                    <!--{eval $ajax_action="viewratings";$rate_class="rate_viewratings"}-->
                    <!--{else}-->
                    <!--{eval $ajax_action="rate";$rate_class="grades";}-->
                    <!--{/if}-->
                    <!--{if $_G['group']['raterange'] && $post['authorid']}--> <!--{/if}-->
                    <li>
                        <a href="forum.php?mod=misc&action=$ajax_action&tid=$_G[tid]&pid=$post[pid]"   class="$rate_class" {if $_G['group']['raterange'] && $post['authorid']}pid="$post[pid]"{/if}>
                           <i class="wqiconfont wqicon-pingfen m_r2 f22" ></i><!--{echo count($postlist[$post[pid]][totalrate]);}-->
                        </a>
                    </li>
                    <!--{/if}-->
                    <!--{if ($_G['group']['allowrecommend'] || !$_G['uid']) && $_G['setting']['recommendthread']['status']}-->
                    <!--{if !empty($_G['setting']['recommendthread']['addtext'])}-->
                    <li>
                        <a href="forum.php?mod=misc&action=recommend&do=add&tid=$_G[tid]" dataid="recommendadd" class="recommend">
                            <i class="wqiconfont wqicon-zan f18"></i>
                            <span id="recommend_add"<!--{if $_G['thread']['recommend_add'] == '0'}--> <!--{/if}-->>{$_G['thread']['recommend_add']}</span>
                        </a>
                    </li>
                    <!--{/if}-->
                    <!--{if !empty($_G['setting']['recommendthread']['subtracttext'])}-->
                    <li>
                        <a href="forum.php?mod=misc&action=recommend&do=subtract&tid=$_G[tid]" dataid="recommendsubtract" class="recommend">
                            <i class="wqiconfont wqicon-bad m_r5 f18"></i><span id="recommend_subtract"<!--{if $_G['thread']['recommend_sub'] == '0'}--> <!--{/if}-->>{$_G['thread']['recommend_sub']}</span>
                        </a>
                    </li>
                    <!--{/if}-->
                    <!--{/if}-->
                </ul>
            </div>
            <!--{if $post['relateitem']}-->
            <div class="relevant_txt">
                <h3 class="b_bottom"><span></span>{lang related_thread}</h3>
                <ul>
                    <!--{loop $post['relateitem'] $var}-->
                    <li class="b_bottom"><a href="forum.php?mod=viewthread&tid=$var[tid]" title="$var[subject]">$var[subject]</a></li>
                    <!--{/loop}-->
                </ul>
            </div>
            <!--{/if}-->
            <!--{/if}-->
        </div>
        <div class="client_bg"><!--{hook/viewthread_postbottom_mobile $postcount}--></div>
    </div>
    <!--{if $post[first]}-->
    <div class="all_comments b_bottom">
        <a id="order" name="order"></a>
        <span class="b_bule_5">{$Tlang['4bc7b967c326c87e']}</span>
        <em class="y">
            <!--{if $_GET['ordertype']== "1"}-->
            <a href="forum.php?mod=viewthread&tid={$_G['tid']}&extra={$_GET['extra']}#order"><i class="reverse"></i>{$Tlang['ff816907b89d1612']}</a>
            <!--{else}-->
            <a href="forum.php?mod=viewthread&tid={$_G['tid']}&extra={$_GET['extra']}&ordertype=1#order"><i></i>{$Tlang['fe87c0c04d9f5a58']}</a>
            <!--{/if}-->
        </em>
    </div>
    <!--{if count($postlist) == '1'}-->
    <div class="empty_sofa"><img src="{$_G['style'][styleimgdir]}mobile/images/sofa.png"/><br/>{$Tlang['d72d60ca7091a3bd']}</div>
    <!--{/if}-->
    <!--{/if}-->
    <!--{eval $postcount++;}-->
    <!--{/loop}-->
    <!--{if $fastpost}-->
    <!--{subtemplate forum/forumdisplay_fastpost}-->
    <!--{/if}-->
</div>
<!-- main postlist end -->
$multipage
<!--{hook/viewthread_bottom_mobile}-->
<!--{if defined('WQ_IN_WECHAT')}-->
<script type="text/javascript" reload="1">
    $(function () {
        var i = 0, authi = new Array(), obj_img = new Array();
        $('.message_img img').each(function (i) {
            obj_img[i] = $(this).attr('src');
            if (obj_img[i].indexOf('http://') == "-1") {
                obj_img[i] = "{$_G['siteurl']}" + obj_img[i];
            }
            i++;
        });
        $('.message_im g img').click(function () {
            var img = $(this).attr('src');
            if (img.indexOf('http://') == "-1") {
                img = "{$_G['siteurl']}" + img;
            }
            wx.previewImage({
                current: img,
                urls: obj_img
            });
            return false;
        });
        $('.authi img').click(function () {
            var j = 0, authi = new Array();
            var img = $(this).attr('src');
            if (img.indexOf('http://') == "-1") {
                img = "{$_G['siteurl']}" + img;
            }
            var parent_img = $(this).closest(".authi").find("img");
            parent_img.each(function (j) {
                authi[j] = $(this).attr('src');
                if (authi[j].indexOf('http://') == "-1") {
                    authi[j] = "{$_G['siteurl']}" + authi[j];
                }
                j++;
            });
            wx.previewImage({
                current: img,
                urls: authi
            });
            return false;
        });
    });
</script>
<!--{/if}-->
<script type="text/javascript" reload="1">
    var scroll_Top;
    $(function () {
        $('.favbtn').on('click', function () {
            var obj = $(this);
            $.ajax({
                type: 'POST',
                url: obj.attr('href') + '&handlekey=favbtn&inajax=1',
                data: {
                    'favoritesubmit': 'true',
                    'formhash': '{FORMHASH}'
                },
                dataType: 'xml',
            }).success(function (s) {
                popup.open(s.lastChild.firstChild.nodeValue);
            }).error(function () {
                window.location.href = obj.attr('href');
                popup.close();
            });
            return false;
        });

        var pcontent_height = $(window).height() - 50;
        $('.grades').on('click', function () {
            var obj = $(this);
            $.ajax({
                type: 'GET',
                url: obj.attr('href') + '&inajax=1',
                data: {},
                dataType: 'xml',
            }).success(function (s) {
                $('#popup_grade').html(s.lastChild.firstChild.nodeValue);
                if ($('#rateform').length) {
                    $('#popup_content').attr("style", 'height:' + pcontent_height + 'px').html(s.lastChild.firstChild.nodeValue);
                    if ($('#popup_fullscreen').is(':hidden')) {
                        $('#popup_title').text("{$Tlang['0487fbf42b51d238']}");
                        $('#popup_fullscreen').slideDown();
                        scroll_Top = $(window).scrollTop();
                        $('html,body').addClass("wq_ovhidden");
                    }
                    $('.my_rate').hide();
                } else {
                    popup.open(s.lastChild.firstChild.nodeValue);
                }
            }).error(function () {
                window.location.href = obj.attr('href');
                popup.close();
            });
            return false;
        });
        $('.rate_viewratings').on('click', function () {
            var obj = $(this);
            $.ajax({
                type: 'GET',
                url: obj.attr('href') + '&inajax=1',
                data: {},
                dataType: 'xml',
            }).success(function (s) {
                $('#popup_content').attr("style", 'height:' + pcontent_height + 'px').html(s.lastChild.firstChild.nodeValue);
                $('#popup_title').text("{$Tlang['0b895e776c79def4']}");
                $('#popup_fullscreen').slideDown();
                var pid = obj.attr('pid');
                if (pid) {
                    $('.my_rate').attr('href', 'forum.php?mod=misc&action=rate&tid=$_G[tid]&pid=' + pid).slideDown();
                    $('#rate_h50').show();
                }
                scroll_Top = $(window).scrollTop();
                $('html,body').addClass("wq_ovhidden");
            }).error(function (s) {
                window.location.href = obj.attr('href');
                popup.close();
            });
            return false;
        });
        $('.recommend').on('click', function () {
            var obj = $(this);
            var handlekey = obj.attr('dataid');
            $.ajax({
                type: 'GET',
                url: obj.attr('href') + '&handlekey=' + handlekey + '&inajax=1',
                data: {'hash': '{FORMHASH}'},
                dataType: 'xml',
            }).success(function (s) {
                popup.open(s.lastChild.firstChild.nodeValue);
            }).error(function () {
                window.location.href = obj.attr('href');
                popup.close();
            });
            return false;
        });
        $('.support_forum').on('click', function () {
            var obj = $(this);
            var data = obj.attr('data');
            $.ajax({
                type: 'GET',
                url: obj.attr('href') + '&inajax=1',
                data: {'hash': '{FORMHASH}'},
                dataType: 'xml',
            }).success(function (s) {
                $('#popup_grade').html(s.lastChild.firstChild.nodeValue);
                if ($.trim($('#popup_grade p:eq(0)').text()) == '{$Tlang[289f61f54d327553]}') {
                    var text = $('#review_support_' + data).text() > 0 ? $('#review_support_' + data).text() + 1 : 1;
                    $('#review_support_' + data).html(text);
                }
                popup.open(s.lastChild.firstChild.nodeValue);
            }).error(function () {
                window.location.href = obj.attr('href');
                popup.close();
            });
            return false;
        });
        $('.oppose').on('click', function () {
            var obj = $(this);
            var data = obj.attr('data');
            $.ajax({
                type: 'GET',
                url: obj.attr('href') + '&inajax=1',
                data: {'hash': '{FORMHASH}'},
                dataType: 'xml',
            }).success(function (s) {
                $('#popup_grade').html(s.lastChild.firstChild.nodeValue);
                if ($.trim($('#popup_grade p:eq(0)').text()) == '{$Tlang[289f61f54d327553 ]}') {
                    var text = $('#review_supportss_' + data).text() > 0 ? $('#review_supportss_' + data).text() + 1 : 1;
                    $('#review_supportss_' + data).html(text);
                }
                popup.open(s.lastChild.firstChild.nodeValue);
            }).error(function () {
                window.location.href = obj.attr('href');
                popup.close();
            });
            return false;
        });

        $('.bestanswer').on('click', function () {
            var obj = $(this);
            $.ajax({
                type: 'POST',
                url: obj.attr('href') + '&inajax=1',
                data: {
                    'formhash': '{FORMHASH}',
                    'listextra': '{$_GET[extra]}',
                    'page': '{$_GET[page]}',
                    'bestanswersubmit': 'yes',
                    'from': '{$_GET[from]}'
                },
                dataType: 'xml',
            }).success(function (s) {
                popup.open(s.lastChild.firstChild.nodeValue);
            }).error(function () {
                window.location.href = obj.attr('href');
                popup.close();
            });
            return false;
        });
    });

    function errorhandle_recommendadd(msg, param) {
        if (param['recommendv'] == '+1') {
            var objv = $('#recommend_add');
            objv.css("display", "");
            objv.html(parseInt(objv.html()) + 1);
        }
    }
    function succeedhandle_favbtn(url, msg, param) {
        if ($.trim(msg) == '{$Tlang[fffeda57b2002266]}') {
            clearInterval(setTimeout_location);
            $('.favbtn span').text(parseInt($('.favbtn span').text()) + 1);
            setTimeout(function () {
                popup.close();
            }, '1000');
        }
    }
    function errorhandle_recommendsubtract(msg, param) {
        if (param['recommendv'] == '-1') {
            var objv = $('#recommend_subtract');
            objv.css("display", "");
            objv.html(parseInt(objv.html()) + 1);
        }
    }
</script>
<a href="javascript:;" title="{lang scrolltop}" class="scrolltop bottom"></a>
<!--{eval $wq_footbar=1;}-->
<!--{template common/footer}-->
