<!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_headinc.tpl"}-->
<body>
<!--{assign var='menuid' value='weibo'}-->
<!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_menu.tpl"}-->
<div id="page-index" class="page">
  <div class="member">
    <!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_search.tpl"}-->
    <div class="container app_mood" id="ICFeedsContainer">
      <div class="main_wrap bg3">
        <div class="indexw bg bor3">

		  <!--{assign var='ads' value=get_ads('weibo_banner_1')}-->
		  <!--{if !empty($ads)}-->
		  <div class="wbad"><a <!--{if !empty($ads.url) && $ads.url!='#'}-->href="<!--{$ads.url}-->" target="<!--{$ads.target}-->"<!--{/if}-->><img src="<!--{$ads.uploadfiles}-->" width='<!--{$ads.width}-->' height='<!--{$ads.height}-->' border='0' title="<!--{$ads.title}-->" /></a></div>
		  <!--{/if}-->

		  <div class="fbk">
		    <img src="<!--{$skinpath}-->themes/images/send.png" style="margin-left:52px;"  />
			<div class="tex"><textarea name="content" id="content" onkeydown="textCounter('content', 'counter', 140);" onkeyup="textCounter('content', 'counter', 140);"></textarea></div>
			<div class="texb">
			  还可以输入<span class="zs" id="counter">140</span>个字 
			  <img src="<!--{$skinpath}-->themes/images/gbweibo.gif" id="btn_roll" style="cursor:pointer;" />
			</div>
          </div> 

		  <div class="redian">
		    <div class="re1"><img src="<!--{$skinpath}-->themes/images/lb.png">  当前热点：</div>
			<div class="re2"> </div>
		  </div>

          <div class="lian">
            <div class="lian1">
              <div class="thi"><img src="<!--{$skinpath}-->themes/images/user_edit.png">推荐会员</div>
			  <!--{assign var='eliteuser' value=vo_list("mod={spuser} type={elite} num={9}")}-->
			  <!--{foreach $eliteuser as $volist}-->
              <div class="lhead">
			  <a href="<!--{$volist.homeurl}-->" title="<!--{$volist.username}-->"><!--{avatar width='70' height='86' value=$volist.avatarurl}--></a><br><!--{$volist.levelimg}--> <!--{area type='text' value=$volist.provinceid}--> <!--{area type='text' value=$volist.cityid}-->
			  </div>
			  <!--{/foreach}-->

              <div class="thi"><img src="<!--{$skinpath}-->themes/images/crown.png">猜你喜欢</div>
			  <!--{assign var='mchuser' value=vo_list("mod={matchuser} num={9}")}-->
			  <!--{foreach $mchuser as $volist}-->
              <div class="lhead">
				<a href="<!--{$volist.homeurl}-->" title="<!--{$volist.username}-->"><!--{avatar width='70' height='86' value=$volist.avatarurl}--></a><br>
                <!--{$volist.levelimg}--> <font color="#999999"><!--{area type='text' value=$volist.provinceid}--> <!--{area type='text' value=$volist.cityid}--></font>
			  </div>
			  <!--{/foreach}-->
            </div>
            <div class="lian2">
			  <div class='thi'>
              <div class="thil"><img src="<!--{$skinpath}-->themes/images/user_comment.png">大家正在说</div>
			  <div class="thir"><a href="<!--{$appfile}-->?c=weibo&a=list">更多&gt;&gt;</a></div>
			  <div class="c"></div>
			  </div>

              <div class="zheng">
			    <ul id="scroll_List">
				<!--{assign var='weibo' value=vo_list("mod={weibo} num={7}")}-->
				<!--{foreach $weibo as $volist}-->
				<li>
                <div class="meitiao"> <a href="<!--{$volist.url}-->" class="mhead"><!--{avatar width='60' height='69' value=$volist.avatarurl}--></a>
                  <div class="mnei">
				     <a href="<!--{$volist.url}-->"><!--{$volist.username}--></a>：
					 <!--{$volist.content|filterhtml:70}-->...
					 <br>
                    <span class="vbsj"><!--{$volist.addtime|date_format:"%m-%d"}-->&nbsp;&nbsp;&nbsp;<a href="<!--{$volist.url}-->">查看&gt;&gt;</a></span> </div>
                  <div class="c"></div>
                </div>
				</li>
				<!--{/foreach}-->
				</ul>

              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="sidebar author_display lite_hide">

        <!--二级导航 开始-->
        <div class="sub_menu bbor3">
          <ul>
            <li class="nav_home current"> <a href="<!--{$urlpath}-->index.php?c=weibo"><i></i>微播广场</a> </li>
			<!--{if $login.status == 1}-->
			<li class="nav_weibo"> <a href="<!--{$urlpath}-->index.php?c=weibo&a=list&type=listen"><i></i>我的关注</a> </li>
            <li class="nav_hot"> <a href="<!--{$urlpath}-->index.php?c=weibo&a=list&type=my"><i></i>我的微播</a> </li>
			<!--{/if}-->
          </ul>
        </div>


        <div class="or3">
          <div class="hhti">最新日记</div>
          <ul>
		    <!--{assign var='newdiary' value=vo_list("mod={diary} num={15}")}-->
			<!--{foreach $newdiary as $volist}-->
            <li class="nav_my"> <a href="<!--{$volist.url}-->" class="c_tx" target="_blank" title="<!--{$volist.title}-->"> ◈ <!--{$volist.title|filterhtml:15}--></a> </li>
			<!--{/foreach}-->
          </ul>
        </div>

      </div>
    </div>
    <div style="clear:both;"></div>
  </div>
  <div style="clear:both;"></div>
</div>
<!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_footer.tpl"}-->
</body>
</html>
<script type='text/javascript'>
$(function(){
	$('#btn_roll').click(function(){
		var content = $.trim($('#content').val());
		if (content == '') {
			alert('微播内容不能为空！');
			$('#content').focus();
			return false;
		}
		else {
			if (content.length > 140) {
				alert('微播内容不能大于140个字！');
				$('#content').focus();
				return false;
			}
		}
		roll_weibo(content);
	});

});

$(document).ready(function(e) {
 var in_out_time = 800 //渐显时间
 var scroll_Interval_time = 2000 //滚动间隔时间
 var scroll_time = 1000 //滚动动画时间   
 addli()  
 function addli(){
  $("#scroll_List").css("top",0);
  $("#scroll_List li:last").clone().prependTo("#scroll_List");
  $("#scroll_List li:first").css("opacity",0);
  $("#scroll_List li:first").animate({opacity:1},in_out_time);
  setTimeout(delLi_last,scroll_Interval_time) 
 }
 
 function delLi_last(){
  $("#scroll_List li:last").detach(); 
  $("#scroll_List").animate({top:100},scroll_time,addli)
 }
 
});
</script>