<?php
	ini_set("display_errors", 0);
	require ('./inc/lang.php');
	require ('./module.php');
	if(empty($row_wz['id'])){echo "<script language='javascript'>window.location.href='../404.html';</script>";};
	mysql_query("set names utf8");
    $id = $_GET['id'];
		$sql = "update zzdh_wz set view = view+1 where Id = '$id'";
		$result = mysql_query($sql);
?>
<!DOCTYPE html>
<html>
    <head>
	    <meta charset="UTF-8">
	    <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0,minimum-scale=1,maximum-scale=1,user-scalable=no">
        <title><?php echo $row_wz['name'];?>_<?php echo $conf['name'];?></title>
	    <link rel="shortcut icon" type="images/x-icon" href="./favicon.ico"/>
	    <link rel="stylesheet" type="text/css" href="./assets/css/font-awesome-4.7.0/css/font-awesome.css"/>
	    <link rel="stylesheet" type="text/css" href="./assets/css/ozui.min.css"/>
	    <link rel="stylesheet" type="text/css" href="./templates/antidote/css/style.css"/>
    </head>
    <body>
<header class="header fixed">
	<div class="container">
		<div class="nav-bar">
			<span></span>
		</div>
		<a class="logo" href="./">
			<img src="./assets/images/logo.png" alt="<?php echo $conf['name'];?>">
		</a>
	<ul class="nav">
			<?php echo nav();?></ul>
	</div>
</header><div class="banner" data-src="./assets/images/banner.jpg">
    <ul class="search-type">
        <span class="title">搜索</span>
        <li data-type="this" class="active">本站</li>
        <li data-type="baidu">百度</li>
        <li data-type="sogou">搜狗</li>
        <li data-type="360">360</li>
        <li data-type="bing">必应</li>
    </ul>
    <form class="search-main" action="./search.html" method="get">
        <input class="search-input" placeholder="请输入关键词..." name="keyword" required="required">
        <button type="submit" class="search-btn">本站搜索</button>
    </form>
</div>
<div class="container">
    <ul class="sort">
        <li><a href="./"><span>返回首页</span> <i class="fa fa-reply fa-fw"></i></a></li>
<?php
	mysql_query("set names utf8");
	$result = mysql_query("SELECT * FROM zzdh_sort order by sid asc");
	while($row = mysql_fetch_array($result))
    {
?>
<li><a href="sort<?php echo $row['id'];?>.html" class=""><span><?php echo $row['sortname'];?></span> <i class="fa <?php echo $row['icon'];?> fa-fw"></i></a></li>
<?php  }?>
                </ul>
	<div class="card board">
		<span class="icon"><i class="fa fa-map-signs fa-fw"></i></span>
<a href="./">导航首页</a>&nbsp;»&nbsp;<a title="<?php echo $row_wz['sortname'];?>" href="<?php if(empty($row_sortwz['alias'])){echo "../wz{$rows_sortwz['id']}.html";}else{echo "../wz{$rows_sortwz['alias']}.html";};?>"><?php echo $row_wz['sortname'];?></a></div>
	<div class="card">
		<div class="card-body">
<div class="content">
				<h1><?php echo $row_wz['name'];?></h1>
				<em><?php echo $row_wz['time'];?>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $conf['name'];?>&nbsp;&nbsp;&nbsp;&nbsp;已浏览<?php echo $row_wz['view'];?>次</em><br><br>
				<?php echo $row_wz['introduce'];?><br><br>
			</div>
		</div>

	</div>

 </div>
<?php
	require ('./footer.php');
?>