File: /www/wwwroot/cms.smpolia.com/runtime/temp/a52799da2b7a3418fe59910e56a3f5a9.php
<?php /*a:5:{s:74:"/www/wwwroot/cms.smpolia.com/public/../templates/default/cms/category.html";i:1663926769;s:72:"/www/wwwroot/cms.smpolia.com/public/../templates/default/cms/header.html";i:1663926769;s:71:"/www/wwwroot/cms.smpolia.com/public/../templates/default/cms/sider.html";i:1663926769;s:79:"/www/wwwroot/cms.smpolia.com/public/../templates/default/cms/category_ajax.html";i:1663926769;s:72:"/www/wwwroot/cms.smpolia.com/public/../templates/default/cms/footer.html";i:1663926769;}*/ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php if(isset($SEO['title']) && !empty($SEO['title'])): ?><?php echo htmlentities($SEO['title']); ?><?php endif; ?><?php echo htmlentities($SEO['site_title']); ?></title>
<meta name="keywords" content="<?php echo htmlentities($SEO['keyword']); ?>" />
<meta name="description" content="<?php echo htmlentities($SEO['description']); ?>" />
<link rel="stylesheet" href="/static/modules/cms/css/base.css">
<link rel="stylesheet" href="/static/modules/cms/css/style.css">
<script src="/static/modules/cms/js/jquery.min.js"></script>
<script src="/static/modules/cms/js/jquery.SuperSlide.2.1.3.js"></script>
</head>
<body>
<!--S 头部-->
<div class="header">
<div class="w1200">
<div class="logo fl">
<a href="<?php echo url('cms/index/index'); ?>">
<img src="/static/modules/cms/images/logo.png" alt="" />
</a>
</div>
<div class="topright fr">
<!--S 搜索栏-->
<div class="topbtn fr">
<div class="search-box fr">
<span class="butn hov"><i></i></span>
<div class="share-sub" style="width: 0px;">
<form name="formsearch" action="<?php echo url('cms/index/search'); ?>">
<input class="fl tex" type="text" name="keyword" value="请输入关键字" onfocus="if(this.value==defaultValue)this.value=''" onblur="if(this.value=='')this.value=defaultValue">
<input type="submit" value="" class="fl sub-btn ico">
</form>
</div>
</div>
</div>
<!--E 搜索栏-->
<!--S 导航-->
<div class="nav fl">
<ul class="navlist">
<li <?php if(!isset($catid)): ?>class="hover"<?php endif; ?>><a href="<?php echo url('cms/index/index'); ?>" title="首页">首页</a></li>
<?php $cache = 3600;$cacheID = to_guid_string(['module'=>'cms','action'=>'category','catid'=>'0','cache'=>'3600','order'=>'listorder DESC','num'=>'10','return'=>'data','page'=>0]);if($cache && $_return = Cache::get($cacheID)):$data = $_return;else: $cmsTagLib = \think\Container::get("\\app\\cms\\taglib\\CmsTagLib");if(method_exists($cmsTagLib, "category")):$data = $cmsTagLib->category(['module'=>'cms','action'=>'category','catid'=>'0','cache'=>'3600','order'=>'listorder DESC','num'=>'10','return'=>'data','page'=>0]);if($cache):Cache::set($cacheID, $data, $cache);endif;endif;endif; if(is_array($data) || $data instanceof \think\Collection || $data instanceof \think\Paginator): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<li <?php if(isset($catid) && in_array($catid,explode(',',$vo['arrchildid']))): ?>class='hover'<?php endif; ?>>
<a href="<?php echo htmlentities($vo['url']); ?>" title="<?php echo htmlentities($vo['catname']); ?>"><?php echo htmlentities($vo['catname']); ?></a>
<!--判断是否有子栏目-->
<?php if($vo['child'] == '1'): ?>
<div class="subnav">
<?php $cache = 3600;$cacheID = to_guid_string(['module'=>'cms','action'=>'category','catid'=>$vo['id'],'cache'=>'3600','order'=>'listorder DESC','num'=>'10','return'=>'data','page'=>0]);if($cache && $_return = Cache::get($cacheID)):$data = $_return;else: $cmsTagLib = \think\Container::get("\\app\\cms\\taglib\\CmsTagLib");if(method_exists($cmsTagLib, "category")):$data = $cmsTagLib->category(['module'=>'cms','action'=>'category','catid'=>$vo['id'],'cache'=>'3600','order'=>'listorder DESC','num'=>'10','return'=>'data','page'=>0]);if($cache):Cache::set($cacheID, $data, $cache);endif;endif;endif; foreach($data as $key=>$vo): ?>
<a href="<?php echo htmlentities($vo['url']); ?>" title="<?php echo htmlentities($vo['catname']); ?>"><?php echo htmlentities($vo['catname']); ?></a>
<?php endforeach; ?>
</div>
<?php endif; ?>
</li>
<?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
</div>
<!--E 导航-->
<!--S 会员中心-->
<div class="user fr">
<ul>
<?php if($userinfo): ?>
<li><a href="<?php echo url('member/index/index'); ?>">会员:<?php echo htmlentities($userinfo['username']); ?></a></li>
<li><a href="<?php echo url('member/index/logout'); ?>">退出</a></li>
<?php else: ?>
<li class="log"><a href="<?php echo url('member/index/login'); ?>">登录</a></li>
<li class="reg"><a href="<?php echo url('member/index/register'); ?>">注册</a></li>
<?php endif; ?>
</ul>
</div>
<!--E 会员中心-->
</div>
</div>
<!--E 头部-->
</div>
<style type="text/css">
body {
background: #f6f6f6;
}
</style>
<div class="headline-bg"></div>
<div class="main" style="position: relative;">
<div class="w1200">
<div class="container-top">
<h2><?php echo htmlentities($catname); ?><span><?php echo htmlentities($catdir); ?></span></h2>
<!--S 面包屑 -->
<div class="bread-nav">
<a href="<?php echo url('cms/index/index'); ?>">首页</a>> <?php echo catpos($catid); ?>
</div>
<!--E 面包屑 -->
</div>
<div class="content newsPage">
<!--S 左侧栏目 -->
<div class="content-left">
<h2 class="content-title"><?php echo getCategory($top_parentid,'catname'); ?></h2>
<div class="menu-list">
<?php $cache = 3600;$cacheID = to_guid_string(['module'=>'cms','action'=>'category','catid'=>$top_parentid,'cache'=>'3600','order'=>'listorder DESC','num'=>'10','return'=>'data','page'=>0]);if($cache && $_return = Cache::get($cacheID)):$data = $_return;else: $cmsTagLib = \think\Container::get("\\app\\cms\\taglib\\CmsTagLib");if(method_exists($cmsTagLib, "category")):$data = $cmsTagLib->category(['module'=>'cms','action'=>'category','catid'=>$top_parentid,'cache'=>'3600','order'=>'listorder DESC','num'=>'10','return'=>'data','page'=>0]);if($cache):Cache::set($cacheID, $data, $cache);endif;endif;endif; foreach($data as $key=>$vo): ?>
<a href="<?php echo htmlentities($vo['url']); ?>" class="transition <?php if($vo['id']==$catid): ?>active<?php endif; ?>"><?php echo htmlentities($vo['catname']); ?></a>
<?php endforeach; ?>
</div>
<!--S 联系我们 -->
<div class="content-contact">
<div class="h2bg">
<h2>联系我们</h2>
</div>
<div class="cc-info">
<!--此处变量可以后台配置设置调用-->
<p>手 机:158-88888888</p>
<p>传 真:0512-88888888</p>
<p>邮 箱:admin@admin.com</p>
<p>地 址:江苏省苏州市吴中区某某工业园一区</p>
<!--此处变量可以后台配置设置调用-->
</div>
</div>
<!--E 联系我们 -->
</div>
<!--E 左侧栏目 -->
<!--S 右侧内容 -->
<div class="content-right">
<!--S 文章列表-->
<ul class="list">
<?php
$catid=request()->param('catid/d',0);
if (empty($catid)) {
$cat = request()->param('catdir/s', '');
$catid = getCategory($cat,'id');
}
$page=request()->param('page/d',1);
$offset=($page-1)*5;
$limit="$offset,5";
$cache = 0;$cacheID = to_guid_string(['module'=>'cms','action'=>'lists','catid'=>$catid,'order'=>'listorder DESC','limit'=>$limit,'return'=>'data','page'=>0]);if($cache && $_return = Cache::get($cacheID)):$data = $_return;else: $cmsTagLib = \think\Container::get("\\app\\cms\\taglib\\CmsTagLib");if(method_exists($cmsTagLib, "lists")):$data = $cmsTagLib->lists(['module'=>'cms','action'=>'lists','catid'=>$catid,'order'=>'listorder DESC','limit'=>$limit,'return'=>'data','page'=>0]);if($cache):Cache::set($cacheID, $data, $cache);endif;endif;endif; if(is_array($data) || $data instanceof \think\Collection || $data instanceof \think\Paginator): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<li class="item clearfix">
<a href="<?php echo htmlentities($vo['url']); ?>" title="<?php echo htmlentities($vo['title']); ?>"><img class="fl" src="<?php echo htmlentities((isset($vo['thumb']) && ($vo['thumb'] !== '')?$vo['thumb']:'https://via.placeholder.com/168x126')); ?>" alt="<?php echo htmlentities($vo['title']); ?>">
<div class="time fr"><span class="day"><?php echo htmlentities(date("m-d",!is_numeric($vo['updatetime'])? strtotime($vo['updatetime']) : $vo['updatetime'])); ?></span><span class="year"><?php echo htmlentities(date("Y",!is_numeric($vo['updatetime'])? strtotime($vo['updatetime']) : $vo['updatetime'])); ?></span></div>
<h3><?php echo htmlentities($vo['title']); ?></h3>
<div class="txt"><?php echo htmlentities(str_cut($vo['description'],60)); ?></div>
</a>
</li>
<?php endforeach; endif; else: echo "" ;endif; if(!$__LIST__): ?>
<div class="loadmore loadmore-line loadmore-nodata"><span class="loadmore-tips">暂无更多数据</span></div>
<?php else: ?>
<div class="tc">
<a href="?page=<?php echo $page+1; ?>" data-page="<?php echo htmlentities($page); ?>" class="btn btn-loadmore">加载更多</a>
</div>
<?php endif; ?>
</ul>
<!--E 文章列表-->
</div>
<!--E 右侧内容 -->
</div>
</div>
</div>
<script type="text/javascript">
$(function() {
$(document).on("click", ".btn-loadmore", function() {
var that = this;
var page = parseInt($(this).data("page"));
page++;
$(that).prop("disabled", true);
$.ajax({
url: $(that).attr("href"),
type: "post",
success: function(res) {
$('.list').append(res.data);
$(that).remove();
return false;
},
});
return false;
})
});
</script>
<!--S 底部-->
<div class="footer">
<div class="w1200 clearfix">
<div class="links">
<!--此处可用安装友情链接模块-->
<span>友情链接:</span>
<a href="https://gitee.com/ken678/YZNCMS" target="_blank">源码下载</a>
<a href="https://www.kancloud.cn/ken678/yzncms" target="_blank">手册文档</a>
<a href="https://www.bilibili.com/video/av417106995" target="_blank">视频教程</a>
<a href="https://blog.yzncms.com/" target="_blank">官方博客</a>
<!--此处可用安装友情链接模块-->
</div>
<ul class="botnavlist fl">
<?php $cache = 3600;$cacheID = to_guid_string(['module'=>'cms','action'=>'category','cache'=>'3600','where'=>'id in(1,6,8)','order'=>'listorder DESC','num'=>'4','return'=>'data','page'=>0]);if($cache && $_return = Cache::get($cacheID)):$data = $_return;else: $cmsTagLib = \think\Container::get("\\app\\cms\\taglib\\CmsTagLib");if(method_exists($cmsTagLib, "category")):$data = $cmsTagLib->category(['module'=>'cms','action'=>'category','cache'=>'3600','where'=>'id in(1,6,8)','order'=>'listorder DESC','num'=>'4','return'=>'data','page'=>0]);if($cache):Cache::set($cacheID, $data, $cache);endif;endif;endif; if(is_array($data) || $data instanceof \think\Collection || $data instanceof \think\Paginator): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<li><a href="<?php echo htmlentities($vo['url']); ?>" title="<?php echo htmlentities($vo['catname']); ?>"><?php echo htmlentities($vo['catname']); ?></a>
<div class="drop clearfix">
<!--判断是否有子栏目-->
<?php if($vo['child'] == '1'): $cache = 3600;$cacheID = to_guid_string(['module'=>'cms','action'=>'category','catid'=>$vo['id'],'cache'=>'3600','order'=>'listorder DESC','num'=>'10','return'=>'data','page'=>0]);if($cache && $_return = Cache::get($cacheID)):$data = $_return;else: $cmsTagLib = \think\Container::get("\\app\\cms\\taglib\\CmsTagLib");if(method_exists($cmsTagLib, "category")):$data = $cmsTagLib->category(['module'=>'cms','action'=>'category','catid'=>$vo['id'],'cache'=>'3600','order'=>'listorder DESC','num'=>'10','return'=>'data','page'=>0]);if($cache):Cache::set($cacheID, $data, $cache);endif;endif;endif; if(is_array($data) || $data instanceof \think\Collection || $data instanceof \think\Paginator): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<a href="<?php echo htmlentities($vo['url']); ?>" title="<?php echo htmlentities($vo['catname']); ?>"><?php echo htmlentities($vo['catname']); ?></a>
<?php endforeach; endif; else: echo "" ;endif; ?>
<?php endif; ?>
</div>
</li>
<?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
<div class="qcode fr">
<!--此处变量可以后台配置设置调用-->
<div class="btel fl">
<p class="p2">0512-88888888</p>
<p class="p3">邮 箱:admin@admin.com</p>
<p class="p3">手 机:158-88888888</p>
<p class="p3">地 址:江苏省苏州市吴中区某某工业园一区</p>
</div>
<img class="ewm fr" src="/static/modules/cms/images/erweima.jpg" alt=""></div>
<!--此处变量可以后台配置设置调用-->
</div>
</div>
<div class="copy">
<!--此处变量可以后台配置设置调用-->
<div class="w1200 clearfix">
<p class="fl">Copyright © 2018-2019 某某网络科技有限公司 版权所有 备案号:<a href="https://beian.miit.gov.cn/" target="_blank"><?php echo config('web_site_icp'); ?></a></p>
</div>
<!--此处变量可以后台配置设置调用-->
</div>
<div class="tips">
<div class="w1200">
<p class="tc">【本站素材及资源全来源于互联网,非商业性质,仅供演示和学习,不承担任何版权问题,如果我们侵犯了您的权益,请来信告知,我们会在第一时间处理!】</p>
</div>
</div>
<!--E 底部-->
<script src="/static/modules/cms/js/base.js"></script>
</body>
</html>