123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- <div class="box_1" style="display: block;">
- <!--定义内容标签 p span a li img--->
- <?php
- //var_dump($eyou['site']);
- //var_dump($site);
- //只调用省级 城市为空
- if((int)$eyou['site']['id'] === 0){
- //所有省份的数据
- $where = "typeid='126' and province_id > 0 and city_id='0' and is_del=0";
- }else{
- //$site_id = $eyou['site']['id'];
- $where = "typeid='126' and province_id='$site_pro_id' and city_id='0' and is_del=0";
- }
- if($site == "shandong" && $domain[0] == "www" || $site == "www"){
- $where = "typeid='126' and area_tag_id=10000 and is_del=0";
- }
- $ids = '';
- ?>
-
- {eyou:sql sql="select aid from ey_archives where $where order by update_time desc limit 0,8" cachetime='3600' empty='没有数据' id="res"}
- <?php
- //var_dump($provid);
- //var_dump($res);
- $ids .= ','.$res['aid'];
- ?>
- {/eyou:sql}
-
- {eyou:empty name='$ids' /}
- ----------------------(暂无相关文档)-----------------------
- {eyou:else /}
- <?php
- $ids = '0'.$ids;
- //var_dump($ids);
- $ids = explode(',',$ids);
- ?>
- {eyou:foreach name='$ids' item='field'}
- {eyou:arcview aid='$field' addfields='down'}
- <li>
- <?php
- $extension = substr($field['down'], strrpos($field['down'], '.') + 1);
- ?>
- <div style=""></div>
- <span>.{$extension}</span>
- <img src="https://oss.zc10000.com/static/img/{$extension}.svg" />
- <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],0,'',0,$field['province_id'])}" class="k">
- {$field.title}</a>
- <p>
- <!-- <img src="https://oss.zc10000.com/static/images/031.SVG">-->
-
- <font class="sp-1">阅读量: {$field.click}</font>
- <font class="sp-1">收藏量: {$field.collection}</font>
- <font class="sp-1">点赞量: {$field.likecount}</font>
- <font class="sp-1">下载量: {$field.downcount}</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'],0,'',0,$field['province_id'])}">
- <button>
- 前往下载
- </button></a>
- </li>
- {/eyou:arcview}
- {/eyou:foreach}
- {/eyou:empty}
- </div>
- <div class="box_1">
-
-
- <?php
-
-
- //var_dump($eyou['site']);
- //只调用省级 城市为空
- if((int)$eyou['site']['id'] === 0){
- //所有省份的数据
- $where = "typeid='825' and province_id > 0 and city_id='0' and is_del=0";
- }else{
- //$site_id = $eyou['site']['id'];
- $where = "typeid='825' and province_id='$site_pro_id' and city_id='0' and is_del=0";
- }
- //重写
- if($site == "shandong" && $domain[0] == "www" || $site == "www"){
- $where = "typeid='825' and area_tag_id=10000 and is_del=0";
- }
- $ids = '';
- ?>
-
- {eyou:sql sql="select aid from ey_archives where $where order by update_time desc limit 0,8" cachetime='3600' empty='没有数据' id="res"}
- <?php
- //var_dump($provid);
- //var_dump($res);
- $ids .= ','.$res['aid'];
- ?>
- {/eyou:sql}
-
- {eyou:empty name='$ids' /}
- ----------------------(暂无相关文档)-----------------------
- {eyou:else /}
- <?php
- $ids = '0'.$ids;
- //var_dump($ids);
- $ids = explode(',',$ids);
- ?>
- {eyou:foreach name='$ids' item='field'}
- {eyou:arcview aid='$field' addfields='down'}
- <li>
- <?php
- $extension = substr($field['down'], strrpos($field['down'], '.') + 1);
- ?>
- <div style=""></div>
- <span>.{$extension}</span>
- <img src="https://oss.zc10000.com/static/img/{$extension}.svg" />
- <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],0,'',0,$field['province_id'])}" class="k">
- {$field.title}</a>
- <p>
- <!--<img src="https://oss.zc10000.com/static/images/031.SVG">-->
- <font class="sp-1">阅读量: {$field.click}</font>
- <font class="sp-1">收藏量: {$field.collection}</font>
- <font class="sp-1">点赞量: {$field.likecount}</font>
- <font class="sp-1">下载量: {$field.downcount}</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'],0,'',0,$field['province_id'])}">
- <button>
- 前往下载
- </button></a>
- </li>
- {/eyou:arcview}
- {/eyou:foreach}
- {/eyou:empty}
-
-
- </div>
- <div class="box_1 zczx">
-
-
- <?php
- //var_dump($eyou['site']);
- //var_dump($cityid);
- //只调用省级 城市为空
- if((int)$eyou['site']['id'] === 0){
- //所有省份的数据
- $where = "typeid='115' and province_id > 0 and city_id='0' and is_del=0";
- }else{
- //$site_id = $eyou['site']['id'];
- if((int)$cityid > 0){
- $where = "typeid='115' and province_id='$site_pro_id' and city_id='$cityid' and is_del=0"; // and city_id='0'
- }else{
- $where = "typeid='115' and province_id='$site_pro_id' and is_del=0"; // and city_id='0'
- }
- }
- //and city_id='0'
- if($site == "shandong" && $domain[0] == "www" || $site == "www"){
- $where = "typeid='115' and is_del=0";
- }
- $ids = '';
- ?>
-
- {eyou:sql sql="select aid from ey_archives where $where order by update_time desc limit 0,10" cachetime='3600' empty='没有数据' id="res"}
- <?php
- //var_dump($provid);
- //var_dump($res);
- $ids .= ','.$res['aid'];
- ?>
- {/eyou:sql}
-
- {eyou:empty name='$ids' /}
- ----------------------(暂无相关文档)-----------------------
- {eyou:else /}
- <?php
- $ids = '0'.$ids;
- ?>
- {eyou:artlist idlist="$ids" limit="0,10" 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'],$field['city_id'])}" class="k">
- {$field.title}</a>
- </li>
- {/eyou:artlist}
- {/eyou:empty}
-
-
- </div>
|