<?php require_once(dirname(__FILE__) . '/../include/config.inc.php');
$id = isset($id)?$id:18;
$nowlist = $dosql->GetOne("SELECT * FROM `#@__infolist` WHERE id=$id AND checkinfo=true");
$hits = $nowlist['hits']+1;
$dosql->ExecNoneQuery("UPDATE `#@__infolist` SET hits=$hits WHERE id=$id");
$active = 104;?>
<!DOCTYPE html>
<html>
	<head>
		<title><?php echo $nowlist['title'].'_'.$cfg_webname;?></title>
    	<meta name="keywords" content="<?php echo $nowlist['keywords'];?>" />
    	<meta name="description" content="<?php echo $nowlist['description'];?>" />
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no" />
		<meta name="renderer" content="webkit" />
		<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
		<meta name="format-detection" content="telephone=no" />
		<meta name="author" content="design by www.jerei.com" />
		<link rel="shortcut icon" href="/en/static/image/favicon.ico" />
		<link href="/en/static/css/ui.css" rel="stylesheet" />
		<link href="/en/static/css/style.css" rel="stylesheet" />
		<link href="/en/static/css/responsive.css" rel="stylesheet" />
		<link href="/en/static/css/header.css" rel="stylesheet" />
		<!--[if lt IE 9]><script src="/en/static/js/H5shiv.js"></script><![endif]-->
		<!-- <script src="/en/static/js/sea.js" id="seajsnode"></script>
		<script src="/en/static/js/seajs.config.js" id="seajsConfig" domain="http://www.kuntye.com"></script> -->
	</head>
	<body>
		<?php require_once( 'common/header.php');?>
		<!-- banner -->
		<div class="banner">
			<img src="/<?php echo GetCatPic(104);?>" alt="" style="width:100%"/>
			<div class="titles">
				<h3><?php echo GetCatDes(104);?></h3>
			</div>
		</div>
		<!-- banner end -->
		<section class="channel_content news_detail">
			<div class="wrap fix">
				<div class="detail_l l">
					<div class="l_box">
						<h2 class="news_title"><?php echo $nowlist['title'];?></h2>
						<div class="l_tools">
							<span class="news_time">Time：<?php echo time2date($nowlist['posttime'],17);?></span>
							<span class="news_time">Click-through rate：<?php echo $nowlist['hits'];?></span>
						</div>
						<div class="news_text myart">
							<?php echo $nowlist['content'];?>
						</div>
					</div>
				</div>
				<div class="detail_r r">
					<div class="r_box">
						<?php
			            $prev = $dosql->GetOne("SELECT id,title,posttime FROM `#@__infolist` WHERE classid= ".$nowlist['classid']." AND posttime>=".$nowlist['posttime']." AND id<> ".$nowlist['id']."  AND delstate='' AND checkinfo=true  ORDER BY posttime ASC"); 
						$next = $dosql->GetOne("SELECT id,title,posttime FROM `#@__infolist` WHERE classid= ".$nowlist['classid']." AND posttime<=".$nowlist['posttime']." AND id<> ".$nowlist['id']."  AND delstate='' AND checkinfo=true  ORDER BY posttime DESC");
			            if(empty($prev)){?>
				            <a href="javascript:;" class="arr_box arr_prev">
								<h4 class="arr_title transition03">Previous post</h4>
								<h3 class="arr_news_title">无</h3>
								<!-- <span class="arr_time">2020.03.03</span> -->
							</a>
			            <?php }else{ ?>
			                <a href="/en/news_page/<?php echo $prev['id'];?>.html" class="arr_box arr_prev">
								<h4 class="arr_title transition03">Previous post</h4>
								<h3 class="arr_news_title"><?php echo $prev['title'];?></h3>
								<span class="arr_time"><?php echo time2date($prev['posttime'],17);?></span>
							</a>
			            <?php }
			            if(empty($next)){?>
			                <a href="javascript:;" class="arr_box arr_next">
								<h4 class="arr_title transition03">Next item</h4>
								<h3 class="arr_news_title">无</h3>
								<!-- <span class="arr_time">2020.12.24</span> -->
							</a>
			            <?php }else{?>
			                <a href="/en/news_page/<?php echo $next['id'];?>.html" class="arr_box arr_next">
								<h4 class="arr_title transition03">Next item</h4>
								<h3 class="arr_news_title"><?php echo $next['title'];?></h3>
								<span class="arr_time"><?php echo time2date($next['posttime'],17);?></span>
							</a>
			            <?php } ?>
						<div class="share_box">
							<h3 class="share_title">Share to</h3>
							<div class="bdsharebuttonbox newdetail_share" data-tag="newdetail_share" style="position:relative;">								
								<a class="bds_weixin iconfont"  href="javascript:;">&#xe613;</a>			
								<a class="bds_tsina iconfont" href="<?php echo GetCatLink(1029);?>" target="_blank">&#xe6b1;</a>
								<a class="bds_sqq iconfont" href="<?php echo GetCatLink(1030);?>" target="_blank">&#xe678;</a>
								<img  src="/<?php echo InfoPic(1028);?>" class="ewm">
							</div>
							<a href="/en/news/" class="black_list">Return to List</a>
						</div>
					</div>
				</div>
			</div>
		</section>
		<?php require_once( 'common/footer.php');?>
		<script src="/en/static/js/jquery.min.js"></script>
		<script src="/en/static/js/header.js"></script>
	
		<script>
			$(".product_banner .con_tab").find("ul li").hover(function(){
				var index=$(this).index();
				console.log(index);
			
				var tops=20 + (index - 1 ) * 115+"px";
				$(this).parents("ul").find(".dh").css("top",tops);
				console.log($(this).parents("ul").find(".dh"));
			})
		</script>
	</body>
</html>

