$list1=M('destination')->where(array('type'=>1,top=>'on'))->select(); foreach($list1 as $i=>$l) { if($i==0) $cur='cur'; else $cur=''; $c=count_visa_id($l['id']); if($c<=0) continue;
- {$l.name}
}

  foreach($list1 as $i=>$l) { $cc=count_visa_id($l['id']); if($cc<=0) continue; if($i==0) $cur='cur'; else $cur='';

  ### {$l.name}

  $allid=get_all_id($l['id']); $mm=''; foreach($allid as $d) { $c=M('visa')->where(array('destination'=>$d))->find(); if($c) { $mm[]=$c; } } foreach($mm as $info) {

  - {$info.destination_name}签证

  }
  }