<?php exit("Powered by www.wikin.cn"); ?>
<!--{if !in_array($do, array('following', 'follower')) && $_GET['action']=='publish'}-->
<!--{eval $header_nav='null';}-->
<!--{/if}-->
<!--{template common/header}-->
<!--{if in_array($do, array('following', 'follower'))}-->
<div class="my_place b_bottom"><a href="forum.php?mod=guide&view=hot">{lang homepage}</a><em class="wqiconfont wqicon-youyou"></em>{$space['username']}{$Tlang['53b00a3c5c4822f3']}<!--{if $do == 'follower'}-->{$Tlang['bbd702ca1f76841a']}<!--{elseif $do == 'following'}-->{$Tlang['2c8a07313e7706bc']}<!--{/if}--></div>
<div class="subname_list" >
    <ul>
        <li<!--{if $do == 'follower'}--> class="on"<!--{/if}-->>
            <a href="home.php?mod=follow&do=follower&uid={$space[uid]}">
                {$Tlang['bbd702ca1f76841a']}
                <span class="b_left"></span>
            </a>
        </li>
        <li<!--{if $do == 'following'}--> class="on"<!--{/if}-->>
            <a href="home.php?mod=follow&do=following&uid={$space[uid]}">
                {$Tlang['2c8a07313e7706bc']}
            </a>
        </li>
    </ul>
</div>
<!--{if $list}-->
<div class="fans" id="attention_user">
    <ul>
        <!--{loop $list $fuid $fuser}-->
        <li class="cl<!--{if in_array($fuser['uid'], $newfollower_list)}--> unread<!--{/if}--> b_bottom" id="follow_li_{$fuser['followuid']}">
            <!--{if $do=='following'}-->
            <div class="fans_img"><span><a href="home.php?mod=space&do=profile&uid=$fuser['followuid']" title="$fuser['fusername']" id="edit_avt" class="flw_avt" shref="home.php?mod=space&do=profile&uid=$fuser['followuid']"><!--{avatar($fuser['followuid'],middle)}--></a></span></div>   
            <h2 class="name"><a href="home.php?mod=space&do=profile&uid=$fuser['followuid']" title="$fuser['fusername']" class="xi2" c="1" shref="home.php?mod=space&do=profile&uid=$fuser['followuid']">$fuser['fusername']
                </a>&nbsp;<span id="followbkame_{$fuser['followuid']}" class="xg1 xs1 xw0"><!--{if $fuser['bkname']}-->$fuser[bkname]<!--{/if}--></span>
                <em class="y">
                    <!--{if $viewself}-->
                    <a id="a_followmod_{$fuser['followuid']}" href="home.php?mod=spacecp&ac=follow&op=del&fuid=$fuser['followuid']" class="cancel_attention">{$Tlang['08b5128ae675d0d9']}</a>
                    <!--{elseif $fuser[followuid] != $_G[uid]}-->
                        <!--{if $fuser['mutual']}-->
                            <!--{if $fuser['mutual'] > 0}-->
                            <span class="z flw_status_2"><i class="wqiconfont wqicon-cuban3huchuan f20"></i></span>
                            <!--{else}-->
                            <span class="z flw_status_1"><i class="wqiconfont wqicon-yes f20"></i></span>
                            <!--{/if}-->
                        <a id="a_followmod_{$fuser['followuid']}" href="home.php?mod=spacecp&ac=follow&op=del&fuid=$fuser['followuid']" class="cancel_attention">{$Tlang['08b5128ae675d0d9']}</a>
                        <!--{elseif helper_access::check_module('follow')}-->
                        <a id="a_followmod_{$fuser['followuid']}" href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid=$fuser['followuid']" class="add_attention">{$Tlang['2c8a07313e7706bc']}</a>
                        <!--{/if}-->
                    <!--{/if}-->
                </em>
            </h2>
            <p class="fans_in_con">
                {$Tlang['2c8a07313e7706bc']}:<a href="home.php?mod=follow&do=follower&uid=$fuser['followuid']"><strong class="xi2" id="followernum_$fuser['followuid']">$memberinfo[$fuid]['follower']</strong></a><span class="fans_co m_l10">
					{$Tlang['bbd702ca1f76841a']}:<a href="home.php?mod=follow&do=following&uid=$fuser['followuid']"><strong class="xi2">$memberinfo[$fuid]['following']</strong></a></span>
                <!--{if $viewself && $fuser[followuid] != $_G[uid]}-->
<!--                <span class="pipe">|</span>
                <a href="home.php?mod=spacecp&ac=follow&op=bkname&fuid=$fuser['followuid']&handlekey=followbkame_$fuser['followuid']" id="fbkname_$fuser['followuid']" onclick="showWindow('followbkame_{$fuser['followuid']}', this.href, 'get', 0);">
                    {if $fuser['bkname']}
                    {lang follow_mod_bkname}
                    {else}
                    {lang follow_add_bkname}
                    {/if}
                </a>-->
                <!--{if helper_access::check_module('follow')}-->
                <span class="pipe">|</span>
                <a id="a_specialfollow_{$fuser['followuid']}" href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&special={if $fuser['status'] == 1}2{else}1{/if}&fuid=$fuser['followuid']" onclick="ajaxget(this.href);
						doane(event);"><!--{if $fuser['status'] == 1}-->{$Tlang['2e820feb5f8e011c']}<!--{else}-->{$Tlang['6f7e2051b79df1c1']}<!--{/if}-->
                </a>
                <!--{/if}-->
                <!--{/if}-->
            </p>
            <!--{if !empty($fuser['recentnote'])}--><p class="fans_in_con h_ov24"><span class="xg1">{lang follow_recent_note}: </span>$fuser[recentnote]</p><!--{/if}-->
            <!--{else}-->
            <div class="fans_img"><span><a href="home.php?mod=space&do=profile&uid=$fuser['uid']" title="$fuser['username']" id="edit_avt" class="flw_avt" c="1" shref="home.php?mod=space&do=profile&uid=$fuser['uid']"><!--{avatar($fuser['uid'],middle)}--></a></span></div>
            <h2 class="name">
                <a href="home.php?mod=space&do=profile&uid=$fuser['uid']">$fuser['username']</a>
                <em class="y">
                    <!--{if $fuser[uid] != $_G[uid]}-->
                        <!--{if $fuser['mutual']}-->
                            <!--{if $fuser['mutual'] > 0}-->
                                <span class="z flw_status_2" id="mutual_{$fuser['uid']}"><i  class="wqiconfont wqicon-cuban3huchuan f20"></i></span>
                              <!--{else}-->
                                <span class="z flw_status_1"><i class="wqiconfont wqicon-yes f20"></i></span>
                            <!--{/if}-->    
                        <a id="a_followmod_{$fuser['uid']}" href="home.php?mod=spacecp&ac=follow&op=del&fuid=$fuser['uid']"  class="cancel_attention">{$Tlang['08b5128ae675d0d9']}</a>
                        <!--{elseif helper_access::check_module('follow')}-->
                        <a id="a_followmod_{$fuser['uid']}" href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid=$fuser['uid']"  class="add_attention">{$Tlang['2c8a07313e7706bc']}</a>
                        <!--{/if}-->
                    <!--{/if}-->
                </em>
            </h2>
            <p class="fans_in_con">
                {$Tlang['2c8a07313e7706bc']}:<a href="home.php?mod=follow&do=follower&uid=$fuser['uid']"><strong class="xi2" id="followernum_$fuser['uid']">$memberinfo[$fuid]['follower']</strong></a>
                <span class="fans_co m_l10">
                    {$Tlang['bbd702ca1f76841a']}:<a href="home.php?mod=follow&do=following&uid=$fuser['uid']"><strong class="xi2">$memberinfo[$fuid]['following']</strong></a></span>
            </p>
            <p class="fans_in_con h_ov24"><span class="xg1">{lang follow_recent_note}: </span>$fuser[recentnote]</p>
            <!--{/if}-->
        </li>
        <!--{/loop}-->
        <script>
                    $(function() {
                       $('#attention_user').on('click','.add_attention', function() {
                            var obj = $(this);
                            $.ajax({
                                    type: 'POST',
                                    url: obj.attr('href') + '&inajax=1',
                                    data: {},
                                    dataType: 'xml',
                            }).success(function(s) {
                                 console.log(s.lastChild.firstChild.nodeValue.replace("{$Tlang['f279762509312d83']}","{$Tlang['2c8a07313e7706bc']}"))
                                    popup.open(s.lastChild.firstChild.nodeValue.replace("{$Tlang['f279762509312d83']}","{$Tlang['2c8a07313e7706bc']}"));
                            }).error(function() {
                                    window.location.href = obj.attr('href');
                                    popup.close();
                            });
                            return false;
                        });
                       $('#attention_user').on('click','.cancel_attention', function() {
                            var obj = $(this);
                            $.ajax({
                                    type: 'POST',
                                    url: obj.attr('href') + '&inajax=1',
                                    data: {},
                                    dataType: 'xml',
                            }).success(function(s) {
                                console.log(s.lastChild.firstChild.nodeValue)
                                    popup.open(s.lastChild.firstChild.nodeValue);
                            }).error(function() {
                                    window.location.href = obj.attr('href');
                                    popup.close();
                            });
                            return false;
                        });
                    });
                    function succeedhandle_followmod(url, msg,param) {
                        if ($.trim(msg) == '{$Tlang[581ff9f7c750ca4a]}') {
                             clearInterval(setTimeout_location)
                             $('#a_followmod_'+param.fuid).text('{$Tlang[08b5128ae675d0d9]}').unbind("click").attr('class','cancel_attention');
                             setTimeout(function() {popup.close();}, '1000');
                        }else if($.trim(msg) == '{$Tlang[bef022f6310db3b9]}'){
                             clearInterval(setTimeout_location)
                             if ('$do'=='following'&&'$_G[uid]'=='$_GET[uid]') {
                                 console.log('ss')
                                $('#follow_li_'+param.fuid).remove();
                             }else{
                                $('#a_followmod_'+param.fuid).text('{$Tlang[2c8a07313e7706bc]}').unbind("click").attr('href','home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid='+param.fuid).attr('class','add_attention');
                                $('#mutual_'+param.fuid).remove()
                             }
                             setTimeout(function() {popup.close();}, '1000');
                        }
                    }
                </script>
    </ul>
</div>
<!--{if !empty($multi)}--><div>$multi</div><!--{/if}-->
<br/>
<!--{else}-->
<div id="nofollowmsg">
    <div class="flw_thread">
        <ul>
            <li class="flw_article">
                <div class="emp">
                    <h2 class="xg1 xs2 hm">
                        <!--{if $viewself}-->
                        <!--{if $do=='following'}-->
                        {lang follow_you_following_none}<a href="home.php?mod=follow&view=other" class="xi2">{lang follow_hall}</a>{lang follow_fetch_interested_user}
                        <!--{else}-->
                        {lang follow_you_follower_none1}<a href="home.php?mod=follow" class="xi2">{lang follow_add_feed}</a>{lang follow_you_follower_none2}
                        <!--{/if}-->
                        <!--{else}-->
                        <!--{if $do=='following'}-->
                        {lang follow_user_following_none}
                        <!--{else}-->
                        {lang follow_user_follower_none}
                        <!--{/if}-->
                        <!--{/if}-->
                    </h2>
                </div>
            </li>
        </ul>
    </div>
</div>
<!--{/if}-->


<!--{else}-->
<!--{if $_GET['action']!='publish'}-->

<!--{if !empty($list['feed'])}-->
<div class="flw_feed dynamic">
	<ul id="followlist">
		<!--{template home/follow_feed_li}-->
	</ul>
	<!--{if count($list['feed']) > 19 && ($archiver || $primary)}-->
	<div id="loadingfeed" class="flw_more"><a href="javascript:;" onclick="loadmore();
			return false;" class="xi2">{lang follow_more} &raquo;</a></div>
	<!--{else}-->
	<div id="loadingfeed"></div>
	<!--{/if}-->
	<iframe id="downloadframe" name="downloadframe" width="0" height="0" marginwidth="0" frameborder="0" src="about:blank"></iframe>
	<script type="text/javascript">
		function succeedhandle_attachpay(url, msg, values) {
			hideWindow('attachpay');
			window.location.href = url;
			//$('downloadframe').src = url;
		}
	</script>
</div>
<!--{else}-->
<div class="emp">
	<h2 class="mbw xg1 xs2 hm"><!--{if $viewself}-->{lang follow_following_null}<!--{else}-->{lang follow_no_content}<!--{/if}--></h2>
	<!--{if $do == 'feed' && $view == 'special'}-->
	<div class="mtw hm xg1">
		{lang follow_add_special_tip}<a href="home.php?mod=follow&do=following&uid=$uid" class="xi2">{lang follow_add_special_following}</a>
	</div>
	<!--{/if}-->

	<!--{if !empty($recommend) && $showrecommend && $view != 'special'}-->
	<!--{eval $showrecommend = false;}-->
	<div class="flw_user_list mbm">
            <h3 class="xw1 b_bule_5">{lang  follow_recommend}</h3>
		<ul class="ml mls cl">
			<!--{loop $recommend $ruid $rusername}-->
			<li>
				<a href="home.php?mod=space&uid=$ruid" class="avt" c="1" shref="home.php?mod=space&uid=$ruid"><!--{avatar($ruid,small)}--></a>
				<p><a href="home.php?mod=space&uid=$ruid" style="text-decoration: none !important;">$rusername</a></p>
				<!--{if helper_access::check_module('follow')}-->
				<span><a id="a_followmod_{$ruid}" href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid=$ruid&from=block" onclick="ajaxget(this.href);
						doane(event);" style="text-decoration: none !important;">{lang follow_add}</a></span>
				<!--{/if}-->
			</li>
			<!--{/loop}-->
		</ul>
	</div>
	<!--{/if}-->
</div>
<!--{/if}-->
<div class="plc cl viewpi b_dark">
	<span class="avatar t5"><a href="<!--{if $_G[uid]}-->home.php?mod=space&uid=$_G[uid]&do=profile&mycenter=1<!--{else}-->member.php?mod=logging&action=login<!--{/if}-->"><img src="<!--{avatar($_G[uid], small, true)}-->"  style="height:32px;width:32px;"/></a></span>
	<div class="pi m_r60">
		<ul class="fastpost" id="replyid" >
			<li id="fastpostsubmitline">
                <a href="home.php?mod=follow&action=publish" class="y b_dark_all" style="height:34px; line-height: 34px; font-size: 14px;">
                    <span>{$Tlang['ef8064969a36fe91']}</span></a>
				{hook/viewthread_fastpost_button_mobile}
			</li>
		</ul>
	</div>
	<span class="share_view"><a href="javascript:sharenv('share_qt')"><i class="wqiconfont wqicon-share f28 m_r5 m_tf2"></i></a></span>
</div>
<!--{else}--> 
<!--{template home/post}-->
<!--{/if}-->
<!--{/if}-->
<!--{template common/footer}-->
