<?php if((int)$catid === 0){ //全部参考文件 $where = "typeid='826' and is_del=0"; }else{ $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" cachetime='3600' empty='没有数据' id="res4"} <?php //var_dump($provid); //ar_dump($res2); ?> {eyou:empty name='$res4.ids' /} ----------------------(暂无相关文档)----------------------- {eyou:else /} {eyou:artlist idlist="$res4.ids" titlelen='30' infolen='160' orderby='update_time desc' addfields='handle_time'} <li> <div style=""></div> <span>.zip</span> <img src="https://oss.zc10000.com/static/images/039.svg" /> <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'])}" class="k">{$field.title}</a> <p> <img src="https://oss.zc10000.com/static/images/031.SVG"> <font class="sp-1">评审时间: </font> <font class="sp-2">{$field.handle_time}</font> </p> <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'])}"> <button> 前往下载 </button></a> </li> {/eyou:artlist} {/eyou:empty} {/eyou:sql}