[Mapbender-commits] r1195 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Mar 6 08:39:56 EST 2007
Author: astrid_emde
Date: 2007-03-06 08:39:55 -0500 (Tue, 06 Mar 2007)
New Revision: 1195
Modified:
trunk/mapbender/http/php/mod_gazetteerMetadata.php
Log:
style changes, deprecated functions deleted, english
Modified: trunk/mapbender/http/php/mod_gazetteerMetadata.php
===================================================================
--- trunk/mapbender/http/php/mod_gazetteerMetadata.php 2007-03-06 09:37:55 UTC (rev 1194)
+++ trunk/mapbender/http/php/mod_gazetteerMetadata.php 2007-03-06 13:39:55 UTC (rev 1195)
@@ -55,11 +55,8 @@
font-size : 12px;
font-weight : bold;
color: #808080;
- background-color: 'ffffff';
}
- .header{
- color: #cc3366;
- }
+
a:link{
font-family : Arial, Helvetica, sans-serif;
text-decoration : none;
@@ -76,14 +73,13 @@
}
a:hover{
font-family : Arial, Helvetica, sans-serif;
- color: white;
+ color: #808080;
text-decoration : none;
font-weight : normal;
- background-color : #999999;
}
a:active{
font-family : Arial, Helvetica, sans-serif;
- color: black;
+ color: #808080;
text-decoration : none;
font-weight : normal;
}
@@ -94,19 +90,9 @@
font-size : 12px;
font-weight : normal;
color: #000000;
- width: 100px;
- position: absolute;
- left: 5px
+ width: 120px;
}
- .sbutton{
- font-size : 10px;
- width: 60px;
- height: 22px;
- position: absolute;
- left: 110px;
- }
-
.result{
position: absolute;
top: 40px;
@@ -121,12 +107,12 @@
function validate(){
if(document.form1.search.value.length < 1){
- alert("Bitte vervollständigen Sie die Angaben!");
+ alert("Please insert a keyword!");
document.form1.search.focus();
return false;
}
else{
- document.getElementById("resultDivTag").innerHTML = "<table><tr><td><img src='../img/indicator_wheel.gif></td><td>Searching...</td></tr></table>";
+ document.getElementById("resultDivTag").innerHTML = "<table><tr><td><img src='../img/indicator_wheel.gif'></td><td>Searching...</td></tr></table>";
parent.mb_ajax_json("mod_gazetteerMetadata_search.php", {"search":document.form1.search.value}, function(jsonObj, status){
document.getElementById("resultDivTag").innerHTML = displayTable(jsonObj);
});
@@ -142,17 +128,17 @@
text += "<tr><td valign='top'>";
if (typeof(resultObj.layer_name) !== "undefined") {
text += "<a href='#' onClick='mod_addWMSLayerfromfilteredList(\""+resultObj.wms_getcapabilities+"\",\""+resultObj.wms_version+"\", \""+resultObj.layer_name+"\");'>";
- text += "<img name='add_wms' src='../img/button_gray/metadata_layer.gif' border='0'></a>";
+ text += "<img name='add_wms' src='../img/button_gray/metadata_layer.gif' border='0' title='Load'></a>";
text += "</td><td>";
- text += "<a href='#' onmouseover='javascript:showHighlight();' onmouseout='javascript:hideHighlight();' ";
- text += "onClick='javascript:window.open(\"mod_layerMetadata.php?id="+resultObj.layer_id+"\", \"metadata\", \"width=450, height=600\");'>";
+ text += "<a href='#' ";
+ text += "onClick='javascript:window.open(\"mod_layerMetadata.php?id="+resultObj.layer_id+"\", \"metadata\", \"width=450, height=600\");' title='Info'>";
text += resultObj.title+"</a>";
}
else {
text += "<a href='#' onClick='mod_addWMSfromfilteredList(\""+resultObj.wms_getcapabilities+"\",\""+resultObj.wms_version+"\")'>";
- text += "<img name='add_wms' src='../img/button_gray/metadata_wms.gif' border='0'></a>";
+ text += "<img name='add_wms' src='../img/button_gray/metadata_wms.gif' border='0' title='Load'></a>";
text += "</td><td>";
- text += "<a href='#' onmouseover='javascript:showHighlight();' onmouseout='javascript:hideHighlight();' onClick='javascript:window.open(\"mod_layerMetadata.php?id="+resultObj.layer_id+"\", \"metadata\", \"width=450, height=600\");'>";
+ text += "<a href='#' onClick='javascript:window.open(\"mod_layerMetadata.php?id="+resultObj.layer_id+"\", \"metadata\", \"width=450, height=600\");' title='Info'>";
text += resultObj.title+"</a>"
}
text += "</td></tr>";
@@ -162,19 +148,7 @@
return text;
}
-function showHighlight(wms_title){
- parent.parent.mb_showHighlight("mapframe1",wms_title);
- parent.parent.mb_showHighlight("overview",wms_title);
- //alert (backlink);
-
-}
-function hideHighlight(){
- parent.parent.mb_hideHighlight("mapframe1");
- parent.parent.mb_hideHighlight("overview");
-
-}
-
function handleLayer(sel_lay, wms_title){
//var wms_title = document.forms[0].wmsTitle.value
@@ -271,8 +245,10 @@
<?php
echo "<form name='form1' target='result' onsubmit='return validate();'>";
+echo "<p>";
echo "<input class='textfield' name='search' type='text'> ";
-echo "<input class='sbutton' type='submit' name='send' value='search'>";
+echo "<input type='submit' name='send' value='ok'>";
+echo "</p>";
echo "</form>";
echo "<div id='resultDivTag' class='result'></div>";
More information about the Mapbender_commits
mailing list