[Mapbender-commits] r1034 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Jan 24 08:44:18 EST 2007
Author: christoph
Date: 2007-01-24 08:44:18 -0500 (Wed, 24 Jan 2007)
New Revision: 1034
Modified:
trunk/mapbender/http/php/mod_wfs_conf.php
trunk/mapbender/http/php/mod_wfs_edit.php
Log:
removed f_edit, f_form_element and f_mandatory temporarily
Modified: trunk/mapbender/http/php/mod_wfs_conf.php
===================================================================
--- trunk/mapbender/http/php/mod_wfs_conf.php 2007-01-24 13:14:06 UTC (rev 1033)
+++ trunk/mapbender/http/php/mod_wfs_conf.php 2007-01-24 13:44:18 UTC (rev 1034)
@@ -115,14 +115,15 @@
if(!empty($_REQUEST["f_show".$i])){
$sql .= "'1',";
}else{$sql .= "'0',";}
- $sql .= "'".$_REQUEST["f_respos".$i]."',";
- if(!empty($_REQUEST["f_edit".$i])){
- $sql .= "'1',";
- }else{$sql .= "'0',";}
- $sql .= "'".$_REQUEST["f_form_element_html".$i]."',";
- if(!empty($_REQUEST["f_mandatory".$i])){
- $sql .= "'1'";
- }else{$sql .= "'0'";}
+ $sql .= "'".$_REQUEST["f_respos".$i]."'";
+// $sql .= ",";
+// if(!empty($_REQUEST["f_edit".$i])){
+// $sql .= "'1',";
+// }else{$sql .= "'0',";}
+// $sql .= "'".$_REQUEST["f_form_element_html".$i]."',";
+// if(!empty($_REQUEST["f_mandatory".$i])){
+// $sql .= "'1'";
+// }else{$sql .= "'0'";}
$sql .= "); ";
$res = db_query($sql);
@@ -244,9 +245,9 @@
echo "<td>label_id</td>";
echo "<td>show</td>";
echo "<td>position</td>";
- echo "<td>mandatory</td>";
- echo "<td>edit</td>";
- echo "<td>html</td>";
+// echo "<td>mandatory</td>";
+// echo "<td>edit</td>";
+// echo "<td>html</td>";
echo "</tr>";
for($i=0; $i<count($aWFS->elements->element_id); $i++){
@@ -264,9 +265,9 @@
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_respos".$i."' type='text' size='4' value='0'></td>";
- echo "<td><input name='f_mandatory".$i."' type='checkbox'></td>";
- echo "<td><input name='f_edit".$i."' type='checkbox'></td>";
- echo "<td><textarea name='f_form_element_html".$cnt."' cols='15' rows='1' ></textarea></td>";
+// echo "<td><input name='f_mandatory".$i."' type='checkbox'></td>";
+// echo "<td><input name='f_edit".$i."' type='checkbox'></td>";
+// echo "<td><textarea name='f_form_element_html".$cnt."' cols='15' rows='1' ></textarea></td>";
echo "</tr>";
}
echo "</table>";
Modified: trunk/mapbender/http/php/mod_wfs_edit.php
===================================================================
--- trunk/mapbender/http/php/mod_wfs_edit.php 2007-01-24 13:14:06 UTC (rev 1033)
+++ trunk/mapbender/http/php/mod_wfs_edit.php 2007-01-24 13:44:18 UTC (rev 1034)
@@ -117,19 +117,21 @@
$sql .= '1';
}else{$sql .= '0';}
$sql .= "',";
- $sql .= "f_respos = '".$_REQUEST["f_respos".$i]."', ";
- $sql .= "f_edit = '";
- if(!empty($_REQUEST["f_edit".$i])){
- $sql .= '1';
- }else{$sql .= '0';}
- $sql .= "',";
- $sql .= "f_form_element_html = '".addslashes($_REQUEST["f_form_element_html".$i]);
- $sql .= "',";
- $sql .= "f_mandatory = '";
- if(!empty($_REQUEST["f_mandatory".$i])){
- $sql .= '1';
- }else{$sql .= '0';}
- $sql .= "' WHERE fkey_wfs_conf_id = ".$_REQUEST["gaz"]." AND f_id = ".$_REQUEST["f_id".$i].";";
+ $sql .= "f_respos = '".$_REQUEST["f_respos".$i]."' ";
+// $sql .= ",";
+// $sql .= "f_edit = '";
+// if(!empty($_REQUEST["f_edit".$i])){
+// $sql .= '1';
+// }else{$sql .= '0';}
+// $sql .= "',";
+// $sql .= "f_form_element_html = '".addslashes($_REQUEST["f_form_element_html".$i]);
+// $sql .= "',";
+// $sql .= "f_mandatory = '";
+// if(!empty($_REQUEST["f_mandatory".$i])){
+// $sql .= '1';
+// }else{$sql .= '0';}
+// $sql .= "' ";
+ $sql .= " WHERE fkey_wfs_conf_id = ".$_REQUEST["gaz"]." AND f_id = ".$_REQUEST["f_id".$i].";";
$res = db_query($sql);
}
}
@@ -201,9 +203,9 @@
echo "<td>label_id</td>";
echo "<td>show</td>";
echo "<td>position</td>";
- echo "<td>mandatory</td>";
- echo "<td>edit</td>";
- echo "<td>html</td>";
+// echo "<td>mandatory</td>";
+// echo "<td>edit</td>";
+// echo "<td>html</td>";
echo "</tr>";
$cnt = 0;
while($row = db_fetch_array($res)){
@@ -231,14 +233,14 @@
if($row["f_show"] == 1){ echo " checked"; }
echo "></td>";
echo "<td><input name='f_respos".$cnt."' type='text' size='4' value='".$row["f_respos"]."'></td>";
- echo "<td><input name='f_mandatory".$cnt."' type='checkbox'";
- if($row["f_mandatory"] == 1){ echo " checked"; }
- echo "></td>";
- echo "<td><input name='f_edit".$cnt."' type='checkbox'";
- if($row["f_edit"] == 1){ echo " checked"; }
- echo "></td>";
- echo "<td><textarea name='f_form_element_html".$cnt."' cols='15' rows='1' >".$row["f_form_element_html"]."</textarea></td>";
- echo "</tr>";
+// echo "<td><input name='f_mandatory".$cnt."' type='checkbox'";
+// if($row["f_mandatory"] == 1){ echo " checked"; }
+// echo "></td>";
+// echo "<td><input name='f_edit".$cnt."' type='checkbox'";
+// if($row["f_edit"] == 1){ echo " checked"; }
+// echo "></td>";
+// echo "<td><textarea name='f_form_element_html".$cnt."' cols='15' rows='1' >".$row["f_form_element_html"]."</textarea></td>";
+// echo "</tr>";
$cnt++;
}
echo "</table>";
More information about the Mapbender_commits
mailing list