$clearLocal = GetLocalizedString('QUERYCLEAR', $locale); $outputLocal = GetLocalizedString('QUERYOUTPUT', $locale); $outputPropertyLocal = GetLocalizedString('QUERYOUTPUTPROPERTY', $locale); $executeLocal = GetLocalizedString('QUERYEXECUTE', $locale); $maxResultLocal = GetLocalizedString('QUERYMAXRESULT', $locale); $resultsLocal = GetLocalizedString('QUERYRESULTS', $locale); $scaleLocal = GetLocalizedString('QUERYSCALE', $locale); $zoomLocal = GetLocalizedString('QUERYZOOM', $locale); $selectLocal = GetLocalizedString('QUERYSELECT', $locale); $errorLocal = GetLocalizedString('QUERYERROR', $locale); $rectangleHelpLocal = GetLocalizedString('REDLINEEDITRECTANGLEHELP', $locale); $polygonHelpLocal = GetLocalizedString('REDLINEEDITPOLYGONHELP', $locale); try { // MgInitializeWebTier($configFilePath); $query = new Query($args); $layerNames = $query->GetMapLayerNames(); } catch (MgException $mge) { $errorMsg = $mge->GetExceptionMessage(); $errorDetail = $mge->GetDetails(); } catch (Exception $e) { $errorMsg = $e->GetMessage(); } ?> <html> <head> <title><?php echo $titleLocal; ?> </title> <link rel="stylesheet" href="../../common/mgsamples.css" type="text/css"> <script language="javascript" src="../../common/browserdetect.js"></script>