[Mapbender-commits] r1040 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Jan 25 07:17:23 EST 2007
Author: christoph
Date: 2007-01-25 07:17:23 -0500 (Thu, 25 Jan 2007)
New Revision: 1040
Modified:
trunk/mapbender/http/php/mod_layerMetadata.php
Log:
metadata a la Geoportal
Modified: trunk/mapbender/http/php/mod_layerMetadata.php
===================================================================
--- trunk/mapbender/http/php/mod_layerMetadata.php 2007-01-24 16:15:15 UTC (rev 1039)
+++ trunk/mapbender/http/php/mod_layerMetadata.php 2007-01-25 12:17:23 UTC (rev 1040)
@@ -42,7 +42,7 @@
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de">
<head>
- <title>GeoPortal Rheinland-Pfalz - Metadaten</title>
+ <title>Metadaten</title>
<meta name="description" content="Metadaten" xml:lang="de" />
<meta name="keywords" content="Metadaten" xml:lang="de" />
<meta http-equiv="cache-control" content="no-cache">
@@ -53,20 +53,8 @@
<?php
echo '<meta http-equiv="Content-Type" content="text/html; charset='.CHARSET.'">';
?>
- <link rel="stylesheet" type="text/css" href="../../../portal/fileadmin/design/css/screen.css" media="screen" />
- <link rel="stylesheet" type="text/css" href="../../../portal/fileadmin/design/css/print.css" media="print" />
</head>
- <body id="top" class="popup">
-
-
- <div id="header_gray">
- <a href="javascript:window.print()">Drucken <img src="../../../portal/fileadmin/design/images/icon_print.gif" width="14" height="14" alt="" /></a>
- <a href="javascript:window.close()">Fenster schließen <img src="../../../portal/fileadmin/design/images/icon_close.gif" width="14" height="14" alt="" /></a>
- </div>
- <div id="header_redbottom"></div>
- <div id="header_red"></div>
-
- <div class="content">
+ <body>
<?php
$layer_id = $_GET['id'];
$wms_getmap = urldecode($_GET['wms']);
@@ -94,46 +82,37 @@
$v = array($layer_name, $wms_getmap."%");
$t = array('s', 's');
}
- else die();
+ else die("layer not specified!");
$res = db_prep_query($sql,$v,$t);
echo db_error();
$layer = array();
$row = db_fetch_array($res);
$layer_id = $row['layer_id'];
- $sql_p = "SELECT * FROM layer_preview WHERE fkey_layer_id = $1 LIMIT 1";
- $v_p = array($layer_id);
- $t_p = array('i');
- $res_p = db_prep_query($sql_p, $v_p, $t_p);
- $row_p = db_fetch_array($res_p);
- if ($row_p['layer_map_preview'] != "") {
- $layer['Voransicht'] = "<img src = 'mod_displayImage.php?id=".$layer_id."&col=layer_map_preview'>";
- if ($row_p['layer_legend_preview'] != "") $layer['Voransicht'] .= "<img src = 'mod_displayImage.php?id=".$layer_id."&col=layer_legend_preview'>";
- }
-
- $sql_dep = "SELECT mb_user_department FROM mb_user WHERE mb_user_id = $1 LIMIT 1";
+ $sql_dep = "SELECT mb_group_name FROM mb_group AS a, mb_user AS b, mb_user_mb_group AS c WHERE b.mb_user_id = $1 AND b.mb_user_id = c.fkey_mb_user_id AND c.fkey_mb_group_id = a.mb_group_id AND b.mb_user_department = a.mb_group_description LIMIT 1";
$v_dep = array($row['wms_owner']);
$t_dep = array('i');
$res_dep = db_prep_query($sql_dep, $v_dep, $t_dep);
$row_dep = db_fetch_array($res_dep);
- //$layer['ID'] = $row['layer_id'];
+ $layer['ID'] = $row['layer_id'];
$layer['Titel'] = $row['layer_title'];
$layer['Zusammenfassung'] = $row['layer_abstract'];
if ($row['layer_pos'] || $row['layer_parent']) {
$layer['Minscale'] = $row['layer_minscale'];
$layer['Maxscale'] = $row['layer_maxscale'];
}
- $layer['Projektionssysteme'] = str_replace(" ", ", ", getEpsgByLayerId($row['layer_id']));
- $layer['Capabilities-Dokument'] = "<a href = '../x_geoportal/getCapabilities_document.php?wms_request=".$row['wms_id']."&layer_request=".$row['layer_pos']."' target=_blank>Capabilities-Dokument</a>";
+ $layer['Koordinatensysteme'] = str_replace(" ", ", ", getEpsgByLayerId($row['layer_id']));
+// $layer['Capabilities-Dokument'] = "<a href = '../x_geoportal/getCapabilities_document.php?wms_request=".$row['wms_id']."&layer_request=".$row['layer_pos']."' target=_blank>Capabilities-Dokument</a>";
if ($row['wms_timestamp']) {
$layer['Datum der Registrierung'] = date("d.m.Y",$row['wms_timestamp']);
}
else {
$layer['Datum der Registrierung'] = "Keine Angabe";
}
- $layer['Registrierende Stelle'] = $row_dep['mb_user_department'];
+ $layer['Registrierende Stelle'] = $row_dep['mb_group_name'];
+ $layer['WMS ID'] = $row['wms_id'];
$layer['WMS Titel'] = $row['wms_title'];
$layer['WMS Zusammenfassung'] = $row['wms_abstract'];
$layer['Gebühren'] = $row['fees'];
@@ -149,16 +128,7 @@
$layer['E-Mail'] = $row['contactelectronicmailaddress'];
$layer['Land'] = $row['country'];
- $sql_p = "SELECT layer_extent_preview FROM layer_preview WHERE fkey_layer_id = $1 LIMIT 1";
- $v_p = array($layer_id);
- $t_p = array('i');
- $res_p = db_prep_query($sql_p, $v_p, $t_p);
- $row_p = db_fetch_array($res_p);
- if ($row_p['layer_extent_preview'] != "") $layer['Ausdehnung'] = "<img src = 'mod_displayImage.php?id=".$layer_id."&col=layer_extent_preview'>";
-
-
-
- echo "<table class='contenttable-0-wide'>\n";
+ echo "<table>\n";
$t_a = "\t<tr>\n\t\t<th>\n\t\t\t";
$t_b = "\n\t\t</th>\n\t\t<td>\n\t\t\t";
$t_c = "\n\t\t</td>\n\t</tr>\n";
@@ -191,6 +161,5 @@
echo "</td></tr></table>\n";
?>
</div>
- <div id="footer_red"></div>
</body>
</html>
More information about the Mapbender_commits
mailing list