Notenverwaltung erweitert
This commit is contained in:
@ -14,9 +14,9 @@ function notenbuchsave(){
|
||||
setTimeout(function() {
|
||||
document.getElementById("notenbuchname").value ="";
|
||||
window.location = "?";
|
||||
}, 2000);
|
||||
}, 1000);
|
||||
}
|
||||
$('#msg').show().delay(2000).fadeOut(500);
|
||||
$('#msg').show().delay(1000).fadeOut(500);
|
||||
$('#msg').html(a[0]);
|
||||
}
|
||||
},
|
||||
@ -48,9 +48,9 @@ function erfzuordnung(jndid, zsid) {
|
||||
$("#ZuordnungModal .modal-body").load('notenbuchzuordnung.php?edit='+value, function() {
|
||||
$("#ZuordnungModal").modal("show");
|
||||
});
|
||||
}, 2000);
|
||||
}, 1000);
|
||||
}
|
||||
$('#msg').show().delay(2000).fadeOut(500);
|
||||
$('#msg').show().delay(1000).fadeOut(500);
|
||||
$('#msg').html(a[0]);
|
||||
}
|
||||
},
|
||||
@ -84,7 +84,7 @@ function delzuordnung(jndid, zsid) {
|
||||
});
|
||||
}, 2000);
|
||||
}
|
||||
$('#msg').show().delay(2000).fadeOut(500);
|
||||
$('#msg').show().delay(1000).fadeOut(500);
|
||||
$('#msg').html(a[0]);
|
||||
}
|
||||
},
|
||||
@ -94,20 +94,16 @@ function delzuordnung(jndid, zsid) {
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
function erfuser(val) {
|
||||
var param = val.split('|');
|
||||
var uid = param[0];
|
||||
var rid = param[1];
|
||||
function erfNotenUser(csid, zsid) {
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '../controller/admin_notenbuch.php',
|
||||
data: {
|
||||
'function': 'erfuser',
|
||||
'uid': uid,
|
||||
'rid': rid
|
||||
'function': 'erfNotenUser',
|
||||
'csid': csid,
|
||||
'zsid': zsid
|
||||
},
|
||||
success: function(result) { //we got the response
|
||||
if(result!=''){
|
||||
@ -117,7 +113,7 @@ function erfuser(val) {
|
||||
// Refresh Modal
|
||||
var value = a[2];
|
||||
// load the url and show modal on success
|
||||
$("#ZuordnungModal .modal-body").load('userzuordnung.php?edit='+value, function() {
|
||||
$("#ZuordnungModal .modal-body").load('notenuserzuordnung.php?edit='+value, function() {
|
||||
$("#ZuordnungModal").modal("show");
|
||||
});
|
||||
});
|
||||
@ -132,18 +128,15 @@ function erfuser(val) {
|
||||
});
|
||||
}
|
||||
|
||||
function deluser(val) {
|
||||
var param = val.split('|');
|
||||
var uid = param[0];
|
||||
var rid = param[1];
|
||||
function delNotenUser(csid, zsid) {
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '../controller/admin_notenbuch.php',
|
||||
data: {
|
||||
'function': 'deluser',
|
||||
'uid': uid,
|
||||
'rid': rid
|
||||
'function': 'delNotenUser',
|
||||
'csid': csid,
|
||||
'zsid': zsid
|
||||
},
|
||||
success: function(result) { //we got the response
|
||||
if(result!=''){
|
||||
@ -154,7 +147,7 @@ function deluser(val) {
|
||||
// Refresh Modal
|
||||
var value = a[2];
|
||||
// load the url and show modal on success
|
||||
$("#ZuordnungModal .modal-body").load('userzuordnung.php?edit='+value, function() {
|
||||
$("#ZuordnungModal .modal-body").load('notenuserzuordnung.php?edit='+value, function() {
|
||||
$("#ZuordnungModal").modal("show");
|
||||
});
|
||||
});
|
||||
@ -170,16 +163,15 @@ function deluser(val) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
function delRole(rid) {
|
||||
r = confirm('Rolle löschen? Benutzer sind dann unzugeordnet!');
|
||||
function delZusammenstellung(zsid) {
|
||||
r = confirm('Zusammenstellung löschen?');
|
||||
if (r) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '../controller/admin_notenbuch.php',
|
||||
data: {
|
||||
'function': 'delRole',
|
||||
'rid': rid
|
||||
'function': 'delZusammenstellung',
|
||||
'zsid': zsid
|
||||
},
|
||||
success: function(result) { //we got the response
|
||||
if(result!=''){
|
||||
@ -199,4 +191,3 @@ function delRole(rid) {
|
||||
});
|
||||
}
|
||||
}
|
||||
*/
|
Reference in New Issue
Block a user