<!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_headinc.tpl"}-->
<link type="text/css" rel="stylesheet" href="<!--{$skinpath}-->themes/css/user_1-min.css">
<body>
<div id="doc">
<!--{assign var='menuid' value='weibo'}--> 
<!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_menu.tpl"}-->
<div></div>
<div id="bd">
  <div id="result" class="clearfix result_box">
    <div id="main-box"> 
      <!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_search2.tpl"}-->
      <div class="main">
		
		<div class="fbk_l" style="margin-top:10px;"> 
		  <img src="<!--{$skinpath}-->themes/images/send.png" style="margin-left:37px;" />
		  <div class="tex_l">
			<textarea name="content" id="content" onKeyDown="textCounter('content', 'counter', 140);" onKeyUp="textCounter('content', 'counter', 140);"></textarea>
		  </div>
		  <div class="texb_l">还可以输入<span class="zs" id="counter">140</span>个字 <img src="<!--{$skinpath}-->themes/images/gbweibo.gif" id="btn_roll" style="cursor:pointer;" /> </div>
		</div>
        
		<!--{if !empty($weibo)}-->
		  <!--{foreach $weibo as $volist}-->
		  <div style="padding:10px;margin:5px;">
			<div class="weibo_left">
			  <a href="<!--{$volist.homeurl}-->"><!--{avatar width='45' height='55' value=$volist.avatarurl}--></a>
			</div>
			<div class="weibo_right">
			  <div class="weibo_list">
				<dl>
				  <dd>
					<div class="cmtitle" style="background:#f6f6f1;">
					<span><a class="cmname" href="<!--{$volist.homeurl}-->" target="_blank"><!--{$volist.username}--></a></span>
					<span class="cminfo">
					<!--{$volist.age}-->岁 
					<!--{area type="text" value=$volist.provinceid}--> <!--{area type="text" value=$volist.cityid}--> <!--{hook mod='var' type='text' item='education' value=$volist.education}-->
					</span>
					<span class="cmtime">发表于 <!--{$volist.addtime|date_format:"%Y-%m-%d %H:%M"}--></span>
					<div style="clear:both;"></div>
					</div>
					<p class="nonetext"><!--{$volist.content|nl2br}--> </p>
					<p class="huifutext">
					&nbsp;&nbsp;&nbsp;
					<a href="###" onclick="jbox_writebox('<!--{$volist.userid}-->');">(发信件)</a>&nbsp;&nbsp;
					<a href="###" onclick="jbox_hibox('<!--{$volist.userid}-->');">(打招呼)</a>&nbsp;&nbsp;
					<a href="###" onclick="jbox_send_gift('<!--{$volist.userid}-->');">(送礼物)</a>&nbsp;&nbsp;
					<a href="<!--{$volist.url}-->" target="_blank" class="pinglunBtn">评论(<!--{$volist.commentcount}-->)</a>
					</p>
				  </dd>
				</dl>
			  </div>
			</div>
			<div style="clear:both;"></div>
		  </div>
		  <!--{/foreach}-->
		  <!--{if !empty($showpage)}-->
		  <div class="page1">
			<div class="pagecode"><!--{$showpage}--></div>
			<div style="clear:both;"></div>
		  </div>
		  <!--{/if}-->

	    <!--{else}-->
		  <!--{if $type=='user'}-->
		  <div class="no_weibo">对不起，<!--{$user.username}-->还没发表心情微播。</div> 
		  <!--{elseif $type=='my'}-->
		  <div class="no_weibo">对不起，您还没有心情微播哦，赶快发布您的第一篇心情吧。</div> 
		  <!--{elseif $type=='listen'}-->
		  <div class="no_weibo">对不起，您关注的好友还没有发布心情微播。</div> 
		  <!--{else}-->
		  <div class="no_weibo">对不起， 还没会员发表心情微播，赶快发布您的第一篇心情吧。</div> 
		  <!--{/if}-->
		<!--{/if}-->

	  </div>
    </div>

    <div class="side"> 
      <!--{if !empty($user)}-->
      <div class="profile bg">
        <div class="avatar"><a><span class="skin_portrait_round"></span><!--{$user.useravatar}--></a></div>
        <div class="bd">
          <div class="name"><span title="<!--{$user.username}-->"><span><!--{$user.username}--></span></span></div>
          <div class="feed_num"><a href="<!--{$urlpath}-->index.php?c=weibo&a=list&type=user&uid=<!--{$user.userid}-->"><!--{$user.weibocount}--></a>条微播</div>
          <div class="feed_num"><a href="###" onClick="jbox_hibox('<!--{$user.userid}-->');">打招呼</a></div>
          <div class="feed_num"><a href="###" onClick="jbox_writebox('<!--{$user.userid}-->');">写信件</a></div>
          <div class="feed_num"><a href="###" onClick="jbox_send_gift('<!--{$user.userid}-->');">赠送礼物</a></div>
          <div class="feed_num"><a href="<!--{$user.homeurl}-->" target="_blank">查看资料</a></div>
        </div>
        <div class="box_shadow"></div>
      </div>
      <!--{/if}--> 
      <!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_weibo.tpl"}--> 
	</div>
  </div>
  <!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_footer.tpl"}--> </div>
</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);
	});

});
</script>