-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
156 lines (112 loc) · 3.29 KB
/
Copy pathindex.html
File metadata and controls
156 lines (112 loc) · 3.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
border: 1px solid black;
border-collapse:collapse;
}
th, td {
padding: 5px;
}
</style>
</head>
<body onload="loadDoc(1)">
<p>Nummer für WhatsApp Kommunikation bei Interesse am Projekt: 157 78910439</p>
<p>Melde Dich hier an:</p>
<input type="text" value="Name..." onfocus="this.value=''" id="myInput">
<select name="JobAuswahl" required autofocus id="Job">
<option>Künstler</option>
<option>Game Designer</option>
<option>Programmierer</option>
<option>Sound Designer</option>
<option>Story Writer</option>
<option>Komponist</option>
</select>
<button onclick="loadDoc(0)">Bestätigen</button>
<table id="demo"></table>
<button onclick="loadDoc(1)">Refresh</button>
<?php
filter.default="special_chars"
exec("python Test.py");
echo "Geht Das?";
?>
<script>
function Confirm(xml){
var Job=0;
switch(document.getElementById('Job').value){
case "Künstler":
Job=0;
break;
case "Game Designer":
Job=1;
break;
case "Programmierer":
Job=2;
break;
case "Sound Designer":
Job=3;
break;
case "Story Writer":
Job=4;
break;
case "Komponist":
Job=5;
break;
}
var xmlDoc = xml.responseXML;
var x = xmlDoc.getElementsByTagName("APPLICANT");
for (i = 0; i <x.length; i++) {
if(document.getElementById('myInput').value==x[i].getElementsByTagName("NAME")[0].childNodes[0].nodeValue){
var TestObSelberJob=0;
for(TestObSelberJob=x[i].getElementsByTagName("ID")[0].childNodes[0].nodeValue; TestObSelberJob>5;TestObSelberJob-=6){
}if(TestObSelberJob==Job){return "error";}
}
}
console.log(document.getElementById('myInput').value);
console.log(document.getElementById('Job').value);
<?php
exec("python Test.py");
echo "Geht Das?";
?>
return "success"
}
function loadDoc(TableSchreiben) {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200 && TableSchreiben==1) {
myFunction(this);
}else if(this.readyState == 4 && this.status == 200 && TableSchreiben==0){
console.log(Confirm(this));
}
};
xhttp.open("GET", "Applicant_List.xml", true);
xhttp.send();
}
function myFunction(xml)
{
var i;
var xmlDoc = xml.responseXML;
var table="<tr><th>Künstler</th><th>Game Designer</th><th>Programmierer</th><th>Sound Designer</th><th>Story Writer</th><th>Komponist</th></tr>";
var x = xmlDoc.getElementsByTagName("APPLICANT");
console.log(x);
var RausFliegKonditionFürLeerStellenFüller=0;
var Zeile=0;
for (i = 0; i <x.length; i++) {
console.log(i+". Eintrag");
while (x[i].getElementsByTagName("ID")[0].childNodes[0].nodeValue-(Zeile*6) != RausFliegKonditionFürLeerStellenFüller) {
table+="<td></td>"
if(RausFliegKonditionFürLeerStellenFüller==5){RausFliegKonditionFürLeerStellenFüller=0;table+="<td></td>";Zeile+=1;table+="</tr>";}
RausFliegKonditionFürLeerStellenFüller+=1;
console.log(RausFliegKonditionFürLeerStellenFüller);
}
table+="<td>"+x[i].getElementsByTagName("NAME")[0].childNodes[0].nodeValue+"</td>"
if(RausFliegKonditionFürLeerStellenFüller==5){RausFliegKonditionFürLeerStellenFüller=0;Zeile+=1;table+="</tr>";}
else{RausFliegKonditionFürLeerStellenFüller+=1;}
console.log(RausFliegKonditionFürLeerStellenFüller);
}
document.getElementById("demo").innerHTML = table;
}
</script>
</body>
</html>