<!doctype html>
<html>
    <head>
    <title>微访谈 - <!--{$tiview.tname}--> - <!--{TO->cfg key="site_name" group="basic" default="iWeibo2.0"}--></title>
    <script> var iwbAddUrl = "tiview/add/id/<!--{$tiview.id}-->";</script>
    <!--{include file="common/style.tpl"}-->
    <!--{if $tiview.style.linkcolor}-->
    <style> a{color:<!--{$tiview.style.linkcolor}-->;}</style>
    <!--{/if}-->
	<!--{if ($pt == 'allask')}-->
	<script> var iwbInstantTimeline = true; </script>
	<!--{/if}-->
    </head>
    <body>
    <!--{include file="common/header.tpl"}-->
    <div class="wrapper content">
        <!--{if $tiview.style.outward}-->
        <div><img src="<!--{$tiview.style.outward}-->" width="800" height="100"/></div>
        <!--{/if}-->
        <div class="contentleft fleft nobg">
            <!--{if $tiview.statusText != '已结束'}-->
            <div class="nobg"><!--{include file="common/sendbox.tpl"}--></div>
            <!--{/if}-->
            <div class="tabbar">
                <ul class="tabs">
                    <li class="tab <!--{if isset($actives.my)}--><!--{$actives.my}--><!--{/if}-->" ><!--{if !isset($actives.my)}--><a href="/tiview/view/id/<!--{$tiview.id}-->/"><!--{else}--><strong><!--{/if}-->我的问题
                    <!--{if isset($actives.my)}--><small> (共<!--{$tps.total}-->条)</small><!--{/if}--><!--{if !isset($actives.my)}--></a><!--{else}--></strong><!--{/if}--></li>
                    <li class="tab <!--{if isset($actives.all)}--><!--{$actives.all}--><!--{/if}-->"><!--{if !isset($actives.all)}--><a href="/tiview/view/id/<!--{$tiview.id}-->/u/all"><!--{else}--><strong><!--{/if}-->所有问题
                    <!--{if isset($actives.all)}--><small> (共<!--{$tps.total}-->条)</small><!--{/if}--><!--{if !isset($actives.all)}--></a><!--{else}--></strong><!--{/if}--></li>
                </ul>
                <div class="fright">
                </div>
            </div>
            <div id="interviewlist">
                <!--{include file="user/tiview_tbody.tpl"}-->
            </div>
            <!--{if $tps.total > 0 }-->
                <!--{include file="common/multipage1.tpl"}-->
            <!--{/if}-->
            </div>
        <div class="contentright fright">
        <div class="textlisttit" title="热门话题">&#10077;<!--{$tiview.tname}-->&#10078;</div>
        <div class="textlisttit" title="访谈简介">访谈简介&nbsp;
        <!--{if $tiview.statusText == '进行中'}-->
            <em class="icon_living"></em>
        <!--{elseif $tiview.statusText == '未开始'}-->
            [未开始]
        <!--{else}-->
            <em class="icon_lived"></em>
        <!--{/if}-->
        </div>
        <div class="livedes">
        <em class="icon_angle"></em>
        <strong>访谈时间：</strong>
        <p class="gray"><!--{$tiview.sdate|idate:"m月d日 H:i"}--> 至 <!--{$tiview.edate|idate:"m月d日 H:i"}--></p>
        <strong>访谈内容：</strong>
        <p class="gray"><!--{$tiview.desc}--></p>
        <center><a data-text="#微访谈#<!--{$tiview.desc}-->" href="javascript:void(0);" class="iwbAddBtn commendbtn"></a></center>
        </div>
        <div class="toggle" title="主持人">主持人</div>
        <ul class="userlist">
            <!--{foreach name=user item=user key=i from=$join.0}-->
            <li>
            <p><a href="/u/<!--{$user.name}-->" target="_blank"><img src="<!--{$user.head}-->"></a></p>
            <h3><a href="/u/<!--{$user.name}-->" target="_blank" title="<!--{$user.nick}-->(@<!--{$user.name}-->)"><!--{$user.nick}--></a></h3>
            <div>
            <!--{if $user.name != $username}-->
                <!--{if $user.isidol}-->
                <a data-name="<!--{$user.name}-->" href="javascript:void(0);" data-type="0" data-styleid="1" class="iwbFollowControl follow unfollow"></a>
                <!--{else}-->
                <a data-name="<!--{$user.name}-->" href="javascript:void(0);" data-type="1" data-styleid="1" class="iwbFollowControl follow"></a>
                <!--{/if}-->
            <!--{/if}-->
            </div>
            </li>
            <!--{/foreach}-->
        </ul>
        <div class="toggle" title="嘉宾">嘉宾</div>
        <ul class="userlist">
            <!--{foreach name=user item=user key=i from=$join.1}-->
            <li>
            <p><a href="/u/<!--{$user.name}-->" target="_blank"><img src="<!--{$user.head}-->"></a></p>
            <h3><a href="/u/<!--{$user.name}-->" target="_blank" title="<!--{$user.nick}-->(@<!--{$user.name}-->)"><!--{$user.nick}--></a></h3>
            <div>
            <!--{if $user.name != $username}-->
                <!--{if $user.isidol}-->
                <a data-name="<!--{$user.name}-->" href="javascript:void(0);" data-type="0" data-styleid="1" class="iwbFollowControl follow unfollow"></a>
                <!--{else}-->
                <a data-name="<!--{$user.name}-->" href="javascript:void(0);" data-type="1" data-styleid="1" class="iwbFollowControl follow"></a>
                <!--{/if}-->
            <!--{/if}-->
            </div>
            </li>
            <!--{/foreach}-->
        </ul>
        </div>
    </div>
    <!--{include file="common/footer.tpl"}-->
    <script>
        $(document).ready(function(){
        <!--{if $tiview.statusText != '已结束'}-->
            $("#shipintxt").hide();
            $(".shipin").hide();
            $("#yinyuetxt").hide();
            $(".yinyue").hide();
            $("#zhaopiantxt").hide();
            $(".zhaopian").hide();
            var titlebox = $('<div>我有个问题向 <!--{$slt}--> 提问</div>');
            var selector = titlebox.find(".selecttit");
            var ppllist = titlebox.find("ul");
            var ppls = titlebox.find(".altto");
            selector.hover(function () {
                ppllist.show();
            });
            ppllist.hover(function () {},function () {
                $(this).hide();
            });
            ppls.click(function () {
                $("#msgTxt").val(topic+'@'+$(this).attr('data-name')+' ');
                ppllist.hide();
            });
            var topic = '#<!--{$tiview.tname}-->#';
            $("#sendTweet").attr('action',window.iwbRoot + 'tiview/add/id/<!--{$tiview.id}-->');
            $(".sendboxtitle").append(titlebox);
            $("#msgTxt").bind("keydown",function(){
                var val = $(this).val();
                if(!(/^\#.*\#/).test(val)){
                    $(this).val('#<!--{$tiview.tname}-->#' + val);
                }
            });
            <!--{/if}-->
            <!--{if $tiview.style.background}-->
            $("BODY").css({"background":' url(<!--{$tiview.style.background}-->)<!--{if !$tiview.style.repeat}--> no-repeat<!--{/if}-->',"filter":'null'});
            <!--{/if}-->
            <!--{if $tiview.style.bgcolor}-->
                $("BODY").css("background-color",'<!--{$tiview.style.bgcolor}-->');
            <!--{/if}-->
         });
    </script>
    <!--{if $tiview.statusText != '已结束'}-->
    <script src="/resource/js/interviewOn.js"></script>
    <!--{else}-->
    <script src="/resource/js/interviewOff.js"></script>
    <!--{/if}-->
    </body>
</html>