<?php $name = "list-s-3"; ?> <link rel="stylesheet" href="/template/mobile/components/list/style_3.css?v=<?php echo rand(1,100000); ?>" media="all"> <!--定义div盒子--> <div class="<?php echo $name; ?>-content"> <div class="box"> <!--定义内容布局---> <div class="row row{$con}"> <!--定义内部栅格 上下中左右 使用浮动--> <div class="top"> <!--定义内容标签 p span a li img---> <span></span> {eyou:if condition='($page == "zccat")'} {eyou:type typeid='111' empty='暂时没有数据'} <a href="{:get_tid_url_2($field['typeurl'])}" > {/eyou:type} {eyou:if condition='($route_param.tid != 38)'} {eyou:type typeid='$route_param.tid' empty='暂时没有数据' id='field2'} {$field2.typename} {/eyou:type} 常见问题解答{$param.tid} {eyou:else /} 常见问题解答 {/eyou:if} </a> {eyou:elseif condition='($page == "down")'} {eyou:empty name='$eyou.field.stypeid' /} <?php echo $title; ?> {eyou:else /} {eyou:type typeid='$eyou.field.stypeid' empty='无'} <a href="{:get_tid_url_2($field['typeurl'])}" class="" >{$field['typename']}<?php echo $title; ?></a> {/eyou:type} {/eyou:empty} {eyou:elseif condition='($page == "city")'} {eyou:type typeid='111' empty=''} <a href="{:get_tid_url_2($field['typeurl'])}" class="" ><?php echo $title; ?></a> {/eyou:type} {eyou:elseif condition='($page == "lunwen-detail")'} {eyou:type typeid='127' empty=''} <a href="{:get_tid_url_2($field['typeurl'])}" class="" ><?php echo $title; ?></a> {/eyou:type} {eyou:else /} <a href=""><?php echo $title?$title:'工程师职称常见问题解答'; ?></a> {/eyou:if} </div> <div class="center"> <!--定义内容标签 p span a li img---> {eyou:if condition='($route_param.tid != 38)'} {eyou:if condition='($page == "lunwen-detail")'} <!--往期模板参考--> <?php $sql = "SELECT GROUP_CONCAT(aid SEPARATOR ',') as ids FROM `ey_archives` WHERE typeid=127 and lunwen_id=".$route_param['aid']; //echo $sql; //$res.ids ?> {eyou:sql sql='$sql' cachetime='3600' id="res"} {eyou:notempty name='$res.ids' /} {eyou:artlist idlist='$res.ids'} <li> <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'])}" class="active-{$i}">{$field.title|msubstr=###,0,18,true}</a> </li> {/eyou:artlist} {/eyou:notempty} {/eyou:sql} {eyou:elseif condition='($page == "down")'} {eyou:if condition='($con === 1)'} <!--调用参考文件即可 typeid=826--> {eyou:assign name='catid' value='$eyou.field.stypeid' /} <?php $where = "typeid='826' and stypeid='$catid' and is_del=0"; ?> {eyou:sql sql="select GROUP_CONCAT(aid SEPARATOR ',') AS ids from ey_archives where $where order by update_time desc LIMIT 0,10" cachetime='3600' empty='没有数据' id="res4"} {eyou:artlist idlist="$res4.ids" titlelen='30' infolen='160' orderby='update_time desc' addfields='handle_time,province_id'} <li> <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],0,'',0,$field['province_id'])}" class="active-{$i}">{$field.title|msubstr=###,0,18,true}</a> </li> {/eyou:artlist} {/eyou:sql} {eyou:else /} <!--常见问题--> {eyou:assign name='catid' value='$eyou.field.stypeid' /} <?php //and stypeid='$catid' $where = " typeid=111 and is_del=0 "; //var_dump($where); //@ROUP_CONCAT(aid SEPARATOR ',') AS ids $ids = '0'; ?> {eyou:sql sql="select aid from ey_archives where $where order by update_time desc LIMIT 0,14" cachetime='3600' empty='没有数据' id="res5"} <?php //var_dump($res5); $ids .= ','.$res5['aid']; ?> {/eyou:sql} {eyou:notempty name='$ids' /} {eyou:artlist idlist="$ids" titlelen='30' limit="0,14" infolen='160' orderby='update_time desc' addfields='handle_time' id="list"} <li> <a href="{:get_tid_url_2($list['arcurl'],$list['typeid'],$list['stypeid'])}" class="active-{$i}">{$list.title|msubstr=###,0,18,true}</a> </li> {/eyou:artlist} {/eyou:notempty} {/eyou:if} {eyou:elseif condition='($page == "city")'} {eyou:artlist stypeid='0' typeid="111" limit='0,15' titlelen='30' infolen='160' orderby='update_time desc'} <li> <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'])}" class="active-{$i}" style="margin-left:0px;">{$field.title|msubstr=###,0,18,true}</a> </li> {/eyou:artlist} {eyou:else /} <!--加入筛选条件 职称分类--> {eyou:artlist catid="$route_param.tid" stypeid='0' typeid="111" limit='0,15' titlelen='30' infolen='160' orderby='update_time desc'} <li> <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'])}" class="active-{$i}">{$field.title|msubstr=###,0,18,true}</a> </li> {/eyou:artlist} {/eyou:if} {eyou:else /} {eyou:artlist catid='0' stypeid='0' typeid="111" limit='0,15' titlelen='30' infolen='160' orderby='update_time desc'} <li> <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'])}" class="active-{$i}">{$field.title|msubstr=###,0,18,true}</a> </li> {/eyou:artlist} {/eyou:if} </div> <div class="bottom"> <div class="bottom-row"> {eyou:if condition='($page == "down")'} {eyou:if condition='($con === 1)'} <span>{eyou:type typeid='125' empty='暂时没有数据'} <a href="{:get_tid_url_2($field['typeurl'])}" >查看更多</a> {/eyou:type} <img src="https://oss.zc10000.com/static/images/013.svg" /></span> {eyou:else /} <span>{eyou:type typeid='122' empty='暂时没有数据'} <a href="{:get_tid_url_2($field['typeurl'])}" >查看更多</a> {/eyou:type} <img src="https://oss.zc10000.com/static/images/013.svg" /></span> {/eyou:if} {eyou:elseif condition='($page == "city")'} <span>{eyou:type typeid='111' empty='暂时没有数据'} <a href="{:get_tid_url_2($field['typeurl'])}" >查看更多</a> {/eyou:type} <img src="https://oss.zc10000.com/static/images/013.svg" /></span> {eyou:elseif condition='($page == "lunwen-detail")'} <span>{eyou:type typeid='127' empty='暂时没有数据'} <a href="{:get_tid_url_2($field['typeurl'])}" >查看更多</a> {/eyou:type} <img src="https://oss.zc10000.com/static/images/013.svg" /></span> {eyou:else /} <span>{eyou:type typeid='111' empty='暂时没有数据'} <a href="{:get_tid_url_2($field['typeurl'])}" >查看更多</a> {/eyou:type} <img src="https://oss.zc10000.com/static/images/013.svg" /></span> {/eyou:if} </div> </div> </div> <div class="clear"></div> </div> </div>