1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
-
- <?php
- //var_dump($is_area_data);
- //$siteid
- if($siteid > 0 && $page == 'city'){
- //城市主页 不调用市级 调用省级数据
- //不存在area.html组件时候
- $area_where = ' province_id='.$siteid.' ';
- $is_area_data = 1;
- }
- ?>
-
-
- {eyou:if condition='($is_area_data > 0)'}
- <?php
- //$siteid
- $where = " typeid=111 and is_del=0 and status=1 and ".$area_where." ";
- if(empty($limit) || !isset($limit)){
- $limit = "0,15";
- }
- $sql = "select aid from ey_archives where $where order by update_time desc limit ".$limit;
- //echo $sql;
- ?>
- {eyou:sql sql='$sql' cachetime='3600' id="listSql"}
- {eyou:arcview aid='$listSql.aid'}
- <li>
- <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],'0','',0,$field['province_id'],$field['city_id'])}" class="active-{$i}">{$field.title|msubstr=###,0,18,true}</a>
- </li>
- {/eyou:arcview}
- {/eyou:sql}
-
- <!--不存在分站数据-->
- {eyou:empty name='$listSql' /}
- <?php
- $where = " typeid=111 and is_del=0 and status=1 and province_id=0 ";
- $sql = "select aid from ey_archives where $where order by update_time desc limit 0,15";
- //echo $sql;
- ?>
- {eyou:sql sql='$sql' cachetime='3600' id="listSql2"}
- {eyou:arcview aid='$listSql2.aid'}
- <li>
- <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],'0','',0,$field['province_id'],$field['city_id'])}" class="active-{$i}">{$field.title|msubstr=###,0,18,true}</a>
- </li>
- {/eyou:arcview}
- {/eyou:sql}
- {/eyou:empty}
-
-
- {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}
-
-
-
|