Repository navigation
Expand file tree
/
Copy pathindex.php
More file actions
309 lines (269 loc) · 8.65 KB
/
Copy pathindex.php
File metadata and controls
309 lines (269 loc) · 8.65 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
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
<?php
$af = str_replace($_SERVER['DOCUMENT_ROOT'], '', str_replace('\\', '/', __DIR__));
$rootfolder = substr($af, 0, strpos($af, '/c')+2)."/";
include($_SERVER['DOCUMENT_ROOT'].$rootfolder."loginprotection.php");
$title = "Baum";
include($_SERVER['DOCUMENT_ROOT'].$rootfolder."layout/head.php");
include($_SERVER['DOCUMENT_ROOT'].$rootfolder."layout/topnavi.php");
include($_SERVER['DOCUMENT_ROOT'].$rootfolder."ajax/news.php");
?>
<style type="text/css">
table
{
border-top: 1px solid silver;
border-left: 1px solid silver;
border-right: 1px solid silver;
}
table, tr
{
width: 100%;
}
th, td
{
width: 50%;
}
th
{
height: 30px;
background: rgba(255, 255, 255, .1);
}
td
{
vertical-align:top;
}
td ul
{
height: auto;
}
*.bt
{
text-align: center;
vertical-align: middle;
border-bottom: 1px solid silver;
border-top: 1px solid silver;
height: 30px;
}
*.bt div.buttonlink
{
width: 105px;
margin-left: auto ;
margin-right: auto ;
}
</style>
<script type="text/javascript">
function loadmore( obj ) {
var button = $("#"+obj.id);
var tr = $("#row_"+obj.id.split("_")[1]);
var type0 = tr.children().get(0).id.split('_')[1];
var actual0 = $("div#news_"+type0+"_container_actual");
var min0 = -1;
if($.trim(actual0.children().last().html()))
min0 = actual0.children().last().attr('id').split('_')[2];
actual0.attr('id','news_'+type0+'_container_'+min0);
var type1 = tr.children().get(1).id.split('_')[1];
var actual1 = $("div#news_"+type1+"_container_actual");
var min1 = -1;
if($.trim(actual1.children().last().html()))
min1 = actual1.children().last().attr('id').split('_')[2];
actual1.attr('id','news_'+type1+'_container_'+min1);
button.slideUp();
var fin0 = false;
var fin1 = false;
ulL = actual0.parent();
ulR = actual1.parent();
$.get( "<?php echo $rootfolder."ajax/news.php"; ?>?type="+type0+"&min="+min0+"&count=10", function( data ) {
if(data!="418")
{
actual0.parent().html( actual0.parent().html() + "<div id=\"news_"+type0+"_container_actual\" style=\"display:none;\">" + data + "</div>");
tr.children().get(0).setAttribute("data-count", parseInt(min0)+10);
$("div#news_"+type0+"_container_actual").slideDown(400, function() {
fin0 = true;
if(fin0 && fin1) adjustHeight(ulL, ulR);
});
}
else
{
fin0 = true;
if(fin0 && fin1) adjustHeight(ulL, ulR);
}
});
$.get( "<?php echo $rootfolder."ajax/news.php"; ?>?type="+type1+"&min="+min1+"&count=10", function( data ) {
if(data!="418")
{
actual1.parent().html( actual1.parent().html() + "<div id=\"news_"+type1+"_container_actual\" style=\"display:none;\">" + data + "</div>");
tr.children().get(1).setAttribute("data-count", parseInt(min1)+10);
$("div#news_"+type1+"_container_actual").slideDown(400, function() {
fin1 = true;
if(fin0 && fin1) adjustHeight(ulL, ulR);
});
}
else
{
fin0 = true;
if(fin0 && fin1) adjustHeight(ulL, ulR);
}
});
button.slideDown();
}
function adjustHeight(ulL, ulR)
{
ulL.css("line-height", "20px");
ulR.css("line-height", "20px");
var hdif = Math.abs(ulL.height()-ulR.height());
if(ulL.height() > ulR.height())
{
var addh = Math.round(hdif / (ulR.children().length * 10));
ulR.css("line-height", (20+addh)+"px");
}
else
{
var addh = Math.round(hdif / (ulL.children().length * 10));
ulL.css("line-height", (20+addh)+"px");
}
}
function spoiler( id )
{
$('li.transition').mouseenter(function() {
$('#info_spoiler td').css("z-index", "-1");
});
$('li.transition').mouseover(function() {
$('#info_spoiler td').css("z-index", "-1");
});
$('li.transition').mouseleave(function() {
$('#info_spoiler td').css("z-index", "");
});
if($('#'+id).css('display') == 'none')
{
$('#'+id).slideDown();
$('#extend_'+id+' img').attr('src', "<?php echo $rootfolder; ?>images/arrow_down.png");
}
else
{
$('#'+id).slideUp();
$('#extend_'+id+' img').attr('src', "<?php echo $rootfolder; ?>images/arrow_up.png");
}
}
</script>
<h1>Startseite</h1>
<h2 id="important_info">Viel Erfolg bei den anstehenden Abiturklausuren! <br>~Josh</h2>
<div style="border:1px solid silver; "><div style="text-align:center;" onclick="spoiler('new_album_spoiler')" id="extend_new_album_spoiler" class="buttonlink" title="Mehr laden">
<a>Roadmap<img src="<?php echo $rootfolder; ?>images/arrow_up.png"></a>
</div>
<div id="new_album_spoiler" style="display: none; border-top: 1px solid silver;">
<div style="margin-left: 2px">
v0.2.0 (14.01.16):
<ul>
<li><s>Favicon</s></li>
<li><s>Umfragen</s></li>
<li><s>Umfragen: Bearbeiten</s></li>
<li><s>Nutzer: löschen</s></li>
<li><s>Nutzer: verschmelzen</s></li>
<li><s>Umfragen: Öffnen/Schließen</s></li>
<li><s>Umfragen: Löschen</s></li>
<li><s>Nutzer: Bearbeiten</s></li>
</ul>
v0.2.1 (05.02.16):
<ul>
<li><s>Charakteristik: Copy & Paste Funktionalität</s></li>
<li><s>Tools: Nutzer verstecken</s></li>
<li><s>Generell: Automatisierte Erinnerungen</s></li>
<li><s>Backup: Verlauf</s></li>
</ul>
v0.3.0 (~ early Feb 2016):
<ul>
<li><b>Generell: Statistiken<b></li>
<li><i>Backup: Wiederherstellen<i></li>
<li>Backup: Manuelles Backup</li>
<li>Termine: Mit Funktionalität versehen</li>
</ul>
v0.4.0 (~ late Feb 2016):
<ul>
<li>Galerie: Alben Bearbeiten</li>
<li>Galerie: Alben Löschen</li>
<li>Galerie: Bilder Titel & Beschreibung</li>
<li>Galerie: verhübschen </li>
<li>Startseite: Galerie hinzufügen</li>
<li>Komitees: Mit Funktionalität versehen</li>
</ul>
v0.5.0 (~ Mar 2016):
<ul>
<li>Login: verhübschen</li>
<li>Permissions: (Gruppen)Manager</li>
<li>Generell: Polieren</li>
<li>Major Refactoring</li>
</ul>
v0.6.0 (far future):
<ul>
<li>Generell: Mobile Version</li>
</ul>
v0.7.0 (possibly never):
<ul>
<li>Generell: Skins</li>
</ul>
<br>
known bugs:
<ul>
<li><s>Generell: Suchproblem bei Apple Geräten</s></li>
</ul>
<b>In Bearbeitung</b><br>
<i>In Planung</i><br>
<br>
~ Josh
</div></div></div>
<br><br>
<table cellspacing="0">
<tr>
<th class="br">Neuste Aktivität Schüler</th>
<th class="b">Termine</th>
</tr>
<tr id="row_0">
<td id="news_0" class="r" data-count="10"><ul><div id="news_0_container_actual"><?php news(0, -1, 10, $rootfolder); ?></div></ul></td>
<td id="news_4" align="center" data-count="10"><img src="<?php echo $rootfolder; ?>images/construction.png"><div id="news_4_container_actual"></div></td>
</tr>
<tr>
<td id="row_0_br" class="bt" colspan="2">
<div onclick="loadmore(this)" id="row_0_button" class="buttonlink" title="Mehr laden">
<a>Mehr Laden<img src="images/plus.png"></a>
</div>
</td>
</tr>
</table>
<br><br>
<table cellspacing="0">
<tr>
<th class="br">Neuste Aktivität Lehrer</th>
<th class="b">Man munkelt aktuell, ...</th>
</tr>
<tr id="row_1">
<td id="news_1" class="r" data-count="10"><ul><div id="news_1_container_actual"><?php news(1, -1, 10, $rootfolder); ?></div></ul></td>
<td id="news_3" data-count="10"><ul><div id="news_3_container_actual"><?php news(3, -1, 10, $rootfolder); ?></div></ul></td>
</tr>
<tr>
<td id="row_1_br" class="bt" colspan="2">
<div onclick="loadmore(this)" id="row_1_button" class="buttonlink" title="Mehr laden">
<a>Mehr Laden<img src="images/plus.png"></a>
</div>
</td>
</tr>
</table>
<br><br>
<table cellspacing="0">
<tr>
<th class="br">Neuste Zitate</th>
<th class="b">Neuste Bilder</th>
</tr>
<tr id="row_2">
<td id="news_2" class="r" data-count="10"><ul><div id="news_2_container_actual"><?php news(2, -1, 10, $rootfolder); ?></div></ul></td>
<td id="news_5" align="center" data-count="10"><img src="<?php echo $rootfolder; ?>images/construction.png"><div id="news_5_container_actual"><?php ?><div></td>
</tr>
<tr>
<td id="row_2_br" class="bt" colspan="2">
<div onclick="loadmore(this)" id="row_2_button" class="buttonlink" title="Mehr laden">
<a>Mehr Laden<img src="images/plus.png"></a>
</div>
</td>
</tr>
</table>
<?php
include($_SERVER['DOCUMENT_ROOT'].$rootfolder."layout/footer.php");
?>