<?php require_once(dirname(__FILE__).'/include/config.inc.php'); 
$cid = empty($cid) ? 2 : intval($cid);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge，chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<?php echo GetHeader(1,$cid); ?>
<meta name="author" content="order by dede58.com"/>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/shake.css" rel="stylesheet">
<link rel="shortcut icon" href="favicon.ico"/>
<!--[if lt IE 9]>
<script src="js/html5shiv.min.js"></script>
<script src="js/respond.min.js"></script>
<link href="css/ie8.css" rel="stylesheet">
<![endif]-->
<!--[if lte IE 6]>
<meta http-equiv="refresh" content="0;url=/no-ie6.html" />
<![endif]-->
<!--[if lte IE 7]>
<meta http-equiv="refresh" content="0;url=/no-ie6.html" />
<![endif]-->

<!-- motorgold.cn Baidu tongji analytics -->
<!-- jinyinqing.com Baidu tongji analytics -->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?deff4bd6bda8a7827d5e18543c785163";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?9e6acaecd812c1b82abd83863b4e10c8";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>

</head>
<body> <?php include_once("baidu_js_push.php") ?>
 <div id="dangqian" style="display:none">news</div>
<!-- header-->
<?php require('header.php'); ?>
<!-- /header-->
<div class="banner text-center">
<?php

		$dopage->GetPage("SELECT * FROM `pmw_imgtext` WHERE id=14");
		while($row = $dosql->GetArray())
		{
		?>
<div class="box hba" style="background-image:url(<?php echo $row['picurl']; ?>)"> </div>
 				<?php
		}
		?>
</div>

<div class="crumbs">
<div class="container">
<div class="btn-group pull-right hidden-xs">
<button type="button" class="btn btn-menu btn-default dropdown-toggle" data-toggle="dropdown">更多菜单 Menu <span class="caret"></span></button>
<ul class="dropdown-menu" role="menu">
<?php 
	$dosql->Execute("SELECT * FROM `#@__infoclass` WHERE parentid=2 ORDER BY orderid ASC");
	while($row = $dosql->GetArray())
	{
		$classname = $row['classname'];
			 ?>
<li><a href="news.php?cid=<?php echo $row['id']?>"><?php echo  $classname?></a></li>
<?php } ?> 
</ul>
</div>
<ol class="breadcrumb">
<li><?php echo GetPosStr($cid); ?></li>
</ol>
</div>
</div>

<div class="neirong">
<article class="container">
<div class="biaoti-sousuo row">
<div class="col-xs-12 col-sm-7 col-md-8 col-lg-9">
<h3 class="ny-bt"><?php echo GetCatName($cid); ?></h3>
</div>

</div>
<div class="row m-x-30"> 
<?php
$sql = "SELECT * FROM `#@__infolist` WHERE (classid=".$cid." OR parentstr LIKE '%,".$cid.",%') AND delstate='' AND checkinfo=true ORDER BY orderid desc";
$dopage->GetPage($sql,5);
while($row = $dosql->GetArray())
{
    $clid=$row['classid'];
	if($row['linkurl']=='' and $cfg_isreurl!='Y') $gourl = 'show.php?cid='.$row['classid'].'&id='.$row['id'];
	else if($cfg_isreurl=='Y') $gourl = 'show-'.$row['classid'].'-'.$row['id'].'-1.html';
	else $gourl = $row['linkurl'];
?> 	
<figure class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
<article class="ny-news"><a href="<?php echo $gourl; ?>" title="<?php echo $row['title']; ?>" target="_blank" class="pull-left pic-link visible-lg"><span class="case-hover"><span class="hover-link"></span></span><img src="<?php echo $row['picurl']; ?>" class="ylw-img-responsive2" alt="<?php echo $row['title']; ?>"></a>
<h4><a href="<?php echo $gourl; ?>" title="<?php echo $row['title']; ?>" target="_blank"><?php echo $row['title']; ?></a></h4>
<p><?php echo ReStrLen($row['description'],50); ?></p>
<?php $row2 = $dosql->GetOne("SELECT * FROM `#@__infoclass` WHERE id=$clid"); ?>
<p><span class="fl"><a href="<?php echo $gourl; ?>"><?php echo $row2['classname']; ?></a></span><span class="sj"><?php echo GetDateMk($row['posttime']); ?></span></p>
</article>
</figure>
<?php } ?>
</div>
<div class="fanye text-center">
<ul class="pagination pagination-lg">
<li><a href="index.php">首页</a></li>
<?php echo $dopage->GetList(); ?>
</ul>
</div>
</article>
</div>
 
<?php require('footer.php'); ?>
 
</body>
</html>
