";
echo "";
require_once (dirname(__FILE__) . "/../classes/class_administration.php");
$admin = new administration();
$ownguis = $admin->getGuisByOwner(Mapbender :: session()->get("mb_user_id"), true);
$gui_id = array ();
if (count($ownguis) > 0) {
for ($i = 0; $i < count($ownguis); $i++) {
$gui_id[$i] = $ownguis[$i];
}
}
echo "";
echo " | ";
echo "";
$sql = "SELECT * from gui_wms JOIN gui ON gui_wms.fkey_gui_id = gui.gui_id JOIN wms ON ";
$sql .= "gui_wms.fkey_wms_id = wms.wms_id AND gui_wms.fkey_gui_id=gui.gui_id WHERE gui.gui_id = $1 ORDER BY gui_wms_position";
$v = array (
$selected_gui_id
);
$t = array (
's'
);
$res = db_prep_query($sql, $v, $t);
$count_wms = 0;
# WMS select box on right side
echo "";
echo " | ";
echo "";
echo "
";
echo "";
echo "
";
$may_delete = !isset($wmsList);
//TODO - check if the other application is not the same
if (isset($wmsList)) {
// check if user is not owner of the wms or if the wms is still referenced in another own application
$sql = <<";
echo "";
}
else {
echo "Bitte benutzen Sie !Vollständig Löschen! um den WMS vollständig zu entfernen.";
}
echo " | ";
echo "
";
echo "