svn commit: r416 - trunk/mapbender/http/php/mod_editGuiWms.php

christoph at osgeo.org christoph at osgeo.org
Mon Jun 12 06:18:56 EDT 2006


Author: christoph
Date: 2006-06-12 10:18:55+0000
New Revision: 416

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

Log:
the first layer of a wms may no longer be linked to a wfs.

Modified: trunk/mapbender/http/php/mod_editGuiWms.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_editGuiWms.php?view=diff&rev=416&p1=trunk/mapbender/http/php/mod_editGuiWms.php&p2=trunk/mapbender/http/php/mod_editGuiWms.php&r1=415&r2=416
==============================================================================
--- trunk/mapbender/http/php/mod_editGuiWms.php	(original)
+++ trunk/mapbender/http/php/mod_editGuiWms.php	2006-06-12 10:18:55+0000
@@ -595,20 +595,17 @@
   echo "</select></td>\n";
   /* wfs configuration */
 	echo "<td>";
-	echo "<input name='gui_layer_gaz' type='button' onclick='edit_gaz(\"".$guiList."\",".$wmsList.",".$layer_id[$i].")' value='";
-	if($gui_layer_wfs_featuretype[$i] == ""){
-		echo "setWFS";
+	if ($i > 0) {
+		echo "<input name='gui_layer_gaz' type='button' onclick='edit_gaz(\"".$guiList."\",".$wmsList.",".$layer_id[$i].")' value='";
+		if($gui_layer_wfs_featuretype[$i] == ""){
+			echo "setWFS";
+		}
+		else{
+			echo "wfs: ".$gui_layer_wfs_featuretype[$i];	
+		}
+		echo "'>";	
 	}
-	else{
-		echo "wfs: ".$gui_layer_wfs_featuretype[$i];	
-	}
-	echo "'>";	
-	
-	
-	
-	
 	echo "</td>";
-
  echo "</tr>\n";
  if($i == 0){ echo "<tr><td colspan='11'><hr></td></tr>";}
 }




More information about the Mapbender_commits mailing list