GetCurrentSiteAddress(); GetServerSelection( $selectedServerID, $selectedServer ); $serverRec = GetDataForServer( $selectedServer ); if ( $serverRec == NULL ) throw new Exception( sprintf( $errNotFound, $selectedServer ) ); if ( !$serverRec->poweredUp ) throw new Exception( sprintf( $errServerIsDown, $selectedServer ) ); // Get props values from server $serverAdmin = new MgServerAdmin(); $serverAdmin->Open( $selectedServer, $userInfo ); $mappings = GetUnmanagedDataMappings( $serverAdmin ); // Get input values if ( array_key_exists( $selectedMappingID, $_GET ) ) $selectedMapping = $_GET[$selectedMappingID]; else if ( array_key_exists( $selectedMappingID, $_POST ) ) $selectedMapping = $_POST[$selectedMappingID]; if ( array_key_exists( $sortDirectionID, $_GET ) ) $sortDirection = $_GET[$sortDirectionID]; else if ( array_key_exists( $sortDirectionID, $_POST ) ) $sortDirection = $_POST[$sortDirectionID]; SetUserSortDirection( $sortDirection ); if ( array_key_exists( $sortColumnID, $_GET ) ) $sortColumn = $_GET[$sortColumnID]; else if ( array_key_exists( $sortColumnID, $_POST ) ) $sortColumn = $_POST[$sortColumnID]; SetUserSortColumn( $sortColumn ); // Are we switching to another page? CheckForPageSwitch(); // Are we deleting the selected mapping? //if ( CheckForDeleteSelection() && DeleteUnmanagedDataMapping( $serverAdmin, $mappings, $selectedMapping ) ) if ( CheckForDeleteSelection() && DeleteUnmanagedDataMapping( $serverAdmin, $selectedMapping ) ) { $confirmationMsg = sprintf( $confSuccessfulDeletion, $selectedMapping ); $mappings = GetUnmanagedDataMappings( $serverAdmin ); } $serverAdmin->Close(); } catch ( MgException $e ) { CheckForFatalMgException( $e ); $errorMsg = $e->GetMessage(); } catch ( Exception $e ) { $errorMsg = $e->getMessage(); } // Load display data try { // sort mappings if ($sortColumn == NAME_SORT_COLUMN) if ($sortDirection == ASCENDING_SORT_DIRECTION) ksort($mappings); else krsort($mappings); else if ($sortDirection == ASCENDING_SORT_DIRECTION) asort($mappings); else arsort($mappings); $numMappings = sizeof( $mappings ); $mappingsKeys = array_keys( $mappings ); $currPage = GetPageNumber( $mappingsKeys, $selectedMapping, $pageSize ); GetPageRange( $currPage, $numMappings, $pageSize, $firstPageIndex, $lastPageIndex ); LoadMappingTable( $mappingTable, $mappings, $firstPageIndex, $lastPageIndex ); if ( !array_key_exists( $selectedMapping, $mappingTable ) && $numMappings > 0 ) { $selectedMapping = $mappingsKeys[ $firstPageIndex ]; } else if ( $numMappings == 0 ) { $selectedMapping = ''; } } catch ( MgException $e ) { CheckForFatalMgException( $e ); if ( empty( $errorMsg ) ) $errorMsg = $e->GetMessage(); } catch ( Exception $e ) { if ( empty( $errorMsg ) ) $errorMsg = $e->getMessage(); } ?>

Configure aliases to external folders containing spatial files such as Raster, SDF, and SHP. You can then connect directly to these external files, instead of loading them into the MapGuide Library.

label = "Add Alias"; $button->icon = "images/new.gif"; $button->action = "SetElementValue('".NEXT_PAGE_ID."', 'addunmanageddata.php');"; $buttons[0] = $button; $button = new ToolbarButtonRecord(); $button->label = "Edit Alias"; $button->icon = "images/edit.gif"; $button->disabled = !empty( $selectedMapping ) ? false : true; $button->action = "SetElementValue('".NEXT_PAGE_ID."', 'editunmanageddata.php');"; $buttons[1] = $button; $button = new ToolbarButtonRecord(); $button->label = "Delete Alias"; $button->icon = "images/delete.gif"; $button->submitForm = false; $button->disabled = !empty( $selectedMapping ) ? false : true; $button->action = "ConditionalSubmitForm( '".$formName."', 'Are you sure you want to delete the selected alias?', '".DELETE_SELECTION_ID."', true );"; $buttons[2] = $button; DisplayToolbar( $buttons, $formName ); ?>
' : ''; $locationSortIconStr = ( $sortColumn === ID_SORT_COLUMN ) ? ' ' : ''; $sortDirectionStr = "SetElementValue( '".$sortDirectionID."', '".GetSortDirection( $sortDirection )."' );"; $sortByMappingNameStr = "SetElementValue( '".$sortColumnID."', '".NAME_SORT_COLUMN."');"; $sortByLocationStr = "SetElementValue( '".$sortColumnID."', '".ID_SORT_COLUMN."');"; ?> $val ) { if ( $key == $selectedMapping ) $checkedStr = " checked "; else $checkedStr = ""; $mappingSelectionOnClickStr = "SetElementValue( '".$selectedMappingID."', '".$key."');"; ?>
  Alias Name Path to External Folder
onClick="" >