Notenverwaltung erweitert

This commit is contained in:
aschwarz
2023-04-05 08:51:21 +02:00
parent 7c84c994e8
commit 107fb24ead
14 changed files with 375 additions and 112 deletions

View File

@ -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) {
});
}
}
*/

View File

@ -190,6 +190,7 @@ function vpb_multiple_file_uploader(vpb_configuration_settings) {
dataString.append('upload_file_ids', ids);
var titel = document.getElementById("titel").value;
var liednr = document.getElementById("liednr").value;
var songbook = document.getElementById("songbook").value;
var verlag = document.getElementById("verlag").value;
var anz_lizenzen = document.getElementById("anz_lizenzen").value;
@ -203,6 +204,7 @@ function vpb_multiple_file_uploader(vpb_configuration_settings) {
var streamlizenz = 0;
}
dataString.append('titel', titel);
dataString.append('liednr', liednr);
dataString.append('songbook', songbook);
dataString.append('verlag', verlag);
dataString.append('anz_lizenzen', anz_lizenzen);
@ -302,6 +304,7 @@ function vpb_multiple_file_uploader(vpb_configuration_settings) {
// By A. Schwarz: Insert ohne File
vpb_multiple_file_uploader.prototype.vasINSERT = function() {
var titel = document.getElementById("titel").value;
var liednr = document.getElementById("liednr").value;
var songbook = document.getElementById("songbook").value;
var verlag = document.getElementById("verlag").value;
var anz_lizenzen = document.getElementById("anz_lizenzen").value;
@ -321,6 +324,7 @@ function vpb_multiple_file_uploader(vpb_configuration_settings) {
data: {
'function': 'save_without_files',
'titel': titel,
'liednr': liednr,
'songbook': songbook,
'verlag': verlag,
'anz_lizenzen': anz_lizenzen,