Finish
This commit is contained in:
parent
e6a913e269
commit
8825fc5105
13
Praktikum2/ppm1/data/Angebote/30.json
Normal file
13
Praktikum2/ppm1/data/Angebote/30.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"ZeitraumBis": "",
|
||||
"Firmenbetreuer": "firmenbetreuer",
|
||||
"id": "30",
|
||||
"ZeitraumVon": "",
|
||||
"Name": "name",
|
||||
"Beschreibung": "beschreibung",
|
||||
"Student": "",
|
||||
"Lehrender": "",
|
||||
"Status": "Angebot",
|
||||
"Voraussetzungen": "voraussetzungen",
|
||||
"Firma": "IBM"
|
||||
}
|
127
Praktikum2/ppm1/doc/documentation.html
Normal file
127
Praktikum2/ppm1/doc/documentation.html
Normal file
@ -0,0 +1,127 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="generator" content="pandoc">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||
<title></title>
|
||||
<style type="text/css">code{white-space: pre;}</style>
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="web-praktikum-gruppe-a">Web-Praktikum Gruppe A</h1>
|
||||
<h2 id="kai-wansart-und-felix-hoster">Kai Wansart und Felix Hoster</h2>
|
||||
<h3 id="section">16.11.2016</h3>
|
||||
<h2 id="beschreibung-der-lösung">Beschreibung der Lösung</h2>
|
||||
<h3 id="aufgabe-der-anwendung">Aufgabe der Anwendung:</h3>
|
||||
<ul>
|
||||
<li>eine Ünterstützung der Betreuung von Praxisphasen mit einer Web-Anwendung zu erstellen</li>
|
||||
<li>Praxisphasen werden von externen Partnern (Firmen) angeboten</li>
|
||||
<li>Studenten können diese Angebote nutzen, wenn sie einen Lehrenden als Betreuer finden</li>
|
||||
</ul>
|
||||
<h4 id="übersicht-der-fachlichen-funktion">Übersicht der fachlichen Funktion:</h4>
|
||||
<ul>
|
||||
<li>Datenpflege Studenten:
|
||||
<ul>
|
||||
<li>Eine Liste mit allen erstellten Studenten (Name, Vorname, Matrikelnummer)</li>
|
||||
</ul></li>
|
||||
<li>Datenpflege Lehrende:
|
||||
<ul>
|
||||
<li>Eine Übersicht mit allen Lehrenden (Name, Titel, Lehrgebiet)</li>
|
||||
</ul></li>
|
||||
<li>Datenpflege Firmenverzeichniss:
|
||||
<ul>
|
||||
<li>Eine Liste mit einer kleinen Übersicht über einzelne Firmen (Schwerpunkt, Sitz, Name, Branche, Mitarbeiteranzahl)</li>
|
||||
</ul></li>
|
||||
<li>Datenpflege Praxisphase:
|
||||
<ul>
|
||||
<li>Erhält man eine kurze Übersicht über Angebote für die Studenten (Firmenbetreuer, Beschreibung, Name, Voraussetzung, Firma)</li>
|
||||
</ul></li>
|
||||
<li>Auswahl Praxisphasen:
|
||||
<ul>
|
||||
<li>Dort können die Studenten mit einem Professor sich eine Praxisphase aussuchen</li>
|
||||
</ul></li>
|
||||
<li>Auswertung Firma:
|
||||
<ul>
|
||||
<li>Hier werden die Firmen bewertet, die ein Angebot für die Praxisphase bewertet</li>
|
||||
</ul></li>
|
||||
<li>Auswertung Praxisphasen nach Studenten:
|
||||
<ul>
|
||||
<li>Hier sieht man die Bewertung der Studenten über die einzelnen Angebote</li>
|
||||
</ul></li>
|
||||
<li>Auswertung Praxisphase nach Betreuern:
|
||||
<ul>
|
||||
<li>Hier sieht man die Bewertung der Praxisphasen - Betreuer</li>
|
||||
</ul></li>
|
||||
</ul>
|
||||
<h2 id="beschreibung-des-servers">Beschreibung des Servers</h2>
|
||||
<h4 id="zweck">Zweck</h4>
|
||||
<ul>
|
||||
<li>Verwaltung von Praxisphasen, für Studenten, Lehrende, und Firmen</li>
|
||||
<li>Anbieten von Praxisphasenangeboten</li>
|
||||
<li>Auswertung von aktuellen und vergangenen Praxisphasenangeboten</li>
|
||||
</ul>
|
||||
<h4 id="aufbau-bestandteile-der-komponente">Aufbau (Bestandteile der Komponente)</h4>
|
||||
<ul>
|
||||
<li>Application
|
||||
<ul>
|
||||
<li>Annahme von Anfragen durch den Webbrowser</li>
|
||||
<li>Weiterleitung an die jeweiligen Komponenten</li>
|
||||
</ul></li>
|
||||
<li>Database
|
||||
<ul>
|
||||
<li>Einlesen, Speicherung, Bearbeitung und Löschung von Datensätzen</li>
|
||||
</ul></li>
|
||||
<li>View
|
||||
<ul>
|
||||
<li>Verarbeiten der Templates mit den gegebenen Daten</li>
|
||||
</ul></li>
|
||||
</ul>
|
||||
<h4 id="zusammenwirken-mit-anderen-komponenten">Zusammenwirken mit anderen Komponenten</h4>
|
||||
<h4 id="api-programmierschnittstellen-die-die-leistung-der-komponente-anbieten">API (Programmierschnittstellen), die die Leistung der Komponente anbieten</h4>
|
||||
<ul>
|
||||
<li>index
|
||||
<ul>
|
||||
<li>Startseite</li>
|
||||
</ul></li>
|
||||
<li>category
|
||||
<ul>
|
||||
<li>Darstellung der Kategorien</li>
|
||||
</ul></li>
|
||||
<li>choice
|
||||
<ul>
|
||||
<li>Darstellung der Praxisphasenauswahl</li>
|
||||
</ul></li>
|
||||
<li>eval
|
||||
<ul>
|
||||
<li>Darstellung der Auswertungen</li>
|
||||
</ul></li>
|
||||
<li>detail
|
||||
<ul>
|
||||
<li>Darstellung der Detailansicht für die Kategorien</li>
|
||||
</ul></li>
|
||||
<li>detailchoice
|
||||
<ul>
|
||||
<li>Darstellung der Detailansicht für die Praxisphasenauswahl</li>
|
||||
</ul></li>
|
||||
<li>save
|
||||
<ul>
|
||||
<li>Speichern der Detailansicht für die Kategorien</li>
|
||||
</ul></li>
|
||||
<li>savechoice
|
||||
<ul>
|
||||
<li>Speichern der Detailansicht für die Praxisphasenauswahl</li>
|
||||
</ul></li>
|
||||
<li>delete
|
||||
<ul>
|
||||
<li>Löschen eines Eintrags aus der Datenbank</li>
|
||||
</ul></li>
|
||||
<li>default
|
||||
<ul>
|
||||
<li>Fehlerdarstellung</li>
|
||||
</ul></li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -8,6 +8,7 @@
|
||||
<style type="text/css">
|
||||
@import url("/style.css");
|
||||
</style>
|
||||
<script src="/functions${data['category']}.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@ -61,13 +62,15 @@
|
||||
|
||||
<div id="idButtonArea" class="clButtonArea">
|
||||
<a href="/index" class="clButton">Startseite</a>
|
||||
<a href="/detail/?cat=${data['category']}" class="clButton">Neu</a>
|
||||
<a class="clButton" onclick="select('${data['category']}', 0)">Bearbeiten</a>
|
||||
<a class="clButton" onclick="select('${data['category']}', 1)">Loeschen</a>
|
||||
|
||||
<a class="clButton" id="New">Neu</a>
|
||||
<a class="clButton" id="Modify">Bearbeiten</a>
|
||||
<a class="clButton" id="Delete">Loeschen</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<footer>
|
||||
<script src="/functions.js" type="text/javascript"></script>
|
||||
|
||||
</footer>
|
||||
</html>
|
@ -8,6 +8,7 @@
|
||||
<style type="text/css">
|
||||
@import url("/style.css");
|
||||
</style>
|
||||
<script src="/functionsChoice.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@ -46,11 +47,10 @@
|
||||
|
||||
<div id="idButtonArea" class="clButtonArea">
|
||||
<a href="/index" class="clButton">Startseite</a>
|
||||
<a class="clButton" onclick="select('', 2)">Annehmen</a>
|
||||
<a class="clButton" id="Annehmen">Annehmen</a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<footer>
|
||||
<script src="/functions.js" type="text/javascript"></script>
|
||||
</footer>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user