Finish
This commit is contained in:
@ -37,9 +37,10 @@ function select(category, mode) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function highlight(e) {
|
||||
if (selected[0]) selected[0].className = '';
|
||||
e.target.parentNode.className = 'selected';
|
||||
var tr = e.target.parentNode;
|
||||
var tr = event_opl.target.parentNode;
|
||||
selectedId = tr.getAttribute('id');
|
||||
}
|
33
Praktikum2/ppm1/static/functionsAngebote.js
Normal file
33
Praktikum2/ppm1/static/functionsAngebote.js
Normal file
@ -0,0 +1,33 @@
|
||||
window.onload = function () {
|
||||
document.getElementById("idList").onclick = function (event_opl) {
|
||||
if (event_opl.target.tagName.toLowerCase() == 'td') {
|
||||
id = event_opl.target.parentNode.id;
|
||||
if (id != "") {
|
||||
document.getElementById(id).className = "";
|
||||
}
|
||||
|
||||
|
||||
console.log(id);
|
||||
document.getElementById(id).className = "selected";
|
||||
}
|
||||
}
|
||||
|
||||
document.getElementById("New").onclick = function (event_opl) {
|
||||
window.location.href = "/detail/?cat=Angebote" ;
|
||||
}
|
||||
|
||||
|
||||
document.getElementById("Modify").onclick = function (event_opl) {
|
||||
if (id != "")
|
||||
window.location.href = "/detail/?cat=Angebote&id=" + id;
|
||||
}
|
||||
|
||||
document.getElementById("Delete").onclick = function (event_opl) {
|
||||
if (id != "")
|
||||
if (confirm("Soll der Eintrag wirklich geloescht werden?")) {
|
||||
window.location.href = "/delete/?cat=Angebote&id=" + id;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
19
Praktikum2/ppm1/static/functionsChoice.js
Normal file
19
Praktikum2/ppm1/static/functionsChoice.js
Normal file
@ -0,0 +1,19 @@
|
||||
window.onload = function () {
|
||||
document.getElementById("idList").onclick = function (event_opl) {
|
||||
if (event_opl.target.tagName.toLowerCase() == 'td') {
|
||||
id = event_opl.target.parentNode.id;
|
||||
if (id != "") {
|
||||
document.getElementById(id).className = "";
|
||||
}
|
||||
|
||||
|
||||
console.log(id);
|
||||
document.getElementById(id).className = "selected";
|
||||
}
|
||||
}
|
||||
|
||||
document.getElementById("Annehmen").onclick = function (event_opl) {
|
||||
if (id != "")
|
||||
window.location.href = "/detailchoice/?id=" + id;
|
||||
}
|
||||
}
|
33
Praktikum2/ppm1/static/functionsFirmen.js
Normal file
33
Praktikum2/ppm1/static/functionsFirmen.js
Normal file
@ -0,0 +1,33 @@
|
||||
window.onload = function () {
|
||||
document.getElementById("idList").onclick = function (event_opl) {
|
||||
if (event_opl.target.tagName.toLowerCase() == 'td') {
|
||||
id = event_opl.target.parentNode.id;
|
||||
if (id != "") {
|
||||
document.getElementById(id).className = "";
|
||||
}
|
||||
|
||||
|
||||
console.log(id);
|
||||
document.getElementById(id).className = "selected";
|
||||
}
|
||||
}
|
||||
|
||||
document.getElementById("New").onclick = function (event_opl) {
|
||||
window.location.href = "/detail/?cat=Firmen" ;
|
||||
}
|
||||
|
||||
|
||||
document.getElementById("Modify").onclick = function (event_opl) {
|
||||
if (id != "")
|
||||
window.location.href = "/detail/?cat=Firmen&id=" + id;
|
||||
}
|
||||
|
||||
document.getElementById("Delete").onclick = function (event_opl) {
|
||||
if (id != "")
|
||||
if (confirm("Soll der Eintrag wirklich geloescht werden?")) {
|
||||
window.location.href = "/delete/?cat=Firmen&id=" + id;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
33
Praktikum2/ppm1/static/functionsLehrender.js
Normal file
33
Praktikum2/ppm1/static/functionsLehrender.js
Normal file
@ -0,0 +1,33 @@
|
||||
window.onload = function () {
|
||||
document.getElementById("idList").onclick = function (event_opl) {
|
||||
if (event_opl.target.tagName.toLowerCase() == 'td') {
|
||||
id = event_opl.target.parentNode.id;
|
||||
if (id != "") {
|
||||
document.getElementById(id).className = "";
|
||||
}
|
||||
|
||||
|
||||
console.log(id);
|
||||
document.getElementById(id).className = "selected";
|
||||
}
|
||||
}
|
||||
|
||||
document.getElementById("New").onclick = function (event_opl) {
|
||||
window.location.href = "/detail/?cat=Lehrender" ;
|
||||
}
|
||||
|
||||
|
||||
document.getElementById("Modify").onclick = function (event_opl) {
|
||||
if (id != "")
|
||||
window.location.href = "/detail/?cat=Lehrender&id=" + id;
|
||||
}
|
||||
|
||||
document.getElementById("Delete").onclick = function (event_opl) {
|
||||
if (id != "")
|
||||
if (confirm("Soll der Eintrag wirklich geloescht werden?")) {
|
||||
window.location.href = "/delete/?cat=Lehrender&id=" + id;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
33
Praktikum2/ppm1/static/functionsStudenten.js
Normal file
33
Praktikum2/ppm1/static/functionsStudenten.js
Normal file
@ -0,0 +1,33 @@
|
||||
window.onload = function () {
|
||||
document.getElementById("idList").onclick = function (event_opl) {
|
||||
if (event_opl.target.tagName.toLowerCase() == 'td') {
|
||||
id = event_opl.target.parentNode.id;
|
||||
if (id != "") {
|
||||
document.getElementById(id).className = "";
|
||||
}
|
||||
|
||||
|
||||
console.log(id);
|
||||
document.getElementById(id).className = "selected";
|
||||
}
|
||||
}
|
||||
|
||||
document.getElementById("New").onclick = function (event_opl) {
|
||||
window.location.href = "/detail/?cat=Studenten" ;
|
||||
}
|
||||
|
||||
|
||||
document.getElementById("Modify").onclick = function (event_opl) {
|
||||
if (id != "")
|
||||
window.location.href = "/detail/?cat=Studenten&id=" + id;
|
||||
}
|
||||
|
||||
document.getElementById("Delete").onclick = function (event_opl) {
|
||||
if (id != "")
|
||||
if (confirm("Soll der Eintrag wirklich geloescht werden?")) {
|
||||
window.location.href = "/delete/?cat=Studenten&id=" + id;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user