123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- {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:include file='/template/pc/components/list/sub/data/tid_111.htm' /}
-
- {/eyou:if}
- {eyou:elseif condition='($page == "city")'}
-
- {eyou:include file='/template/pc/components/list/sub/data/tid_111.htm' /}
-
- {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}
|