INSERT INTO gui_element(fkey_gui_id, e_id, e_pos, e_public, * > e_comment, e_title, 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) VALUES( * > '','addWMSfromfilteredList_ajax',2,1,'add a WMS to the running application from a filtered list', * > 'Adding WMS from filtered list','img','../img/button_gray/add_filtered_list_off.png', * > '',620,60,24,24,1,'','','','mod_addWmsFromFilteredList_button.php', * > 'mod_addWMSgeneralFunctions.js,popup.js','treeGDE,mapframe1','loadData', * > 'http://www.mapbender.org/index.php/Add_WMS_from_filtered_list'); * > * > INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, * > context, var_type) VALUES('', 'addWMSfromfilteredList_ajax', 'capabilitiesInput', * > '1', 'load wms by capabilities url' ,'var'); * > * > INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, * > context, var_type) VALUES('', 'addWMSfromfilteredList_ajax', 'option_dball', * > '1', '1 enables option "load all configured wms from db"' ,'var'); * > * > INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, * > context, var_type) VALUES('', 'addWMSfromfilteredList_ajax', 'option_dbgroup', * > '0', '1 enables option "load configured wms by group"' ,'var'); * > * > INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, * > context, var_type) VALUES('', 'addWMSfromfilteredList_ajax', 'option_dbgui', * > '0', '1 enables option "load configured wms by application"' ,'var'); * > * > INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES * > ('', 'addWMSfromfilteredList_ajax', 'addwms_showWMS', '4', '' ,'var'); * * Help: * http://www.mapbender.org/Add_WMS_from_filtered_list_%28AJAX%29 * * Maintainer: * http://www.mapbender.org/User:Christoph_Baudson * * Parameters: * addwms_showWMS - x * capabilitiesInput - show input field to load wms by capabilities url * option_dball - load all configured wms from db * option_dbgroup - load configured wms by group * option_dbgui - load configured wms by application * * License: * Copyright (c) 2009, Open Source Geospatial Foundation * This program is dual licensed under the GNU General Public License * and Simplified BSD license. * http://svn.osgeo.org/mapbender/trunk/mapbender/license/license.txt */ require_once(dirname(__FILE__)."/../php/mb_validateSession.php"); $sql = "SELECT e_target FROM gui_element WHERE e_id = $1 AND fkey_gui_id = $2"; $v = array($e_id, $gui_id); $t = array("s", "s"); $res = db_prep_query($sql, $v, $t); $row = db_fetch_array($res); $e_target = explode(",", ((string) $row["e_target"])); $sql_css = "SELECT var_value FROM gui_element_vars WHERE var_name = 'jq_ui_theme' AND fkey_gui_id = $1"; $v_css = array($gui_id); $t_css = array("s"); $res_css = db_prep_query($sql_css, $v_css, $t_css); if ($res_css) { $row_css = db_fetch_array($res_css); $theme = $row_css["var_value"]; } if (!$theme) { $theme = "../extensions/jquery-ui-1.8.1.custom/css/custom-theme/jquery-ui-1.8.5.custom.css"; } ?> ",CHARSET); ?> Add WMS

Capabilities

" onclick="mod_addWmsfromURL();" />

WMS list(s)

" onclick="setSource('db');getWMSByGUI(gui_list)"> " onclick="setSource('db');getGroups()"> " onclick="setSource('db');getGUIs()">

...