<!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/4AAQSkZJRgABAQEASABIAAD/2wBDABALCwwMDBENDREYEA4QGBwVEREVHCEZGRkZGSEgGRwcHBwZICAlJygnJSAwMDQ0MDBAQEBAQEBAQEBAQEBAQED/2wBDAREQEBITEhYSEhYWEhUSFhwWFxcWHCgcHB0cHCgxJSAgICAlMSwvKCgoLyw2NjExNjZAQD9AQEBAQEBAQEBAQED/wAARCACgANUDASIAAhEBAxEB/8QAGgABAAIDAQAAAAAAAAAAAAAAAAEEAgMFBv/EADgQAAICAQIEAgYJAwUBAAAAAAABAgMEERIFEyExQVEyM1NxkdEUIkJSYYGSoeEVI8EWJGJysfD/xAAZAQEAAwEBAAAAAAAAAAAAAAA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L+QlkQhFykpJLu3Fm258qfhuJKf9SxfCf7GSz8d9m/gOePyavwtA1c7/hP9I5r+5P4E7Q2g1c1+zn8BzZezn8BsbQauZP2c/h/I5k/ZT/8AvzGxsBhvs9lL9vmRus9lL9vmBjl+pkXI+iilbG22Dhy2tfF6F1dkTj5t/YvhkADRUAAAAAYgACURqDGTIGWpi30ZjuMJz+q0Vt7JcCzxK89e3mdK6nQpzjtnF+CaZwZTv+XTL2ejojy6YQ+6kiboqyqUH2kmjWrVoRzUd25/Tn1d/l5+qOnR910+BarjpozTB7rZyXaUmy5Xp27nHg2rrpk6laF3RJm3edkyYtuo1Ne4nUttDPUamBIGRJCBKEggEjIEIkAAAAAAxAAB9jRJm6XYryKZJjCU9Chdnxha4yehfkirfiUW+nWpGGfL00x17Vp5tbXpIoWZDtltpW5eL8C//TcVP1SN0aIR6RjoY8c75rTeMaq8izRJiy61xa8yxsXkNq8i2rryrv8AZxlZkUP69ba80WKuIVeej8n0Ojy15EPGql3rT/Irws9p5T4UnxOEntg9W/I6lVrcUa66K4ejBI3pGuEynmq2xsUjJMwRkbKNqJNaJJ2hsRJrJLbQyBAJGSMjGJkSgAAAAAf/2Q==';
		}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="<?=$listpath.$type.$hzm;?>">首页</a>
				<?php if($page>=2){?><a class="prepage" href="<?=$listpath.$type.$fy.($page-1).$hzm;?>">上一页</a>
				<?php if($page>=3){?><a href="<?=$listpath.$type.$fy.($page-2).$hzm;?>"><?=$page-2;?></a><? }?>
				<a href="<?=$listpath.$type.$fy.($page-1).$hzm;?>"><?=$page-1;?></a><? }else{}?>
				<span><?=$page;?></span>
				<?php if($page<$pagelast){?><a href="<?=$listpath.$type.$fy.($page+1).$hzm;?>"><?=$page+1;?></a>
				<a href="<?=$listpath.$type.$fy.($page+2).$hzm;?>"><?=$page+2;?></a>
				<a  class="nextpage"href="<?=$listpath.$type.$fy.($page+1).$hzm;?>">下一页</a><? }?>
				<a href="<?=$listpath.$type.$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='".$listpath.$type.$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>