content |
<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:42:"./template/default/index/show_product.html";i:1584373672;s:72:"/usr/home/byu7420240001/htdocs/template/default/index/public_header.html";i:1680336670;s:70:"/usr/home/byu7420240001/htdocs/template/default/index/public_left.html";i:1584406106;s:72:"/usr/home/byu7420240001/htdocs/template/default/index/public_footer.html";i:1692010490;}*/ ?>
<!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(strlen($category['seo_title']) != 0): ?><?php echo $category['seo_title']; else: ?><?php echo $category['title']; ?>-<?php echo "郑州中联收获机械有限公司"; endif; ?></title>
<meta name="keywords" content="<?php if(strlen($category['seo_keywords']) != 0): ?><?php echo $category['seo_keywords']; else: ?><?php echo $category['title']; endif; ?>">
<meta name="description" content="<?php if(strlen($category['seo_desc']) != 0): ?><?php echo str2sub($category['seo_desc'],160, true); else: ?><?php echo str2sub($category['desc'],160, true); endif; ?>">
<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
<link type="text/css" rel="stylesheet" href="__PUBLIC__/css/style.css" />
<link rel="stylesheet" href="__PUBLIC__/css/swiper.min.css">
<script type="text/javascript" src="__PUBLIC__/js/Superslide.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/swiper.min.js"></script>
</head>
<body>
<!--top-->
<div class="top0">
<div class="top">
<div class="top_left">欢迎进入
<?php echo "郑州中联收获机械有限公司"; ?>网站
</div>
<div class="top_right">销售电话:<strong>
<?php
$_block = db('block')->where("title='".'head_text3'."'")->find();
$_block = update_str_dq($_block, config('sys.sys_area'));
$_block_content = '';
if ($_block) {
if ($_block['type'] == 2) {
if (!0) {
$_block_content = '<img src="'. $_block['content'] .'" />';
}else {
$_block_content = $_block['content'];
}
}else {
if(0) {
$_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取
}else {
$_block_content = $_block['content'];
}
}
$_blockurl = '';
if ($_block['url']) {
$_blockurl = $_block['url'];
if (substr($_blockurl, 0,1) == '@') {
$_catemodel = new app\index\model\CategoryModel();
$_category = $_catemodel->getOneCategory(substr($_blockurl, 1));
if ($_category) {
$_blockurl = $_catemodel->getCategoryUrl($_category);
}
}
$_block_content= "<a href='".$_blockurl."' target='_blank'>".$_block_content."</a>";
}
}
echo $_block_content;
?> <a href="http://www.zlcombineharvester.com" target="_blank" style="color: #fff;">English</a>
</strong></div>
</div>
</div>
<!--kaishi-->
<div class="nav0">
<div class="nav">
<div class="nav_left">
<a href="/"><img src="<?php echo "/uploads/image/20230329/b00846e064ed574ab8f984125cad1a92.png"; ?>"/></a>
</div>
<div class="nav_right">
<ul class="menu">
<li><a href="/">网站首页</a></li>
<?php
$chkid = isset($cid) ? $cid : 0;
$catid = isset($category) ? $category['pid'] : 0;
$_limit = "10";
$_typeid = intval('1');
$_category = new app\index\model\CategoryModel();
$_navlist = $_category->getCategory('', $_typeid, true);
$_navlist = $_category->unlimitedForLayer($_navlist);
foreach($_navlist as $autoindex => $nav):
$_limit_list = explode(',', $_limit);
if(count($_limit_list) > 1){
if(($autoindex < $_limit_list[0]) || ($autoindex > $_limit_list[1])) continue;
} else{
if($autoindex >= $_limit) break;
}
$navmainurl = $nav['catmainurl'] ? false : true;
$nav['url'] = $_category->getCategoryUrl($nav, [] , $navmainurl);
$nav = update_str_dq($nav, config('sys.sys_area'));
?>
<li <?php if($nav['id'] == $chkid || $nav['id'] == $catid): ?>class="on"<?php endif; ?>><a href="<?php echo $nav['url']; ?>" target="<?php echo $nav['target']; ?>" title="<?php echo $nav['title']; ?>"><?php echo $nav['title']; ?></a>
<ul class="submenu">
<?php if(is_array($nav['child']) || $nav['child'] instanceof \think\Collection || $nav['child'] instanceof \think\Paginator): $i = 0; $__LIST__ = $nav['child'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
<li><a href="<?php echo $v['url']; ?>" title="<?php echo $v['title']; ?>"><?php echo $v['title']; ?></a></li>
<?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
</li>
<?php endforeach;?>
</ul>
</div>
</div>
</div>
<!--jieshu-->
<!--banner-->
<div class="cpzx0" style="background:url(__PUBLIC__/images/barnner.jpg) no-repeat center;"></div>
<!--banner-->
<!--cpzs-->
<div class="cpzs0">
<div class="cpzs">
<!--kaishi-->
<div id="main">
<div class="main1">
<div class="allleft">
<div class="lprolist">
<?php
$_type = "parent";
$_typeid = intval($cid);
$_category = new app\index\model\CategoryModel();
$_catlist = $_category->getCategory(1);
if ($_type == 'parent') {
$_parent = $_category->getParents($_catlist, $_typeid);
$_typeid = $_parent[0]['id'];
}
$type = $_category->getOneCategory($_typeid);
$type['url'] = $_category->getCategoryUrl($type);
$type = update_str_dq($type, config('sys.sys_area'));
?>
<div class="lprolistlogo">
<span class="lprolistlogoy"><?php echo str2sub($type['subtitle'],1); ?></span>
<span class="lprolistlogor">
<span class="lprolistlogor1"><?php echo $type['title']; ?></span><span class="lprolistlogor2"><?php echo $type['subtitle']; ?></span></span></div>
<div class="lprolistcon">
<ul>
<?php
$_limit = "10";
$_cid = intval($category['id']);
$_type = "parent";
$_category = new app\index\model\CategoryModel();
if($_cid == -1) $_cid = input('cid');
$_catlist = $_category->getCategory(1);
if (1 == 0) {
$_catlist = $_category->clearLink($_catlist);//去除外部链接的栏目
}
//type为parent
if ($_type == 'parent') {
$_parent = $_category->getParents($_catlist, $_cid);
$_catlist = $_category->unlimitedForLayer($_catlist, 'child', $_parent[0]['id']);
}else{
//type为top,忽略cid
if($_cid == 0 || $_type == 'top') {
$_catlist = $_category->unlimitedForLayer($_catlist);
}else {
if ($_type == 'self') {
//同级分类
$_typeinfo = $_category->getSelf($_catlist, $_cid );
$_catlist = $_category->unlimitedForLayer($_catlist, 'child', $_typeinfo['pid']);
}else {
//son,子类列表
$_catlist = $_category->unlimitedForLayer($_catlist, 'child', $_cid);
}
}
}
$_limit_list = explode(',', $_limit);
foreach($_catlist as $autoindex => $catlist):
if(count($_limit_list) > 1){
if(($autoindex < $_limit_list[0]) || ($autoindex > $_limit_list[1])) continue;
} else{
if($autoindex >= $_limit_list[0]) break;
}
$catlist = update_str_dq($catlist, config('sys.sys_area'));
?>
<li <?php if($catlist['id'] == $category['id']): ?>class="on"<?php endif; ?>><a href="<?php echo $catlist['url']; ?>"><?php echo $catlist['title']; ?></a></li>
<?php endforeach;?>
</ul>
</div>
<!--zuocelxi-->
<div class="prolistf">
<ul>
<span class="prolistf1">联系中联</span> 咨询电话<br>
<span class="prolistf2"><?php
$_block = db('block')->where("title='".'dianhua'."'")->find();
$_block = update_str_dq($_block, config('sys.sys_area'));
$_block_content = '';
if ($_block) {
if ($_block['type'] == 2) {
if (!0) {
$_block_content = '<img src="'. $_block['content'] .'" />';
}else {
$_block_content = $_block['content'];
}
}else {
if(0) {
$_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取
}else {
$_block_content = $_block['content'];
}
}
$_blockurl = '';
if ($_block['url']) {
$_blockurl = $_block['url'];
if (substr($_blockurl, 0,1) == '@') {
$_catemodel = new app\index\model\CategoryModel();
$_category = $_catemodel->getOneCategory(substr($_blockurl, 1));
if ($_category) {
$_blockurl = $_catemodel->getCategoryUrl($_category);
}
}
$_block_content= "<a href='".$_blockurl."' target='_blank'>".$_block_content."</a>";
}
}
echo $_block_content;
?></span> 邮箱:<a href="mailto:<?php
$_block = db('block')->where("title='".'email'."'")->find();
$_block = update_str_dq($_block, config('sys.sys_area'));
$_block_content = '';
if ($_block) {
if ($_block['type'] == 2) {
if (!0) {
$_block_content = '<img src="'. $_block['content'] .'" />';
}else {
$_block_content = $_block['content'];
}
}else {
if(0) {
$_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取
}else {
$_block_content = $_block['content'];
}
}
$_blockurl = '';
if ($_block['url']) {
$_blockurl = $_block['url'];
if (substr($_blockurl, 0,1) == '@') {
$_catemodel = new app\index\model\CategoryModel();
$_category = $_catemodel->getOneCategory(substr($_blockurl, 1));
if ($_category) {
$_blockurl = $_catemodel->getCategoryUrl($_category);
}
}
$_block_content= "<a href='".$_blockurl."' target='_blank'>".$_block_content."</a>";
}
}
echo $_block_content;
?>"><?php
$_block = db('block')->where("title='".'email'."'")->find();
$_block = update_str_dq($_block, config('sys.sys_area'));
$_block_content = '';
if ($_block) {
if ($_block['type'] == 2) {
if (!0) {
$_block_content = '<img src="'. $_block['content'] .'" />';
}else {
$_block_content = $_block['content'];
}
}else {
if(0) {
$_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取
}else {
$_block_content = $_block['content'];
}
}
$_blockurl = '';
if ($_block['url']) {
$_blockurl = $_block['url'];
if (substr($_blockurl, 0,1) == '@') {
$_catemodel = new app\index\model\CategoryModel();
$_category = $_catemodel->getOneCategory(substr($_blockurl, 1));
if ($_category) {
$_blockurl = $_catemodel->getCategoryUrl($_category);
}
}
$_block_content= "<a href='".$_blockurl."' target='_blank'>".$_block_content."</a>";
}
}
echo $_block_content;
?></a><br>
地址:<br><?php
$_block = db('block')->where("title='".'dizhi'."'")->find();
$_block = update_str_dq($_block, config('sys.sys_area'));
$_block_content = '';
if ($_block) {
if ($_block['type'] == 2) {
if (!0) {
$_block_content = '<img src="'. $_block['content'] .'" />';
}else {
$_block_content = $_block['content'];
}
}else {
if(0) {
$_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取
}else {
$_block_content = $_block['content'];
}
}
$_blockurl = '';
if ($_block['url']) {
$_blockurl = $_block['url'];
if (substr($_blockurl, 0,1) == '@') {
$_catemodel = new app\index\model\CategoryModel();
$_category = $_catemodel->getOneCategory(substr($_blockurl, 1));
if ($_category) {
$_blockurl = $_catemodel->getCategoryUrl($_category);
}
}
$_block_content= "<a href='".$_blockurl."' target='_blank'>".$_block_content."</a>";
}
}
echo $_block_content;
?><br>
</ul>
</div>
<!--zuocelxi-->
</div>
<script type="text/javascript" src="__PUBLIC__/js/jquery.SuperSlide.2.1.1.js"></script>
<div class="rhotpor">
<div class="lprolistlogo"><span class="lprolistlogo1">推荐产品</span><span class="lprolistlogo2">HOT PRODUCT</span></div>
<div class="rhotporcon">
<div class="picScroll-top">
<div class="hd"><a class="next next1"></a><a class="prev prev1"></a></div>
<div class="bd">
<div class="tempWrap">
<ul class="picList">
<?php
$_cid = 1;
$_limit = "4";
$_keyword = -1;
$_flag = '';
$_time = '';
$_areaid = '';//指定地区ID
$_top = '';
$_image = '-1';
$_pagesize = 0;
$_pagecss = 1;
$_tag = -1;
$_sql = "-1";
if($_cid == -1) $_cid = input('cid');
if ($_cid > 0 || substr($_cid, 0, 1) == '$') {
$_category = new app\index\model\CategoryModel();
if (strpos($_cid, ',')) {
$_cidarr = explode(',', $_cid);
$_ids = [];
foreach ($_cidarr as $_k => $_v) {
$_ids = array_merge($_ids, $_category->getChildsId($_category->getCategory(), $_v, true));
}
}else{
$_ids = $_category->getChildsId($_category->getCategory(), $_cid, true);
}
$_where = array('create_time' => array('LT', time()), 'cid'=> array('IN', $_ids));
}else {
$_where = array('create_time' => array('LT', time()));
}
if ($_keyword != -1) {
$_where['title'] = array('LIKE','%'.$_keyword.'%');
}
if ($_flag) {
$_where['istop'] = $_flag;
}
if ($_time) {
$_where['update_time'] = ['GT', time()-$_time];
}
if ($_top) {
$_where['top'] = $_top;
}
if ($_image != -1) {
$_where['pic'] = $_image ? ['NEQ', ''] : ['EQ', ''];
}
if ($_tag != -1) {
$_jgf = ',';
$_jgf = strpos($_tag, ',') ? ',' : $_jgf;
$_taglist = explode($_jgf,$_tag);
if (count($_taglist) > 1) {
$_tagarr = array();
foreach ($_taglist as $_k => $_v) {
$_tagarr[] = ['LIKE','%'.$_v.'%'];
}
$_tagarr[] = 'or';
$_where['tag'] = $_tagarr;
}else{
$_where['tag'] = ['LIKE','%'.$_tag.'%'];
}
}
$_where['create_time'] = ['LT', time()];
//地区独立内容
if ($_areaid) {
$_arealist = explode(',', $_areaid);
$_areawhere = [];
foreach ($_arealist as $key => $value) {
if ($value) {
$_areawhere[] = ['LIKE','%,'.$value.',%'];
}
}
if (count($_areawhere) > 1) {
$_areawhere[] = 'or';
$_where['area'] = $_areawhere;
}else{
$_where['area'] = $_areawhere[0];
}
}else{
$_area = session('sys_areainfo');
if ($_area) {
$_where['area'] = [['exp',' is NULL'],['eq',''],['eq',',,'],['LIKE','%,'.$_area['id'].',%'], 'or'];
}else{
$_where['area'] = [['exp',' is NULL'],['eq',''],['eq',',,'],['LIKE','%,88888888,%'], 'or'];
}
}
$_wheresql = '';
$_pageurlarr = [];
if ($_sql != -1) {
//拼接SQL语句
$_db = db('diyfield');
$_sqlstrlist = explode(" ", $_sql);
$_sqlstr = ' ';
if ($_sqlstrlist) {
foreach ($_sqlstrlist as $key1 => $value1) {
if (is_numeric($value1)) {
$_fieldname = $_db->where(['id'=>$value1])->value('field');
if ($_GET[$_fieldname] != '不限' && $_GET[$_fieldname] != '') {
$_filelist = explode(',', $_GET[$_fieldname]);
$_instr = "";
foreach ($_filelist as $key2 => $value2) {
if ($value2) {
$_instr = $_instr ? $_instr." OR ($_fieldname LIKE '%".$value2."%')" : "($_fieldname LIKE '%".$value2."%')";
}
}
$_sqlstr = $_sqlstr."($_instr) ";
}else{
$_sqlstr = $_sqlstr."( 1 = 1 ) ";
}
$_pageurlarr[$_fieldname] = $_GET[$_fieldname];
}else{
if ($value1 == 'or') {
$_sqlstr = $_sqlstr."or ";
}
if ($value1 == 'and' ) {
$_sqlstr = $_sqlstr."and ";
}
}
}
}
$_wheresql = $_sqlstr;
}
//获取模型别名
$_tabname = "";
if ($_cid != -1 && !empty($_cid)) {
$_mid = db('category')->where(['id'=>$_cid])->value('mid');
$_tabname = db('diymodel')->where(['id'=>$_mid])->value('tabname');
}
$page = "";//分页
if ($_pagesize > 0) {
$_pagearr = [];
switch (config('sys.url_model')) {
case '1'://动态
$param['s'] = request()->pathinfo();
$param = array_merge($param, request()->param());
$_pagearr = ['query' => $param];
break;
case '3'://伪静态
$_pagearr = ['query' => []];
break;
}
$_pagearr['var_link_rows'] = 7;
//存在cid情况
if ($_tabname) {
$_infolist = db('content')
->alias('con')
->join(config('database.prefix').'diy_'.$_tabname.' diy','con.vid = diy.conid')
->where($_where)
->where($_wheresql)
->order("sort desc")
->paginate($_pagesize, false, $_pagearr);
}else{
$_infolist = db('content')
->where($_where)
->order("sort desc")
->paginate($_pagesize, false, $_pagearr);
}
$page = $_infolist->render();
$page = preg_replace("#/([\d]*)page/#", '/page/', $page);
//搜索组合参数
if (config('sys.url_model') == 3 && $_keyword && !isset($_GET['key']) && input('key')) {
$page = str_replace("/page/", '/key/'.input('key').'/page/', $page);
}
if (config('sys.url_model') == 3 && $_area) {
if ($_area['isurl'] == 0) {
//$_ctitle = input('ctitle', '', 'trim');
//$page = str_replace($_ctitle."/", $_area['etitle'].'_'.$_ctitle."/", $page);
}
}
if (!$_pagecss) {
$page = preg_replace('#<style([\s\S]*)</style>#', "", $page);
}
}else {
//存在cid情况
if ($_tabname) {
$_infolist = db('content')
->alias('con')
->join(config('database.prefix').'diy_'.$_tabname.' diy','con.vid = diy.conid')
->where($_where)
->where($_wheresql)
->order("sort desc")
->limit($_limit)
->select();
}else{
$_infolist = db('content')
->where($_where)
->order("sort desc")
->limit($_limit)
->select();
}
}
//组合筛选修改分页URL
if ($_pageurlarr) {
$_ljstr = config('sys.url_model') == '1' ? "&" : "?";
$page = preg_replace('/href=[\'|\"](\S+)[\'|\"]/i', 'href=$1'.$_ljstr.build_query($_pageurlarr), $page);
}
$_content = new app\index\model\ContentModel();
foreach ($_infolist as $k => $list):
$list = $_content->getContentByCon($list);
$list['alltitle'] = $list['title'];
if(20) $list['title'] = str2sub($list['title'], 20, 0);
$list = $_content->getContentArea($list);
$list = update_str_dq($list, config('sys.sys_area'));
?>
<li>
<a href="<?php echo $list['url']; ?>" title="<?php echo $list['pic']; ?>">
<span class="bdimg_"><span class="bdimg1_">
<img src="<?php echo $list['pic']; ?>" alt="<?php echo $list['pic']; ?>"></span></span><span class="bdwz_"><?php echo $list['title']; ?></span>
</a>
</li>
<?php endforeach;?>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript"> jQuery(".picScroll-top").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"top",autoPlay:true,vis:2,trigger:"click"});
</script>
<div id="company">
<div class="zynav">
<ul>
<span class="zynav2">您现在所在的位置: <?php
$_sname = "";
$_cid = $cid;
echo getPosition($_cid, $_sname, "", ">>");
?></span>
</ul>
</div>
<div class="nr">
<div class="pro_content clearfix">
<div class="pro_pic clearfix">
<div class="pc-slide clearfix">
<div class="view clearfix">
<div class="swiper-container swiper-container-horizontal">
<div class="swiper-wrapper">
<div class="swiper-slide img-center">
<div class="imgauto"><img src="<?php echo $content['pic']; ?>" rel="<?php echo $content['pic']; ?>" class="jqzoom" ></div>
</div>
<?php if(is_array(str2arr($content['piclist'],'***')) || str2arr($content['piclist'],'***') instanceof \think\Collection || str2arr($content['piclist'],'***') instanceof \think\Paginator): $i = 0; $__LIST__ = str2arr($content['piclist'],'***');if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
<div class="swiper-slide img-center">
<div class="imgauto"><img src="<?php echo $v; ?>" rel="<?php echo $v; ?>" class="jqzoom" ></div>
</div>
<?php endforeach; endif; else: echo "" ;endif; ?>
</div>
</div>
</div>
<div class="preview clearfix">
<a class="arrow-left" href="javascript:;"></a>
<a class="arrow-right" href="javascript:;"></a>
<div class="swiper-container swiper-container-horizontal">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="imgauto"><img src="<?php echo $content['pic']; ?>"></div>
</div>
<?php if(is_array(str2arr($content['piclist'],'***')) || str2arr($content['piclist'],'***') instanceof \think\Collection || str2arr($content['piclist'],'***') instanceof \think\Paginator): $i = 0; $__LIST__ = str2arr($content['piclist'],'***');if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
<div class="swiper-slide">
<div class="imgauto"><img src="<?php echo $v; ?>"></div>
</div>
<?php endforeach; endif; else: echo "" ;endif; ?>
</div>
</div>
</div>
</div>
<script src="__PUBLIC__/js/swiper.min3.js"></script>
<script>
$('.preview .swiper-slide').eq(0).addClass('active-nav');
var viewSwiper = new Swiper('.view .swiper-container', {
onSlideChangeStart: function() {
updateNavPosition()
}
})
$('.view .arrow-left,.preview .arrow-left').on('click', function(e) {
e.preventDefault()
if (viewSwiper.activeIndex == 0) {
viewSwiper.slideTo(viewSwiper.slides.length - 1, 1000);
return
}
viewSwiper.slidePrev()
})
$('.view .arrow-right,.preview .arrow-right').on('click', function(e) {
e.preventDefault()
if (viewSwiper.activeIndex == viewSwiper.slides.length - 1) {
viewSwiper.slideTo(0, 1000);
return
}
viewSwiper.slideNext()
})
var previewSwiper = new Swiper('.preview .swiper-container', {
//visibilityFullFit: true,
slidesPerView: 'auto',
allowTouchMove: false,
onTap: function() {
viewSwiper.slideTo(previewSwiper.clickedIndex)
}
})
function updateNavPosition() {
$('.preview .active-nav').removeClass('active-nav')
var activeNav = $('.preview .swiper-slide').eq(viewSwiper.activeIndex).addClass('active-nav')
if (!activeNav.hasClass('swiper-slide-visible')) {
if (activeNav.index() > previewSwiper.activeIndex) {
var thumbsPerNav = Math.floor(previewSwiper.width / activeNav.width()) - 1
previewSwiper.slideTo(activeNav.index() - thumbsPerNav)
} else {
previewSwiper.slideTo(activeNav.index())
}
}
}
</script>
</div>
<div class="pro_text">
<h3 class="tit protit"><?php echo $content['title']; ?></h3>
<div class="text clearfix">
<?php echo str2sub($content['content'],100, true); ?>
<a href="javascript:;" class="btn">在线订购</a>
</div>
</div>
</div>
<div class="page_content clearfix">
<div class="page_title clearfix">
<h3>产品详情</h3>
</div>
<div class="content clearfix">
<?php echo sitelink($content['content']); ?>
</div>
</div>
<div class="pro_tag clearfix">
<span>相关标签:</span>
<?php
$_title = $content['tag'];
$_type = 1;
$_limit = "10";
$_infolist = [];
if ($_title != -1) {
$_jgf = ',';
$_jgf = strpos($_title, ',') ? ',' : $_jgf;
$_strlist = explode($_jgf, $_title);
foreach ($_strlist as $k => $v) {
if ($v != "") {
$_infolist[] = ['title'=>$v, 'num'=>1];
}
}
}else{
if ($_type == 1) {
//获取全站tag
$_content = new app\index\model\ContentModel();
$_infolist = $_content->getTaglist();
}else{
//获取全站tag
$_datalist = db('tagurl')->select();
foreach ($_datalist as $k => $v) {
$_infolist[] = ['title'=>$v['tagname'], 'num'=>1];
}
}
}
if ($_limit) {
$_infolist = array_slice($_infolist, 0, $_limit);
}
foreach ($_infolist as $autoindex => $val):
$tag['title'] = $val['title'];
$tag['url'] = getTagurl($val['title']);
$tag['num'] = $val['num'];
?>
<a href="<?php echo $tag['url']; ?>"><?php echo $tag['title']; ?></a>
<?php endforeach;?>
</div>
<div class="show_pages clearfix">
<p>上一篇:<?php echo $content['next']; ?></p>
<p>下一篇:<?php echo $content['prev']; ?></p>
</div>
<div class="page_title clearfix">
<h3>相关产品</h3>
</div>
<div class="hot_pro clearfix">
<div class="pro_list clearfix">
<ul>
<?php
$_cid = $cid;
$_limit = "4";
$_keyword = -1;
$_flag = '';
$_time = '';
$_areaid = '';//指定地区ID
$_top = '';
$_image = '-1';
$_pagesize = 0;
$_pagecss = 1;
$_tag = -1;
$_sql = "-1";
if($_cid == -1) $_cid = input('cid');
if ($_cid > 0 || substr($_cid, 0, 1) == '$') {
$_category = new app\index\model\CategoryModel();
if (strpos($_cid, ',')) {
$_cidarr = explode(',', $_cid);
$_ids = [];
foreach ($_cidarr as $_k => $_v) {
$_ids = array_merge($_ids, $_category->getChildsId($_category->getCategory(), $_v, true));
}
}else{
$_ids = $_category->getChildsId($_category->getCategory(), $_cid, true);
}
$_where = array('create_time' => array('LT', time()), 'cid'=> array('IN', $_ids));
}else {
$_where = array('create_time' => array('LT', time()));
}
if ($_keyword != -1) {
$_where['title'] = array('LIKE','%'.$_keyword.'%');
}
if ($_flag) {
$_where['istop'] = $_flag;
}
if ($_time) {
$_where['update_time'] = ['GT', time()-$_time];
}
if ($_top) {
$_where['top'] = $_top;
}
if ($_image != -1) {
$_where['pic'] = $_image ? ['NEQ', ''] : ['EQ', ''];
}
if ($_tag != -1) {
$_jgf = ',';
$_jgf = strpos($_tag, ',') ? ',' : $_jgf;
$_taglist = explode($_jgf,$_tag);
if (count($_taglist) > 1) {
$_tagarr = array();
foreach ($_taglist as $_k => $_v) {
$_tagarr[] = ['LIKE','%'.$_v.'%'];
}
$_tagarr[] = 'or';
$_where['tag'] = $_tagarr;
}else{
$_where['tag'] = ['LIKE','%'.$_tag.'%'];
}
}
$_where['create_time'] = ['LT', time()];
//地区独立内容
if ($_areaid) {
$_arealist = explode(',', $_areaid);
$_areawhere = [];
foreach ($_arealist as $key => $value) {
if ($value) {
$_areawhere[] = ['LIKE','%,'.$value.',%'];
}
}
if (count($_areawhere) > 1) {
$_areawhere[] = 'or';
$_where['area'] = $_areawhere;
}else{
$_where['area'] = $_areawhere[0];
}
}else{
$_area = session('sys_areainfo');
if ($_area) {
$_where['area'] = [['exp',' is NULL'],['eq',''],['eq',',,'],['LIKE','%,'.$_area['id'].',%'], 'or'];
}else{
$_where['area'] = [['exp',' is NULL'],['eq',''],['eq',',,'],['LIKE','%,88888888,%'], 'or'];
}
}
$_wheresql = '';
$_pageurlarr = [];
if ($_sql != -1) {
//拼接SQL语句
$_db = db('diyfield');
$_sqlstrlist = explode(" ", $_sql);
$_sqlstr = ' ';
if ($_sqlstrlist) {
foreach ($_sqlstrlist as $key1 => $value1) {
if (is_numeric($value1)) {
$_fieldname = $_db->where(['id'=>$value1])->value('field');
if ($_GET[$_fieldname] != '不限' && $_GET[$_fieldname] != '') {
$_filelist = explode(',', $_GET[$_fieldname]);
$_instr = "";
foreach ($_filelist as $key2 => $value2) {
if ($value2) {
$_instr = $_instr ? $_instr." OR ($_fieldname LIKE '%".$value2."%')" : "($_fieldname LIKE '%".$value2."%')";
}
}
$_sqlstr = $_sqlstr."($_instr) ";
}else{
$_sqlstr = $_sqlstr."( 1 = 1 ) ";
}
$_pageurlarr[$_fieldname] = $_GET[$_fieldname];
}else{
if ($value1 == 'or') {
$_sqlstr = $_sqlstr."or ";
}
if ($value1 == 'and' ) {
$_sqlstr = $_sqlstr."and ";
}
}
}
}
$_wheresql = $_sqlstr;
}
//获取模型别名
$_tabname = "";
if ($_cid != -1 && !empty($_cid)) {
$_mid = db('category')->where(['id'=>$_cid])->value('mid');
$_tabname = db('diymodel')->where(['id'=>$_mid])->value('tabname');
}
$page = "";//分页
if ($_pagesize > 0) {
$_pagearr = [];
switch (config('sys.url_model')) {
case '1'://动态
$param['s'] = request()->pathinfo();
$param = array_merge($param, request()->param());
$_pagearr = ['query' => $param];
break;
case '3'://伪静态
$_pagearr = ['query' => []];
break;
}
$_pagearr['var_link_rows'] = 7;
//存在cid情况
if ($_tabname) {
$_infolist = db('content')
->alias('con')
->join(config('database.prefix').'diy_'.$_tabname.' diy','con.vid = diy.conid')
->where($_where)
->where($_wheresql)
->order("id DESC")
->paginate($_pagesize, false, $_pagearr);
}else{
$_infolist = db('content')
->where($_where)
->order("id DESC")
->paginate($_pagesize, false, $_pagearr);
}
$page = $_infolist->render();
$page = preg_replace("#/([\d]*)page/#", '/page/', $page);
//搜索组合参数
if (config('sys.url_model') == 3 && $_keyword && !isset($_GET['key']) && input('key')) {
$page = str_replace("/page/", '/key/'.input('key').'/page/', $page);
}
if (config('sys.url_model') == 3 && $_area) {
if ($_area['isurl'] == 0) {
//$_ctitle = input('ctitle', '', 'trim');
//$page = str_replace($_ctitle."/", $_area['etitle'].'_'.$_ctitle."/", $page);
}
}
if (!$_pagecss) {
$page = preg_replace('#<style([\s\S]*)</style>#', "", $page);
}
}else {
//存在cid情况
if ($_tabname) {
$_infolist = db('content')
->alias('con')
->join(config('database.prefix').'diy_'.$_tabname.' diy','con.vid = diy.conid')
->where($_where)
->where($_wheresql)
->order("id DESC")
->limit($_limit)
->select();
}else{
$_infolist = db('content')
->where($_where)
->order("id DESC")
->limit($_limit)
->select();
}
}
//组合筛选修改分页URL
if ($_pageurlarr) {
$_ljstr = config('sys.url_model') == '1' ? "&" : "?";
$page = preg_replace('/href=[\'|\"](\S+)[\'|\"]/i', 'href=$1'.$_ljstr.build_query($_pageurlarr), $page);
}
$_content = new app\index\model\ContentModel();
foreach ($_infolist as $k => $list):
$list = $_content->getContentByCon($list);
$list['alltitle'] = $list['title'];
if(0) $list['title'] = str2sub($list['title'], 0, 0);
$list = $_content->getContentArea($list);
$list = update_str_dq($list, config('sys.sys_area'));
?>
<li>
<a href="<?php echo $list['url']; ?>">
<div class="imgauto">
<img src="<?php echo $list['pic']; ?>" alt="<?php echo $list['title']; ?>">
</div>
<span><?php echo $list['title']; ?></span>
</a>
</li>
<?php endforeach;?>
</ul>
</div>
</div>
<div class="showarea clearfix">
<h3>相关服务 <span>/service</span></h3>
<div class="list clearfix">
<?php
$_type = "cd";
$_limit = "10";
$_content = new app\index\model\ContentModel();
if (isset($content)) {
$_infolist = [];
$_area = session('sys_areainfo');
$_areaname = $_area ? $_area['stitle'] : "";
$_contitle = $content['title'];
$titlestr = str_replace($content['ys_title'], "**", $_contitle);
$titlestrarr = explode("**", $titlestr);
if (isset($titlestrarr[1]) && $titlestrarr[1] != '') {
$_contitle = str_replace($titlestrarr[1], "", $_contitle);
}
//cd模式 标题+长尾
if ($_type == 'cd') {
$_keywordlist = explode(',', config('sys.seo_cwkeyword'));
foreach($_keywordlist as $autoindex => $keyword):
$info['name'] = $_contitle.$keyword;
$info['url'] = $_content->getContentUrl($content, $info['name']);
$_infolist[] = $info;
endforeach;
}
//bc模式 词头+标题
if ($_type == 'bc') {
$_keywordlist = explode(',', config('sys.seo_ctkeyword'));
foreach($_keywordlist as $autoindex => $keyword):
$info['name'] = $keyword.$_contitle;
$info['url'] = $_content->getContentUrl($content, $info['name']);
$_infolist[] = $info;
endforeach;
}
//bcd模式 词头+标题+长尾
if ($_type == 'bcd') {
$_keywordlist_d = explode(',', config('sys.seo_cwkeyword'));
$_keywordlist_b = explode(',', config('sys.seo_ctkeyword'));
foreach($_keywordlist_b as $autoindex_b => $keyword_b):
foreach($_keywordlist_d as $autoindex_d => $keyword_d):
$info['name'] = $keyword_b.$_contitle.$keyword_d;
$info['url'] = $_content->getContentUrl($content, $info['name']);
$_infolist[] = $info;
endforeach;
endforeach;
}
if ($_limit) {
$_infolist = array_slice($_infolist, 0, $_limit);
}
foreach($_infolist as $autoindex => $keyword):
$cwkeywords['name'] = $keyword['name'];
$cwkeywords['url'] = $keyword['url'];
?>
<a href="<?php echo $cwkeywords['url']; ?>"><?php echo $cwkeywords['name']; ?></a>
<?php endforeach;} ?>
</div>
</div>
<div class="showarea clearfix">
<h3>地区产品<span>/CITY</span></h3>
<div class="list clearfix">
<?php
$_limit = "10";
$_top = intval('0');
$_con = intval('0');
$_url = intval('0');
$_topzm = -1;
$_pid = 0;
$_conurl = intval('');
$_type = '1';
$_where = [];
if ($_top) {
$_where['istop'] = $_top;
}
if ($_con) {
$_where['iscon'] = $_con;
}
if ($_url) {
$_where['isurl'] = $_url;
}
if ($_topzm != -1) {
$_where['etitle'] = ['LIKE', $_topzm.'%'];
}
$_area = session('sys_areainfo');
if ($_type == "current") {
$_where['id']= $_area ? $_area['id'] : '';
}
if ($_type == "province") {
$_where['id']= $_area ? getprovince($_area['id']) : '';
}
if ($_type == -1 || $_type == "group" || $_type == "1" ) {
if ($_pid) {
$_where['pid'] = $_pid;
}else{
if ($_area && !$_conurl) {
$_where['pid'] = $_area['id'];
}else{
$_where['pid'] = 0;
}
}
}
$_where['isopen'] = 1;
$_limit = "10";
$_infolist = db('area')->where($_where)->order("sort asc")->limit($_limit)->select();
if (empty($_infolist)) {
if ($_area && !$_conurl) {
$_where['pid'] = $_area['pid'];
$_infolist = db('area')->where($_where)->order("sort asc")->limit($_limit)->select();
}
}
$_areamodel = new app\index\model\AreaModel();
$_category = new app\index\model\CategoryModel();
$_content = new app\index\model\ContentModel();
foreach($_infolist as $autoindex => $area):
$area['ys_url'] = $_areamodel->getAreaUrl($area);
$area['ys_title'] = $area['title'];
$area['ys_stitle'] = $area['stitle'];
if ($_conurl) {
$area['url'] = $_areamodel->getAreaUrl($area);
}else{
if (isset($content)) {
$_data = $_content->getContentArea($content, $area);
$area['url'] = $_data['url'];
$area['title'] = $area['stitle'].$content['ys_title'];
}else{
if (isset($category)){
$_data = $_category->getCategoryArea($category, $area);
$area['url'] = $_data['url'];
$area['title'] = $area['stitle'].$category['ys_title'];
}else{
$area['url'] = $_areamodel->getAreaUrl($area);
}
}
}
?>
<a href="<?php echo $area['url']; ?>"><?php echo $area['title']; ?></a>
<?php endforeach;?>
</div>
</div>
</div>
</div>
</div>
<!--底部-->
</div>
<!--jeishu-->
</div>
</div>
<!--cozs-->
<!--bt-->
<div class="bt0">
<div class="bt">
<div class="bt_left">
<ul>
<?php
$_type = "parent";
$_typeid = intval(20);
$_category = new app\index\model\CategoryModel();
$_catlist = $_category->getCategory(1);
if ($_type == 'parent') {
$_parent = $_category->getParents($_catlist, $_typeid);
$_typeid = $_parent[0]['id'];
}
$type = $_category->getOneCategory($_typeid);
$type['url'] = $_category->getCategoryUrl($type);
$type = update_str_dq($type, config('sys.sys_area'));
?>
<li><h2><?php echo $type['title']; ?></h2></li>
<?php
$_limit = "5";
$_cid = intval(20);
$_type = "parent";
$_category = new app\index\model\CategoryModel();
if($_cid == -1) $_cid = input('cid');
$_catlist = $_category->getCategory(1);
if (1 == 0) {
$_catlist = $_category->clearLink($_catlist);//去除外部链接的栏目
}
//type为parent
if ($_type == 'parent') {
$_parent = $_category->getParents($_catlist, $_cid);
$_catlist = $_category->unlimitedForLayer($_catlist, 'child', $_parent[0]['id']);
}else{
//type为top,忽略cid
if($_cid == 0 || $_type == 'top') {
$_catlist = $_category->unlimitedForLayer($_catlist);
}else {
if ($_type == 'self') {
//同级分类
$_typeinfo = $_category->getSelf($_catlist, $_cid );
$_catlist = $_category->unlimitedForLayer($_catlist, 'child', $_typeinfo['pid']);
}else {
//son,子类列表
$_catlist = $_category->unlimitedForLayer($_catlist, 'child', $_cid);
}
}
}
$_limit_list = explode(',', $_limit);
foreach($_catlist as $autoindex => $catlist):
if(count($_limit_list) > 1){
if(($autoindex < $_limit_list[0]) || ($autoindex > $_limit_list[1])) continue;
} else{
if($autoindex >= $_limit_list[0]) break;
}
$catlist = update_str_dq($catlist, config('sys.sys_area'));
?>
<li><p><a href="<?php echo $catlist['url']; ?>"><?php echo $catlist['title']; ?></a></p></li>
<?php endforeach;?>
</ul>
<ul>
<?php
$_type = "parent";
$_typeid = intval(21);
$_category = new app\index\model\CategoryModel();
$_catlist = $_category->getCategory(1);
if ($_type == 'parent') {
$_parent = $_category->getParents($_catlist, $_typeid);
$_typeid = $_parent[0]['id'];
}
$type = $_category->getOneCategory($_typeid);
$type['url'] = $_category->getCategoryUrl($type);
$type = update_str_dq($type, config('sys.sys_area'));
?>
<li><h2><?php echo $type['title']; ?></h2></li>
<?php
$_limit = "5";
$_cid = intval(21);
$_type = "parent";
$_category = new app\index\model\CategoryModel();
if($_cid == -1) $_cid = input('cid');
$_catlist = $_category->getCategory(1);
if (1 == 0) {
$_catlist = $_category->clearLink($_catlist);//去除外部链接的栏目
}
//type为parent
if ($_type == 'parent') {
$_parent = $_category->getParents($_catlist, $_cid);
$_catlist = $_category->unlimitedForLayer($_catlist, 'child', $_parent[0]['id']);
}else{
//type为top,忽略cid
if($_cid == 0 || $_type == 'top') {
$_catlist = $_category->unlimitedForLayer($_catlist);
}else {
if ($_type == 'self') {
//同级分类
$_typeinfo = $_category->getSelf($_catlist, $_cid );
$_catlist = $_category->unlimitedForLayer($_catlist, 'child', $_typeinfo['pid']);
}else {
//son,子类列表
$_catlist = $_category->unlimitedForLayer($_catlist, 'child', $_cid);
}
}
}
$_limit_list = explode(',', $_limit);
foreach($_catlist as $autoindex => $catlist):
if(count($_limit_list) > 1){
if(($autoindex < $_limit_list[0]) || ($autoindex > $_limit_list[1])) continue;
} else{
if($autoindex >= $_limit_list[0]) break;
}
$catlist = update_str_dq($catlist, config('sys.sys_area'));
?>
<li><p><a href="<?php echo $catlist['url']; ?>"><?php echo $catlist['title']; ?></a></p></li>
<?php endforeach;?>
</ul>
<ul>
<?php
$_type = "parent";
$_typeid = intval(84);
$_category = new app\index\model\CategoryModel();
$_catlist = $_category->getCategory(1);
if ($_type == 'parent') {
$_parent = $_category->getParents($_catlist, $_typeid);
$_typeid = $_parent[0]['id'];
}
$type = $_category->getOneCategory($_typeid);
$type['url'] = $_category->getCategoryUrl($type);
$type = update_str_dq($type, config('sys.sys_area'));
?>
<li><h2><?php echo $type['title']; ?></h2></li>
<?php
$_limit = "5";
$_cid = intval(84);
$_type = "parent";
$_category = new app\index\model\CategoryModel();
if($_cid == -1) $_cid = input('cid');
$_catlist = $_category->getCategory(1);
if (1 == 0) {
$_catlist = $_category->clearLink($_catlist);//去除外部链接的栏目
}
//type为parent
if ($_type == 'parent') {
$_parent = $_category->getParents($_catlist, $_cid);
$_catlist = $_category->unlimitedForLayer($_catlist, 'child', $_parent[0]['id']);
}else{
//type为top,忽略cid
if($_cid == 0 || $_type == 'top') {
$_catlist = $_category->unlimitedForLayer($_catlist);
}else {
if ($_type == 'self') {
//同级分类
$_typeinfo = $_category->getSelf($_catlist, $_cid );
$_catlist = $_category->unlimitedForLayer($_catlist, 'child', $_typeinfo['pid']);
}else {
//son,子类列表
$_catlist = $_category->unlimitedForLayer($_catlist, 'child', $_cid);
}
}
}
$_limit_list = explode(',', $_limit);
foreach($_catlist as $autoindex => $catlist):
if(count($_limit_list) > 1){
if(($autoindex < $_limit_list[0]) || ($autoindex > $_limit_list[1])) continue;
} else{
if($autoindex >= $_limit_list[0]) break;
}
$catlist = update_str_dq($catlist, config('sys.sys_area'));
?>
<li><p><a href="<?php echo $catlist['url']; ?>"><?php echo $catlist['title']; ?></a></p></li>
<?php endforeach;?>
</ul>
<ul>
<li><h2>联系我们</h2></li>
<li><p>公司地址:<?php
$_block = db('block')->where("title='".'dizhi'."'")->find();
$_block = update_str_dq($_block, config('sys.sys_area'));
$_block_content = '';
if ($_block) {
if ($_block['type'] == 2) {
if (!0) {
$_block_content = '<img src="'. $_block['content'] .'" />';
}else {
$_block_content = $_block['content'];
}
}else {
if(0) {
$_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取
}else {
$_block_content = $_block['content'];
}
}
$_blockurl = '';
if ($_block['url']) {
$_blockurl = $_block['url'];
if (substr($_blockurl, 0,1) == '@') {
$_catemodel = new app\index\model\CategoryModel();
$_category = $_catemodel->getOneCategory(substr($_blockurl, 1));
if ($_category) {
$_blockurl = $_catemodel->getCategoryUrl($_category);
}
}
$_block_content= "<a href='".$_blockurl."' target='_blank'>".$_block_content."</a>";
}
}
echo $_block_content;
?></p></li>
<li><p>销售电话:<?php
$_block = db('block')->where("title='".'xiaoshoudianhua'."'")->find();
$_block = update_str_dq($_block, config('sys.sys_area'));
$_block_content = '';
if ($_block) {
if ($_block['type'] == 2) {
if (!0) {
$_block_content = '<img src="'. $_block['content'] .'" />';
}else {
$_block_content = $_block['content'];
}
}else {
if(0) {
$_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取
}else {
$_block_content = $_block['content'];
}
}
$_blockurl = '';
if ($_block['url']) {
$_blockurl = $_block['url'];
if (substr($_blockurl, 0,1) == '@') {
$_catemodel = new app\index\model\CategoryModel();
$_category = $_catemodel->getOneCategory(substr($_blockurl, 1));
if ($_category) {
$_blockurl = $_catemodel->getCategoryUrl($_category);
}
}
$_block_content= "<a href='".$_blockurl."' target='_blank'>".$_block_content."</a>";
}
}
echo $_block_content;
?></p></li>
<li><p>市场电话:<?php
$_block = db('block')->where("title='".'shichangdianhua'."'")->find();
$_block = update_str_dq($_block, config('sys.sys_area'));
$_block_content = '';
if ($_block) {
if ($_block['type'] == 2) {
if (!0) {
$_block_content = '<img src="'. $_block['content'] .'" />';
}else {
$_block_content = $_block['content'];
}
}else {
if(0) {
$_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取
}else {
$_block_content = $_block['content'];
}
}
$_blockurl = '';
if ($_block['url']) {
$_blockurl = $_block['url'];
if (substr($_blockurl, 0,1) == '@') {
$_catemodel = new app\index\model\CategoryModel();
$_category = $_catemodel->getOneCategory(substr($_blockurl, 1));
if ($_category) {
$_blockurl = $_catemodel->getCategoryUrl($_category);
}
}
$_block_content= "<a href='".$_blockurl."' target='_blank'>".$_block_content."</a>";
}
}
echo $_block_content;
?></p></li>
<li><p>电子商务:<?php
$_block = db('block')->where("title='".'dianzishangwu'."'")->find();
$_block = update_str_dq($_block, config('sys.sys_area'));
$_block_content = '';
if ($_block) {
if ($_block['type'] == 2) {
if (!0) {
$_block_content = '<img src="'. $_block['content'] .'" />';
}else {
$_block_content = $_block['content'];
}
}else {
if(0) {
$_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取
}else {
$_block_content = $_block['content'];
}
}
$_blockurl = '';
if ($_block['url']) {
$_blockurl = $_block['url'];
if (substr($_blockurl, 0,1) == '@') {
$_catemodel = new app\index\model\CategoryModel();
$_category = $_catemodel->getOneCategory(substr($_blockurl, 1));
if ($_category) {
$_blockurl = $_catemodel->getCategoryUrl($_category);
}
}
$_block_content= "<a href='".$_blockurl."' target='_blank'>".$_block_content."</a>";
}
}
echo $_block_content;
?></p></li>
<li><p>售后服务:<?php
$_block = db('block')->where("title='".'sanbaofuwu'."'")->find();
$_block = update_str_dq($_block, config('sys.sys_area'));
$_block_content = '';
if ($_block) {
if ($_block['type'] == 2) {
if (!0) {
$_block_content = '<img src="'. $_block['content'] .'" />';
}else {
$_block_content = $_block['content'];
}
}else {
if(0) {
$_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取
}else {
$_block_content = $_block['content'];
}
}
$_blockurl = '';
if ($_block['url']) {
$_blockurl = $_block['url'];
if (substr($_blockurl, 0,1) == '@') {
$_catemodel = new app\index\model\CategoryModel();
$_category = $_catemodel->getOneCategory(substr($_blockurl, 1));
if ($_category) {
$_blockurl = $_catemodel->getCategoryUrl($_category);
}
}
$_block_content= "<a href='".$_blockurl."' target='_blank'>".$_block_content."</a>";
}
}
echo $_block_content;
?></p></li>
<li><p>人力资源:<?php
$_block = db('block')->where("title='".'renliziyuan'."'")->find();
$_block = update_str_dq($_block, config('sys.sys_area'));
$_block_content = '';
if ($_block) {
if ($_block['type'] == 2) {
if (!0) {
$_block_content = '<img src="'. $_block['content'] .'" />';
}else {
$_block_content = $_block['content'];
}
}else {
if(0) {
$_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取
}else {
$_block_content = $_block['content'];
}
}
$_blockurl = '';
if ($_block['url']) {
$_blockurl = $_block['url'];
if (substr($_blockurl, 0,1) == '@') {
$_catemodel = new app\index\model\CategoryModel();
$_category = $_catemodel->getOneCategory(substr($_blockurl, 1));
if ($_category) {
$_blockurl = $_catemodel->getCategoryUrl($_category);
}
}
$_block_content= "<a href='".$_blockurl."' target='_blank'>".$_block_content."</a>";
}
}
echo $_block_content;
?></p></li>
<li><p>售后服务:<?php
$_block = db('block')->where("title='".'shouhoufuwu'."'")->find();
$_block = update_str_dq($_block, config('sys.sys_area'));
$_block_content = '';
if ($_block) {
if ($_block['type'] == 2) {
if (!0) {
$_block_content = '<img src="'. $_block['content'] .'" />';
}else {
$_block_content = $_block['content'];
}
}else {
if(0) {
$_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取
}else {
$_block_content = $_block['content'];
}
}
$_blockurl = '';
if ($_block['url']) {
$_blockurl = $_block['url'];
if (substr($_blockurl, 0,1) == '@') {
$_catemodel = new app\index\model\CategoryModel();
$_category = $_catemodel->getOneCategory(substr($_blockurl, 1));
if ($_category) {
$_blockurl = $_catemodel->getCategoryUrl($_category);
}
}
$_block_content= "<a href='".$_blockurl."' target='_blank'>".$_block_content."</a>";
}
}
echo $_block_content;
?></p></li>
<li><p>邮 箱:<?php
$_block = db('block')->where("title='".'email'."'")->find();
$_block = update_str_dq($_block, config('sys.sys_area'));
$_block_content = '';
if ($_block) {
if ($_block['type'] == 2) {
if (!0) {
$_block_content = '<img src="'. $_block['content'] .'" />';
}else {
$_block_content = $_block['content'];
}
}else {
if(0) {
$_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取
}else {
$_block_content = $_block['content'];
}
}
$_blockurl = '';
if ($_block['url']) {
$_blockurl = $_block['url'];
if (substr($_blockurl, 0,1) == '@') {
$_catemodel = new app\index\model\CategoryModel();
$_category = $_catemodel->getOneCategory(substr($_blockurl, 1));
if ($_category) {
$_blockurl = $_catemodel->getCategoryUrl($_category);
}
}
$_block_content= "<a href='".$_blockurl."' target='_blank'>".$_block_content."</a>";
}
}
echo $_block_content;
?></p></li>
</ul>
</div>
<div class="bt_right">
<div class="bt_right_1">销售咨询:</div>
<div class="bt_right_2"><?php
$_block = db('block')->where("title='".'dianhua'."'")->find();
$_block = update_str_dq($_block, config('sys.sys_area'));
$_block_content = '';
if ($_block) {
if ($_block['type'] == 2) {
if (!0) {
$_block_content = '<img src="'. $_block['content'] .'" />';
}else {
$_block_content = $_block['content'];
}
}else {
if(0) {
$_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取
}else {
$_block_content = $_block['content'];
}
}
$_blockurl = '';
if ($_block['url']) {
$_blockurl = $_block['url'];
if (substr($_blockurl, 0,1) == '@') {
$_catemodel = new app\index\model\CategoryModel();
$_category = $_catemodel->getOneCategory(substr($_blockurl, 1));
if ($_category) {
$_blockurl = $_catemodel->getCategoryUrl($_category);
}
}
$_block_content= "<a href='".$_blockurl."' target='_blank'>".$_block_content."</a>";
}
}
echo $_block_content;
?></div>
<div class="bt_right_3"><p><a href="">在线咨询</a></p></div>
<div class="bt_right_4"><?php
$_block = db('block')->where("title='".'ewm'."'")->find();
$_block = update_str_dq($_block, config('sys.sys_area'));
$_block_content = '';
if ($_block) {
if ($_block['type'] == 2) {
if (!0) {
$_block_content = '<img src="'. $_block['content'] .'" />';
}else {
$_block_content = $_block['content'];
}
}else {
if(0) {
$_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取
}else {
$_block_content = $_block['content'];
}
}
$_blockurl = '';
if ($_block['url']) {
$_blockurl = $_block['url'];
if (substr($_blockurl, 0,1) == '@') {
$_catemodel = new app\index\model\CategoryModel();
$_category = $_catemodel->getOneCategory(substr($_blockurl, 1));
if ($_category) {
$_blockurl = $_catemodel->getCategoryUrl($_category);
}
}
$_block_content= "<a href='".$_blockurl."' target='_blank'>".$_block_content."</a>";
}
}
echo $_block_content;
?><p>微信客服</p></div>
<div class="bt_right_4"><?php
$_block = db('block')->where("title='".'douyinewm'."'")->find();
$_block = update_str_dq($_block, config('sys.sys_area'));
$_block_content = '';
if ($_block) {
if ($_block['type'] == 2) {
if (!0) {
$_block_content = '<img src="'. $_block['content'] .'" />';
}else {
$_block_content = $_block['content'];
}
}else {
if(0) {
$_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取
}else {
$_block_content = $_block['content'];
}
}
$_blockurl = '';
if ($_block['url']) {
$_blockurl = $_block['url'];
if (substr($_blockurl, 0,1) == '@') {
$_catemodel = new app\index\model\CategoryModel();
$_category = $_catemodel->getOneCategory(substr($_blockurl, 1));
if ($_category) {
$_blockurl = $_catemodel->getCategoryUrl($_category);
}
}
$_block_content= "<a href='".$_blockurl."' target='_blank'>".$_block_content."</a>";
}
}
echo $_block_content;
?><p>官方抖音号</p></div>
<div class="bt_right_4"><?php
$_block = db('block')->where("title='".'kuaishou'."'")->find();
$_block = update_str_dq($_block, config('sys.sys_area'));
$_block_content = '';
if ($_block) {
if ($_block['type'] == 2) {
if (!0) {
$_block_content = '<img src="'. $_block['content'] .'" />';
}else {
$_block_content = $_block['content'];
}
}else {
if(0) {
$_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取
}else {
$_block_content = $_block['content'];
}
}
$_blockurl = '';
if ($_block['url']) {
$_blockurl = $_block['url'];
if (substr($_blockurl, 0,1) == '@') {
$_catemodel = new app\index\model\CategoryModel();
$_category = $_catemodel->getOneCategory(substr($_blockurl, 1));
if ($_category) {
$_blockurl = $_catemodel->getCategoryUrl($_category);
}
}
$_block_content= "<a href='".$_blockurl."' target='_blank'>".$_block_content."</a>";
}
}
echo $_block_content;
?><p>官方快手号</p></div>
</div>
</div>
<div style="width: 1200px; margin: 0 auto;">
友情链接:<?php
$_type = '1';
$_flag = '1';
$_where = [];
if ($_type) {
$_where['type'] = $_type;
}
if ($_flag) {
$_where['pic'] = $_flag == 'true' ? ['NEQ', ''] : ['EQ', ''];
}
//地区独立内容
$_area = session('sys_areainfo');
if ($_area) {
$_where['area'] = [['exp',' is NULL'],['eq',''],['eq',',,'],['LIKE','%,'.$_area['id'].',%'], 'or'];
}else{
$_where['area'] = [['exp',' is NULL'],['eq',''],['eq',',,'],['LIKE','%,88888888,%'], 'or'];
}
$_limit = "35";
$_infolist = db('link')->where($_where)->order("sort desc")->limit($_limit)->select();
foreach ($_infolist as $k => $link):
$link = update_str_dq($link, config('sys.sys_area'));
?>
<a href="<?php echo $link['url']; ?>" target="_blank"><?php echo $link['title']; ?></a> |
<?php endforeach;?>
</div>
</div>
<!--bt-->
<!--ba-->
<div class="ba0">
<div class="ba">
<div class="ba_left"><?php echo "郑州中联收获机械有限公司"; ?></div>
<div class="ba_center">备案号:<?php
$_block = db('block')->where("title='".'beianhao'."'")->find();
$_block = update_str_dq($_block, config('sys.sys_area'));
$_block_content = '';
if ($_block) {
if ($_block['type'] == 2) {
if (!0) {
$_block_content = '<img src="'. $_block['content'] .'" />';
}else {
$_block_content = $_block['content'];
}
}else {
if(0) {
$_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取
}else {
$_block_content = $_block['content'];
}
}
$_blockurl = '';
if ($_block['url']) {
$_blockurl = $_block['url'];
if (substr($_blockurl, 0,1) == '@') {
$_catemodel = new app\index\model\CategoryModel();
$_category = $_catemodel->getOneCategory(substr($_blockurl, 1));
if ($_category) {
$_blockurl = $_catemodel->getCategoryUrl($_category);
}
}
$_block_content= "<a href='".$_blockurl."' target='_blank'>".$_block_content."</a>";
}
}
echo $_block_content;
?> <a href="https://www.zzzlsh.com/qiyedongtai/610.html" target="_blank">营业执照</a></div>
<div class="ba_right"></div>
</div>
</div>
<!--ba-->
<!--产品切换js-->
<script>
$(function(){
function tabs(tabTit,on,tabCon){
$(tabTit).children().hover(function(){ // “hover”是鼠标经过事件,如果想要鼠标点击事件,不要鼠标经过效果, 改成“click”即可。$(tabTit).children().hover(function(){
$(this).addClass(on).siblings().removeClass(on);
var index = $(tabTit).children().index(this);
$(tabCon).children().eq(index).show().siblings().hide();
});
};
tabs(".tab-hd","active",".tab-bd");
});
</script>
<script> jQuery("#item").slide({mainCell:".bd .ulwrap",effect:"left"});</script>
<script type="text/javascript" src="__PUBLIC__/js/js.js"></script>
<div class="qqkefu">
<ul>
<li class="top" style="opacity: 1;"><span></span></li>
<li class="qq_cza"><a href="037164970788"><b class="a"></b><?php
$_block = db('block')->where("title='".'dianhua'."'")->find();
$_block = update_str_dq($_block, config('sys.sys_area'));
$_block_content = '';
if ($_block) {
if ($_block['type'] == 2) {
if (!0) {
$_block_content = '<img src="'. $_block['content'] .'" />';
}else {
$_block_content = $_block['content'];
}
}else {
if(0) {
$_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取
}else {
$_block_content = $_block['content'];
}
}
$_blockurl = '';
if ($_block['url']) {
$_blockurl = $_block['url'];
if (substr($_blockurl, 0,1) == '@') {
$_catemodel = new app\index\model\CategoryModel();
$_category = $_catemodel->getOneCategory(substr($_blockurl, 1));
if ($_category) {
$_blockurl = $_catemodel->getCategoryUrl($_category);
}
}
$_block_content= "<a href='".$_blockurl."' target='_blank'>".$_block_content."</a>";
}
}
echo $_block_content;
?></a></li>
<li class="qq_cza"><a href=""><b class="b"></b>在线咨询</a></li>
<li class="qq_czb"><b class="c"></b>
<div class="erweima" style="display: none;">
<p><?php
$_block = db('block')->where("title='".'ewm'."'")->find();
$_block = update_str_dq($_block, config('sys.sys_area'));
$_block_content = '';
if ($_block) {
if ($_block['type'] == 2) {
if (!0) {
$_block_content = '<img src="'. $_block['content'] .'" />';
}else {
$_block_content = $_block['content'];
}
}else {
if(0) {
$_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取
}else {
$_block_content = $_block['content'];
}
}
$_blockurl = '';
if ($_block['url']) {
$_blockurl = $_block['url'];
if (substr($_blockurl, 0,1) == '@') {
$_catemodel = new app\index\model\CategoryModel();
$_category = $_catemodel->getOneCategory(substr($_blockurl, 1));
if ($_category) {
$_blockurl = $_catemodel->getCategoryUrl($_category);
}
}
$_block_content= "<a href='".$_blockurl."' target='_blank'>".$_block_content."</a>";
}
}
echo $_block_content;
?></p>
<i class="arrow3"></i></div>
</li>
</ul>
</div><script>
(function(){
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
</script>
<!--jieshu-->
<script language="javascript" src="https://byt.zoosnet.net/JS/LsJS.aspx?siteid=BYT61800525&float=1&lng=cn"></script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?cce9cb386ad57fcf56b2f3f689aeb891";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<script src="__PUBLIC__/js/jquery.imagezoom.min.js"></script>
<div id="message">
<div class="messagebg"></div>
<div class="m-content">
<div class="m-message">
<form id="myform1" method="post" action="<?php echo "https://www.zzzlsh.com/myform/"; ?>">
<input type="hidden" name="__token__" value="<?php echo \think\Request::instance()->token(); ?>" >
<input type="hidden" name="__formid__" value="1" >
<input type="hidden" name="__returntype__" value="default" >
<label>
<span>留言标题:</span>
<input class="inp protitle" type="text" name="biaoti" value="">
<em>*</em>
</label>
<label>
<span>你的姓名:</span>
<input class="inp" type="text" name="name" value="">
</label>
<label>
<span>联系电话:</span>
<input class="inp" type="tel" name="phone" value="">
</label>
<label>
<span>电子邮箱:</span>
<input class="inp" type="email" name="email" value="">
</label>
<label>
<span>联系地址:</span>
<input class="inp" type="text" name="address" value="">
</label>
<label class="mes">
<span>留言内容:</span>
<textarea name="yuanwang"></textarea>
</label>
<label class="code clearfix">
<span>验证码:</span>
<input type="text" name="__captcha1__" value="" >
<img src="<?php echo "https://www.zzzlsh.com/captcha/1"; ?>" onclick="this.src='<?php echo "https://www.zzzlsh.com/captcha/1"; ?>'" />
</label>
<div class="btn-1">
<input class="focus" type="button" onclick="login()" value="提交">
<input type="reset" value="重置">
</div>
</form>
<script type="text/javascript">
function GetRequestParameters() {
var url = location.search; //获取url中"?"符后的字串
var theRequest = new Object();
if (url.indexOf("?") != -1) {
var str = url.substr(1);
var strs = str.split("&"); //将所有参数拆分放入数组
for (var i = 0; i < strs.length; i++) { //遍历参数数组
theRequest[strs[i].split("=")[0]] = decodeURIComponent(strs[i].split("=")[1]);
}
}
return Parameters;
}
</script>
</div>
</div>
</div>
<script type="text/javascript">
var inptext = $('.protit').html();
$('.btn').click(function(){
$('#message').css({
"transform":"scale(1)",
"transition":".5s"
});
$('.protitle').val(inptext);
})
$('.messagebg').click(function(){
$('#message').css({
"transform":"scale(0)",
"transition":".5s"
});
})
function login() {
$.ajax({
type: "POST",
dataType: "json",
url: "/myform/",
data: $('#myform1').serialize(),
success: function (result) {
console.log(result);
if (result.status == "success") {
$('#myform1')[0].reset();
$('#message').css({
"transform":"scale(0)",
"transition":".5s"
});
alert("提交成功");
$('.messagebg').click(function(){
$('#message').css({
"transform":"scale(0)",
"transition":".5s"
});
})
}else {
alert(result.msg);
}
},
});
}
</script>
<script type="text/javascript">
$(".jqzoom").imagezoom();
var $zoom = $('.jqzoom');
$('.yunu-showcase-pic').slide({
titCell: '.hd ul',
mainCell: '.bd ul',
autoPage: true,
effect: 'left',
vis: 3
}).on('mouseenter', '.bd li', function () {
var src = $(this).find('img').attr('src');
$zoom.attr('src', src);
$zoom.attr('rel', src);
$(this).addClass('active').siblings().removeClass('active');
}).find('li').eq(0).addClass('active');
</script>
</body>
</html>
|