table('joinsite')." GROUP BY website_type"; $website_type_all = $db->getAll($sql); $row = array(); // 根据类别,查询出当前的科室 foreach($website_type_all as $key=>$val){ $type = ""; $type = $db->getOne("SELECT line_name FROM ".$ads->table('line')." WHERE line_id='".$val["website_type"]."' ORDER BY soft_id ASC"); $row[$key]["line_name"] = $type; $row[$key]["line_id"] = $val["website_type"]; } $road = empty($_REQUEST["road"]) ? "ykt.kangcity.com" : trim($_REQUEST["road"]); $smarty->assign("road","road=".$road); $smarty->assign("line_info",$row); $smarty->display("city.dwt"); ?>