svn commit: r389 - trunk/mapbender/http/php/mod_editElements.php
uli at osgeo.org
uli at osgeo.org
Wed Jun 7 09:28:54 EDT 2006
Author: uli
Date: 2006-06-07 13:28:54+0000
New Revision: 389
Modified:
trunk/mapbender/http/php/mod_editElements.php
Log:
e_url included
Modified: trunk/mapbender/http/php/mod_editElements.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_editElements.php?view=diff&rev=389&p1=trunk/mapbender/http/php/mod_editElements.php&p2=trunk/mapbender/http/php/mod_editElements.php&r1=388&r2=389
==============================================================================
--- trunk/mapbender/http/php/mod_editElements.php (original)
+++ trunk/mapbender/http/php/mod_editElements.php 2006-06-07 13:28:54+0000
@@ -187,10 +187,12 @@
$sql = "INSERT INTO gui_element(fkey_gui_id,e_id,e_pos,e_public,e_comment,e_element,e_src,";
$sql .= "e_attributes,e_left,e_top,e_width,e_height,e_z_index,e_more_styles,e_content,";
- $sql .= "e_closetag,e_js_file,e_mb_mod,e_target,e_requires) ";
- $sql .= "VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17,$18,$19,$20)";
- $v = array($guiList1,$e_id,$e_pos,$e_public,$e_comment,$e_element,$e_src,$e_attributes,$e_left,$e_top,$e_width,$e_height,$e_z_index,$e_more_styles,$e_content,$e_closetag,$e_js_file,$e_mb_mod,$e_target,$e_requires);
- $t = array('s','s','i','i','s','s','s','s','i','i','i','i','i','s','s','s','s','s','s','s');
+ $sql .= "e_closetag,e_js_file,e_mb_mod,e_target,e_requires,e_url) ";
+ $sql .= "VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17,$18,$19,$20,$21)";
+ $v = array($guiList1,$e_id,$e_pos,$e_public,$e_comment,$e_element,$e_src,$e_attributes,$e_left,
+ $e_top,$e_width,$e_height,$e_z_index,$e_more_styles,$e_content,$e_closetag,$e_js_file,
+ $e_mb_mod,$e_target,$e_requires,$e_url);
+ $t = array('s','s','i','i','s','s','s','s','i','i','i','i','i','s','s','s','s','s','s','s','s');
$res = db_prep_query($sql,$v,$t);
if(!$res){
db_rollback();
@@ -235,7 +237,8 @@
$res = db_prep_query($sql,$v,$t);
$e_id = ""; $e_pos = ""; $e_public = ""; $e_comment = ""; $e_element = "";
$e_src = ""; $e_attributes = ""; $e_left = ""; $e_top = ""; $e_width = ""; $e_height = ""; $e_z_index = "";
- $e_more_styles = ""; $e_content = ""; $e_closetag = ""; $e_js_file = ""; $e_mb_mod = ""; $e_target = ""; $e_requires = "";
+ $e_more_styles = ""; $e_content = ""; $e_closetag = ""; $e_js_file = ""; $e_mb_mod = "";
+ $e_target = ""; $e_requires = ""; $e_url = "";
}
if(isset($myShow) && $myShow == '1'){
$_SESSION["mb_user_myGui"] = $guiList1;
@@ -261,10 +264,15 @@
if($row["e_height"] == ""){$myheight = NULL;} else{$myheight = $row["e_height"];}
if($row["e_z_index"] == ""){$my_z_index = NULL;} else{$my_z_index = $row["e_z_index"];}
- $sql_ins = "INSERT INTO gui_element(fkey_gui_id,e_id,e_pos,e_public,e_comment,e_element,e_src,e_attributes,e_left,e_top,e_width,e_height,e_z_index,e_more_styles,e_content,e_closetag,e_js_file,e_mb_mod,e_target,e_requires) ";
- $sql_ins .= "VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17,$18,$19,$20)";
- $v = array($guiList1,$row["e_id"],$row["e_pos"],$row["e_public"],$row["e_comment"],$row["e_element"],$row["e_src"],$row["e_attributes"],$myleft,$mytop,$mywidth,$myheight,$my_z_index,$row["e_more_styles"],$row["e_content"],$row["e_closetag"],$row["e_js_file"],$row["e_mb_mod"],$row["e_target"],$row["e_requires"]);
- $t = array('s','s','i','i','s','s','s','s','i','i','i','i','i','s','s','s','s','s','s','s');
+ $sql_ins = "INSERT INTO gui_element(fkey_gui_id,e_id,e_pos,e_public,e_comment,e_element,";
+ $sql_ins .= "e_src,e_attributes,e_left,e_top,e_width,e_height,e_z_index,e_more_styles,";
+ $sql_ins .= "e_content,e_closetag,e_js_file,e_mb_mod,e_target,e_requires,e_url) ";
+ $sql_ins .= "VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17,$18,$19,$20,$21)";
+ $v = array($guiList1,$row["e_id"],$row["e_pos"],$row["e_public"],$row["e_comment"],$row["e_element"],
+ $row["e_src"],$row["e_attributes"],$myleft,$mytop,$mywidth,$myheight,$my_z_index,
+ $row["e_more_styles"],$row["e_content"],$row["e_closetag"],$row["e_js_file"],$row["e_mb_mod"],
+ $row["e_target"],$row["e_requires"],$row["e_url"]);
+ $t = array('s','s','i','i','s','s','s','s','i','i','i','i','i','s','s','s','s','s','s','s','s');
$res_ins = db_prep_query($sql_ins,$v,$t);
if(!$res_ins){db_rollback(); }
$cnt++;
@@ -559,6 +567,7 @@
echo "<tr><td>Modul: </td><td><input type='text' class='textfield' name='e_mb_mod' value='".$row["e_mb_mod"]."'></td></tr>\n";
echo "<tr><td>Target: </td><td><input type='text' class='textfield' name='e_target' value='".$row["e_target"]."'></td></tr>\n";
echo "<tr><td>Requires: </td><td><input type='text' class='textfield' name='e_requires' value='".$row["e_requires"]."'></td></tr>\n";
+ echo "<tr><td>URL: </td><td><input type='text' class='textfield' name='e_url' value='".$row["e_url"]."'></td></tr>\n";
}
echo "</table>";
}
@@ -582,6 +591,7 @@
echo "<tr><td>Module: </td><td><input type='text' class='textfield' name='e_mb_mod' value='".$e_mb_mod."'></td></tr>\n";
echo "<tr><td>Target: </td><td><input type='text' class='textfield' name='e_target' value='".$e_target."'></td></tr>\n";
echo "<tr><td>Requires: </td><td><input type='text' class='textfield' name='e_requires' value='".$e_requires."'></td></tr>\n";
+ echo "<tr><td>URL: </td><td><input type='text' class='textfield' name='e_url' value='".$e_url."'></td></tr>\n";
}
echo "</table>\n";
echo "<input type='hidden' name='originGuiOfSelectedElement' value='" . $_POST["originGuiOfSelectedElement"] . "'>";
More information about the Mapbender_commits
mailing list