1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <!--定义内容标签 p span a li img--->
- <?php
- //var_dump($eyou['site']);
- //array(15) { ["id"]=> int(1) ["name"]=> string(6) "广东" ["level"]=> int(1) ["parent_id"]=> int(0) ["topid"]=> int(0) ["initial"]=> string(1) "G" ["status"]=> int(1) ["is_hot"]=> int(0) ["domain"]=> string(9) "guangdong" ["is_open"]=> int(1) ["seoset"]=> int(0) ["seo_title"]=> string(112)
- //只调用省级 城市为空
- if((int)$eyou['site']['id'] === 0){
- //所有省份的数据
- $where = "typeid='825' and city_id > 0 and is_del=0";
- }else{
- $site_id = $eyou['site']['id'];
- $where = "typeid='825' and city_id='$site_id' 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,20" cachetime='3600' empty='没有数据' id="res"}
- <?php
- //var_dump($provid);
- //var_dump($res);
- ?>
- {eyou:empty name='$res.ids' /}
- ----------------------(暂无相关文档)-----------------------
- {eyou:else /}
- {eyou:artlist idlist="$res.ids" titlelen='30' limit="0,20" infolen='160' orderby='update_time desc' addfields='handle_time'}
- <li>
- <div></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?$field.handle_time:'01月'}</font>
- </p>
- <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'])}">
- <button>
- 前往下载
- </button></a>
- </li>
- {/eyou:artlist}
- {/eyou:empty}
- {/eyou:sql}
|