<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php echo $webtitle?></title>
<meta name="description" content="<?php echo $webtitle?>，每日精选热门微信文章。关注微信中的热门段子、娱乐、财经、体育、女性、健康、星座、历史、汽车等方面的内容。" />
<link href="<?=TY_SKIN?>/images/base.css" rel="stylesheet" type="text/css" />
<link href="<?=TY_SKIN?>/images/style.css" rel="stylesheet" type="text/css" />
<script src="<?=TY_SKIN?>/images/common_tpl.js" type="text/javascript"></script>
<script src="<?=TY_SKIN?>/images/jquery-1.7.1.js" type="text/javascript"></script>
<script type="text/javascript" src="<?=TY_SKIN?>/images/script.js"></script>
</head>
<body>
<div class="wrapper-outer">
<?php require_once('header.pl');?>
<!--navbar end-->  <div class="wrapper clearfix pt10">
  <div class="con-left"> 
    <div class="articleList">
      <h3 class="main-tit"><span class="tit">最新精彩内容</span><span class="gray-3">专注行业与圈内动态，分享最具价值内容</span></h3>
    </div>
    <!--articleList begin-->
    <ul class="articleCon"> 
	   <?php
if($rows){
	foreach($rows as $row){
		if($row['pic']==''){
			$row['pic']='data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wAARCABMAH4DASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhc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5x+AqhrPiK81t/3z7YgcrEnCj/ABroPAGjSCV9QlUqm0pFnv6n+lAHUa+AdEv8/wDPB/8A0E15HXqXi+8FpoFzk/NKPKUeuev6Zry2gAooooAKKKKACiiigAooooAK6jwb4kXTJDaXLYtpDlXP8De/sa5eloA9nkjjuoSjqssTjkHkMK5+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
 <li class="clearfix">
        <div class="thumb"><a href="{$htmlpath}{$row['id']}{$hzm}" target="_blank"> <img src="{$row['pic']}" width="150" height="100" /> </a></div>
        <div class="mark">
          <h1><a href="{$htmlpath}{$row['id']}{$hzm}" aid="{$row['id']}" target="_blank" title="{$row['title']}">{$mini_title}</a></h1>
          <p class="info">{$mini_content}</p>
        <p class="icogroup"><span class="ico-list"><a href="{$authorpath}{$row['author_id']}{$hzm}">{$row['author']}</a>  <span class="icon icon-02"></span>{$day}</span></p>
          </div>
    </li>
TABLE;
		
}
}
?>
	   
	   
	   
	   
          </ul>
    <div class="bk15"></div>
    <div class="pagination">
    	 <a class="a1">共<?=$pagelast?>页</a>  <a href="<?=$authorpath.$author_id.$hzm;?>">首页</a>
				<?php if($page>=2){?><a class="prepage" href="<?=$authorpath.$author_id.$fy.($page-1).$hzm;?>">上一页</a>
				<?php if($page>=3){?><a href="<?=$authorpath.$author_id.$fy.($page-2).$hzm;?>"><?=$page-2;?></a><? }?>
				<a href="<?=$authorpath.$author_id.$fy.($page-1).$hzm;?>"><?=$page-1;?></a><? }else{}?>
				<span><?=$page;?></span>
				<?php if($page<$pagelast){?><a href="<?=$authorpath.$author_id.$fy.($page+1).$hzm;?>"><?=$page+1;?></a>
				<a href="<?=$authorpath.$author_id.$fy.($page+2).$hzm;?>"><?=$page+2;?></a>
				<a  class="nextpage"href="<?=$authorpath.$author_id.$fy.($page+1).$hzm;?>">下一页</a><? }?>
				<a href="<?=$authorpath.$author_id.$fy.$pagelast.$hzm;?>">尾页</a>
	 <select  onchange=javascript:window.location=this.options[this.selectedIndex].value;>
<option value='0'>跳转</option>
<?php 
for($i=1;$i<=$pagelast;$i++){
echo "<option value='".$authorpath.$author_id.$fy.($i).$hzm."'>第".$i."页</option>";
}
?>
</select></div>
  </div>
  <!--con-left end-->
  <div class="con-right">
<div class="ad-box mb20" align="center" style="background:#00AA98;"><script type="text/javascript" src="<?=TY_SKIN?>/ad/list_right.js"></script></div>
<ul id="sidebar">
	<li style="display:none">
	<h3><span>搜索</span></h3>
	<ul id="logsearch">
	<form name="keyform" method="get" action="http://s.ababb.com/cse/search">
	<input name="s" type="hidden" value="5925946614692606153">
	<input type="text" name="q">
	</form>
	</ul>
	</li>
	<li class="box-b mb20">
    <span class="arrow-right"></span>
    <h3 class="title pt10 pl10"><span>最新文章</span></h3>
	<ul class="ullist2">
	<?php
						$new_rows=$mysql->query("select * from `".$BIAOTOU."content` order by `id` desc limit 0,10");
						for($i=0;$i<=9;$i++){
						
						$new_rowsid=$new_rows[$i]['id'];
						$new_rows[$i]['title']=csubstr(trim($new_rows[$i]['title']),0,20);
							
								echo "<li><a href='{$htmlpath}{$new_rows[$i]['id']}{$hzm}' aid='{$new_rows[$i]['id']}' title='{$new_rows[$i]['title']}'>{$new_rows[$i]['title']}</a></li>";
										
						}
						?>
		
		</ul>
	</li>
	<li class="box-b mb20">
    <span class="arrow-right"></span>
    <h3 class="title pt10 pl10"><span>热门文章</span></h3>
	<ul class="ullist2">
	<?php 
$rows=$mysql->query("select * from `".$BIAOTOU."content` order by `hot` desc limit 0,10");
$day=date("Y-m-d",$rows[$i]['time']);
for($i=0;$i<=9;$i++){
$mini_title=csubstr(trim($rows[$i]['title']),0,20);
echo '<li><a href="'.$htmlpath.$rows[$i]['id'].$hzm.'" target="_blank" title="'.$rows[$i]['title'].'">'.$mini_title.'</a></li>';
}?>
		
		</ul>
	</li>
</ul>

	</div>
</div>
<div class="bk8"></div>
<div class="wrapper ibtad">
    </div>
<!--wrapper end-->
    
</div>
<div style="height:20px; clear:both;"></div>
<!--footer begin-->
<?php require_once('footer.pl');?>
<div id="code"></div>
<div id="code_img"><img src="<?=TY_SKIN?>/images/ewqrcode.png" width="230" /><p class="lh180 pt10">欢迎使用手机扫描访问本站，还可以关注微信哦~</p></div>
<a id="gotop" href="javascript:void(0)"></a>
</body>
</html>