$list=M('footer_advantages')->where(array('show'=>1))->order('weight DESC,id DESC')->limit(7)->select(); $advantages=M('footer_config')->select(); foreach($advantages as $ii=>$v) { $advantages_u[$v['title']]=$v['value']; }

### 我们的优势

foreach($list as $i=>$item) {
}

热门目的地 $destination_list=destination_list('','',15,'weight','yes'); //获取一个目的地列表 foreach($destination_list as $d) { | {$d.name}旅游 }
热门城市 $destination_list=destination_list('','',15,'weight','no'); //获取一个目的地列表 foreach($destination_list as $d) { | {$d.name}旅游 }
热门主题 $theme_list=theme_list('15','id'); //获取一个攻略主题 foreach($theme_list as $l) { | {$l.title} }
友情链接 $flink=M('friend_link')->where("`show`=1 and (seat=0 || seat is null)")->order("weight DESC,id DESC")->select(); foreach($flink as $link) { {$link.title} }