[Mapbender-commits] r1082 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Jan 29 07:52:37 EST 2007
Author: christoph
Date: 2007-01-29 07:52:37 -0500 (Mon, 29 Jan 2007)
New Revision: 1082
Modified:
trunk/mapbender/http/php/mod_wfs_conf.php
trunk/mapbender/http/php/mod_wfs_edit.php
Log:
new columns f_form_element, f_edit and f_mandatory
Modified: trunk/mapbender/http/php/mod_wfs_conf.php
===================================================================
--- trunk/mapbender/http/php/mod_wfs_conf.php 2007-01-29 12:48:25 UTC (rev 1081)
+++ trunk/mapbender/http/php/mod_wfs_conf.php 2007-01-29 12:52:37 UTC (rev 1082)
@@ -116,14 +116,14 @@
$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 .= ",";
+ 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);
@@ -245,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++){
@@ -265,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-29 12:48:25 UTC (rev 1081)
+++ trunk/mapbender/http/php/mod_wfs_edit.php 2007-01-29 12:52:37 UTC (rev 1082)
@@ -118,19 +118,19 @@
}else{$sql .= '0';}
$sql .= "',";
$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 .= ",";
+ $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);
}
@@ -203,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)){
@@ -233,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