Geen omschrijving
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tid_111.htm 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. //var_dump($is_area_data);
  3. //$siteid
  4. if($siteid > 0 && $page == 'city'){
  5. //城市主页 不调用市级 调用省级数据
  6. //不存在area.html组件时候
  7. $area_where = ' province_id='.$siteid.' ';
  8. $is_area_data = 1;
  9. }
  10. ?>
  11. {eyou:if condition='($is_area_data > 0)'}
  12. <?php
  13. //$siteid
  14. $where = " typeid=111 and is_del=0 and status=1 and ".$area_where." ";
  15. if(empty($limit) || !isset($limit)){
  16. $limit = "0,15";
  17. }
  18. $sql = "select aid from ey_archives where $where order by update_time desc limit ".$limit;
  19. //echo $sql;
  20. ?>
  21. {eyou:sql sql='$sql' cachetime='3600' id="listSql"}
  22. {eyou:arcview aid='$listSql.aid'}
  23. <li>
  24. <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>
  25. </li>
  26. {/eyou:arcview}
  27. {/eyou:sql}
  28. <!--不存在分站数据-->
  29. {eyou:empty name='$listSql' /}
  30. <?php
  31. $where = " typeid=111 and is_del=0 and status=1 and province_id=0 ";
  32. $sql = "select aid from ey_archives where $where order by update_time desc limit 0,15";
  33. //echo $sql;
  34. ?>
  35. {eyou:sql sql='$sql' cachetime='3600' id="listSql2"}
  36. {eyou:arcview aid='$listSql2.aid'}
  37. <li>
  38. <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>
  39. </li>
  40. {/eyou:arcview}
  41. {/eyou:sql}
  42. {/eyou:empty}
  43. {eyou:else /}
  44. {eyou:artlist catid='0' stypeid='0' typeid="111" limit='0,15' titlelen='30' infolen='160' orderby='update_time desc'}
  45. <li>
  46. <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'])}" class="active-{$i}">{$field.title|msubstr=###,0,18,true}</a>
  47. </li>
  48. {/eyou:artlist}
  49. {/eyou:if}