123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374 |
- {eyou:assign name='page' value='zccat-detail-list' /}
- {eyou:php}
- /**处理参数*/
- $route_param = request()->route();
- //$route_param['tid'] =
- //var_dump($route_param);die;
-
- $route_domain = request()->domain();
- $route_domain2 = explode('//',$route_domain);
- $domain = explode('.',$route_domain2[1]);
- $site = $domain[0];
- //var_dump($site);
-
- $route_url = request()->url();
- //var_dump($route_domain);
- //var_dump($route_url);
-
- //技术员、助理、中级、高级、正高级
- if(!empty($route_param['pa'])){
- /*if((int)$route_param['pa'] === 1){
- $level = '助理';
- }elseif((int)$route_param['pa'] === 2){
- $level = '中级';
- }elseif((int)$route_param['pa'] === 3){
- $level = '高级';
- }elseif((int)$route_param['pa'] === 4){
- $level = '正高级';
- }else{
- $level = '技术员';
- }*/
- $level = (int)$route_param['pa']; //级别对应排序即可
- }else{
- /*$level = '技术员';*/
- $level = 0;
- }
- //查找文档id
- {/eyou:php}
-
- {eyou:php}
- if($site == 'www'){
- $areaid = 10000;
- }else{
- $sql = "SELECT id FROM ey_citysite WHERE domain = '$site'";
- //echo $sql;
- }
-
- {/eyou:php}
- {eyou:if condition='($site != "www")'}
- {eyou:sql sql='$sql' cachetime='3600' id='city'}
- {eyou:php}
- $areaid = $city['id'];
- {/eyou:php}
- {/eyou:sql}
- {/eyou:if}
-
- {eyou:php}
- $num = (int)$route_param['catids'];
- $cid = $route_param['cid']?(int)$route_param['cid']:0;
- //var_dump($cid);
- if($cid > 0){
- $sql = "SELECT aid FROM ey_seo_number WHERE number=$cid and type=1 and tid=38 and topid=38 and parentid=38 and area_id=$areaid";
- }else{
- $sql = "SELECT aid FROM ey_seo_number WHERE number=$num and type=1 and tid=38 and topid=38 and parentid=38 and area_id=$areaid";
- }
- //echo $sql;
- {/eyou:php}
- {eyou:sql sql='$sql' cachetime='3600' id='seo'}
- {eyou:php}
- if($cid > 0){
- //再查询一次
- $so_parent_id = $seo['aid'];
- $sql2 = "SELECT aid FROM ey_seo_number WHERE number=$num and type=1 and tid=$so_parent_id and topid=38 and parentid=$so_parent_id and area_id=0";
- }else{
- $route_param['catids'] = $seo['aid'];
- //var_dump($route_param);
- }
- {/eyou:php}
- {/eyou:sql}
-
- {eyou:if condition='($cid > 0)'}
- <?php
- //var_dump($sql2);
- ?>
- {eyou:sql sql='$sql2' cachetime='3600' id='seo2'}
- {eyou:php}
- $route_param['catids'] = $seo2['aid'];
- //var_dump($route_param);
- {/eyou:php}
- {/eyou:sql}
- {/eyou:if}
-
-
- <?php
- //栏目信息 获取二级或者三级
- //var_dump($route_param);
- ?>
- {eyou:assign name='catid' value="$route_param.catids"}
- {eyou:type typeid='$route_param.catids' empty='' id="catinfo"}
- {eyou:assign name='parentid' value="$catinfo.parent_id"}
- {eyou:assign name='catname' value="$catinfo.typename"}
- {/eyou:type}
- <?php
- //var_dump($catid);
- ?>
- {eyou:empty name='$parentid' /}
- <?php
- //查找小类 获取到parentid
- ?>
- {eyou:sql sql="SELECT id,parent_id,typename FROM ey_arctype_cat WHERE id = $catid" cachetime='3600' id='field2'}
- {eyou:assign name='parentid' value="$field2.parent_id"}
- {eyou:assign name='catname' value="$field2.typename"}
- {/eyou:sql}
- {/eyou:empty}
-
- <?php
- $level_pa = (int)$level+1; //对应后台 要加 1
- if((int)$parentid === 38){
- //大类 二级
- $sql = "select aid from ey_archives where typeid=".$catid." and product_id=0 and level=".$level_pa." and is_del=0";
- //echo $sql;
- ?>
-
- {eyou:sql sql="$sql" cachetime='3600' empty='' id='detail'}
- {eyou:assign name='aid' value="$detail.aid"}
- {eyou:arcview aid="$detail.aid" id="field"}
- {eyou:php}
- //获取到文档详情
- $eyou['field'] = $field;
- {/eyou:php}
- {/eyou:arcview}
- {/eyou:sql}
-
- <?php
- }else{
- //小类 三级
- $sql = "select id,parent_id from ey_arctype_cat where id=".$catid." and is_del=0";
- ?>
- {eyou:sql sql="$sql" cachetime='3600' empty='' id='detail2'}
- <?php
- $sql2 = "select aid from ey_archives where typeid=".$detail2['parent_id']." and product_id=".$catid." and level=".$level_pa." and is_del=0";
- //echo $sql2;die;
- ?>
- {eyou:sql sql="$sql2" cachetime='3600' empty='' id='detail'}
- {eyou:assign name='aid' value="$detail.aid"}
- {eyou:arcview aid="$detail.aid" id="field"}
- {eyou:php}
- //获取到文档详情
- $eyou['field'] = $field;
- {/eyou:php}
- {/eyou:arcview}
- {/eyou:sql}
- {/eyou:sql}
- <?php } ?>
-
-
- <?php
- //获取seo
- //seo_title
- //seo_description
- /*var_dump($eyou['field']['seo_title']);
- var_dump($eyou['field']['seo_keywords']);
- var_dump($eyou['field']['seo_description']);*/
- //var_dump($catname);
- if(empty($eyou['field']['seo_title'])){
- //按照规则
- $catname = str_replace("职称","",$catname);
- $eyou['field']['seo_title'] = $catname.'职称评审【2024最新政策】';
- $eyou['field']['seo_keywords'] = $catname.'职称';
- $eyou['field']['seo_description'] = $catname.'职称评审请上【职称网】最受欢迎的工程师职称评审网站,专注工程师职称评审,专注工程师职称评审,提供职称材料撰写、职称申报、职称论文专利等一站式服务,职称评审绿色便捷通道。';
- }
- ?>
-
-
- {eyou:php}
- /*打印信息*/
- //var_dump($detail);
- //var_dump($eyou['field']['area_id']);
- //var_dump($parentid);die;
- {/eyou:php}
-
-
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
-
- <title>{$eyou.field.seo_title}</title>
- <meta name="keywords" content="{$eyou.field.seo_keywords}">
- <meta name="description" content="{$eyou.field.seo_description}">
-
- <link rel="stylesheet" href="https://oss.zc10000.com/static/plug/layui/css/layui.css?v=<?php echo rand(1,100000); ?>" media="all">
- <link rel="stylesheet" href="/template/mobile/css/common.css?v=<?php echo rand(1,100000); ?>" media="all">
- <!--后续修改样式 在extend.css?v=<?php echo rand(1,100000); ?> 补充叠加 不修改原来的样式文件-->
- <link rel="stylesheet" href="/template/mobile/css/extend.css?v=<?php echo rand(1,100000); ?>" media="all">
- <script src="https://oss.zc10000.com/static/plug/layui/layui.js"></script>
- <script>
- layui.config({
- version: '1632428048355' //为了更新 js 缓存,可忽略
- });
- </script>
- </head>
- <body>
-
- <div id="bg_1"></div>
- <div id="bg_2"></div>
- <div id="bg_3"></div>
-
- {eyou:if condition='($page == "index")'}
- <div id="bg_4"></div>
- <div id="bg_5"></div>
- {/eyou:if}
-
- {eyou:if condition='($page == "lunwen-list")'}
- <div id="bg_4" style="top: 2660.87px;"></div>
- <div id="bg_5" style="top: 2673px;"></div>
- {/eyou:if}
-
-
- <div id="header">
- {eyou:include file='/template/mobile/common/header.htm' /}
- </div>
-
- <!--复制 copy/product.htm 页面名称: 职称产品页-->
- <!--复制 copy/city_product.htm 页面名称: 职称产品页-->
- <!--区别: 区域字段-->
- <div id="cat-index">
- <link rel="stylesheet" href="/template/mobile/css/product.css?v=<?php echo rand(1,100000); ?>" media="all">
- {eyou:include file='/template/mobile/components/banner/style_1.htm' /}
- {eyou:include file='/template/mobile/components/nav/style_1.htm' /}
-
- {eyou:notempty name='$detail' /}
- {eyou:include file='/template/mobile/components/detail/style_1.htm' /}
-
- <div class="content">
- <div class="box">
- <div class="box-left">
-
-
- <!--二级大类 必须是主页才显示-->
- {eyou:if condition='((int)$parentid === 38 && (int)$level === 0)'}
- <?php
- $title="职称小类";
- $con = '8';
- $catidw = $route_param['catids'];
- $sql = "select count(*) as total from ey_arctype_cat where parent_id=$catidw and is_del=0";
- ?>
- {eyou:sql sql='$sql' cachetime='3600' empty='没有数据'}
- {eyou:if condition='((int)$field.total > 0)'}
- {eyou:include file='/template/mobile/components/detail/style_2.htm' /}
- {/eyou:if}
- {/eyou:sql}
- {/eyou:if}
- {eyou:if condition='((int)$level === 0)'}
- {eyou:empty name='$eyou.field.content_4' /}
- {eyou:else /}
- <?php
- $title= $product_name."评审概述";
- $con = '7';
- ?>
- {eyou:include file='/template/mobile/components/detail/style_2.htm' /}
- {/eyou:empty}
- {/eyou:if}
-
- {eyou:empty name='$eyou.field.content_5' /}
- {eyou:else /}
- <?php
- $title= $product_name."评审适用范围";
- $con = '0';
- ?>
- {eyou:include file='/template/mobile/components/detail/style_2.htm' /}
- {/eyou:empty}
-
-
-
- {eyou:empty name='$eyou.field.content_1' /}
- {eyou:else /}
- <?php
- $title= $product_name."评审工作要求";
- $con = '1';
- $id_name_div = "divcon1";
- ?>
- {eyou:include file='/template/mobile/components/detail/style_2.htm' /}
- {/eyou:empty}
-
-
- {eyou:empty name='$eyou.field.content_6' /}
- {eyou:else /}
- <?php
- $title= $product_name."评审学历要求";
- $con = '4';
- $id_name_div = "divcon2";
- ?>
- {eyou:include file='/template/mobile/components/detail/style_2.htm' /}
- {/eyou:empty}
-
-
- {eyou:empty name='$eyou.field.content_2' /}
- {eyou:else /}
- <?php
- $title= $product_name."评审业绩要求";
- $con = '2';
- $id_name_div = "divcon3";
- ?>
- {eyou:include file='/template/mobile/components/detail/style_2.htm' /}
- {/eyou:empty}
-
-
- {eyou:empty name='$eyou.field.content_3' /}
- {eyou:else /}
- <?php
- $title= $product_name."评审学术要求";
- $con = '3';
- $id_name_div = "divcon4";
- ?>
- {eyou:include file='/template/mobile/components/detail/style_2.htm' /}
- {/eyou:empty}
-
-
-
- <?php
- $title= $product_name."评审专利著作";
- $con = '5';
- $id_name_div = "divcon6";
- ?>
-
- {eyou:empty name='$eyou.field.content_7' /}
- {eyou:else /}
- <?php
- $title= $product_name."评审破格条件";
- $con = '6';
- $id_name_div = "divcon5";
- ?>
- {eyou:include file='/template/mobile/components/detail/style_2.htm' /}
- {/eyou:empty}
-
-
-
-
-
-
- <!--上下篇-->
- {eyou:include file='/template/mobile/components/text/style_5.htm' /}
- </div>
- <div class="box-right">
-
- <!--相关问题-->
- <?php
- $title = '常见问题'; //原先的职称相关问题 改为 常见问题
- $cat_id = '111';
- $son_id = '111';
- ?>
- {eyou:include file='/template/mobile/components/list/style_4.htm' /}
-
- <?php
- $title = '职称论文发表热门期刊';
- ?>
- {eyou:include file='/template/mobile/components/list/style_5.htm' /}
-
- {eyou:include file='/template/mobile/components/banner/style_2.htm' /}
- </div>
- </div>
- </div>
- {/eyou:notempty}
-
- </div>
-
- <div id="footer">
- {eyou:include file='/template/mobile/common/footer.htm' /}
- </div>
-
- {eyou:include file='/template/mobile/common/common_bot.htm' /}
-
- {eyou:include file='/template/mobile/common/button_2.htm' /}
|