[Mapbender-commits] r1859 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Nov 26 08:41:25 EST 2007
Author: verenadiewald
Date: 2007-11-26 08:41:25 -0500 (Mon, 26 Nov 2007)
New Revision: 1859
Modified:
trunk/mapbender/http/php/mod_wfs.php
trunk/mapbender/http/php/mod_wfs_conf.php
trunk/mapbender/http/php/mod_wfs_edit.php
Log:
new column show_detail
Modified: trunk/mapbender/http/php/mod_wfs.php
===================================================================
--- trunk/mapbender/http/php/mod_wfs.php 2007-11-26 13:39:51 UTC (rev 1858)
+++ trunk/mapbender/http/php/mod_wfs.php 2007-11-26 13:41:25 UTC (rev 1859)
@@ -18,6 +18,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
+//require_once(dirname(__FILE__)."/../classes/class_mb_exception.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
@@ -143,6 +144,7 @@
echo "wfs_conf[".$i."]['element'][".$cnt."]['f_label'] = '".$row["f_label"]."';";
echo "wfs_conf[".$i."]['element'][".$cnt."]['f_label_id'] = '".$row["f_label_id"]."';";
echo "wfs_conf[".$i."]['element'][".$cnt."]['f_show'] = '".$row["f_show"]."';";
+ echo "wfs_conf[".$i."]['element'][".$cnt."]['f_show_detail'] = '".$row["f_show_detail"]."';";
echo "wfs_conf[".$i."]['element'][".$cnt."]['f_respos'] = '".$row["f_respos"]."';";
echo "wfs_conf[".$i."]['element'][".$cnt."]['element_name'] = '".$row["element_name"]."';";
echo "wfs_conf[".$i."]['element'][".$cnt."]['element_type'] = '".$row["element_type"]."';";
Modified: trunk/mapbender/http/php/mod_wfs_conf.php
===================================================================
--- trunk/mapbender/http/php/mod_wfs_conf.php 2007-11-26 13:39:51 UTC (rev 1858)
+++ trunk/mapbender/http/php/mod_wfs_conf.php 2007-11-26 13:41:25 UTC (rev 1859)
@@ -110,7 +110,7 @@
$res = db_query($sql);
$wfsID = db_insert_id($con,'wfs_conf','wfs_conf_id');
for($i=0; $i<$_REQUEST["num"]; $i++){
- $sql = "INSERT INTO wfs_conf_element (fkey_wfs_conf_id,f_id,f_search,f_pos,f_style_id,f_toupper,f_label,f_label_id,f_show,f_respos,f_edit,f_form_element_html,f_mandatory,f_auth_varname) VALUES(";
+ $sql = "INSERT INTO wfs_conf_element (fkey_wfs_conf_id,f_id,f_search,f_pos,f_style_id,f_toupper,f_label,f_label_id,f_show,f_respos,f_edit,f_form_element_html,f_mandatory,f_auth_varname,f_show_detail) VALUES(";
$sql .= "'".$wfsID."',";
$sql .= "'".$_REQUEST["f_id".$i]."',";
if(!empty($_REQUEST["f_search".$i])){
@@ -137,8 +137,11 @@
}else{$sql .= "'0'";}
$sql .= ", ";
$sql .= "'".$_REQUEST["f_auth_varname".$i];
- $sql .= "'";
- $sql .= "); ";
+ $sql .= ",";
+ if(!empty($_REQUEST["f_show_detail".$i])){
+ $sql .= "'1'";
+ }else{$sql .= "'0'";}
+ $sql .= "); ";
$res = db_query($sql);
}
@@ -251,6 +254,7 @@
echo "<td>" . toImage('label') . "</td>";
echo "<td>" . toImage('label_id') . "</td>";
echo "<td>" . toImage('show') . "</td>";
+ echo "<td>" . toImage('show_detail') . "</td>";
echo "<td>" . toImage('position') . "</td>";
echo "<td>" . toImage('mandatory') . "</td>";
echo "<td>" . toImage('edit') . "</td>";
@@ -270,6 +274,7 @@
echo "<td><input name='f_label".$i."' type='text' size='4'></td>";
echo "<td><input name='f_label_id".$i."' type='text' size='2' value='0'></td>";
echo "<td><input name='f_show".$i."' type='checkbox'></td>";
+ echo "<td><input name='f_show_detail".$i."' type='checkbox'></td>";
echo "<td><input name='f_respos".$i."' type='text' size='1' value='0'></td>";
echo "<td><input name='f_mandatory".$i."' type='checkbox'></td>";
echo "<td><input name='f_edit".$i."' type='checkbox'></td>";
Modified: trunk/mapbender/http/php/mod_wfs_edit.php
===================================================================
--- trunk/mapbender/http/php/mod_wfs_edit.php 2007-11-26 13:39:51 UTC (rev 1858)
+++ trunk/mapbender/http/php/mod_wfs_edit.php 2007-11-26 13:41:25 UTC (rev 1859)
@@ -132,8 +132,12 @@
$sql .= "'";
$sql .= ", ";
$sql .= "f_auth_varname = '".$_REQUEST["f_auth_varname".$i];
- $sql .= "'";
- $sql .= " WHERE fkey_wfs_conf_id = ".$_REQUEST["gaz"]." AND f_id = ".$_REQUEST["f_id".$i].";";
+ $sql .= "',";
+ $sql .= "f_show_detail = '";
+ if(!empty($_REQUEST["f_show_detail".$i])){
+ $sql .= '1';
+ }else{$sql .= '0';}
+ $sql .= "' WHERE fkey_wfs_conf_id = ".$_REQUEST["gaz"]." AND f_id = ".$_REQUEST["f_id".$i].";";
$res = db_query($sql);
}
}
@@ -211,6 +215,7 @@
echo "<td>" . toImage('label') . "</td>";
echo "<td>" . toImage('label_id') . "</td>";
echo "<td>" . toImage('show') . "</td>";
+ echo "<td>" . toImage('show_detail') . "</td>";
echo "<td>" . toImage('position') . "</td>";
echo "<td>" . toImage('mandatory') . "</td>";
echo "<td>" . toImage('edit') . "</td>";
@@ -242,6 +247,9 @@
echo "<td><input name='f_show".$cnt."' type='checkbox'";
if($row["f_show"] == 1){ echo " checked"; }
echo "></td>";
+ echo "<td><input name='f_show_detail".$cnt."' type='checkbox'";
+ if($row["f_show_detail"] == 1){ echo " checked"; }
+ echo "></td>";
echo "<td><input name='f_respos".$cnt."' type='text' size='1' value='".$row["f_respos"]."'></td>";
echo "<td><input name='f_mandatory".$cnt."' type='checkbox'";
if($row["f_mandatory"] == 1){ echo " checked"; }
More information about the Mapbender_commits
mailing list