svn commit: r803 - trunk/mapbender/http/php/mod_meetingPoint.php
astrid_emde at osgeo.org
astrid_emde at osgeo.org
Wed Oct 25 07:55:34 EDT 2006
Author: astrid_emde
Date: 2006-10-25 11:55:33+0000
New Revision: 803
Modified:
trunk/mapbender/http/php/mod_meetingPoint.php
Log:
Modified: trunk/mapbender/http/php/mod_meetingPoint.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_meetingPoint.php?view=diff&rev=803&p1=trunk/mapbender/http/php/mod_meetingPoint.php&p2=trunk/mapbender/http/php/mod_meetingPoint.php&r1=802&r2=803
==============================================================================
--- trunk/mapbender/http/php/mod_meetingPoint.php (original)
+++ trunk/mapbender/http/php/mod_meetingPoint.php 2006-10-25 11:55:33+0000
@@ -21,6 +21,7 @@
require("../php/mb_validateSession.php");
require_once("../../conf/mapbender.conf");
+
$con = db_connect(DBSERVER,OWNER,PW);
db_select_db(DB,$con);
@@ -31,6 +32,8 @@
$t = array('s');
#echo $sql;
#echo $gui_id;
+
+echo CHARSET;
$res = db_prep_query($sql, $v, $t);
$cnt = 0;
while($row = db_fetch_array($res)){
@@ -53,6 +56,11 @@
<link rel="stylesheet" type="text/css" href="../css/meetingPoint.css" />
<script language='JavaScript'>
<!--
+<?php
+echo "var used_charset = '".CHARSET ."';";
+
+
+?>
function validate(){
var mycheck = true;
@@ -84,8 +92,15 @@
my_meetingPoint += parseFloat(coord[2]) + ",";
my_meetingPoint += parseFloat(coord[3]) ;
- my_meetingPoint += "&mb_myPOI=" + document.forms[0].mytext.value + ",";
- my_meetingPoint += document.forms[0].x.value + ",";
+ my_meetingPoint += "&mb_myPOI=";
+
+ if(used_charset == 'UTF-8'){
+ my_meetingPoint += decodeURI(document.forms[0].mytext.value);
+ }else{
+ my_meetingPoint += document.forms[0].mytext.value;
+ }
+
+ my_meetingPoint += "," + document.forms[0].x.value + ",";
my_meetingPoint += document.forms[0].y.value;
@@ -118,6 +133,8 @@
<form action="" >
+<img id='getCoords' name='getCoords' onmouseover = "mb_regButton('init_mod_getCoords')" title="Treffpunkt setzen" src = '../img/button_digitize/point_off.png'>
+
Text <input class='strinput' type="hidden" name='myurl' value='<?php echo LOGIN; ?>'>
<input class='strinput' type="hidden" name='mygui' value='<?php echo $_SESSION["mb_user_gui"]; ?>'>
More information about the Mapbender_commits
mailing list