Ec (2); & lt ;? Php & nbsp; require (path. inc. php); & nbsp; header (content-Type: texthtml; charsetutf-8); & nbsp; $ borough_idintval ($ _ GET [id]); & nbsp; if (! $ Borough_id) {& nbsp; echo & nbsp; & nb script ec (2); script
Require ('path. inc. php ');
Header ('content-Type: text/html; charset = UTF-8 ');
$ Borough_id = intval ($ _ GET ['id']);
If (! $ Borough_id ){
Echo'
Script
Parent.doc ument. getElementById ('mapdiv '). style. display = "none ";
Parent.doc ument. getElementById ('mapdidlink'). style. display = "none ";
Script
';
Exit;
}
$ Borough = new Borough ($ query );
$ BoroughInfo = $ borough-> getInfo ($ borough_id, '*', 1, true );
// CharsetIconv ($ boroughInfo, 'gbk', 'utf-8 ');
$ Pos = strpos ($ boroughInfo ['borough _ name'], '(');
If ($ pos! = False ){
$ BoroughInfo ['borough _ name'] = substr ($ boroughInfo ['borough _ name'], 0, $ pos );
}
$ BoroughInfo ['borough _ address'] = iconv ('gb2312', 'utf-8', $ boroughInfo ['borough _ address']);
$ BoroughInfo ['borough _ name'] = iconv ('gb2312', 'utf-8', $ boroughInfo ['borough _ name']);
$ Pos = strpos ($ boroughInfo ['borough _ name'], '(');
If ($ pos! = False ){
$ BoroughInfo ['borough _ name'] = substr ($ boroughInfo ['borough _ name'], 0, $ pos );
}
If (strpos ($ boroughInfo ['borough _ name'], 'fuzhou ') = false ){
$ BoroughInfo ['borough _ name'] = "Fuzhou". $ boroughInfo ['borough _ name'];
}
?>
Community Map