Copyright (c) 2002, DM Solutions Group Inc. * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ /*****************************************************************************/ //set the language resource file $szLanguageResource = str_replace("\\","/",dirname(__FILE__))."/XMLThemeLegend.dbf"; // include the supporting php code define("LOAD_MAPSESSION", "1"); include_once("../session.inc.php"); include_once(COMMON."/phpwms/dbf.php"); include_once("../CWC2ButtonCache.php"); $oLayer = false; $szTitle = "No Layer"; $szThemeName = ""; $szThemeAbstract = ""; $aGroups = array(); $aGroupsAbstracts = array(); $aGroupsLayers = array(); if(isset($http_form_vars["theme"])) { $szThemeName = $http_form_vars["theme"]; if (isset($http_form_vars["theme_abstract"]) && $http_form_vars["theme_abstract"] != "") { $szThemeAbstract = $http_form_vars["theme_abstract"]; } else $szThemeAbstract = $oMLT->get( "6", "No abstract available." ); } if(isset($http_form_vars["groups"]) && $http_form_vars["groups"] != "") { $aGroups = explode( "|", $http_form_vars["groups"] ); } if (isset($http_form_vars["groups_abstracts"]) && $http_form_vars["groups_abstracts"] != "") { $aGroupsAbstracts = explode( "|", $http_form_vars["groups_abstracts"] ); } if (isset($http_form_vars["groups_layers"])) { $aAllLayers = explode( "|", $http_form_vars["groups_layers"] ); foreach($aAllLayers as $szLayer) { $aLayers = explode( ";", $szLayer ); array_push($aGroupsLayers, $aLayers ); } } for($i=0; $iget( "6", "No abstract available." ); } if (!isset($aGroupsLayers[$i])) $aGroupsLayers[$i] = array(); } ?> Layer Information
get("Spinner", "../images/spinner_notext.gif")); ?>>
 get( "7", "Theme Information") : $oMLT->get( "8", "Group Information" ); ?>

Abstract:

Abstract:
oMap, $szLayerName); $szTitle = $szLayerName; //$oLayer->getMetadata( "WMS_TITLE" ); ?>

".trim($oMLT->get("3", "Layer missing from context.")).""; ?>
get("Cancel", "Cancel")), trim($oCommonMLT->get("CancelTip", "Close Dialog")), array('width'=>75) ); ?>
numlayers;$i++) { $oLayer = $poMap->getLayer( $i ); $szName = $oLayer->getmetadata( "WMS_NAME" ); if (strcasecmp(trim($szName), $szWMSName) == 0) { return $oLayer; } } return false; } /** * GetLayerByName * * Return a layer if it's wms_name or layer name corresponds to the * szTestName passed as argument */ function GetLayerByName( $poMap, $szTestName ) { for ($i=0;$i<$poMap->numlayers;$i++) { $oLayer = $poMap->getLayer( $i ); $szName = $oLayer->getmetadata( "WMS_NAME" ); //handle non-wms layers if ($szName == "") { $szName = $oLayer->name; } if (strcasecmp(trim($szName), $szTestName) == 0) { return $oLayer; } } return false; } ?>