<div id="sidebar">

<!----------------【首页边栏】上面的个广告位开始---------------->


<script type="text/javascript">
/*【边栏】--上--250*250*/
var cpro_id = "u1314631";
</script>
<script src="http://cpro.baidustatic.com/cpro/ui/c.js" type="text/javascript"></script>


<!----------------【首页边栏】上面的个广告位开始---------------->



<!--TAB选项卡-->
<div class="widget tab_box" id="tab_box_posts">
<ul class="tab_menu tab_menuone">
<li class="current">热门围观</li>
<li>最新文章</li>
<li>最新评论</li>
<li>站长微博</li></ul>
<div class="tab_content tab_content0">
<div class='baer'>
<ul class="tab_post_links" style="margin-left: 8px; margin-right: 14px;">
<?php simple_get_most_viewed(); ?>
</ul>
</div>
<div class="hide baer">
<ul class="tab_post_links" style="margin-left: 8px; margin-right: 14px;" ><?php $myposts = get_posts('numberposts=11&offset=0');foreach($myposts as $post) :?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark" title="详细阅读 <?php the_title_attribute(); ?>"><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_title)), 0, 62,"...","utf-8"); ?></a></li><?php endforeach; ?>
</ul>
</div>
<div class="hide baer">
<div class="r_comment">
<ul>
		<?php
			global $wpdb;
			$sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type,comment_author_url,comment_author_email, SUBSTRING(comment_content,1,16) AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID) WHERE comment_approved = '1' AND comment_type = '' AND post_password = '' AND user_id='0' ORDER BY comment_date_gmt DESC LIMIT 10";
			$comments = $wpdb->get_results($sql);
			$output = $pre_HTML;
			foreach ($comments as $comment) {$output .= "\n<li>".get_avatar(get_comment_author_email(), 32).strip_tags($comment->comment_author).":<br />" . " <a href=\"" . get_permalink($comment->ID) ."#comment-" . $comment->comment_ID . "\" title=\"查看 " .$comment->post_title . "\">" . strip_tags($comment->com_excerpt)."</a></li>";}
			$output .= $post_HTML;
			$output = convert_smilies($output);
			echo $output;
		?> 
</ul></div>
</div>
<div class="hide baer">
<ul class="tab_post_links">


<!----------------【TAB里面的站长微博秀代码】请自己修改哦---------------->



<iframe width="295" height="580" class="share_self"  frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=295&height=580&fansRow=1&ptype=1&speed=100&skin=1&isTitle=1&noborder=0&isWeibo=1&isFans=0&uid=2045260915&verifier=0a8edd64&colors=ffffff,ffffff,666666,0082cb,ecfbfd&dpc=1"></iframe>



<!----------------【TAB里面的站长微博秀代码】请自己修改哦---------------->



</ul></div>
</div>
</div>
<script type="text/javascript"  src="<?php bloginfo('template_directory'); ?>/js/scrollbar.js"></script>
<!--读者和留言-->
<div id="ubarl" style=" width:300px;">


<!----------------【首页边栏】定屏浮动的广告位---------------->

<script type="text/javascript">
/*首页边栏下*/
var cpro_id = "u1361265";
</script>
<script src="http://cpro.baidustatic.com/cpro/ui/c.js" type="text/javascript"></script>


<!----------------【首页边栏】定屏浮动的广告位---------------->


<div  class="widget tab_box"> 
      <ul class="tab_menu tab_menutwo">
      <li class="current">发现精彩</li>
      <li>标签云集</li>
      <li>手气不错</li>
      <li>更多精彩</li></ul>
      <div class="tab_content tab_content1">
      <div class='baer' style="margin-left: 8px; margin-right: 14px;">
      <ul class="tab_post_links"><?php $myposts = get_posts('numberposts=7&orderby=rand');foreach($myposts as $post) :?>
      <li style="font-size:12px"><a href="<?php the_permalink(); ?>" rel="bookmark" target="_blank" title="详细阅读 <?php the_title_attribute(); ?>"><?php echo cut_str($post->post_title,137); ?></a></li><?php endforeach; ?>
      </ul>
      </div>
      <div class="hide baer"  style="margin-bottom:5px"><div class="tags">
      <ul>
          <?php wp_tag_cloud('smallest=12&largest=12&unit=px&number=50&orderby=count&order=RAND');?>		
      </ul></div><div style="clear:both"></div>
      </div>
   <div class="hide baer" style="margin-left: 8px; margin-right: 14px;" >
      <ul class="tab_post_links">
<?php $myposts = get_posts('numberposts=7&offset=0');foreach($myposts as $post) :?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark" title="详细阅读 <?php the_title_attribute(); ?>"><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_title)), 0, 62,"...","utf-8"); ?></a></li><?php endforeach; ?>
</ul></div>
      <div class="hide baer" style="margin-left: 8px; margin-right: 14px;" >
      <ul class="tab_post_links">


<!----------------【首页边栏】最下面的TAB 的更多精彩---------------->


      <li><a href="http://user.qzone.qq.com/794939078" target="_blank" title="点我随机推荐一篇文章">关注站长空间</a></li>
      <li><a href="http://weibo.com/nocower" target="_blank" title="关注我的新浪微博~">站长新浪微博</a></li>
      <li><a href="<?php bloginfo('home'); ?>/sitemap.html" target="_blank" title="站点地图">站点地图</a></li>
      <li><a href="<?php bloginfo('home'); ?>/guestbook" target="_blank" title="去留言板吐槽一番吧">温情留言板</a></li>
      <li><a href="<?php bloginfo('home'); ?>/theme" target="_blank" title="喜欢就去购买吧~">购买本站主题</a></li>
      <li><a href="http://list.qq.com/cgi-bin/qf_invite?id=bf0df2e79fd59060310f2fbf8f12f58530932bacf8f2bc61" target="_blank" title="订阅">订阅到QQ邮箱</a></li>
       <li><a href="<?php bloginfo('home'); ?>/category/videos" target="_blank" title="唯美图片~">更多唯美图片</a></li>
       <li><a href="<?php bloginfo('home'); ?>/category/photos" target="_blank" title="搞笑视频~">更多优秀视频</a></li>
       <li><a href="http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB05%2Bm7rfGGjlY60oHcc7bkKOQiRddrNEyGLx31dnc6%2Fz%2BaQS2UNDUWpebTcEEjBuk1W5odmLS8%3D&pid=mm_41374337_0_0" target="_blank" title="天猫特卖~">天猫大特卖！！</a></li>


<!----------------【首页边栏】最下面的TAB 的更多精彩---------------->


</ul><div style="clear:both"></div></div>  </div></div></div>