[mapguide-commits] r1378 - trunk/MgDev/Web/src/mapadmin

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Mon Mar 26 17:12:51 EDT 2007


Author: tonyfang
Date: 2007-03-26 17:12:51 -0400 (Mon, 26 Mar 2007)
New Revision: 1378

Modified:
   trunk/MgDev/Web/src/mapadmin/addunmanageddata.php
   trunk/MgDev/Web/src/mapadmin/editunmanageddata.php
   trunk/MgDev/Web/src/mapadmin/msgs.php
   trunk/MgDev/Web/src/mapadmin/resizablepagecomponents.php
   trunk/MgDev/Web/src/mapadmin/unmanageddatamanagement.php
Log:
Update labels in Site Administration
- "Configure Unmanaged Data" -> "Configure External Files"
- "Add/Edit/Delete Mapping" -> "Add/Edit/Delete Alias"
- "Mapping Name" -> "Alias Name"
- "Location" -> "Path to External Folder"

- add Save/cancel bar to "Add/Edit Alias" pages

Modified: trunk/MgDev/Web/src/mapadmin/addunmanageddata.php
===================================================================
--- trunk/MgDev/Web/src/mapadmin/addunmanageddata.php	2007-03-26 19:22:31 UTC (rev 1377)
+++ trunk/MgDev/Web/src/mapadmin/addunmanageddata.php	2007-03-26 21:12:51 UTC (rev 1378)
@@ -144,15 +144,18 @@
                 <!-- Input Area -->
                 <table border="0" cellspacing="0" class="inputForm">
                     <tr>
-                        <td class="addUserInputLabel">Mapping Name :</td>
+                        <td class="addUserInputLabel">Alias Name:</td>
                         <td class="inputFormValue"><input class="inputFormValue" name="<?php echo $mappingNameID?>" type="text" value="<?php echo $mappingName?>"></td>
                     </tr>
                     <tr>
-                        <td class="addUserInputLabel">Location :</td>
+                        <td class="addUserInputLabel">Path to External Folder:</td>
                         <td class="inputFormValue"><input class="inputFormValue" name="<?php echo $locationID?>" type="text" value="<?php echo $location?>"></td>
                     </tr>
                 </table>
-            <?php EndContentArea( true, $formName, $mappingNameID ); ?>
+            <?php
+            DisplaySaveCancelBar();
+            EndContentArea( true, $formName, $mappingNameID );
+            ?>
             <!-- End of Contents Area --------------------------------------------------------------------------------------------->
 
         </tr>

Modified: trunk/MgDev/Web/src/mapadmin/editunmanageddata.php
===================================================================
--- trunk/MgDev/Web/src/mapadmin/editunmanageddata.php	2007-03-26 19:22:31 UTC (rev 1377)
+++ trunk/MgDev/Web/src/mapadmin/editunmanageddata.php	2007-03-26 21:12:51 UTC (rev 1378)
@@ -113,7 +113,7 @@
         $confirmationMsg = sprintf( $confSuccessfulAddition, $mappingName );
         $selectedMapping = $mappingName;
         SaveSessionVars();
-        header( 'Location:  unmanageddatamanagement.php?'.strip_tags(SID) );
+        header( 'Path to External File:  unmanageddatamanagement.php?'.strip_tags(SID) );
         exit();
     }
 }
@@ -156,15 +156,18 @@
                 <!-- Input Area -->
                 <table border="0" cellspacing="0" class="inputForm">
                     <tr>
-                        <td class="editUserInputLabel">Mapping Name :</td>
+                        <td class="editUserInputLabel">Alias Name:</td>
                         <td class="inputFormValue"><input class="inputFormValue" name="<?php echo $mappingNameID?>" type="text" value="<?php echo $mappingName?>" size="60"></td>
                     </tr>
                     <tr>
-                        <td class="editUserInputLabel">Location :</td>
+                        <td class="editUserInputLabel">Path to External Folder:</td>
                         <td class="inputFormValue"><input class="inputFormValue" name="<?php echo $locationID?>" type="text" value="<?php echo $location?>" size="60"></td>
                     </tr>
                 </table>
-            <?php EndContentArea( true, $formName, $mappingNameID );?>
+            <?php
+            DisplaySaveCancelBar();
+            EndContentArea( true, $formName, $mappingNameID );
+            ?>
             <!-- End of Contents Area --------------------------------------------------------------------------------------------->
 
         </tr>

Modified: trunk/MgDev/Web/src/mapadmin/msgs.php
===================================================================
--- trunk/MgDev/Web/src/mapadmin/msgs.php	2007-03-26 19:22:31 UTC (rev 1377)
+++ trunk/MgDev/Web/src/mapadmin/msgs.php	2007-03-26 21:12:51 UTC (rev 1378)
@@ -29,9 +29,9 @@
     $errUserNameMissing = "User's name is not specified.";
     $errNoGroupSelectionForDelete = "Group must be selected in order to delete.";
     $errGroupNameMissing = "Group's name is not specified.";
-    $errMappingNameMissing = "Mapping name is not specified.";
-    $errMappingNameExists = "Mapping name already exists.";
-    $errLocationMissing = "Location is not specified.";
+    $errMappingNameMissing = "Alias name is not specified.";
+    $errMappingNameExists = "Alias name already exists.";
+    $errLocationMissing = "Path to external folder is not specified.";
     $errInvalidInput = "Input values are invalid.";
     $errInvalidServerName = "Server name must be specified.";
     $errInvalidServerAddress = "Server IP address must be specified.";

Modified: trunk/MgDev/Web/src/mapadmin/resizablepagecomponents.php
===================================================================
--- trunk/MgDev/Web/src/mapadmin/resizablepagecomponents.php	2007-03-26 19:22:31 UTC (rev 1377)
+++ trunk/MgDev/Web/src/mapadmin/resizablepagecomponents.php	2007-03-26 21:12:51 UTC (rev 1378)
@@ -68,9 +68,9 @@
     define( 'CONFIGURE_SERVICES_TITLE',         "Configure Services" );
     define( 'LOG_MANAGEMENT_TITLE',             "Manage Logs" );
     define( 'SELECT_SITE_SERVER_TITLE',         "Select Site Server" );
-    define( 'UNMANAGEDDATA_MANAGEMENT_TITLE',   "Configure Unmanaged Data" );
-    define( 'ADD_UNMANAGEDDATA_TITLE',          "Add Mapping" );
-    define( 'EDIT_UNMANAGEDDATA_TITLE',         "Edit Mapping" );
+    define( 'UNMANAGEDDATA_MANAGEMENT_TITLE',   "Configure External Files" );
+    define( 'ADD_UNMANAGEDDATA_TITLE',          "Add Alias" );
+    define( 'EDIT_UNMANAGEDDATA_TITLE',         "Edit Alias" );
 
     define( 'ADD_GROUP_TITLE',                  "Add Group" );
     define( 'EDIT_GROUP_TITLE',                 "Edit Group" );
@@ -88,9 +88,9 @@
     define( 'CONFIGURE_WFS_TITLE',              "Configure WFS" );
 
 
-    define( 'UNMANAGEDDATA_MANAGEMENT_MENU_ITEM',                    "Configure Unmanaged Data" );
-    define( 'ADD_UNMANAGEDDATA_MENU_ITEM',                           "Add Mapping" );
-    define( 'EDIT_UNMANAGEDDATA_MENU_ITEM',                          "Edit Mapping" );
+    define( 'UNMANAGEDDATA_MANAGEMENT_MENU_ITEM',                    "Configure External Files" );
+    define( 'ADD_UNMANAGEDDATA_MENU_ITEM',                           "Add Alias" );
+    define( 'EDIT_UNMANAGEDDATA_MENU_ITEM',                          "Edit Alias" );
     $unmanagedDataMenuGroup[ UNMANAGEDDATA_MANAGEMENT_MENU_ITEM ] =  'unmanageddatamanagement.php';
     $unmanagedDataMenuGroup[ ADD_UNMANAGEDDATA_MENU_ITEM ] =         'addunmanageddata.php';
     $unmanagedDataMenuGroup[ EDIT_UNMANAGEDDATA_MENU_ITEM ] =        'editunmanageddata.php';

Modified: trunk/MgDev/Web/src/mapadmin/unmanageddatamanagement.php
===================================================================
--- trunk/MgDev/Web/src/mapadmin/unmanageddatamanagement.php	2007-03-26 19:22:31 UTC (rev 1377)
+++ trunk/MgDev/Web/src/mapadmin/unmanageddatamanagement.php	2007-03-26 21:12:51 UTC (rev 1378)
@@ -189,6 +189,15 @@
                     DisplayConfirmationMsg( $confirmationMsg );
                     DisplayErrorMsg( $errorMsg );
                 ?>
+
+                <div class="textMsg">
+                    <br>
+                    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.
+                    <br><br>
+                </div>
+
+
                     <input type="hidden" name="<?php echo TABLE_PAGE_ID?>" value="<?php echo $currPage?>">
                     <input type="hidden" name="<?php echo $sortColumnID?>" value="<?php echo $sortColumn?>">
                     <input type="hidden" name="<?php echo $sortDirectionID?>" value="<?php echo $sortDirection?>">
@@ -200,22 +209,22 @@
                     // Toolbar
                     $buttons = array();
                     $button = new ToolbarButtonRecord();
-                        $button->label = "Add Mapping";
+                        $button->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 Mapping";
+                        $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 Mapping";
+                        $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 mapping?', '".DELETE_SELECTION_ID."', 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 );
                 ?>
@@ -231,8 +240,8 @@
                             $sortByLocationStr         = "SetElementValue( '".$sortColumnID."', '".ID_SORT_COLUMN."');";
                         ?>
                         <td class="dataHeader">&nbsp;</td>
-                        <td class="dataHeader"><a href="#" onClick="<?php echo $sortDirectionStr.$sortByMappingNameStr?>SubmitForm('<?php echo $formName?>');">Mapping Name<?php echo $mappingNameSortIconStr ?></a> </td>
-                        <td class="dataHeader"><a href="#" onClick="<?php echo $sortDirectionStr.$sortByLocationStr?>SubmitForm('<?php echo $formName?>');">Location<?php echo $locationSortIconStr ?></a> </td>
+                        <td class="dataHeader"><a href="#" onClick="<?php echo $sortDirectionStr.$sortByMappingNameStr?>SubmitForm('<?php echo $formName?>');">Alias Name<?php echo $mappingNameSortIconStr ?></a> </td>
+                        <td class="dataHeader"><a href="#" onClick="<?php echo $sortDirectionStr.$sortByLocationStr?>SubmitForm('<?php echo $formName?>');">Path to External Folder<?php echo $locationSortIconStr ?></a> </td>
                     </tr>
 
                     <?php



More information about the mapguide-commits mailing list