[Mapbender-commits] r1201 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Mar 7 05:09:52 EST 2007
Author: christoph
Date: 2007-03-07 05:09:52 -0500 (Wed, 07 Mar 2007)
New Revision: 1201
Modified:
trunk/mapbender/http/php/mod_gazetteerMetadata.php
Log:
some refactoring
Modified: trunk/mapbender/http/php/mod_gazetteerMetadata.php
===================================================================
--- trunk/mapbender/http/php/mod_gazetteerMetadata.php 2007-03-07 10:07:57 UTC (rev 1200)
+++ trunk/mapbender/http/php/mod_gazetteerMetadata.php 2007-03-07 10:09:52 UTC (rev 1201)
@@ -1,6 +1,5 @@
<?php
# $Id:$
-# module maintainer: Verena Diewald
# http://www.mapbender.org/index.php/gazetteerMetadata
# Copyright (C) 2002 CCGIS
#
@@ -19,18 +18,15 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
session_start();
+$gui_id = $_SESSION["mb_user_gui"];
+$user_id = $_SESSION["mb_user_id"];
require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
require_once(dirname(__FILE__)."/../classes/class_administration.php");
-///* user authorization */
-$user_id = $_SESSION["mb_user_id"];
-session_start();
$con = db_connect($DBSERVER,$OWNER,$PW);
db_select_db(DB,$con);
-
?>
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
@@ -42,12 +38,9 @@
<meta name="DC.Rights" content="WhereGroup GmbH & Co.KG, Bonn">
<title>Metadata search</title>
<?
-$gui_id = $_SESSION["mb_user_gui"];
- include_once("../include/dyn_css.php");
- $e_id_css = 'poi';
+$e_id_css = 'poi';
+include_once("../include/dyn_css.php");
?>
-
-
<style type="text/css">
<!--
body{
@@ -94,13 +87,12 @@
}
.result{
- position: absolute;
- top: 40px;
- left: 0px;
+ position: absolute;
+ top: 40px;
+ left: 0px;
}
-->
</style>
-
<script type="text/javascript">
<!--
@@ -237,21 +229,16 @@
}
}
}
-
// -->
</script>
</head>
<body leftmargin="2" topmargin="0" bgcolor="#ffffff">
-<?php
-
-echo "<form name='form1' target='result' onsubmit='return validate();'>";
-echo "<p>";
-echo "<input class='textfield' name='search' type='text'> ";
-echo "<input type='submit' name='send' value='ok'>";
-echo "</p>";
-echo "</form>";
-echo "<div id='resultDivTag' class='result'></div>";
-
-?>
+<form name='form1' target='result' onsubmit='return validate();'>
+<p>
+<input class='textfield' name='search' type='text'>
+<input type='submit' name='send' value='ok'>
+</p>
+</form>
+<div id='resultDivTag' class='result'></div>
</body>
-</html>
+</html>
\ No newline at end of file
More information about the Mapbender_commits
mailing list