-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
210 lines (188 loc) · 6.19 KB
/
index.html
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<!DOCTYPE html>
<html>
<head>
<title>Schwarzwald - Das Sales-System der FSMI</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="static/css/layout.css" />
<link rel="stylesheet" type="text/css" href="static/css/hacks.css" />
<link rel="stylesheet" type="text/css" href="static/css/main.css" />
<link rel="stylesheet" type="text/css" href="static/css/search.css" />
<link rel="stylesheet" type="text/css" href="static/css/classes.css" />
<link rel="stylesheet" type="text/css" href="static/css/pikaday.css" />
<!-- FIXME: meta-info //-->
</head>
<body onload="schwarzwald.init();">
<!-- FIXME: whats this //-->
<div id="black" class="hidden"></div>
<header>
<div id="head-static">
<img src="static/img/schwarzwald.svg" id="sw-head-logo" alt="Schwarzwald-Logo" />
<div id="sw-head-text">
<h3>FSMI</h3>
<h1>Schwarzwald</h1>
</div>
</div>
</header>
<div class="clear"></div>
<div id="content">
<div class="content-box">
<datalist id="lecturesList"></datalist>
<datalist id="profList"></datalist>
<label for="profInput">
<span class="description">Dozent:</span>
<br />
<input type="text" list="profList" id="profInput" placeholder="Dozent" value=""/>
</label>
<label for="searchInput">
<span class="description">Suche:</span>
<br />
<span id="searchInputs">
<input type="text" list="lecturesList" id="searchInput0" placeholder="Vorlesung"/>
</span>
<span class="button" onclick="fsdeluxe.gui.addSearchField()">+</span>
</label>
<div class="search-filter right">
<!-- FIXME: values, dom name, call //-->
<label for="select-mode">
<span class="description">Typ</span>
<br/>
<select id="select-mode" onchange="schwarzwald.legacy.modeChanged(event);">
<option value="p">Protokolle</option>
<option value="k">Klausuren</option>
</select>
</label>
<label for="oldest">
<span class="description">Von:</span>
<br />
<input type="text" id="oldest" class="timestamp" placeholder="JJJJ-MM-TT"/>
</label>
<label for="newest">
<span class="description">Bis:</span>
<br />
<input type="text" id="newest" class="timestamp" placeholder="JJJJ-MM-TT"/>
</label>
</div>
<div class="clear"></div>
<span class="button" onclick="schwarzwald.search();">Suchen</span>
<div id="limit">
<label for="limitInput">
<span class="description">Maximale Anzahl:</span>
<input type="number" id="limitInput" value="0" />
</label>
</div>
<div id="searchOutput">
<table>
<thead>
<tr>
<th><input type="checkbox" id="allCheckbox" onclick="fsdeluxe.exams.toggleAll()" /></th>
<th>ID</th>
<th>Type</th>
<th>Vorlesung</th>
<th>Datum</th>
<th>Prüfer</th>
<th>Seiten</th>
<th>Preis</th>
</tr>
</thead>
<tbody id="searchOutputBody">
</tbody>
<tfoot>
<tr>
<td>Anzahl:</td>
<td id="searchCounter" class="tableLeft"></td>
<td></td>
<td></td>
<td></td>
<td class="tableRight">Gesamt: </td>
<td id="searchSum"></td>
</tr>
</tfoot>
</table>
</div>
<span class="button" id="cartAddButton" onclick="fsdeluxe.exams.addToCart()" >Add</span>
</div>
<div class="content-box">
<div id="cartControls">
<span class="button" id="cartRemoveButton" onclick="fsdeluxe.exams.remCart()" >Remove</span>
<input type="text" id="cartRemoveInput" />
</div>
<div id="cartOutput">
<table>
<thead>
<tr>
<th>ID</th>
<th>Type</th>
<th>Anzahl</th>
<th>Vorlesung</th>
<th>Datum</th>
<th>Prüfer</th>
<th>Seiten</th>
<th>Preis</th>
</tr>
</thead>
<tbody id="cartOutputBody">
</tbody>
<tfoot>
<tr>
<td>Anzahl:</td>
<td id="cartCounter" class="tableLeft"></td>
<td></td>
<td></td>
<td></td>
<td class="tableRight">Gesamt: </td>
<td id="cartSum"></td>
</tr>
</tfoot>
</table>
</div>
<div id="saveOptions">
<span class="button" id="saveButton" onclick="fsdeluxe.exams.saveCart()">Save</span>
<button id="againButton" class="hidden" onclick="fsdeluxe.exams.showAgain()">Nummer schon vergessen?</button>
</div>
</div>
</div>
<div id="cartNumber" class="hidden">
<div class="title">Deine Bestellung wurde entgegengenommen!</div>
<div id="cartNumberDiv">
<span>Deine Referenznummer:</span>
<span id="cartid">#</span>
</div>
<div id="agb">
<strong>Weiteres Vorgehen:</strong>
<br />
Bitte notiere dir die oben angezeigte Referenznummer.
Sie identifiziert deine Auswahl an Protokollen/Klausuren eindeutig.
Nenne sie einem Fachschaftler und er wird dir deine Auswahl drucken.<br />
Um eine einmalige Erinnerungsmail mit deiner Nummer zu erhalten, kannst du deine Emailadresse unten eingeben (wird nur zum Versand der Email verwendet).
<br />
<span class="center">
<input type="email" id="mail" placeholder="mail" />
<button onclick="fsdeluxe.exams.mail()">Mail</button>
</span>
</div>
<button id="closeButton" onclick="fsdeluxe.exams.close()">Schließen</button>
</div>
<footer>
Schwarzwald on <a href="http://github.com/kitinfo/schwarzwald">Github</a>
<div id="status"></div>
</footer>
<!-- Libraries //-->
<script src="static/ajax.js"></script>
<script src="static/pickaday.js"></script>
<script src="static/debug.js"></script>
<!-- Actual code //-->
<script src="static/schwarzwald.js"></script>
<script src="static/config.js"></script>
<script src="static/api.js"></script>
<script src="static/gui.js"></script>
<script src="static/log.js"></script>
<script src="static/legacy.js"></script>
<script src="static/common.js"></script>
<script src="static/lectures.js"></script>
<!-- Initialization //-->
<script>
var pickerNewest = new Pikaday({field: gui.lm('newest'), format: 'YYYY-MM-DD'});
var pickerOldest = new Pikaday({field: gui.lm('oldest'), format: 'YYYY-MM-DD'});
</script>
</body>
</html>