<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:32:"./app/index/view/index/cate.html";i:1718966795;s:25:"app/index/view/style.html";i:1602729554;s:26:"app/index/view/header.html";i:1603070136;s:25:"app/index/view/right.html";i:1603070094;s:26:"app/index/view/footer.html";i:1602723076;}*/ ?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title><?php echo $c['title']; ?> | <?php echo $m['name']; ?> | <?php echo set('title'); ?></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="<?php echo $m['keywords']; ?>">
<meta name="description" content="<?php echo c_extract($c['content'],200); ?>">
<link rel="stylesheet" type="text/css" href="<?php echo APP_P; ?>/css/uikit.css?v<?php echo set('zt_b'); ?>"/>
<link href="<?php echo APP_P; ?>/css/w3cdata.css?v<?php echo set('zt_b'); ?>" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<?php echo APP_P; ?>/css/diy.css?v<?php echo set('zt_b'); ?>"/>
<script src="<?php echo APP_P; ?>/js/uikit.js?v<?php echo set('zt_b'); ?>"></script>
<script src="<?php echo APP_P; ?>/js/uikit-icons.js?v<?php echo set('zt_b'); ?>"></script>
<script src="<?php echo APP_P; ?>/js/jquery.min.js?v<?php echo set('zt_b'); ?>"></script>
<style>
<?php echo set('css',2); ?>
</style>
</head>
<body>
<div>
<!-- 顶部 -->
<div class="uk-navbar-container tm-navbar-container" style="position: fixed;top: 0px;width: 100%;z-index: 999;">
<div class="uk-container uk-container-expand">
<nav class="uk-navbar">
<div class="uk-navbar-left logo" uk-tooltip="title: <?php echo set('titles'); ?>; pos: bottom" style="background-image: url(<?php echo set('logo'); ?>);">
<a href="/" class="uk-navbar-item uk-logo">w3cdata.com</a>
</div>
<div class="uk-navbar-right">
<div class="uk-navbar-item uk-visible@m">
<a title="首页" uk-tooltip="title: <?php echo set('title'); ?>; pos: bottom" href="/" class="uk-button uk-button-default tm-button-default uk-icon">
首页
</a>
</div>
<?php $_result=fun_s('cate_admin', array('tid'=>101,'open1'=>2,'open'=>1), 6,'px desc');if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
<div class="uk-navbar-item uk-visible@m">
<a title="<?php echo $v['name']; ?>" uk-tooltip="title: <?php echo $v['name']; ?>; pos: bottom" href="<?php echo $v['lianjie']; ?>" class="uk-button uk-button-default tm-button-default uk-icon">
<?php echo $v['name']; ?>
</a>
</div>
<?php endforeach; endif; else: echo "" ;endif; ?>
<!--搜索-->
<div class="uk-navbar-right" style="margin-right: 0px;" uk-toggle="target: #toggle-model">
<a class="uk-navbar-toggle" href="#modal-ks" uk-search-icon uk-toggle></a>
</div>
<div id="modal-ks" class="uk-flex-top" uk-modal uk-toggle="target: #toggle-model">
<div class="uk-modal-dialog uk-modal-body uk-margin-auto-vertical">
<button class="uk-modal-close-default" type="button" uk-close></button>
<div class="uk-margin">
<div class="uk-search uk-search-default" style="width: 100%;">
<form action="<?php echo url('index/index/soso'); ?>">
<a class="uk-search-icon-flip soso9" uk-search-icon></a>
<input class="uk-search-input inputva9" name="ks" value="<?php echo get('ks',''); ?>" type="search" placeholder="输入关键字开始搜索">
</form>
</div>
</div>
</div>
</div>
<!--搜索结束-->
<a uk-navbar-toggle-icon="" href="#offcanvas" uk-toggle="" class="uk-navbar-toggle uk-hidden@m uk-icon uk-navbar-toggle-icon">
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" data-svg="navbar-toggle-icon">
<rect y="9" width="20" height="2"></rect>
<rect y="3" width="20" height="2"></rect>
<rect y="15" width="20" height="2"></rect>
</svg>
</a>
</div>
</nav>
</div>
</div>
<div style="height: 70px; margin: 0px;"></div>
<!--手机快捷键-->
<div class="model_data" uk-scrollspy="cls: uk-animation-slide-right;" id="toggle-model">
<ul class="uk-nav uk-nav-default tm-nav uk-nav-parent-icon">
<li>
<!-- 收藏 -->
<a class="click_s" data="<?php echo curPageURL(); ?>" url="<?php echo url("index/api/shoucang"); ?>" t_url="javascript:;" > <span uk-icon="icon: heart"></span>
</a>
</li>
<?php if(user('uid')==cookie('uid')): ?>
<li>
<a href="<?php echo url("index/index/shoucang"); ?>"> <span uk-icon="icon: file-text"></span>
</a>
</li>
<li>
<a class="click_s" data="" url="<?php echo url("index/api/out"); ?>" t_url="javascript:location.reload();"> <span uk-icon="icon: sign-in" ></span>
</a>
</li>
<?php else: ?>
<li>
<a href="#login_mail" uk-toggle> <span uk-icon="icon: user"></span>
</a>
</li>
<?php endif; ?>
<li>
<a href="#" uk-scroll> <span uk-icon="icon: chevron-up"></span>
</a>
</li>
<li>
<a href="#offcanvas" uk-toggle=""> <span uk-icon="icon: menu"></span>
</a>
</li>
<li>
<a href="javascript:;" uk-toggle="target: #offcanvas-flipS"> <span uk-icon="icon:thumbnails"></span>
</a>
</li>
</ul>
</div>
<!--分类导航-->
<div id="offcanvas-flipS" uk-offcanvas="flip: true; overlay: true">
<div class="uk-offcanvas-bar">
<div class="uk-width-1-1@s">
<ul class="uk-nav-default uk-nav-parent-icon" uk-nav>
<?php $_result=fun_s('cate', array('open'=>1,'m'=>0), 100,'px desc');if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<li class="uk-parent">
<a href="#"><?php echo $vo['name']; ?></a>
<ul class="uk-nav-sub">
<?php $_result=fun_s('model', array('open'=>1,'tid'=>$vo['id']), 100,'px desc');if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
<li><a href="<?php echo url('index/index/cate',array('html'=>$v['alias'])); ?>"><?php echo $v['name']; ?></a></li>
<?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
</li>
<?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
</div>
</div>
</div>
<!-- 左侧 -->
<div class="tm-sidebar-left uk-visible@m" id="dataDiv">
<!-- 搜索 -->
<div class="uk-margin">
<form action="<?php echo url('index/index/cate',array('html'=>$t['id'])); ?>">
<div class="uk-search uk-search-default" style="width: 100%;">
<button class="uk-search-icon-flip soso" type="submit" uk-search-icon></button>
<input id="inputval" class="uk-search-input inputval" name="soso" value="<?php echo $_GET['soso']; ?>" type="search" placeholder="Search...">
</div>
</form>
</div>
<!-- 搜索结束 -->
<!-- 侧边内容 -->
<?php if(get('soso',0)=='0'): ?>
<!-- 不是搜索 -->
<h3><?php echo $m['name']; if(session('userid')==1): ?> </h3><a target="_blank" href="<?php echo url('admin/index/article',array('id'=>$m['id'])); ?>">管理</a><?php endif; ?>
<ul class="uk-nav uk-nav-default tm-nav uk-margin-top">
<!--菜单-->
<div class="uk-inline" style="width: 100%;">
<button class="uk-button uk-button-default ddd" type="button" style="width: 100%;">
<?php echo $t['name']; ?>
<span uk-icon="icon: chevron-down" class="uk-position-center-right uk-overlay"></span>
</button>
<div uk-drop="pos: bottom-justify">
<div class="uk-card uk-card-body uk-card-default">
<ul class="uk-nav uk-dropdown-nav">
<?php $_result=fun_s('cate', array('tid'=>0,'m'=>$m['id'],'open'=>1), 1000,'px desc');if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
<li class="uk-active"><a class="ddd <?php if(get('html')==$v['id']): ?>w3c_hover<?php endif; ?>" href="<?php echo url('index/index/cate',array('html'=>$v['id'])); ?>"><?php echo $v['name']; ?></a></li>
<!--二级-->
<?php $_result=fun_s('cate', array('tid'=>$v['id'],'m'=>$m['id'],'open'=>1), 1000,'px desc');if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<li><a class="ddd <?php if(get('html')==$vo['id']): ?>w3c_hover<?php endif; ?>" href="<?php echo url('index/index/cate',array('html'=>$vo['id'])); ?>">--<?php echo $vo['name']; ?></a></li>
<?php endforeach; endif; else: echo "" ;endif; endforeach; endif; else: echo "" ;endif; ?>
</ul>
</div>
</div>
</div>
<hr class="uk-divider-icon">
<?php $_result=fun_s($m['alias'], array('tid'=>$t['id'],'m'=>$m['id'],'open'=>1), 1000,'px desc , id asc');if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<li <?php if($vo['id']==$c['id']): ?>class="router-link-exact-active uk-active" id="location"<?php endif; ?>>
<a class="ddd" href="<?php echo url('index/index/cate',array('html'=>$t['id'],'id'=>$vo['id'])); ?>"><?php echo $vo['title']; ?></a>
</li>
<?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
<?php else: ?>
<!-- 是搜索页面 -->
<a href="<?php echo url('index/index/cate',array('html'=>$t['id'])); ?>"><h3><?php echo $m['name']; ?></h3> </a>
<ul class="uk-nav uk-nav-default tm-nav uk-margin-top">
<?php $_result=fun_so($m['alias'], array('tid'=>$t['id']),get('soso'),100,'px desc,id asc');if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<li <?php if($vo['id']==$c['id']): ?>class="router-link-exact-active uk-active" id="location"<?php endif; ?>>
<a class="ddd " href="<?php echo url('index/index/cate',array('html'=>$t['id'],'id'=>$vo['id'])); ?>?soso=<?php echo get('soso'); ?>"><?php echo $vo['title']; ?></a>
</li>
<?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
<?php endif; ?>
</div>
<div class="tm-main uk-section uk-section-default">
<div class="uk-container uk-container-small uk-position-relative">
<div>
<!-- 内容开始 -->
<h1><?php echo $c['title']; ?></h1><?php if(session('userid')==1): ?><a target="_blank" href="<?php echo url('admin/index/articleAe',array('model'=>$m['id'],'id'=>$c['id'])); ?>">编辑</a><?php endif; ?>
<table class="uk-table uk-table-justify uk-table-divider" style="text-align: center;margin-top: 30px;">
<tbody>
<tr>
<td style="width: 50%;">
<!-- 上一页 -->
<?php $_result=fun_sx($m['alias'], array('open'=>1,'tid'=>$c['tid']), $c['id'],0);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<a href="<?php echo url('index/index/cate',array('html'=>$t['id'],'id'=>$vo['id'])); ?>">
<span uk-icon="icon: chevron-left"></span><?php echo $vo['title']; ?>
</a>
<?php endforeach; endif; else: echo "" ;endif; if(!fun_sx($m['alias'], array('open'=>1), $c['id'],0)): ?>没有更多数据<?php endif; ?>
</td>
<td style="width: 50%;">
<!-- 下一页 -->
<?php $_result=fun_sx($m['alias'], array('open'=>1,'tid'=>$c['tid']), $c['id'],1);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<a href="<?php echo url('index/index/cate',array('html'=>$t['id'],'id'=>$vo['id'])); ?>">
<?php echo $vo['title']; ?><span uk-icon="icon: chevron-right"></span>
</a>
<?php endforeach; endif; else: echo "" ;endif; if(!fun_sx($m['alias'], array('open'=>1,'tid'=>$c['tid']), $c['id'],1)): ?>本章完<?php endif; ?>
</td>
</tr>
</tbody>
</table>
<?php if(!fun_sx($m['alias'], array('open'=>1,'tid'=>$c['tid']), $c['id'],1)): ?>
<!--本小章完现在显示同类其他章节.-->
学习其他章节
<?php $_result=fun_s('cate', 'open=1 and m='.$m['id'].'', 100, 'px desc');if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<a class="w3c_bk <?php if(get('html')==$vo['id']): ?>w3c_hover<?php endif; ?>" href="<?php echo url('index/index/cate',array('html'=>$vo['id'])); ?>">
<?php echo $vo['name']; ?>
</a>
<?php endforeach; endif; else: echo "" ;endif; ?>
<hr>
<?php endif; ?>
<?php echo seotag(seo($c['content'])); ?>
<!-- 内容结束 -->
</div>
<!-- PC右侧边开始 -->
<div class="tm-sidebar-right uk-visible@l">
<div uk-sticky="offset: 160" class="uk-sticky uk-active uk-sticky-fixed" style="position: fixed; top: 160px; width: 200px;" uk-scrollspy="cls: uk-animation-slide-right;">
<ul class="uk-nav uk-nav-default tm-nav uk-nav-parent-icon">
<!--<li>-->
<!-- <a href="#"> <span uk-icon="icon: warning" class="uk-margin-small-right uk-icon"></span> <span class="uk-text-middle">错误反馈</span-->
<!-- </a>-->
<!--</li>-->
<li>
<!-- 收藏 -->
<a class="click_s" uk-tooltip="title: 添加到收藏页面; pos: bottom" data="<?php echo $_SERVER['REQUEST_URI']; ?>" url="<?php echo url("index/api/shoucang"); ?>" t_url="javascript:;" > <span uk-icon="icon: heart" class="uk-margin-small-right uk-icon"></span> <span class="uk-text-middle">添加收藏</span>
</a>
</li>
<?php if(user('uid')==cookie('uid')): ?>
<li>
<a uk-tooltip="title: 查看我的收藏夹; pos: bottom" href="<?php echo url("index/index/shoucang"); ?>"> <span uk-icon="icon: file-text" class="uk-margin-small-right uk-icon"></span> <span class="uk-text-middle">我收藏夹</span>
</a>
</li>
<li>
<a class="click_s" data="" uk-tooltip="title: 单击退出登录; pos: bottom" url="<?php echo url("index/api/out"); ?>" t_url="javascript:location.reload();"> <span uk-icon="icon: sign-in" class="uk-margin-small-right uk-icon"></span>
<span class="uk-text-middle">退出登录</span>
</a>
</li>
<?php else: ?>
<li>
<a uk-tooltip="title: 注册登录; pos: bottom" href="#login_mail" uk-toggle> <span uk-icon="icon: user" class="uk-margin-small-right uk-icon"></span>
<span class="uk-text-middle">注册登录</span>
</a>
</li>
<?php endif; ?>
<li>
<a href="#" uk-tooltip="title: 返回顶部; pos: bottom" uk-scroll> <span uk-icon="icon: chevron-up" class="uk-margin-small-right uk-icon"></span>
<span class="uk-text-middle">返回顶部</span>
</a>
</li>
<li>
<a href="javascript:;" uk-tooltip="title: 分类导航; pos: bottom" uk-toggle="target: #offcanvas-flipS"> <span uk-icon="icon: thumbnails" class="uk-margin-small-right uk-icon"></span>
<span class="uk-text-middle">分类导航</span>
</a>
</li>
</ul>
</div>
<div class="uk-sticky-placeholder" style="height: 252px; margin: 0px;"></div>
</div>
<!-- 登录 -->
<div id="login_mail" class="uk-flex-top" uk-modal>
<div class="uk-modal-dialog uk-modal-body uk-margin-auto-vertical">
<button class="uk-modal-close-default" type="button" uk-close></button>
<hr class="uk-divider-icon">
<form id="form">
<div class="uk-margin">
<div class="uk-inline uk-width-1-1">
<span class="uk-form-icon" uk-icon="icon: mail"></span>
<input class="uk-input" type="text" name="mail" placeholder="邮箱">
</div>
</div>
<div class="uk-margin">
<div class="uk-inline uk-width-1-1">
<a style="width: 80px;" class="uk-form-icon uk-form-icon-flip click" form="form" url="<?php echo url("index/api/code"); ?>" t_url="javascript:;" uk-icon="icon: bolt">获取</a>
<input class="uk-input" type="text" name="code" placeholder="邮箱验证码">
</div>
</div>
<a url="<?php echo url("index/api/login"); ?>" t_url="javascript:location.reload();" form="form" class="uk-button uk-button-primary uk-width-1-1 uk-margin-small-bottom click">登录</a>
</form>
</div>
</div>
<!-- PC右侧边结束 -->
<div>
<table class="uk-table uk-table-justify uk-table-divider" style="text-align: center;margin-top: 30px;">
<tbody>
<tr>
<td style="width: 50%;">
<!-- 上一页 -->
<?php $_result=fun_sx($m['alias'], array('open'=>1,'tid'=>$c['tid']), $c['id'],0);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<a href="<?php echo url('index/index/cate',array('html'=>$t['id'],'id'=>$vo['id'])); ?>">
<span uk-icon="icon: chevron-left"></span><?php echo $vo['title']; ?>
</a>
<?php endforeach; endif; else: echo "" ;endif; if(!fun_sx($m['alias'], array('open'=>1), $c['id'],0)): ?>没有更多数据<?php endif; ?>
</td>
<td style="width: 50%;">
<!-- 下一页 -->
<?php $_result=fun_sx($m['alias'], array('open'=>1,'tid'=>$c['tid']), $c['id'],1);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<a href="<?php echo url('index/index/cate',array('html'=>$t['id'],'id'=>$vo['id'])); ?>">
<?php echo $vo['title']; ?><span uk-icon="icon: chevron-right"></span>
</a>
<?php endforeach; endif; else: echo "" ;endif; if(!fun_sx($m['alias'], array('open'=>1,'tid'=>$c['tid']), $c['id'],1)): ?>本章完<?php endif; ?>
</td>
</tr>
</tbody>
</table>
<?php if(!fun_sx($m['alias'], array('open'=>1,'tid'=>$c['tid']), $c['id'],1)): ?>
<!--本小章完现在显示同类其他章节-->
学习其他章节
<?php $_result=fun_s('cate', 'open=1 and m='.$m['id'].'', 100, 'px desc');if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<a class="w3c_bk <?php if(get('html')==$vo['id']): ?>w3c_hover<?php endif; ?>" href="<?php echo url('index/index/cate',array('html'=>$vo['id'])); ?>">
<?php echo $vo['name']; ?>
</a>
<?php endforeach; endif; else: echo "" ;endif; endif; ?>
<!-- 版权信息 -->
<hr class="uk-divider-icon">
<div align="center">
<p uk-margin>
<?php $_result=fun_s('cate_admin', array('tid'=>102,'open1'=>2,'open'=>1), 1000,'px desc');if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
<a title="<?php echo $v['name']; ?>" target="_blank" uk-tooltip="title: <?php echo $v['name']; ?>; pos: bottom" href="<?php echo $v['lianjie']; ?>" class="uk-button uk-button-default uk-button-small">
<?php echo $v['name']; ?>
</a>
<?php endforeach; endif; else: echo "" ;endif; ?>
</p>
</div>
<div style="display:none" align="center">
Copyright © 程序由<a class="banquan" href="http://www.myucms.com/" target="_blank">MYUCMS</a>提供
</div>
<?php echo set('banquan'); ?>
</div>
</div>
<!-- 手机菜单开始 -->
<div id="offcanvas" uk-offcanvas="mode: push; overlay: true" class="uk-offcanvas">
<div class="uk-offcanvas-bar" id="dataDivm">
<div class="uk-panel">
<!-- 搜索 -->
<div class="uk-margin">
<div class="uk-search uk-search-default" style="width: 100%;">
<a class="uk-search-icon-flip soso1" uk-search-icon></a>
<input id="inputval1" class="uk-search-input inputval1" value="<?php echo $_GET['soso']; ?>" type="search" placeholder="Search...">
</div>
</div>
<!-- 搜索结束 -->
<!-- 侧边内容 -->
<?php if(get('soso',0)=='0'): ?>
<!-- 不是搜索 -->
<h3><?php echo $m['name']; if(session('userid')==1): ?> </h3><a target="_blank" href="<?php echo url('admin/index/article',array('id'=>$m['id'])); ?>">管理</a><?php endif; ?>
<ul class="uk-nav uk-nav-default tm-nav uk-margin-top">
<!--菜单-->
<div class="uk-inline" style="width: 100%;">
<button class="uk-button uk-button-default ddd" type="button" style="width: 100%;">
<?php echo $t['name']; ?>
<span uk-icon="icon: chevron-down" class="uk-position-center-right uk-overlay"></span>
</button>
<div uk-drop="pos: bottom-justify">
<div class="uk-card uk-card-body uk-card-default">
<ul class="uk-nav uk-dropdown-nav">
<?php $_result=fun_s('cate', array('tid'=>0,'m'=>$m['id'],'open'=>1), 1000,'px desc');if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
<li class="uk-active"><a class="ddd <?php if(get('html')==$v['id']): ?>w3c_hover<?php endif; ?>" href="<?php echo url('index/index/cate',array('html'=>$v['id'])); ?>"><?php echo $v['name']; ?></a></li>
<!--二级-->
<?php $_result=fun_s('cate', array('tid'=>$v['id'],'m'=>$m['id'],'open'=>1), 1000,'px desc');if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<li><a class="ddd <?php if(get('html')==$vo['id']): ?>w3c_hover<?php endif; ?>" href="<?php echo url('index/index/cate',array('html'=>$vo['id'])); ?>">--<?php echo $vo['name']; ?></a></li>
<?php endforeach; endif; else: echo "" ;endif; endforeach; endif; else: echo "" ;endif; ?>
</ul>
</div>
</div>
</div>
<hr class="uk-divider-icon">
<?php $_result=fun_s($m['alias'], array('tid'=>$t['id'],'m'=>$m['id'],'open'=>1), 1000,'px desc , id asc');if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<li <?php if($vo['id']==$c['id']): ?>class="router-link-exact-active uk-active" id="location"<?php endif; ?>>
<a class="ddd" href="<?php echo url('index/index/cate',array('html'=>$t['id'],'id'=>$vo['id'])); ?>"><?php echo $vo['title']; ?></a>
</li>
<?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
<?php else: ?>
<!-- 是搜索页面 -->
<a href="<?php echo url('index/index/cate',array('html'=>$t['id'])); ?>"><h3><?php echo $m['name']; ?></h3> </a>
<ul class="uk-nav uk-nav-default tm-nav uk-margin-top">
<?php $_result=fun_so($m['alias'], array('tid'=>$t['id']),get('soso'));if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<li <?php if($vo['id']==$c['id']): ?>class="router-link-exact-active uk-active" id="location"<?php endif; ?>>
<a class="ddd " href="<?php echo url('index/index/cate',array('html'=>$t['id'],'id'=>$vo['id'],'soso'=>get('so'))); ?>"><?php echo $vo['title']; ?></a>
</li>
<?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
<?php endif; ?>
</div>
</div>
</div>
<!-- 手机菜单结束 -->
</div>
</body>
<script type="text/javascript">
if(document.getElementById("location")){
var $objTr = $("#location"); //找到要定位的地方
var objTr = $objTr[0]; //转化为dom对象
$("#dataDiv").animate({scrollTop:objTr.offsetTop-200},"slow"); //定位
}
</script>
<!-- 底部脚本 -->
<script src="<?php echo APP_P; ?>/js/highlight.min.js?v<?php echo set('zt_b'); ?>"></script>
<script>hljs.initHighlightingOnLoad();</script>
<!-- 脚本 -->
<?php echo setm('overall'); ?>
<?php echo set('js',2); ?>
<script>
//提交
$(document).on('click', '.click',
function onoutStat(e) {
e.preventDefault();
var url=$(this).attr('url');
var t_url=$(this).attr('t_url');
var form=$(this).attr('form');
$.ajax({
url: url,
type: "POST",//方法类型
dataType: "json",
data: $(form).serialize(),
success: function(data) {
if(data.code == 1){
UIkit.notification({message: data.msg, status: 'success'})
location.href = t_url;
}else{
UIkit.notification({message: data.msg, status: 'warning'})
}
}
,error : function() {
UIkit.notification({message: '异常', status: 'warning'})
}
});
});
//链接触发
$(document).on('click', '.click_s',
function onoutStat(e) {
e.preventDefault();
var url=$(this).attr('url');
var t_url=$(this).attr('t_url');
var data=$(this).attr('data');
$.ajax({
url: url,
type: "POST",//方法类型
dataType: "json",
data: {data},
success: function(data) {
if(data.code == 1){
UIkit.notification({message: data.msg, status: 'success'})
location.href = t_url;
}else{
UIkit.notification({message: data.msg, status: 'warning'})
}
}
,error : function() {
UIkit.notification({message: '异常', status: 'warning'})
}
});
});
</script>
</html>