svn commit: r637 - trunk/mapbender/http/php/mod_renameGUI.php

christoph at osgeo.org christoph at osgeo.org
Mon Jul 3 11:47:45 EDT 2006


Author: christoph
Date: 2006-07-03 15:47:44+0000
New Revision: 637

Modified:
   trunk/mapbender/http/php/mod_renameGUI.php

Log:
added checkbox "with users"

* if checked, the copied gui will be accessible by all users who can access original gui.
* default is 'false'
* doesn't apply to rename (with users is always true)

Modified: trunk/mapbender/http/php/mod_renameGUI.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_renameGUI.php?view=diff&rev=637&p1=trunk/mapbender/http/php/mod_renameGUI.php&p2=trunk/mapbender/http/php/mod_renameGUI.php&r1=636&r2=637
==============================================================================
--- trunk/mapbender/http/php/mod_renameGUI.php	(original)
+++ trunk/mapbender/http/php/mod_renameGUI.php	2006-07-03 15:47:44+0000
@@ -56,6 +56,12 @@
    top:390px;
    left:110px;
 }
+.button_copy_checkbox{
+   color: red;
+   position:absolute;
+   top:390px;
+   left:170px;
+}
 .newName{
    	position:absolute;
    	top:350px;
@@ -112,6 +118,7 @@
 }
 
 function validate_copy(){
+	document.form1.withU.value = document.form1.withUsers.checked;
 	if(document.form1.newGuiName.value == ""){
 		alert("Please enter a GUI name!");
 		document.form1.newGuiName.focus();
@@ -155,7 +162,7 @@
 	$gui = new gui();
 
 	if ($copy) {	
-		$gui->copyGui($guiList, $newGuiName, false);
+		$gui->copyGui($guiList, $newGuiName, $withU);
 	}
 	elseif ($rename) {
 		$gui->renameGui($guiList, $newGuiName);
@@ -206,13 +213,14 @@
 echo "<tr><td class='newName_str'>Name: </td><td><input class='newName' type='text' name='newGuiName'></td></tr>\n";
 echo "<tr>";
 echo " <td><input class='button_rename' type='button' value='rename' onclick='validate_rename()'></td>";
-echo " <td><input class='button_copy' type='button' value='copy' onclick='validate_copy()'></td>";
+echo " <td><input class='button_copy' type='button' value='copy' onclick='validate_copy()'><div  class='button_copy_checkbox'>(<input name='withUsers' type='checkbox' /> copy users)</div></td>";
 echo "</tr>\n";
 echo "</table>";
 }
 ?>
 <input type='hidden' name='rename'>
 <input type='hidden' name='copy'>
+<input type='hidden' name='withU'>
 </form>
 </body>
 </html>




More information about the Mapbender_commits mailing list