%s

築城年:%s年
築城時代:%s
築城者:%s", $row["picture"],$row["oshiro_name"],$row["year"],$row["era"],$row["constructor"]); $row["number"] = $sqlStr=sprintf("var latlng%d = new google.maps.LatLng(%f,%f);var marker%d = new google.maps.Marker({position: latlng%d, map: map, icon: 'http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=城|FF88FF|000000' });var contentString = '%s';var infowindow%d = new google.maps.InfoWindow({content: contentString });google.maps.event.addListener(marker%d, 'mouseover', function() { infowindow%d.open(map,marker%d);});google.maps.event.addListener(marker%d, 'mouseout', function() {infowindow%d.close(map,marker%d);});google.maps.event.addListener(marker%d, 'click', function() {window.open(\"%s\" , \"_blank\");});", $row["number"],$row["latitude"],$row["longitude"],$row["number"],$row["number"],$contents,$row["number"],$row["number"],$row["number"],$row["number"],$row["number"],$row["number"],$row["number"],$row["number"],$row["wiki_site"]); $oshiro_base[] = $row; $row["era"] = $sqlStr=sprintf("
%s %s年
%s
%s

%s
%s
", $row["link"],$row["oshiro_name"],$row["year"],$row["era"],$row["constructor"],$row["picture"],$row["copyright"],$row["explanation"]); $oshiro_base2[] = $row; } $tpl=new Smarty; $tpl->assign('oshiro_base2', $oshiro_base2); $tpl->display("index.tpl"); ?>