[2] ErrorException in File.php line 32

file_put_contents(): Only 0 of 58516 bytes written, possibly out of free disk space

  1. */
  2. public function write($cacheFile, $content)
  3. {
  4. // 检测模板目录
  5. $dir = dirname($cacheFile);
  6. if (!is_dir($dir)) {
  7. mkdir($dir, 0755, true);
  8. }
  9. // 生成模板缓存文件
  10. if (false === file_put_contents($cacheFile, $content)) {
  11. throw new Exception('cache write error:' . $cacheFile, 11602);
  12. }
  13. }
  14. /**
  15. * 读取编译编译
  16. * @param string $cacheFile 缓存的文件名
  17. * @param array $vars 变量数组
  18. * @return void

Exception Datas

Error Context
cacheFile
/home/kanghui456mkpacndgwhvueid4c516/wwwroot/caches/temp/9152458f8d6ef7347025a12456bf5676.php
content
<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:84:"/home/kanghui456mkpacndgwhvueid4c516/wwwroot/template/default/index/index_index.html";i:1543980440;s:86:"/home/kanghui456mkpacndgwhvueid4c516/wwwroot/template/default/index/public_header.html";i:1561517635;s:86:"/home/kanghui456mkpacndgwhvueid4c516/wwwroot/template/default/index/public_footer.html";i:1566542093;}*/ ?> <!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 echo "洗筐机托盘ope电竞官网,鸡胸肉切片机,猪蹄烧毛机"; ?>-<?php echo "诸城市康汇机械有限公司"; ?></title> <meta name="keywords" content="<?php echo "洗筐机托盘ope电竞官网,鸡胸肉切片机,猪蹄烧毛机"; ?>"> <meta name="description" content="<?php echo "诸城市康汇机械有限公司是专业从事千页豆腐斩拌机,根茎ope电竞官网,风干式洗筐机,大姜ope电竞官网,冻肉解冻机,盐水注射机,拌馅机,真空拌馅机,蔬菜清洗设备,真空滚揉机,灌肠机等肉类加工机械开发、设计、制造及销售的现代化企业。"; ?>"> <link href="/skin/css/indexs.css" rel="stylesheet" type="text/css" /> <script src="/skin/js/index.js" type="text/javascript"></script> <script type="text/javascript"> SKIN_PATH = "/Skins/default/";</script> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="/skin/js/jquery.js"></script> </head> <body> <div class="header"> <div class="header_top"> <div class="container"> <div class="top_nav"> <a href="&rvpu;/mjboyjxpnfo/&rvpu;" class="first">联系我们</a> <a href="http://<?php rel="nofollow" echo "www.kanghuijixie.com"; ?>/sitemap.xml" target="_blank">网站地图</a> <a href="javascript:addBookmark()" class="last">收藏本站</a> </div> </div> </div> <div class="header_center container"> <dl class="logo"> <dt> <a href="&rvpu;/&rvpu;&hu;μjnh" src="<?php echo "/uploads/image/20181130/999632c842a4b154ee484de5c61219f5.jpg"; ?>" alt="<?php echo "诸城市康汇机械有限公司"; ?>" width="121" height="73" /></a> </dt> <dd> <h2>康汇 &#12539; 食品机械生产供应商</h2> <p>集研发、设计、生产和销售于一体的源头厂家</p> </dd> </dl> <div class="header_phone"> <a href="https://zckanghui.1688.com/"><img rel="nofollow" src="/skin/picture/header_01.png" /> </a> <h3><p>全国咨询热线</p><?php $_block = db('block')->where("title='".'shouji'."'")->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="&rvpu;.$_cmpdlvsm.&rvpu;" target='_blank'>".$_block_content."</a>"; } } echo $_block_content; ?></h3> </div> </div> <div class="header_nav "> <ul class="container"> <li> <a href="&rvpu;/&rvpu;" class="first">首页</a></li> <?php $_limit = "10"; $_typeid = intval('1'); $_category = new app\index\model\CategoryModel(); $_navlist = $_category->getCategory('', $_typeid, false); $_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><a href="&rvpu;μ?qiq" echo $nav['url']; ?>"><?php echo $nav['title']; ?></a></li> <?php endforeach;?> </ul> </div> </div> <script type="text/javascript"> if (MARK == "") var MARK = "index"; initCommonHeaderKeywords(MARK); $(function () { var cururl = location.href; var i = 0; var count = $(".header_nav li").length; $(".header_nav li").each(function (index) { var url = $(this).find("a").attr("href"); if (url.length > 5 && cururl.substring(cururl.length - url.length).toUpperCase() == url.toUpperCase()) { $(this).addClass("cur"); return; } i++; }); if (i == count) { $(".header_nav li:eq(0)").addClass("cur"); } }); </script> <!--banner--> <div id="flashs"> <?php $_type = '1'; $_where = []; if ($_type) { $_where['type'] = $_type; } $_limit = "5"; $_infolist = db('banner')->where($_where)->order("sort desc")->limit($_limit)->select(); foreach ($_infolist as $k => $banner): $banner = update_str_dq($banner, config('sys.sys_area')); ?> <div title="<?php echo $banner['title']; ?>" alt="<?php echo $banner['title']; ?>" onclick="window.open('<?php echo $banner['url']; ?>')" class="bgitem" id="flashbg<?php echo $k; ?> " style="background: url('<?php echo $banner['pic']; ?>') no-repeat scroll center top;height: 591px; width: 100%; cursor: pointer; margin: 0 auto;"> </div> <?php endforeach;?> </div> <script type="text/javascript" src="/skin/js/flash.js"></script> </div> <!--end banner--> </br></br> <!--产品中心--> <div class="product container"> <div class="product_l"> <h3> <a href=""/chanpinzhanshi/">产品展示</a></h3>" <div class="product_menu"> <?php $_limit = "9"; $_cid = intval(129); $_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')); ?> <dl> <dt> <a href="&rvpu;μ?qiq" echo $catlist['url']; ?>"><?php echo $catlist['title']; ?></a> </dt> <dd> <?php if(is_array($catlist['child']) || $catlist['child'] instanceof \think\Collection || $catlist['child'] instanceof \think\Paginator): $i = 0; $__LIST__ = $catlist['child'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?> <a href="&rvpu;μ?qiq" echo $v['url']; ?>"><?php echo $v['title']; ?></a> <?php endforeach; endif; else: echo "" ;endif; ?> </dd> </dl> <span></span> <?php endforeach;?> </div> </div> <div class="product_r"> <h3> <a href=""/chanpinzhanshi/">产品展示</a><p>" </p> </h3> <ul> <?php $_cid = 129; $_limit = "9"; $_keyword = -1; $_flag = ''; $_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 ($_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'://动态 $_pagearr = ['query' => request()->param()]; break; case '3'://伪静态 $_pagearr = ['path' => '']; 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(); 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(20) $list['title'] = str2sub($list['title'], 20, 0); $list = $_content->getContentArea($list); $list = update_str_dq($list, config('sys.sys_area')); ?> <li> <a href="&rvpu;μ?qiq" echo $list['url']; ?>" title="<?php echo $list['title']; ?>"> <img src="<?php echo $list['pic']; ?>" alt="<?php echo $list['title']; ?>" width="218" height="180" /></a> <p> <a href="&rvpu;μ?qiq" echo $list['url']; ?>" title="<?php echo $list['title']; ?>"> <?php echo $list['title']; ?> </a></p> <div> <a href="http://wpa.qq.com/msgrd?v=3&site=<?php rel="nofollow" echo "诸城市康汇机械有限公司"; ?>&menu=yes&uin=<?php $_block = db('block')->where("title='".'qq'."'")->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="&rvpu;.$_cmpdlvsm.&rvpu;" target='_blank'>".$_block_content."</a>"; } } echo $_block_content; ?>" target="_blank" class="pfzx fwbtn">批发咨询</a> <a href="&rvpu;/mjboyjxpnfo/&rvpu;" class="dz fwbtn">OEM定制</a> </div> </li> <?php endforeach;?> </ul> </div> </div> <!--优势--> <div class="youshi"> <div class="youshi_tle ys_box"> <h2>康汇4大核心优势 </h2> </div> <div class="youshi_one ys_box"> <div class="youshi_m"> <h3>9年专注食品机械研发与生产</h3> <p>山东民营食品机械研发企业</p> <p>10000㎡生产基地</p> <p>设备销往全国各地</p> </div> </div> <div class="youshi_two ys_box"> <div class="youshi_m"> <h3>先进设备,先进工艺保证</h3> <p>购置国内先进的生产设备</p> <p>产品上线前进行工艺检查</p> <p>产品上线前进行工艺检查</p> </div> </div> <div class="youshi_three ys_box"> <div class="youshi_m"> <h3>品质高的质量 ,实惠的价格</h3> <p>层层把关,保证产品生产的质量</p> <p>稳定的售后服务,保证客户的使用</p> <p>实体厂房生产,价格更公道</p> </div> </div> <div class="youshi_four ys_box"> <div class="youshi_m"> <h3>完善售后服务</h3> <p>提供设备策划,设计定制生产,保证产品定制化生产</p> <p>客户经理一对一的服务</p> <p>7*24小时客户问题相应服务</p> </div> </div> </div> <!--end 优势--> <!--huise_bg--> <div class="huise_bg"> <!--合作伙伴--> <div class="hezuo"> <div class="hz_box container"> <h2> <a href=""/kehuanli/">长期合作伙伴</a></h2>" <div class="ul_box"> <img src="/skin/picture/hezuo_btn_l.png" class="hezuo_btn_l" id="partnerleft" /> <img src="/skin/picture/hezuo_btn_r.png" class="hezuo_btn_r" id="partnerright" /> <ul id="partnercontent"> <?php $_cid = 29; $_limit = "10"; $_keyword = -1; $_flag = ''; $_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 ($_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'://动态 $_pagearr = ['query' => request()->param()]; break; case '3'://伪静态 $_pagearr = ['path' => '']; 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(); 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(20) $list['title'] = str2sub($list['title'], 20, 0); $list = $_content->getContentArea($list); $list = update_str_dq($list, config('sys.sys_area')); ?> <li><a href="&rvpu;μ?qiq" echo $list['url']; ?>" title="<?php echo $list['title']; ?>"> <img src="<?php echo $list['pic']; ?>" width="195" height="90" alt="<?php echo $list['title']; ?>" /><p> <?php echo $list['title']; ?></p> </a></li> <?php endforeach;?> </ul> </div> </div> </div> <!--end 合作伙伴--> <!--评价--> <div class="pingjia container"> <div class="pingjia_l"> <h2> <a href="&rvpu;/lfivqjohkjb/&rvpu;" class="more">Read more +</a><a href="&rvpu;/lfivqjohkjb/&rvpu;" class="tle">看看别人是怎么评价我们的</a></h2> <ul> <?php $_cid = 154; $_limit = "10"; $_keyword = -1; $_flag = ''; $_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 ($_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'://动态 $_pagearr = ['query' => request()->param()]; break; case '3'://伪静态 $_pagearr = ['path' => '']; 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(); 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(20) $list['title'] = str2sub($list['title'], 20, 0); $list = $_content->getContentArea($list); $list = update_str_dq($list, config('sys.sys_area')); ?> <li> <img src="<?php echo $list['pic']; ?>" width="220" height="140" alt="<?php echo $list['title']; ?>" /> <h3> <a href="&rvpu;μ?qiq" echo $list['url']; ?>"> <?php echo $list['title']; ?></a></h3> <p> <?php echo str2sub($list['desc'],60, true); ?>...</p> </li> <?php endforeach;?> </ul> </div> <div class="pingjia_r"> <h2> <p> <img src="/skin/picture/hezuo_btn_l.png" class="pingjia_btn_l" id="pjleft" /> <img src="/skin/picture/hezuo_btn_r.png" class="pingjia_btn_r" id="pjright" /> </p> <a href="&rvpu;/hpohtjspohzv/&rvpu;" class="tle">公司荣誉</a> </h2> <div id="pjrightcontent" class="rongyudiv"> <div class="rongyu_box"> <a href="&rvpu;/hpohtjspohzv/&rvpu;" title="营业执照"> <img src="/skin/images/rongyu.jpg" alt="/skin/images/rongyu.jpg" width="168" height="218" /><p><?php echo $list['title']; ?></p> </a> </div> </div> </div> </div> <!--end 评价--> <!--关于我们--> <div class="zoujin container pingjia"> <h2> <a href="&rvpu;/hvbozvxpnfo/&rvpu;" class="more">Read more +</a><a href="&rvpu;/hvbozvxpnfo/&rvpu;" class="tle">关于我们</a></h2> <?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')); ?> <dl> <dt> <img src="<?php echo $type['pic']; ?>" alt="<?php echo $type['title']; ?>" width="330" height="240" /> </dt> <dd> <h3><?php echo "诸城市康汇机械有限公司"; ?></h3> <p><?php echo str2sub($type['desc'],500, true); ?>...</p> <a href="&rvpu;/hvbozvxpnfo/&rvpu;" class="more">了解更多 +</a> </dd> </dl> <ul id="kdbzcj"> </ul> </div> <!--动态--> <div class="dongtai container"> <div class="dongtai_l"> <div class="dongtai_nav"> <a class="cur"> 公司动态</a> <a class=""> 行业动态</a> </div> <div class="aa"> <ul> <?php $_cid = 81; $_limit = "8"; $_keyword = -1; $_flag = ''; $_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 ($_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'://动态 $_pagearr = ['query' => request()->param()]; break; case '3'://伪静态 $_pagearr = ['path' => '']; 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(); 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(20) $list['title'] = str2sub($list['title'], 20, 0); $list = $_content->getContentArea($list); $list = update_str_dq($list, config('sys.sys_area')); ?> <li><a href="&rvpu;μ?qiq" echo $list['url']; ?>" title="<?php echo $list['title']; ?>"> <?php echo $list['title']; ?></a></li> <?php endforeach;?> </ul> </div> <div style="display: none;" class="aa"> <ul> <?php $_cid = 82; $_limit = "8"; $_keyword = -1; $_flag = ''; $_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 ($_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'://动态 $_pagearr = ['query' => request()->param()]; break; case '3'://伪静态 $_pagearr = ['path' => '']; 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(); 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(20) $list['title'] = str2sub($list['title'], 20, 0); $list = $_content->getContentArea($list); $list = update_str_dq($list, config('sys.sys_area')); ?> <li><a href="&rvpu;μ?qiq" echo $list['url']; ?>" title="<?php echo $list['title']; ?>"> <?php echo $list['title']; ?></a></li> <?php endforeach;?> </ul> </div> </div> <div class="wenda_r"> <h2> <a href=""/changjianwenti/">常见问题</a></h2>" <div id="faq" style="margin: 0 auto;"> <?php $_cid = 108; $_limit = "6"; $_keyword = -1; $_flag = ''; $_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 ($_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'://动态 $_pagearr = ['query' => request()->param()]; break; case '3'://伪静态 $_pagearr = ['path' => '']; 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(); 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(20) $list['title'] = str2sub($list['title'], 20, 0); $list = $_content->getContentArea($list); $list = update_str_dq($list, config('sys.sys_area')); ?> <div class="wenda_box"> <h4> <a href="&rvpu;μ?qiq" echo $list['url']; ?>" title="<?php echo $list['title']; ?>"> <?php echo $list['title']; ?></a></h4> <p><?php echo str2sub($list['desc'],50, true); ?></p> </div> <?php endforeach;?> </div> </div> </div> <!--end 动态--> </div> <!--end huise_bg--> <div class="footer_bg"> <div class="footer"> <div class="container"> <h3> <a>友情链接</a></h3> <ul class="links"> </ul> <?php $_type = '1'; $_flag = ''; $_where = []; if ($_type) { $_where['type'] = $_type; } if ($_flag) { $_where['pic'] = $_flag ? array('NEQ', '') : array('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("id DESC")->limit($_limit)->select(); foreach ($_infolist as $k => $link): $link = update_str_dq($link, config('sys.sys_area')); ?> <a href="μ?qiq fdip $mjol["url']; ?>' target='_blank'><?php echo $link['title']; ?></a> <?php endforeach;?> </div> <div class="footer_nav"> <ul> <li class="first"><a href="&rvpu;/&rvpu;">首页</a></li> <?php $_limit = "10"; $_typeid = intval('1'); $_category = new app\index\model\CategoryModel(); $_navlist = $_category->getCategory('', $_typeid, false); $_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><a href="&rvpu;μ?qiq" echo $nav['url']; ?>"><?php echo $nav['title']; ?></a></li> <?php endforeach;?> </ul> </div> <div class="footer_btm"> <?php echo "<p> Copyright © 2017 洗筐机|托盘ope电竞官网|鸡胸肉切片机|猪蹄烧毛机|诸城市康汇机械有限公司, All Rights Reserved</p>"; ?> <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="&rvpu;.$_cmpdlvsm.&rvpu;" target='_blank'>".$_block_content."</a>"; } } echo $_block_content; ?> </p> <a href="http://www.miibeian.gov.cn/" rel="nofollow" target="_blank">备案号:鲁ICP备15060665号</a>&nbsp;&nbsp; <a href="&rvpu;/lbohivj.kqh&rvpu;" target="_blank"><img src="/skin/images/guohui.png" />国家企业信用信息公示系统</a> <h5> 全国免费咨询热线</h5> <h4> <?php $_block = db('block')->where("title='".'shouji'."'")->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="&rvpu;.$_cmpdlvsm.&rvpu;" target='_blank'>".$_block_content."</a>"; } } echo $_block_content; ?></h4> </div> </div> </div> <script type="text/javascript" src="/skin/js/rollup.min.js"></script> <script type="text/javascript" src="/skin/js/im.js"></script> <script type="text/javascript"> $(document).ready(function () { $(".chil_ul").hide(); $(".product_menu dd").click(function () { $(".chil_ul").hide(), $(".product_menu dd").removeClass("cur"), $(this).addClass("cur"), $(this).children(".chil_ul").show(); }); }); var scrollPic_02 = new ScrollPic(); scrollPic_02.scrollContId = "kdbzcj"; // 内容容器ID"" scrollPic_02.frameWidth = 980; //显示框宽度 scrollPic_02.pageWidth = 1; //翻页宽度 scrollPic_02.speed = 8; //移动速度(单位毫秒,越小越快) scrollPic_02.space = 5; //每次移动像素(单位px,越大越快) scrollPic_02.autoPlay = true; //自动播放 scrollPic_02.autoPlayTime = 0.03; //自动播放间隔时间(秒) scrollPic_02.initialize(); //初始化 new Marquee("faq", 0, 1, 215, 266, 40, 0, 1000, 22); $('.dongtai_nav a').mouseover(function () { $(this).addClass("cur").siblings().removeClass("cur"); $(".dongtai_l .aa").eq($('.dongtai_nav a').index(this)).show().siblings(".dongtai_l .aa").hide(); }); var scrollPic_02 = new ScrollPic(); scrollPic_02.scrollContId = "partnercontent"; // 内容容器ID"" scrollPic_02.arrLeftId = "partnerleft"; //左箭头ID scrollPic_02.arrRightId = "partnerright"; //右箭头ID scrollPic_02.frameWidth = 980; //显示框宽度 scrollPic_02.pageWidth = 196; //翻页宽度 scrollPic_02.speed = 8; //移动速度(单位毫秒,越小越快) scrollPic_02.space = 5; //每次移动像素(单位px,越大越快) scrollPic_02.autoPlay = true; //自动播放 scrollPic_02.autoPlayTime = 4; //自动播放间隔时间(秒) scrollPic_02.initialize(); //初始化 var scrollPic_02 = new ScrollPic(); scrollPic_02.scrollContId = "pjrightcontent"; // 内容容器ID"" scrollPic_02.arrLeftId = "pjleft"; //左箭头ID scrollPic_02.arrRightId = "pjright"; //右箭头ID scrollPic_02.frameWidth = 200; //显示框宽度 scrollPic_02.pageWidth = 200; //翻页宽度 scrollPic_02.speed = 8; //移动速度(单位毫秒,越小越快) scrollPic_02.space = 5; //每次移动像素(单位px,越大越快) scrollPic_02.autoPlay = true; //自动播放 scrollPic_02.autoPlayTime = 3; //自动播放间隔时间(秒) scrollPic_02.initialize(); //初始化 $('.jiqiao_nav a').mouseover(function () { $(this).addClass("cur").siblings().removeClass("cur"); $(".jiqiao_box").eq($('.jiqiao_nav a').index(this)).show().siblings(".jiqiao_box").hide(); }); </script> </body> </html>
dir
/home/kanghui456mkpacndgwhvueid4c516/wwwroot/caches/temp
Fatal error: Uncaught exception 'think\exception\ErrorException' with message 'mkdir(): Disk quota exceeded' in /home/kanghui456mkpacndgwhvueid4c516/wwwroot/system/library/think/log/driver/File.php:50 Stack trace: #0 [internal function]: think\Error::appError(2, 'mkdir(): Disk q...', '/home/kanghui45...', 50, Array) #1 /home/kanghui456mkpacndgwhvueid4c516/wwwroot/system/library/think/log/driver/File.php(50): mkdir('/home/kanghui45...', 493, true) #2 /home/kanghui456mkpacndgwhvueid4c516/wwwroot/system/library/think/Log.php(157): think\log\driver\File->save(Array) #3 /home/kanghui456mkpacndgwhvueid4c516/wwwroot/system/library/think/Error.php(84): think\Log::save() #4 [internal function]: think\Error::appShutdown() #5 {main} thrown in /home/kanghui456mkpacndgwhvueid4c516/wwwroot/system/library/think/log/driver/File.php on line 50