<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
<meta charset="utf-8">
<title><?php echo $webtitle?></title>
<base href="<?=TY_URL?>/">
<meta name="keywords" content="<?php echo $webtitle?>,微信公众平台,微信内容,公众账号,微信聚合,微信头条,微精选,微信精选,推荐公众账号">
<meta name="description" content="<?php echo $webtitle?>一个阅读微信文章的网站！">
<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
<link rel="stylesheet" type="text/css" href="<?=TY_SKIN?>/m/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="<?=TY_SKIN?>/m/bootstrap-responsive.css">
<link rel="stylesheet" type="text/css" href="<?=TY_SKIN?>/m/wap201311.css">
<link rel="stylesheet" type="text/css" href="<?=TY_SKIN?>/images/029d201505.css">
</head>
<body>
<?php require_once('mheader.pl');?>
<div class="row-fluid">
<div class="span12">
<?php
if($rows){
	foreach($rows as $row){
		if($row['pic']==''){
			$row['pic']='data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wAARCABMAH4DASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8Q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kHkMK5+68BaZcOWTzbfPZGyP1zXGaX4mv8ASFCQy7oh/wAspBuX8PT8K3Y/iPKF/eWKMfVZCP6GgDYs/A2mWrhnWS4I7Stx+QxW87x20JZisUSDkngAVxE3xGnZf3VlGjeruW/oK5/VNfvtXOLmYlB0jXhR+FAF3xZ4h/tu7CRZFrFwmf4j3NYNFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQB//Z';
		}else{
			$row['pic']="http://img01.store.sogou.com/net/a/04/link?appid=100520031&url={$row['pic']}";
		}
		$today=date(Ymd,time());
		$day=date("Ymd",$row['time']);
		$Seconds = time() - $row['time'];
		if($day==$today){
		if($Seconds < 60){$day=$Seconds . '&nbsp;秒前';}
        elseif($Seconds < 3600){$day=round($Seconds / 60, 0) . '&nbsp;分钟前';
        }else{ $day='今天'.date("H:i",$row['time']);}}else{$day=date("Y年m月d日H:i",$row['time']);}
		$mini_title=csubstr(trim($row['title']),0,20);
				
		$mini_content=csubstr(mini($row['content']),0,50).'...';
		
		$rowsid=$row['id'];
print <<<TABLE
<div class=" box "><a name="a{$row['id']}"></a><a href="{$htmlpath}{$row['id']}{$hzm}" aid="{$row['id']}" class="open" target="_blank" title="{$row['title']}"><h3>{$mini_title}</h3><p class="">{$mini_content}</p></a><div class="source_info"><span>来源：<a href="{$authorpath}{$row['author_id']}{$hzm}">{$row['author']}</a></span><span> 发表于 {$day}</span></div></div>
TABLE;
}
}
?>	
<div id="box-more"></div>
</div></div>
<div style="display:none"><?=$tongji?></div>
<script src="<?=TY_SKIN?>/m/jquery.min.js"></script>
<script src="<?=TY_SKIN?>/m/jquery.cookie.js"></script>
<script>
		$(function() {
			var page_num = 1;
			var ident = true;
				var height_rate = 1.8;
				$(window).scroll(function(){
					//if($(document).height() - $(window).scrollTop() < $(window).height()*height_rate){
					if($(document).scrollTop()>=$(document).height()-$(window).height() - 1200 && ident){
						 page_num = page_num + 1;
						 ident = false;
                     $.get("/mgetlist.php?type=<?=$type?>", { page: page_num },function(response){
						ident = true;
							if(response == ''){
								ident = false;
							}else{
                                $(".box").last().after(response);
                            }
						 },'html' );
					}
				});
            $(document).on('click','.box a.open',function(){
                var aid = $(this).attr('aid');
                var cname = 'a' + aid;
                if(!$(this).hasClass("wx-readed")){
                    $(this).parents('.box').css('background','#B7B7B7');
                    $(this).parents('.box').addClass('wx-readed');
                    $.cookie(cname, '1');
                }
               // window.location.hash = cname;
            });
            });
        /* <![CDATA[ */
        (new SidebarFollow()).init({
            element: jQuery('#sidebar-follow'),
            distanceToTop: 0
        });
        /* ]]> */
</script></body></html>