[Mapbender-commits] r5923 - branches/2.6/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sun Apr 11 09:14:56 EDT 2010


Author: marc
Date: 2010-04-11 09:14:56 -0400 (Sun, 11 Apr 2010)
New Revision: 5923

Modified:
   branches/2.6/http/php/mod_loadCapabilitiesList.php
Log:
added tooltip(wmsAbstract)

Modified: branches/2.6/http/php/mod_loadCapabilitiesList.php
===================================================================
--- branches/2.6/http/php/mod_loadCapabilitiesList.php	2010-04-11 13:14:29 UTC (rev 5922)
+++ branches/2.6/http/php/mod_loadCapabilitiesList.php	2010-04-11 13:14:56 UTC (rev 5923)
@@ -226,7 +226,7 @@
 	echo"WMS";
 	echo"<br>";
 	if(isset($guiList) && $guiList!=""){
-		$sql = "SELECT DISTINCT wms_id, wms.wms_title, gui_wms_position FROM gui_wms ";
+		$sql = "SELECT DISTINCT wms_id, wms.wms_abstract, wms.wms_title, gui_wms_position FROM gui_wms ";
 		$sql .= "JOIN gui ON gui_wms.fkey_gui_id = gui.gui_id JOIN wms ON gui_wms.fkey_wms_id=wms.wms_id ";
 		$sql .= "AND gui_wms.fkey_gui_id=gui.gui_id WHERE gui.gui_name = $1 ORDER BY gui_wms_position";
 		$v = array($guiList);
@@ -237,7 +237,7 @@
 	
 		while($row = db_fetch_array($res)){
 			if ($row["wms_title"]!=""){
-				echo "<option value='".$row["wms_id"]."' ";
+				echo "<option title='".$row["wms_abstract"]."' value='".$row["wms_id"]."' ";
 				echo ">".$row["wms_title"]."</option>";
 			}
 			$count++;
@@ -267,7 +267,7 @@
 	echo "<select class='select1' name='wmsID' size='20' onchange='submit()'>";
 	$cnt = 0;
 	while($row = db_fetch_array($res)){
-		echo "<option value='".$row["wms_id"]."' ";
+		echo "<option title='".$row["wms_abstract"]."' value='".$row["wms_id"]."' ";
 		if($row["wms_owner"] == $_SESSION["mb_user_id"]){
 			echo "style='color:green' ";	
 		}



More information about the Mapbender_commits mailing list