<?php /* Smarty version Smarty-3.0.6, created on 2012-03-29 20:46:18
         compiled from "C:\wamp\www\yun3/tpl/arter\require_feeds.html" */ ?>
<?php /*%%SmartyHeaderCode:194744f74599a43b1c0-09897910%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '01eb21b3ee40f80492ad3ed0ecc3365d3eb7dd24' => 
    array (
      0 => 'C:\\wamp\\www\\yun3/tpl/arter\\require_feeds.html',
      1 => 1331697134,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '194744f74599a43b1c0-09897910',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php  $_smarty_tpl->tpl_vars['d'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('data')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['d']->key => $_smarty_tpl->tpl_vars['d']->value){
?>
<div class="box" id="blog_<?php echo $_smarty_tpl->tpl_vars['d']->value['bid'];?>
">
     <div class="top">
     	<a href="<?php echo goUserHome(array('domain'=>$_smarty_tpl->tpl_vars['d']->value['domain'],'uid'=>$_smarty_tpl->tpl_vars['d']->value['uid']),$_smarty_tpl);?>
" title="<?php echo $_smarty_tpl->tpl_vars['d']->value['user']['username'];?>
" target="_blank"> 
     	<img src="<?php echo avatar(array('uid'=>$_smarty_tpl->tpl_vars['d']->value['uid'],'size'=>'middle'),$_smarty_tpl);?>
" alt="<?php echo $_smarty_tpl->tpl_vars['d']->value['user']['username'];?>
" class="face"/></a><span class="jiao"></span>
     </div>
     <div class="header">
       <cite> <a href="<?php echo goUserHome(array('domain'=>$_smarty_tpl->tpl_vars['d']->value['domain'],'uid'=>$_smarty_tpl->tpl_vars['d']->value['uid']),$_smarty_tpl);?>
" target="_blank"><?php echo $_smarty_tpl->tpl_vars['d']->value['username'];?>
</a> <?php echo dtktime(array('time'=>$_smarty_tpl->tpl_vars['d']->value['time']),$_smarty_tpl);?>
 </cite><div class="tag"><?php echo tag(array('tag'=>$_smarty_tpl->tpl_vars['d']->value['tag'],'c'=>'tag'),$_smarty_tpl);?>
 </div>
      <?php if ($_smarty_tpl->tpl_vars['d']->value['title']){?> <h1><a href="<?php echo goUserBlog(array('bid'=>$_smarty_tpl->tpl_vars['d']->value['bid']),$_smarty_tpl);?>
" target="_blank"><?php echo $_smarty_tpl->tpl_vars['d']->value['title'];?>
</a></h1> <?php }?>
     </div>
     <div id="feedText_<?php echo $_smarty_tpl->tpl_vars['d']->value['bid'];?>
" class="content">
           <?php echo feeds(array('item'=>$_smarty_tpl->tpl_vars['d']->value['body'],'type'=>$_smarty_tpl->tpl_vars['d']->value['type'],'limit'=>$_smarty_tpl->getVariable('limits')->value,'bid'=>$_smarty_tpl->tpl_vars['d']->value['bid']),$_smarty_tpl);?>

     </div>
     

     <div class="footer">
      <!--<div class="tag"><?php echo tag(array('tag'=>$_smarty_tpl->tpl_vars['d']->value['tag'],'c'=>'tag'),$_smarty_tpl);?>
 </div>-->
	  <!--<div class="up">顶一个</div>
	  <div class="down">踩一个</div>-->
	  <div class="mark">
			<div id="mark0" onmouseover="this.style.backgroundPosition='0 0'" onmouseout="this.style.backgroundPosition='-75px 0'" onfocus="this.blur()" onClick="sEval(<?php echo $_smarty_tpl->tpl_vars['d']->value['bid'];?>
,1)">
				<span id="barnum1"><span id="<?php echo $_smarty_tpl->tpl_vars['d']->value['bid'];?>
"><?php echo $_smarty_tpl->tpl_vars['d']->value['good_num'];?>
</span></span>
			</div>
			<div id="mark1" onmouseover="this.style.backgroundPosition='-225px 0'" onmouseout="this.style.backgroundPosition='-150px 0'" onfocus="this.blur()" onclick="sEval(<?php echo $_smarty_tpl->tpl_vars['d']->value['bid'];?>
,2)">
				<span id="barnum2"><span id="s<?php echo $_smarty_tpl->tpl_vars['d']->value['bid'];?>
"><?php echo $_smarty_tpl->tpl_vars['d']->value['bad_num'];?>
</span></span>
			</div>
		</div>
      <div class="menu">
      <?php if ($_smarty_tpl->tpl_vars['d']->value['title']==''){?><a href="<?php echo goUserBlog(array('bid'=>$_smarty_tpl->tpl_vars['d']->value['bid']),$_smarty_tpl);?>
">全文</a><?php }?>
      
       
           <a href="javascript:void(0)" onclick="indexPostTab('feeds','<?php echo $_smarty_tpl->tpl_vars['d']->value['bid'];?>
','<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'blog','a'=>'getFeeds'),$_smarty_tpl);?>
')" id="hid_btn_<?php echo $_smarty_tpl->tpl_vars['d']->value['bid'];?>
">动态<em><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['d']->value['feedcount'];?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1!=0){?>(<?php echo $_smarty_tpl->tpl_vars['d']->value['feedcount'];?>
)<?php }?></em></a>
               <?php if (islogin()){?>
               	
                	<a href="javascript:void(0)" onclick="indexPostTab('comment','<?php echo $_smarty_tpl->tpl_vars['d']->value['bid'];?>
','<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'blog','a'=>'getReplay'),$_smarty_tpl);?>
')" id="comment_btn_<?php echo $_smarty_tpl->tpl_vars['d']->value['bid'];?>
">
      				 评论<em><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['d']->value['replaycount'];?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp2!=0){?>(<?php echo $_smarty_tpl->tpl_vars['d']->value['replaycount'];?>
)<?php }?></em></a>
       
                	<?php if ($_smarty_tpl->tpl_vars['d']->value['uid']!=$_SESSION['uid']){?>
                       <?php if ($_smarty_tpl->tpl_vars['d']->value['followid']!=''){?> <a href="javascript:void(0)" onclick="follows('<?php echo $_smarty_tpl->tpl_vars['d']->value['uid'];?>
','<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'blog','a'=>'follows'),$_smarty_tpl);?>
')">已关注</a> <?php }else{ ?>
                       <a href="javascript:void(0)" onclick="follows('<?php echo $_smarty_tpl->tpl_vars['d']->value['uid'];?>
','<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'blog','a'=>'follows'),$_smarty_tpl);?>
')">关注</a>
                       <?php }?>
                   <?php }?>
                   
                    <a href="javascript:void(0)" onclick="collect('<?php echo $_smarty_tpl->getVariable('url')->value;?>
/index.php?c=main&a=collect&bid=<?php echo $_smarty_tpl->tpl_vars['d']->value['bid'];?>
')">收集</a> 
                
                
                   <?php if ($_smarty_tpl->tpl_vars['d']->value['uid']==$_SESSION['uid']||$_SESSION['admin']==1){?>
                    <a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'add','a'=>'edit','id'=>$_smarty_tpl->tpl_vars['d']->value['bid']),$_smarty_tpl);?>
"><img src="<?php echo $_smarty_tpl->getVariable('url')->value;?>
/tpl/image/edit.gif" title="编辑<?php if ($_smarty_tpl->tpl_vars['d']->value['open']==0){?>草稿<?php }?>" /></a> 
                    <span class="delrep"><a href="javascript:void(0)" onclick="delblogs('<?php echo $_smarty_tpl->tpl_vars['d']->value['bid'];?>
','<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'add','a'=>'del','id'=>$_smarty_tpl->tpl_vars['d']->value['bid']),$_smarty_tpl);?>
')" title="删除">&nbsp;&nbsp;&nbsp;</a></span>
                   <?php }?>
               <?php }?>
   
      </div>
        <div class="clear"></div>
     </div>

 
                    <div style="display:none" id="comment_<?php echo $_smarty_tpl->tpl_vars['d']->value['bid'];?>
">
                      <div class="comment">
                      <?php if (islogin()){?>
                          <textarea id="replyInput_<?php echo $_smarty_tpl->tpl_vars['d']->value['bid'];?>
"></textarea>
                          <input type="hidden" id="replyTo_<?php echo $_smarty_tpl->tpl_vars['d']->value['bid'];?>
" />
                          <div class="submit">
                           <em class="green" id="replyInput_lengthinf_<?php echo $_smarty_tpl->tpl_vars['d']->value['bid'];?>
"></em>
                           <input type="button" value="提交评论" onclick="sendReplay('<?php echo $_smarty_tpl->tpl_vars['d']->value['bid'];?>
','<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'blog','a'=>'replay'),$_smarty_tpl);?>
')" class="btn" />
                       </div>
                          <?php }?>
                        <ul class="commentList" id="commentList_<?php echo $_smarty_tpl->tpl_vars['d']->value['bid'];?>
"></ul>
                      </div>
                    </div>
                    
                     <div id="feeds_<?php echo $_smarty_tpl->tpl_vars['d']->value['bid'];?>
"  style="display:none">
                      <div class="comment">


                        <ul class="feedList" id="feedList_<?php echo $_smarty_tpl->tpl_vars['d']->value['bid'];?>
">
                        </ul>
                      </div>
                    </div>
     
   
    </div>
<?php }} ?>
