diff --git a/content/fas.xul.php b/content/fas.xul.php
index 84b34a11d..6765359c5 100644
--- a/content/fas.xul.php
+++ b/content/fas.xul.php
@@ -95,6 +95,7 @@ foreach($addon_obj->result as $addon)
+
@@ -266,6 +267,14 @@ foreach($addon_obj->result as $addon)
checkbox ="true"
checked ="variable->kontofilterstg;?>"
/>
+
diff --git a/content/fasoverlay.js.php b/content/fasoverlay.js.php
index 6fbfb0efa..345ae6afe 100644
--- a/content/fasoverlay.js.php
+++ b/content/fasoverlay.js.php
@@ -2047,3 +2047,71 @@ function OrganisationseinheitTreeRefresh()
oe_datasource.QueryInterface(Components.interfaces.nsIRDFXMLSink);
tree.database.AddDataSource(oe_datasource);
}
+
+// ****
+// * Oeffnet ein Fenster zum Aendern eines Variablenwertes
+// ****
+function variableChangeValue(variable)
+{
+ var variablevalue = getvariable(variable);
+
+ if(variablevalue = prompt('Bitte geben Sie den neuen Wert fuer '+variable+' ein', variablevalue))
+ {
+ variableChange(variable, '', variablevalue);
+ }
+}
+
+// ****
+// * Sendet einen Request zum Aendern einer Variable
+// ****
+function variableChange(variable, id, wert)
+{
+ if(id!=null)
+ item = document.getElementById(id);
+
+ if(typeof(wert)==='undefined')
+ {
+ if(item.getAttribute('checked')=='true')
+ checked='true';
+ else
+ checked='false';
+ }
+ else
+ checked=wert;
+
+ netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
+
+ // Request absetzen
+
+ var url = 'content/fasDBDML.php';
+
+ var req = new phpRequest(url,'','');
+
+ req.add('type', 'variablechange');
+ req.add('name', variable);
+ req.add('wert', checked);
+
+ var response = req.executePOST();
+
+ var val = new ParseReturnValue(response)
+
+ if (!val.dbdml_return)
+ {
+ if(val.dbdml_errormsg=='')
+ alert(response)
+ else
+ alert(val.dbdml_errormsg)
+ }
+ else
+ {
+ if(variable=='ignore_kollision')
+ updateignorekollision();
+ if(variable=='db_stpl_table')
+ {
+ document.getElementById("statusbarpanel-db_table").label = wert;
+ updatedbstpltable();
+ }
+ //Statusbar setzen
+ document.getElementById("statusbarpanel-text").label = "Variable erfolgreich geaendert";
+ }
+}
diff --git a/content/student/studentkontoneudialog.xul.php b/content/student/studentkontoneudialog.xul.php
index a5272c5a8..ccac3a663 100644
--- a/content/student/studentkontoneudialog.xul.php
+++ b/content/student/studentkontoneudialog.xul.php
@@ -106,7 +106,7 @@ echo '