[Mapbender-commits] r1570 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Aug 2 09:12:44 EDT 2007
Author: christoph
Date: 2007-08-02 09:12:44 -0400 (Thu, 02 Aug 2007)
New Revision: 1570
Modified:
trunk/mapbender/http/php/mod_wfs_conf.php
Log:
added filter parameter to wfs request
Modified: trunk/mapbender/http/php/mod_wfs_conf.php
===================================================================
--- trunk/mapbender/http/php/mod_wfs_conf.php 2007-08-02 13:08:06 UTC (rev 1569)
+++ trunk/mapbender/http/php/mod_wfs_conf.php 2007-08-02 13:12:44 UTC (rev 1570)
@@ -74,6 +74,12 @@
$aWFS = new wfs_conf();
$aWFS->getallwfs();
+
+function toImage($text) {
+ $angle = 90;
+ return "<img src='../php/createImageFromText.php?text=" . urlencode($text) . "&angle=" . $angle . "'>";
+}
+
/* save wfs_conf properties */
if(isset($_REQUEST["save"])){
@@ -124,6 +130,9 @@
if(!empty($_REQUEST["f_mandatory".$i])){
$sql .= "'1'";
}else{$sql .= "'0'";}
+ $sql .= ", ";
+ $sql .= "f_auth_varname = '".addslashes($_REQUEST["f_auth_varname".$i]);
+ $sql .= "'";
$sql .= "); ";
$res = db_query($sql);
@@ -204,11 +213,6 @@
/* end select featuretype */
-function toImage($text) {
- $angle = 90;
- return "<img src='../php/createImageFromText.php?text=" . urlencode($text) . "&angle=" . $angle . "'>";
-}
-
/* configure elements */
if(isset($_REQUEST["featuretype"])){
@@ -236,7 +240,7 @@
/* set element options */
$aWFS->getelements($_REQUEST["featuretype"]);
echo "<table border='1'>";
- echo "<tr>";
+ echo "<tr valign = bottom>";
echo "<td>" . toImage('ID') . "</td>";
echo "<td>" . toImage('name / type') . "</td>";
echo "<td>" . toImage('geom') . "</td>";
@@ -251,28 +255,26 @@
echo "<td>" . toImage('mandatory') . "</td>";
echo "<td>" . toImage('edit') . "</td>";
echo "<td>" . toImage('html') . "</td>";
+ echo "<td>" . toImage('auth') . "</td>";
echo "</tr>";
for($i=0; $i<count($aWFS->elements->element_id); $i++){
echo "<tr>";
echo "<td>".$aWFS->elements->element_id[$i]."<input type='hidden' name='f_id".$i."' value='".$aWFS->elements->element_id[$i]."'></td>";
- echo "<td>".$aWFS->elements->element_name[$i]."<br>";
- if ($aWFS->elements->element_type[$i]) {
- echo "<div style='font-size:10'>(" . $aWFS->elements->element_type[$i].")";
- }
- echo "</td>";
+ echo "<td>".$aWFS->elements->element_name[$i]."<br><div style='font-size:10'>".$aWFS->elements->element_type[$i]."</div></td>";
echo "<td><input name='f_geom' type='radio' value='".$aWFS->elements->element_id[$i]."'></td>";
echo "<td><input name='f_search".$i."' type='checkbox'></td>";
- echo "<td><input name='f_pos".$i."' type='text' size='2' value='0'></td>";
+ echo "<td><input name='f_pos".$i."' type='text' size='1' value='0'></td>";
echo "<td><input name='f_style_id".$i."' type='text' size='2' value='0'></td>";
echo "<td><input name='f_toupper".$i."' type='checkbox'></td>";
- echo "<td><input name='f_label".$i."' type='text' size='10'></td>";
+ 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_respos".$i."' type='text' size='4' value='0'></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>";
- echo "<td><textarea name='f_form_element_html".$i."' cols='15' rows='1' ></textarea></td>";
+ echo "<td><textarea name='f_form_element_html".$cnt."' cols='15' rows='1' ></textarea></td>";
+ echo "<td><input name='f_auth_varname".$cnt."' type='text' size='8' value='".$row["f_auth_varname"]."'></td>";
echo "</tr>";
}
echo "</table>";
More information about the Mapbender_commits
mailing list