Exemplo n.º 1
0
            $resourceList->loadXML($mapResourcesXml);
            $resourceIdNodeList = $resourceList->documentElement->getElementsByTagName("ResourceId");
            for ($i = 0; $i < $resourceIdNodeList->length; $i++) {
                $mapResourceID = $resourceIdNodeList->item($i)->nodeValue;
                $shortMapName = strrchr($mapResourceID, '/');
                $shortMapName = substr($shortMapName, 1, strlen($shortMapName) - 15);
                $mapResources[$i]["FullNames"] = $mapResourceID;
                $mapResources[$i]["ShortNames"] = $shortMapName;
            }
            usort($mapResources, "CompareMapName");
        } catch (Exception $exc) {
            $errorMsg = $exc->getMessage();
        }
    }
    GetAllMapResources();
    $recentSettings->GetRecentSettings();
} catch (MgException $e) {
    CheckForFatalMgException($e);
    $errorMsg = $e->GetExceptionMessage();
} catch (Exception $e) {
    $errorMsg = $e->getMessage();
}
?>

<!-- PAGE DEFINITION -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <?php 
OutputHeader($pageTitle);
?>
<body>