[Mapbender-commits] r2940 - branches/beck_dev/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Sep 16 05:49:04 EDT 2008
Author: beck
Date: 2008-09-16 05:49:04 -0400 (Tue, 16 Sep 2008)
New Revision: 2940
Modified:
branches/beck_dev/http/php/mod_wfs_conf.php
branches/beck_dev/http/php/mod_wfs_edit.php
Log:
Modified: branches/beck_dev/http/php/mod_wfs_conf.php
===================================================================
--- branches/beck_dev/http/php/mod_wfs_conf.php 2008-09-16 07:25:50 UTC (rev 2939)
+++ branches/beck_dev/http/php/mod_wfs_conf.php 2008-09-16 09:49:04 UTC (rev 2940)
@@ -366,7 +366,7 @@
echo "<td>";
if(empty($row["f_helptext"])) {
- echo "<input type=\"button\" value=\"Show\" disabled=\"disabled\" />";
+ echo " ";
}
else {
echo "<input type=\"button\" value=\"Show\" onclick=\"showHelptext(".$i.");\" />";
Modified: branches/beck_dev/http/php/mod_wfs_edit.php
===================================================================
--- branches/beck_dev/http/php/mod_wfs_edit.php 2008-09-16 07:25:50 UTC (rev 2939)
+++ branches/beck_dev/http/php/mod_wfs_edit.php 2008-09-16 09:49:04 UTC (rev 2940)
@@ -201,10 +201,11 @@
$sql .= "0";
}
$sql .= "'";
- $sql .= " WHERE fkey_wfs_conf_id = $8 AND f_id = $9;";
+ $sql .= ", f_helptext = $8 ";
+ $sql .= " WHERE fkey_wfs_conf_id = $9 AND f_id = $10;";
- $v = array($_REQUEST["f_pos".$i], $_REQUEST["f_style_id".$i], $_REQUEST["f_label".$i], $_REQUEST["f_label_id".$i], $_REQUEST["f_respos".$i], stripslashes($_REQUEST["f_form_element_html".$i]), $_REQUEST["f_auth_varname".$i], $_REQUEST["gaz"], $_REQUEST["f_id".$i]);
- $t = array("s", "s", "s", "s", "s", "s", "s", "i", "s");
+ $v = array($_REQUEST["f_pos".$i], $_REQUEST["f_style_id".$i], $_REQUEST["f_label".$i], $_REQUEST["f_label_id".$i], $_REQUEST["f_respos".$i], stripslashes($_REQUEST["f_form_element_html".$i]), $_REQUEST["f_auth_varname".$i], $_REQUEST["f_helptext".$i], $_REQUEST["gaz"], $_REQUEST["f_id".$i]);
+ $t = array("s", "s", "s", "s", "s", "s", "s", "s", "i", "s");
$res = db_prep_query($sql, $v, $t);
}
}
@@ -332,7 +333,7 @@
echo "<input type=\"button\" value=\"Edit\" onclick=\"showHelptext(".$cnt.");\" />";
echo "<div id=\"helptext".$cnt."\" class=\"helptext\">";
echo "<strong>Helptext for <em>".$row["element_name"]."</em>:</strong>";
- echo "<textarea id=\"f_helptext".$cnt."\" name=\"f_help".$cnt."\" cols=\"15\" rows=\"1\">".$row["f_helptext"]."</textarea><br />";
+ echo "<textarea id=\"f_helptext".$cnt."\" name=\"f_helptext".$cnt."\" cols=\"15\" rows=\"1\">".$row["f_helptext"]."</textarea><br />";
echo "<input type=\"button\" value=\"Done\" onclick=\"hideHelptext(".$cnt.");\" />";
echo "</div>";
echo "</td>";
More information about the Mapbender_commits
mailing list