[Mapbender-commits] r1762 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Oct 29 07:08:03 EDT 2007


Author: christoph
Date: 2007-10-29 07:08:03 -0400 (Mon, 29 Oct 2007)
New Revision: 1762

Modified:
   trunk/mapbender/http/php/mod_wfs_conf.php
Log:
added wfs conf description and title, replacing abstract

Modified: trunk/mapbender/http/php/mod_wfs_conf.php
===================================================================
--- trunk/mapbender/http/php/mod_wfs_conf.php	2007-10-29 11:07:35 UTC (rev 1761)
+++ trunk/mapbender/http/php/mod_wfs_conf.php	2007-10-29 11:08:03 UTC (rev 1762)
@@ -21,6 +21,7 @@
 require(dirname(__FILE__)."/../../conf/mapbender.conf");
 $con = db_connect(DBSERVER,OWNER,PW);
 db_select_db(DB,$con);
+session_start();
 ?>
 <html>
 <head>
@@ -72,7 +73,7 @@
 Select WFS:&nbsp;
 <?php
 $aWFS = new wfs_conf();
-$aWFS->getallwfs();
+$aWFS->getallwfs($_SESSION['mb_user_id']);
 
 
 function toImage($text) {
@@ -89,8 +90,9 @@
 
         db_select_db($DB,$con);
 
-        $sql = "INSERT INTO wfs_conf (wfs_conf_abstract,fkey_wfs_id,fkey_featuretype_id,g_label,g_label_id,g_button,g_button_id,g_style,g_buffer,g_res_style,g_use_wzgraphics) VALUES(";
+        $sql = "INSERT INTO wfs_conf (wfs_conf_abstract,wfs_conf_description,fkey_wfs_id,fkey_featuretype_id,g_label,g_label_id,g_button,g_button_id,g_style,g_buffer,g_res_style,g_use_wzgraphics) VALUES(";
         $sql .= "'".$_REQUEST["wfs_conf_abstract"]."',";
+        $sql .= "'".$_REQUEST["wfs_conf_description"]."',";
         $sql .= "'".$_REQUEST["wfs"]."',";
         $sql .= "'".$_REQUEST["featuretype"]."',";
         $sql .= "'".$_REQUEST["g_label"]."',";
@@ -222,7 +224,8 @@
 
         /* set featuretype options */
         echo "<table>";
-        echo "<tr><td>Abstract:</td><td><input type='text' name='wfs_conf_abstract'></td></tr>" ;
+        echo "<tr><td>Title:</td><td><input type='text' name='wfs_conf_abstract'></td></tr>" ;
+        echo "<tr><td>Description:</td><td><input type='text' name='wfs_conf_description'></td></tr>" ;
         echo "<tr><td>Label:</td><td><input type='text' name='g_label'></td></tr>" ;
         echo "<tr><td>Label_id:</td><td><input type='text' name='g_label_id'></td></tr>" ;
         echo "<tr><td>Button:</td><td><input type='text' name='g_button'></td></tr>" ;



More information about the Mapbender_commits mailing list