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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sun Apr 11 09:17:31 EDT 2010


Author: marc
Date: 2010-04-11 09:17:31 -0400 (Sun, 11 Apr 2010)
New Revision: 5924

Modified:
   trunk/mapbender/http/php/mod_loadCapabilitiesList.php
Log:
added tooltip(wmsAbstract)

Modified: trunk/mapbender/http/php/mod_loadCapabilitiesList.php
===================================================================
--- trunk/mapbender/http/php/mod_loadCapabilitiesList.php	2010-04-11 13:14:56 UTC (rev 5923)
+++ trunk/mapbender/http/php/mod_loadCapabilitiesList.php	2010-04-11 13:17:31 UTC (rev 5924)
@@ -209,7 +209,7 @@
 		$gui_name[$count]=$row["gui_name"];
 		$gui_description[$count]=$row["gui_description"];
 		$count++;
-		echo "<option value='".$row["gui_id"]."' ";
+		echo "<option  value='".$row["gui_id"]."' ";
 		if($guiList && $guiList == $row["gui_name"]){
 			echo "selected";
 		}
@@ -225,7 +225,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_title,wms.wms_abstract, 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);
@@ -236,7 +236,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++;
@@ -266,7 +266,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"] == Mapbender::session()->get("mb_user_id")){
 			echo "style='color:green' ";	
 		}



More information about the Mapbender_commits mailing list