<?php 
error_reporting(0); 
include("../../../config/os.php");
$fhurl=base64_decode($_GET[fhurl]);
$userid=$_GET[userid];
$type="where userid='$userid'";
$user=queryall(user,$type);
if($user[pb]==1 or $user==null){
$str ="<script>location.href='http://www.baidu.com'</script>";
echo $str;
exit;
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="gb2312">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" type="text/css" href="/mb/7/mui.css">
<link rel="stylesheet" type="text/css" href="/mb/7/weui.min.css">
<link rel="stylesheet" type="text/css" href="/mb/7/example.css">
<link rel="stylesheet" href="/layui/css/houtai.css" media="all" />
<script src="/2019newui/js/jquery.min.js"></script>
<script src="/layui/layui.js" charset="utf-8"></script> 
<title>分类</title>
</head>
<body ontouchstart="">
<div class="container" id="container">
<div class="page home js_show">
<div class="page__bd page__bd_spacing" style="margin-top: 10px;">
<ul>
<?php
$query = mysql_query("SELECT * FROM dlfl WHERE userid='$userid' and yc='1' ");
while($a = mysql_fetch_array($query)) {
?> 
<li>
<span onclick="location.href='<?php echo $fhurl?>?id=<?php echo $a[id]?>'">
<div class="weui-flex js_category">
<p class="weui-flex__item" style="font-size: 20px; font-weight: bold; color: #9ba8b6"><?php echo $a[name]?></p>
<img src="/mb/7/fenlei.png" alt="">
</div>
</span>
</li>
<?php }?>
</ul>
</div>
<div style="height: 60px;"></div>
</div>
</div>
<nav class="mui-bar mui-bar-tab"> 
<a class="mui-tab-item" href="<?php echo $fhurl?>"> <span class="mui-icon"> <img src="/mb/7/shouye.png" alt="" width="100%" /> </span> <span class="mui-tab-label">首页</span> </a> 
<span class="mui-tab-item" onclick="location.href='/fenlei-<?php echo $userid?>-<?php echo $_GET[fhurl]?><?php echo $dshz?>'"> <span class="mui-icon"> <img src="/mb/7/fenlei.png" alt="" width="100%" /> </span> <span class="mui-tab-label">分类</span></span> 
<span class="mui-tab-item" onclick="location.href='/dsyzf-<?php echo $user[mb]?>-<?php echo $_GET[fhurl]?><?php echo $dshz?>'"> <span class="mui-icon"> <img src="/mb/7/wo.png" alt="" width="100%" /> </span> <span class="mui-tab-label">我的</span></span> 
</nav>  
</body>
</html>