[Mapbender-commits] r1011 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jan 16 07:02:25 EST 2007


Author: astrid_emde
Date: 2007-01-16 07:02:25 -0500 (Tue, 16 Jan 2007)
New Revision: 1011

Modified:
   trunk/mapbender/http/php/mod_orphanWMS.php
Log:
I just added that the wms_id is displayed for info

Modified: trunk/mapbender/http/php/mod_orphanWMS.php
===================================================================
--- trunk/mapbender/http/php/mod_orphanWMS.php	2007-01-16 11:53:16 UTC (rev 1010)
+++ trunk/mapbender/http/php/mod_orphanWMS.php	2007-01-16 12:02:25 UTC (rev 1011)
@@ -1,5 +1,5 @@
 <?php
-# $Id:$
+# $Id$
 # http://www.mapbender.org/index.php/OrphanWMS
 # Copyright (C) 2002 Melchior Moos 
 #
@@ -95,35 +95,23 @@
 		{
 			echo "<p class = 'guiList'>";
 			
-			// Show GetCapabilities of chosen WMS
-			$sql = "SELECT wms_getcapabilities FROM wms WHERE wms_id = $1";
+			// Show wms_id, GetCapabilities, Abstract of chosen WMS
+			$sql = "SELECT wms_id,wms_abstract,wms_getcapabilities FROM wms WHERE wms_id = $1";
 			$v = array($wmsList);
 			$t = array('i');
 			$res = db_prep_query($sql,$v,$t);
-			
-			echo "<br><br><b>GetCapabilities</b><br><br>";
-		
+
 			$cnt = 0;
 			while($row = db_fetch_array($res))
-			{
+			{	
+				echo "<b>wms_id:</b> ". $row["wms_id"]."<br>";
+				echo "<br><b>GetCapabilities</b><br><br>";
 				echo $row["wms_getcapabilities"]."<br>";
-				$cnt++;
-			}
-			
-			// Show Abstract of Chosen WMS
-			$sql = "SELECT wms_abstract FROM wms WHERE wms_id = $1";
-			$v = array($wmsList);
-			$t = array('i');
-			$res = db_prep_query($sql,$v,$t);
-			
-			echo "<br><br><b>Abstract</b><br><br>";
-		
-			$cnt = 0;
-			while($row = db_fetch_array($res))
-			{
+				echo "<br><b>Abstract</b><br><br>";
 				echo $row["wms_abstract"]."<br>";
 				$cnt++;
 			}
+
 			echo "</p>";
 	
    			echo "<input class='button_del' type='button' value='delete' onclick='validate()'>";



More information about the Mapbender_commits mailing list