[Mapbender-commits] r2368 - branches/2.5/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Apr 9 09:58:53 EDT 2008
Author: christoph
Date: 2008-04-09 09:58:53 -0400 (Wed, 09 Apr 2008)
New Revision: 2368
Modified:
branches/2.5/http/php/mod_editWMS_Metadata.php
Log:
missing request parameter show_wms_list
Modified: branches/2.5/http/php/mod_editWMS_Metadata.php
===================================================================
--- branches/2.5/http/php/mod_editWMS_Metadata.php 2008-04-08 16:11:57 UTC (rev 2367)
+++ branches/2.5/http/php/mod_editWMS_Metadata.php 2008-04-09 13:58:53 UTC (rev 2368)
@@ -19,78 +19,60 @@
require_once(dirname(__FILE__)."/mb_validatePermission.php");
require_once(dirname(__FILE__)."/../classes/class_administration.php");
-?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-<title>Edit WMS Metadata</title>
-
-<?php
-echo '<meta http-equiv="Content-Type" content="text/html; charset='.CHARSET.'">';
include_once '../include/dyn_css.php';
-#Error reporting
-error_reporting(E_ALL);
-ini_set('display_errors', TRUE);
-$con = db_connect(DBSERVER,OWNER,PW);
-db_select_db(DB,$con);
$adm = new administration();
-
?>
-
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>Edit WMS Metadata</title>
+<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<script language="JavaScript">
var dTarget;
-function save()
-{
+function save() {
document.forms[0].update_content.value=1;
document.forms[0].submit();
}
-function deletepreview(layer_id)
-{
+function deletepreview(layer_id) {
var url = String(document.location);
url = url.substr(0, url.indexOf('?'));
- window.open(url+"?<?php echo strip_tags(SID);?>&guiID=<?php echo $_REQUEST["guiID"]?>&elementID=<?php echo $_REQUEST["elementID"];?>&delete_preview=1&layer_id="+layer_id,'delete preview', 'height=50, width=150, dependent=yes');
+ window.open(url+"?<?php echo $urlParameters; ?>&delete_preview=1&layer_id="+layer_id,'delete preview', 'height=50, width=150, dependent=yes');
document.getElementById(layer_id+"_dp").style.display="none";
}
-function pick_the_date(obj)
-{
+function pick_the_date(obj) {
dTarget = obj;
- var dp =
-window.open('../extensions/datepicker/datepicker.php?m=Jan_Feb_Mrz_Apr_Mai_Jun_Jul_Aug_Sep_Okt_Nov_Dez&d=Mo_Di_Mi_Do_Fr_Sa_So&t=heute','dp','left=200,top=200,width=230,height=210,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0');
+ var datePickerParameters = "m=Jan_Feb_Mrz_Apr_Mai_Jun_Jul_Aug_Sep_Okt_Nov_Dez&d=Mo_Di_Mi_Do_Fr_Sa_So&t=heute";
+ var datePickerStyle = "left=200,top=200,width=230,height=210,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0"
+ var dp = window.open('../extensions/datepicker/datepicker.php?' + datePickerParameters,'dp',datePickerStyle);
dp.focus();
- return false
+ return false;
}
</script>
</head>
<body>
<?php
-function guessTimestamp($timestr)
-{
+function guessTimestamp($timestr) {
- if (mb_strpos($timestr, '.'))
- {
+ if (mb_strpos($timestr, '.')) {
list($day, $month, $year) = explode(".", $timestr);
}
- elseif (mb_strpos($timestr, '/'))
- {
+ elseif (mb_strpos($timestr, '/')) {
list($month, $day, $year) = explode("/", $timestr);
}
- elseif (mb_strpos($timestr, '-'))
- {
+ elseif (mb_strpos($timestr, '-')) {
list($year, $month, $day) = explode("-", $timestr);
}
- else
- {
+ else {
$year = 0;
$month = 0;
$day = 0;
}
return mktime(0, 0, 0, $month, $day, intval($year));
-
}
#Update handling
@@ -140,10 +122,8 @@
$res_update_wms_sql = db_prep_query($update_wms_sql, $v, $t);
- while(list($key,$val) = each($_REQUEST))
- {
- if(preg_match("/___/", $key))
- {
+ while(list($key,$val) = each($_REQUEST)) {
+ if(preg_match("/___/", $key)) {
$myKey = explode("___", $key);
$layer_id = preg_replace("/L_/","",$myKey[0]);
if($myKey[1]=="layer_abstract") {
@@ -290,7 +270,7 @@
die("Preview has been deleted!</body></html>");
}
?>
-<form name='form1' action='<?php echo $self; ?>' method='post'>
+<form name='form1' action='<?php echo $self . "&show_wms_list=true"; ?>' method='post'>
<table border='0'>
<tr>
@@ -498,15 +478,10 @@
<?php }*/?>
</td>
</tr>
-
-
<?php
}
-
-
#editWMSByWMSID(961);
?>
-
</table>
<input type='hidden' name='update_content' value=''/>
<input type='hidden' name='wms_id' value='<?php echo $wms_id ?>'/>
@@ -519,4 +494,4 @@
</html>
<?php
}
-?>
+?>
\ No newline at end of file
More information about the Mapbender_commits
mailing list