&$value) { if (is_string($value) && 1 === get_magic_quotes_gpc()) { $value = stripslashes($value); } } ?> '; #include '../include/dyn_css.php'; ?> wfs_conf
WFS Configuration

edit WFS Configuration

Select WFS:  getallwfs($_SESSION['mb_user_id']); function toImage($text) { $angle = 90; if (extension_loaded("gd2")) { return ""; } return $text; } /* save wfs_conf properties */ if(isset($_POST["save"])){ db_select_db($DB,$con); $sql = "INSERT INTO wfs_conf ("; $sql .= "wfs_conf_abstract, fkey_wfs_id, "; $sql .= "fkey_featuretype_id, g_label, g_label_id, g_button, "; $sql .= "g_button_id, g_style, g_buffer, g_res_style, g_use_wzgraphics"; $sql .= ") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, "; if (!empty($_POST["g_use_wzgraphics"])) { $sql .= "'1'"; } else { $sql .= "'0'"; } $sql .= "); "; $v = array( $_POST["wfs_conf_abstract"], $_POST["wfs"], $_POST["featuretype"], $_POST["g_label"], $_POST["g_label_id"], $_POST["g_button"], $_POST["g_button_id"], $_POST["g_style"], $_POST["g_buffer"], $_POST["g_res_style"] ); $t = array("s", "s", "s", "s", "s", "s", "s", "s", "s", "s"); $res = db_prep_query($sql, $v, $t); $wfsID = db_insert_id($con,'wfs_conf','wfs_conf_id'); for ($i = 0; $i < $_POST["num"]; $i++){ $sql = "INSERT INTO wfs_conf_element (fkey_wfs_conf_id,f_id,f_search,f_pos,f_min_input,f_style_id,f_toupper,f_label,f_label_id,f_show,f_respos,f_edit,f_form_element_html,f_mandatory,f_auth_varname,f_show_detail,f_detailpos,f_operator) VALUES("; $sql .= "$1, $2, "; if (!empty($_POST["f_search".$i])) { $sql .= "'1'"; } else { $sql .= "'0'"; } $sql .= ", $3, $4, $5, "; if (!empty($_POST["f_toupper".$i])) { $sql .= "'1'"; } else { $sql .= "'0'"; } $sql .= ",$6, $7, "; if (!empty($_POST["f_show".$i])) { $sql .= "'1'"; } else { $sql .= "'0'"; } $sql .= ", $8, "; if (!empty($_POST["f_edit".$i])) { $sql .= "'1'"; } else { $sql .= "'0'"; } $sql .= ",$9, "; if (!empty($_POST["f_mandatory".$i])) { $sql .= "'1'"; } else { $sql .= "'0'"; } $sql .= ",$10,"; if(!empty($_POST["f_show_detail".$i])){ $sql .= "'1'"; } else { $sql .= "'0'"; } $sql .= ",$11,$12"; $sql .= "); "; $v = array($wfsID, $_POST["f_id".$i], $_POST["f_pos".$i], $_POST["f_min_input".$i], $_POST["f_style_id".$i], $_POST["f_label".$i], $_POST["f_label_id".$i], $_POST["f_respos".$i], $_POST["f_form_element_html".$i], $_POST["f_auth_varname".$i], $_POST["f_detailpos".$i], $_POST["f_operator".$i]); $t = array("i", "s", "s", "i", "s", "s", "s", "i", "s", "s", "i", "s"); $res = db_prep_query($sql, $v, $t); } if (isset($_POST["f_geom"])) { $sql = "UPDATE wfs_conf_element SET f_geom = 1 "; $sql .= "WHERE fkey_wfs_conf_id = $1 AND f_id = $2;"; $v = array($wfsID, $_POST["f_geom"]); $t = array("i", "i"); $res = db_prep_query($sql, $v, $t); } echo ""; } /* end save wfs_conf properties */ /* select wfs */ if(isset($_POST["wfs"]) && $_POST["wfs"] == ""){ unset($_POST["wfs"]); unset($_POST["featuretype"]); } echo ""; echo ""; /* end select wfs */ /* select featuretype */ if(isset($_POST["wfs"])){ for($i=0; $iwfs_id);$i++){ if($aWFS->wfs_id[$i] == $_POST["wfs"]){ echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
ID:".$aWFS->wfs_id[$i]."
Name:".$aWFS->wfs_name[$i]."
Title:".$aWFS->wfs_title[$i]."
Abstract:".$aWFS->wfs_abstract[$i]."
Capabilities:".$aWFS->wfs_getcapabilities[$i]."
FeatureTypes:".$aWFS->wfs_describefeaturetype[$i]."
Feature:".$aWFS->wfs_getfeature[$i]."
"; } } $aWFS->getfeatures($_POST["wfs"]); echo ""; for($i=0; $ifeatures->featuretype_id); $i++){ echo ""; echo ""; echo ""; echo ""; } echo "
features->featuretype_id[$i]){ echo "checked "; } echo "/>".$aWFS->features->featuretype_name[$i]."
"; } /* end select featuretype */ /* configure elements */ if(isset($_POST["featuretype"])){ for($i=0; $ifeatures->featuretype_id); $i++){ if($_POST["featuretype"] == $aWFS->features->featuretype_id[$i]){ echo "
SRS: ".$aWFS->features->featuretype_srs[$i]; } } /* set featuretype options */ echo ""; echo "" ; echo "" ; echo "" ; echo "" ; echo "" ; echo "" ; echo "" ; echo "" ; // echo ""; echo "
Abstract:
Label:
Label_id:
Button:
Button_id:
Style:
Buffer:
ResultStyle:
WZ-Graphics:
"; /* set element options */ $aWFS->getelements($_POST["featuretype"]); echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; for($i=0; $ielements->element_id); $i++){ echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo "
" . toImage('ID') . "" . toImage('name / type') . "" . toImage('geom') . "" . toImage('search') . "" . toImage('pos') . "" . toImage('minimum_input') . "" . toImage('style_id') . "" . toImage('upper') . "" . toImage('label') . "" . toImage('label_id') . "" . toImage('show') . "" . toImage('position') . "" . toImage('show_detail') . "" . toImage('detail_position') . "" . toImage('mandatory') . "" . toImage('edit') . "" . toImage('html') . "" . toImage('auth') . "" . toImage('operator') . "
".$aWFS->elements->element_id[$i]."".$aWFS->elements->element_name[$i]."
".$aWFS->elements->element_type[$i]."
"; echo ""; echo ""; } /* end configure elements */ ?>