$sql="select * from sl_menu where U_hide=0 and U_del=0 and U_sub=0 and not U_type='index' order by U_order,U_id desc";
s[[
if($row["U_type"]=="link"){
$link=$row["U_link"];
$target="_blank";
}else{
$link="".$row["U_type"]."-.html".$row["U_typeid"];
$target="_self";
}
$api=$api."
".$row["U_title"]."";
$sql2="select * from sl_menu where U_hide=0 and U_del=0 and U_sub=".$row["U_id"]." order by U_order,U_id desc";
s2[[
if($row2["U_type"]=="link"){
$target2="_blank";
}else{
$link2="".$row2["U_type"]."-.html".$row2["U_typeid"];
$target2="_self";
}
$api=$api."
".$row2["U_title"]."";
]]
$api=$api."
";
]]