moved to intern sub project
This commit is contained in:
parent
7b191ee2dc
commit
98e45f56a0
@ -1 +0,0 @@
|
||||
<html><head><meta http-equiv='refresh' content='20'><title>Is FS WIAI Open?!</title></head><body style='background-color:#bbc0c7; color:black;'><img style='margin:0 auto; display: block;'src='./door/unknown.jpg' /><content style='text-align:center; display: block;'><h2 style='color:#0B75AF;'>Didn't change for about 39987 minutes.</h2></content><bottom style='display: block; margin:10em auto; background-color:#0B75AF; width:15em; padding:0.5em; border-style:solid; border-color:black; border-width:0.2em;'><h3>Server-Infos:</h3><p>API-Host: 141.13.163.254</p><p>API-Filename: index.html</p><p>Uptime: 39987 minutes</p><p>Build: Mar 26 2013</p></bottom></body></html>
|
||||
1123
door/effects.js
vendored
1123
door/effects.js
vendored
File diff suppressed because it is too large
Load Diff
112
door/index.html
112
door/index.html
@ -1,112 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Is FsWIAI open?</title>
|
||||
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family: serif;
|
||||
font-size: 4em;
|
||||
text-align: center;
|
||||
background-color: #5555FF;
|
||||
padding-top: 20%;
|
||||
}
|
||||
|
||||
open {
|
||||
background-color: #55BB55;
|
||||
}
|
||||
|
||||
open,closed,unknown {
|
||||
border-radius: 0.5em;
|
||||
border-width: 0.2em;
|
||||
border-style: solid;
|
||||
border-color: #557755;
|
||||
padding: 0.4em 0.6em;
|
||||
width: 6em;
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
closed {
|
||||
background-color: #BB5555;
|
||||
border-color: #775555;
|
||||
}
|
||||
|
||||
unknown {
|
||||
background-color: yellow;
|
||||
}
|
||||
|
||||
#time {
|
||||
display: inline;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript" src="/door/prototype.js">
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="/door/effects.js">
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var status = Number(-2);
|
||||
|
||||
function update() {
|
||||
if(status==0){
|
||||
document.title = "FsWIAI is closed";
|
||||
|
||||
$('content').innerHTML = "Die Fachschaft ist <br/> <closed id='statusbox'>geschlossen</closed>";
|
||||
} else if(status==-1) {
|
||||
document.title = "Is FsWIAI open?";
|
||||
|
||||
$('content').innerHTML = "Die Fachschaft ist vielleicht offen.<br/> <unknown id='statusbox'>unbekannt</unknown>"
|
||||
}
|
||||
else {
|
||||
$('content').innerHTML = "Die Fachschaft ist <div id='time'></div><br/> <open id='statusbox' >offen</open>";
|
||||
}
|
||||
|
||||
$('statusbox').fade({duration: 0.5, from: 0, to: 1});
|
||||
}
|
||||
|
||||
function request() {
|
||||
new Ajax.Request('/doorapi/status?current=' + status, {
|
||||
onSuccess: function(response) {
|
||||
var data = eval('(' + response.responseText + ')');
|
||||
var newVal = (data.status === "open");
|
||||
|
||||
if(newVal != status) {
|
||||
status = Number(newVal);
|
||||
update();
|
||||
}
|
||||
|
||||
if(status > 0)
|
||||
{
|
||||
if(data.uptime < 2)
|
||||
$('time').innerHTML = "seit Kurzem";
|
||||
else
|
||||
$('time').innerHTML = "seit " + data.uptime + " Minuten";
|
||||
|
||||
|
||||
document.title = "FsWIAI is open [" + data.uptime + "min]";
|
||||
}
|
||||
|
||||
setTimeout(request, 500);
|
||||
},
|
||||
onFailure: function(response) {
|
||||
if(-1 != status) {
|
||||
status = -1
|
||||
update();
|
||||
}
|
||||
|
||||
setTimeout(request, 500);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
request();
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="content">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,83 +0,0 @@
|
||||
<html>
|
||||
<header>
|
||||
<title>Log - Is FsWIAI open?</title>
|
||||
</header>
|
||||
|
||||
<style type="text/css">
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#content {
|
||||
margin: 0 auto;
|
||||
|
||||
display: block;
|
||||
|
||||
min-height: 20em;
|
||||
|
||||
width: 50em;
|
||||
background-color: gray;
|
||||
color: white;
|
||||
padding: 1em;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript" src="/door/prototype.js">
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="/door/effects.js">
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function toTimeStamp(unix) {
|
||||
var date = new Date(1000 * unix);
|
||||
|
||||
var year = date.getFullYear();
|
||||
var month = 1+date.getMonth();
|
||||
var day = date.getDate();
|
||||
var hours = date.getHours();
|
||||
var minutes = date.getMinutes();
|
||||
|
||||
return day + "." + month + "." + year + " " + hours + ":" + minutes;
|
||||
}
|
||||
|
||||
new Ajax.Request('/doorapi/log', {
|
||||
onSuccess: function(response) {
|
||||
var data = eval('(' + response.responseText + ')');
|
||||
var html = "<h1>Logbuch</h1>";
|
||||
|
||||
if(data.length == 0)
|
||||
{
|
||||
html += "<p>No log data found!</p>";
|
||||
}
|
||||
else
|
||||
{
|
||||
html += "<ul>";
|
||||
|
||||
for(var i = 0; i < data.length; ++i)
|
||||
{
|
||||
html += "<li>";
|
||||
html += "Von " + toTimeStamp(data[i].start);
|
||||
html += " bis " + toTimeStamp(data[i].end);
|
||||
html += "</li>";
|
||||
}
|
||||
|
||||
html += "</ul>";
|
||||
}
|
||||
|
||||
$('content').innerHTML = html;
|
||||
},
|
||||
onFailure: function(response) {
|
||||
alert("Failed to get data!");
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<body>
|
||||
<div id='content'>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
7037
door/prototype.js
vendored
7037
door/prototype.js
vendored
File diff suppressed because it is too large
Load Diff
103
door/small.html
103
door/small.html
@ -1,103 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Is FsWIAI open?</title>
|
||||
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family: serif;
|
||||
font-size: 2em;
|
||||
text-align: center;
|
||||
background-color: rgba(0,0,0,0);
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
open {
|
||||
width: 6em;
|
||||
border-color: #557755;
|
||||
background-color: #55BB55;
|
||||
}
|
||||
|
||||
open,closed,unknown {
|
||||
border-radius: 0.25em;
|
||||
border-width: 0.1em;
|
||||
border-style: solid;
|
||||
padding: 0.4em 0.6em;
|
||||
color: white;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
unknown {
|
||||
background-color: #55BBBB;
|
||||
border-color: #557777;
|
||||
}
|
||||
|
||||
closed {
|
||||
background-color: #BB5555;
|
||||
border-color: #775555;
|
||||
}
|
||||
|
||||
closed small, open small {
|
||||
color: #444444;
|
||||
font-size: 0.5em;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript" src="/door/prototype.js">
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="/door/effects.js">
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var status = -2;
|
||||
|
||||
function update() {
|
||||
if(status == 1)
|
||||
$('content').innerHTML = "<open id='statusbox' ><small>Die Fachschaft ist</small><br/>geöffnet</open>";
|
||||
else if(status == -1)
|
||||
$('content').innerHTML = "<unknown id='statusbox'><small>Die Fachschaft ist</small><br/>vielleicht offen</unknown>";
|
||||
else
|
||||
$('content').innerHTML = "<closed id='statusbox'><small>Die Fachschaft ist</small><br/>geschlossen</closed>";
|
||||
|
||||
$('statusbox').fade({ duration: 0.5, from: 0, to: 1 });
|
||||
}
|
||||
|
||||
function request() {
|
||||
|
||||
new Ajax.Request('/doorapi/status?current=' + status, {
|
||||
onSuccess: function(response) {
|
||||
var data = eval('(' + response.responseText + ')');
|
||||
var newVal = (data.status === "open");
|
||||
|
||||
if(newVal != status) {
|
||||
status = Number(newVal);
|
||||
update();
|
||||
}
|
||||
|
||||
setTimeout(request, 500);
|
||||
},
|
||||
onFailure: function(response) {
|
||||
if(status != -1)
|
||||
{
|
||||
status = -1;
|
||||
update();
|
||||
}
|
||||
|
||||
setTimeout(request, 500);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
request();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<a href="/door/" target="_parent">
|
||||
<div id="content">
|
||||
</div>
|
||||
</a>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -1,47 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Mitglieder der Fachschaft <?php echo $fachschaft; ?> </title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<h1>Mitglieder der Fachschaft <?php echo $fachschaft; ?> - Stand <?php
|
||||
echo date(DATE_RFC822)
|
||||
?></h1>
|
||||
<table>
|
||||
<tr><th>Realer Name</th><th>Username</th><th>Email</th><th>Handy</th><th>Festnetz</th><th>ICQ</th><th>Geburtstag</th><th>Amt, Schlüssel</th></tr>
|
||||
<?php
|
||||
include 'include.php';
|
||||
|
||||
$abfrage = "SELECT u.username, u.email, u.userTitle, v.userOption45, v.userOption46, v.userOption47, v.userOption28, v.userOption12, v.userOption15, v.userOption53
|
||||
FROM wcf1_user AS u, wcf1_user_option_value AS v
|
||||
WHERE u.userID = v.userID AND u.userTitle LIKE '%$fachschaft%' AND not u.usertitle LIKE '%ex-$fachschaft%' AND not u.usertitle LIKE '%$fachschaft-extern%'
|
||||
ORDER BY v.userOption47";
|
||||
$ergebnis = mysql_query($abfrage);
|
||||
|
||||
while($data = mysql_fetch_array($ergebnis)){
|
||||
echo "<tr>";
|
||||
echo "<td>".$data['userOption47']."</td>";
|
||||
echo "<td>".$data['username']."</td>";
|
||||
echo "<td>".$data['email']."</td>";
|
||||
echo "<td>".$data['userOption46']."</td>";
|
||||
echo "<td>".$data['userOption45']."</td>";
|
||||
echo "<td>".$data['userOption28']."</td>";
|
||||
echo "<td>".$data['userOption12']."</td>";
|
||||
echo "<td>".$data['userOption15'];
|
||||
if ($data['userOption53'] == "1" || $data['userOption53'] == "Ja") {
|
||||
echo ", Schlüsselbesitzer";
|
||||
}
|
||||
else {echo "";
|
||||
}
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
|
||||
mysql_close($con);
|
||||
|
||||
?>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,6 +0,0 @@
|
||||
<?php
|
||||
header('Content-Type: text/html; charset=iso-8859-1');
|
||||
|
||||
$con = mysql_connect("localhost","extras","extrauser");
|
||||
mysql_select_db("forum", $con);
|
||||
?>
|
||||
@ -1,36 +0,0 @@
|
||||
* {
|
||||
font-family: Trebuchet MS;
|
||||
font-size:10pt;
|
||||
}
|
||||
h1 {
|
||||
font-size:1.2em;
|
||||
}
|
||||
p {
|
||||
font-size: 1em;
|
||||
margin-left:13px;
|
||||
}
|
||||
ul,ol {
|
||||
font-size: 1em;
|
||||
}
|
||||
ul.li {
|
||||
list-style-type:square;
|
||||
}
|
||||
a {
|
||||
text-decoration:none;
|
||||
color:#124AA8;
|
||||
}
|
||||
a:hover {
|
||||
background: #FFFDD5;
|
||||
text-decoration:underline;
|
||||
color: #ff9934
|
||||
}
|
||||
table {
|
||||
border-collapse:collapse;
|
||||
width:35%;
|
||||
}
|
||||
table,th,td {
|
||||
text-align:center;
|
||||
border:1px solid black;
|
||||
font-size: 1.2em;
|
||||
padding: 1px 4px;
|
||||
}
|
||||
@ -1,50 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Mitglieder der Fachschaft <?php echo $fachschaft; ?> </title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<h1>Mitglieder der Fachschaft <?php echo $fachschaft; ?> - Stand <?php
|
||||
echo date(DATE_RFC822)
|
||||
?></h1>
|
||||
<table>
|
||||
<tr><th>Realer Name</th><th>Username</th><th>Email</th><th>Handy</th><th>Festnetz</th><th>ICQ</th><th>Geburtstag</th><th>Amt, Schlüssel</th></tr>
|
||||
<?php
|
||||
include 'include.php';
|
||||
|
||||
$abfrage = "SELECT u.username, u.email, u.userTitle, v.userOption45, v.userOption46, v.userOption47, v.userOption28, v.userOption12, v.userOption15, v.userOption53
|
||||
FROM wcf1_group AS g
|
||||
INNER JOIN wcf1_user_to_groups AS ug ON g.groupID = ug.groupID
|
||||
INNER JOIN wcf1_user AS u ON u.userID = ug.userID
|
||||
INNER JOIN wcf1_user_option_value AS v ON u.userID = v.userID
|
||||
WHERE g.groupName ='$fachschaft'
|
||||
ORDER BY v.userOption47";
|
||||
$ergebnis = mysql_query($abfrage);
|
||||
|
||||
while($data = mysql_fetch_array($ergebnis)){
|
||||
echo "<tr>";
|
||||
echo "<td>".$data['userOption47']."</td>";
|
||||
echo "<td>".$data['username']."</td>";
|
||||
echo "<td>".$data['email']."</td>";
|
||||
echo "<td>".$data['userOption46']."</td>";
|
||||
echo "<td>".$data['userOption45']."</td>";
|
||||
echo "<td>".$data['userOption28']."</td>";
|
||||
echo "<td>".$data['userOption12']."</td>";
|
||||
echo "<td>".$data['userOption15'];
|
||||
if ($data['userOption53'] == "1" || $data['userOption53'] == "Ja") {
|
||||
echo ", Schlüsselbesitzer";
|
||||
}
|
||||
else {echo "";
|
||||
}
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
|
||||
mysql_close($con);
|
||||
|
||||
?>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,6 +0,0 @@
|
||||
<?php
|
||||
header('Content-Type: text/html; charset=iso-8859-1');
|
||||
|
||||
$con = mysql_connect("localhost","extras","extrauser");
|
||||
mysql_select_db("forum", $con);
|
||||
?>
|
||||
@ -1,50 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Mitglieder der Fachschaft <?php echo $fachschaft; ?> </title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<h1>Mitglieder der Fachschaft <?php echo $fachschaft; ?> - Stand <?php
|
||||
echo date(DATE_RFC822)
|
||||
?></h1>
|
||||
<table>
|
||||
<tr><th>Realer Name</th><th>Username</th><th>Email</th><th>Handy</th><th>Festnetz</th><th>ICQ</th><th>Geburtstag</th><th>Amt, Schlüssel</th></tr>
|
||||
<?php
|
||||
include 'include.php';
|
||||
|
||||
$abfrage = "SELECT u.username, u.email, u.userTitle, v.userOption45, v.userOption46, v.userOption47, v.userOption28, v.userOption12, v.userOption15, v.userOption53
|
||||
FROM wcf1_group AS g
|
||||
INNER JOIN wcf1_user_to_groups AS ug ON g.groupID = ug.groupID
|
||||
INNER JOIN wcf1_user AS u ON u.userID = ug.userID
|
||||
INNER JOIN wcf1_user_option_value AS v ON u.userID = v.userID
|
||||
WHERE g.groupName ='$fachschaft'
|
||||
ORDER BY v.userOption47";
|
||||
$ergebnis = mysql_query($abfrage);
|
||||
|
||||
while($data = mysql_fetch_array($ergebnis)){
|
||||
echo "<tr>";
|
||||
echo "<td>".$data['userOption47']."</td>";
|
||||
echo "<td>".$data['username']."</td>";
|
||||
echo "<td>".$data['email']."</td>";
|
||||
echo "<td>".$data['userOption46']."</td>";
|
||||
echo "<td>".$data['userOption45']."</td>";
|
||||
echo "<td>".$data['userOption28']."</td>";
|
||||
echo "<td>".$data['userOption12']."</td>";
|
||||
echo "<td>".$data['userOption15'];
|
||||
if ($data['userOption53'] == "1" || $data['userOption53'] == "Ja") {
|
||||
echo ", Schlüsselbesitzer";
|
||||
}
|
||||
else {echo "";
|
||||
}
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
|
||||
mysql_close($con);
|
||||
|
||||
?>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,4 +0,0 @@
|
||||
<?php
|
||||
$fachschaft = "SOWI";
|
||||
require_once 'list.php';
|
||||
?>
|
||||
@ -1,37 +0,0 @@
|
||||
* {
|
||||
font-family: Trebuchet MS;
|
||||
font-size:10pt;
|
||||
}
|
||||
h1 {
|
||||
font-size:1.2em;
|
||||
text-align:center;
|
||||
}
|
||||
p {
|
||||
font-size: 1em;
|
||||
margin-left:13px;
|
||||
}
|
||||
ul,ol {
|
||||
font-size: 1em;
|
||||
}
|
||||
ul.li {
|
||||
list-style-type:square;
|
||||
}
|
||||
a {
|
||||
text-decoration:none;
|
||||
color:#124AA8;
|
||||
}
|
||||
a:hover {
|
||||
background: #FFFDD5;
|
||||
text-decoration:underline;
|
||||
color: #ff9934
|
||||
}
|
||||
table {
|
||||
border-collapse:collapse;
|
||||
width:100%;
|
||||
}
|
||||
table,th,td {
|
||||
border:1px solid black;
|
||||
font-size: 1.2em;
|
||||
padding: 1px 4px;
|
||||
}
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
<?php
|
||||
$fachschaft = "WIAI";
|
||||
require_once 'list.php';
|
||||
?>
|
||||
@ -1,4 +0,0 @@
|
||||
<?php
|
||||
$fachschaft = "SOWI";
|
||||
require_once 'list.php';
|
||||
?>
|
||||
@ -1,37 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Schlüsselliste der Fachschaft SOWI </title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
|
||||
<link rel="stylesheet" type="text/css" href="keys.css" />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<h1>Schlüsselliste der Fachschaft SOWI - Stand <?php
|
||||
echo date(DATE_RFC822)
|
||||
?></h1>
|
||||
<table>
|
||||
<tr><th>Name</th><th>EXEK MU15</th><th>VMU1A</th><th>395</th></tr>
|
||||
<?php
|
||||
include 'include.php';
|
||||
|
||||
$abfrage = "SELECT v.userOption47, v.userOption53
|
||||
FROM wcf1_user AS u, wcf1_user_option_value AS v
|
||||
WHERE u.userID = v.userID AND u.userTitle LIKE '%SOWI%' AND not u.usertitle LIKE '%ex-SOWI%' AND not v.userOption53 LIKE 0 AND not v.userOption53 LIKE '%Nein%' AND not u.usertitle LIKE '%SOWI-extern%'
|
||||
ORDER BY v.userOption47";
|
||||
$ergebnis = mysql_query($abfrage);
|
||||
|
||||
while($data = mysql_fetch_array($ergebnis)){
|
||||
echo "<tr>";
|
||||
echo "<td>".$data['userOption47']."</td>";
|
||||
echo "<td> X </td>";
|
||||
echo "<td> </td>";
|
||||
echo "<td> </td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
|
||||
mysql_close($con);
|
||||
|
||||
?>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,4 +0,0 @@
|
||||
<?php
|
||||
$fachschaft = "SOWI";
|
||||
require_once 'tasks.php';
|
||||
?>
|
||||
@ -1,37 +0,0 @@
|
||||
* {
|
||||
font-family: Trebuchet MS;
|
||||
font-size:10pt;
|
||||
}
|
||||
h1 {
|
||||
font-size:1.2em;
|
||||
text-align:center;
|
||||
}
|
||||
p {
|
||||
font-size: 1em;
|
||||
margin-left:13px;
|
||||
}
|
||||
ul,ol {
|
||||
font-size: 1em;
|
||||
}
|
||||
ul.li {
|
||||
list-style-type:square;
|
||||
}
|
||||
a {
|
||||
text-decoration:none;
|
||||
color:#124AA8;
|
||||
}
|
||||
a:hover {
|
||||
background: #FFFDD5;
|
||||
text-decoration:underline;
|
||||
color: #ff9934
|
||||
}
|
||||
table {
|
||||
border-collapse:collapse;
|
||||
width:100%;
|
||||
}
|
||||
table,th,td {
|
||||
border:1px solid black;
|
||||
font-size: 1.2em;
|
||||
padding: 1px 4px;
|
||||
}
|
||||
|
||||
@ -1,35 +0,0 @@
|
||||
* {
|
||||
font-family: Trebuchet MS;
|
||||
font-size:10pt;
|
||||
}
|
||||
h1 {
|
||||
font-size:1.2em;
|
||||
text-align:center;
|
||||
}
|
||||
p {
|
||||
font-size: 1em;
|
||||
margin-left:13px;
|
||||
}
|
||||
ul,ol {
|
||||
font-size: 1em;
|
||||
}
|
||||
ul.li {
|
||||
list-style-type:square;
|
||||
}
|
||||
a {
|
||||
text-decoration:none;
|
||||
color:#124AA8;
|
||||
}
|
||||
a:hover {
|
||||
background: #FFFDD5;
|
||||
text-decoration:underline;
|
||||
color: #ff9934
|
||||
}
|
||||
table {
|
||||
border-collapse:collapse;
|
||||
}
|
||||
table,th,td {
|
||||
border: 1px;
|
||||
font-size: 1.2em;
|
||||
padding: 1px 4px;
|
||||
}
|
||||
@ -1,60 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Aufgaben in der Fachschaft <?php echo $fachschaft; ?> </title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
|
||||
<link rel="stylesheet" type="text/css" href="tasks.css" />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<h1>Aufgaben in der Fachschaft <?php echo $fachschaft; ?> - Stand <?php
|
||||
echo date(DATE_RFC822)
|
||||
?></h1>
|
||||
<table>
|
||||
<tr><th>Name</th><th>Amt</th><th width="50px">Weitere Aufgaben</th><th>Sonstiges</th></tr>
|
||||
<?php
|
||||
include 'include.php';
|
||||
|
||||
$abfrage = "SELECT u.username, u.email, u.userTitle, v.userOption45, v.userOption46, v.userOption47, v.userOption28, v.userOption12, v.userOption15, v.userOption53, v.amt
|
||||
FROM wcf1_user AS u, wcf1_user_option_value AS v
|
||||
WHERE u.userID = v.userID AND u.userTitle LIKE '%$fachschaft%' AND not u.usertitle LIKE '%ex-$fachschaft%' AND not u.usertitle LIKE '%$fachschaft-extern%'
|
||||
ORDER BY v.amt DESC";
|
||||
$ergebnis = mysql_query($abfrage);
|
||||
|
||||
while($data = mysql_fetch_array($ergebnis)){
|
||||
echo "<tr><td>";
|
||||
if ($data['userOption47'] != NULL){
|
||||
echo $data['userOption47'];
|
||||
}
|
||||
else {
|
||||
echo "USERNAME:";echo $data['username'];
|
||||
}
|
||||
echo "</td><td>";
|
||||
if ($data['amt'] == "10") {
|
||||
echo "Fachschaftssprecher";
|
||||
}
|
||||
elseif ($data['amt'] == "9") {
|
||||
echo "stv. Fachschaftssprecher";
|
||||
}
|
||||
elseif ($data['amt'] == "3") {
|
||||
echo "gewähltes Mitglied";
|
||||
}
|
||||
else {echo "ehrenamtliches Mitglied";
|
||||
}
|
||||
echo "</td>";
|
||||
echo "<td>".$data['userOption15']."</td>";
|
||||
echo "<td>";
|
||||
if ($data['userOption53'] == "1" || $data['userOption53'] == "Ja" ) {
|
||||
echo "Schlüsselbesitzer";
|
||||
}
|
||||
else {echo "";
|
||||
}
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
|
||||
mysql_close($con);
|
||||
|
||||
?>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,4 +0,0 @@
|
||||
<?php
|
||||
$fachschaft = "WIAI";
|
||||
require_once 'list.php';
|
||||
?>
|
||||
@ -1,37 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Schlüsselliste der Fachschaft Wiai </title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
|
||||
<link rel="stylesheet" type="text/css" href="keys.css" />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<h1>Schlüsselliste der Fachschaft WIAI - Stand <?php
|
||||
echo date(DATE_RFC822)
|
||||
?></h1>
|
||||
<table>
|
||||
<tr><th>Name</th><th>EXEK MU15</th><th>VMU1A</th><th>395</th></tr>
|
||||
<?php
|
||||
include 'include.php';
|
||||
|
||||
$abfrage = "SELECT v.userOption47, v.userOption53
|
||||
FROM wcf1_user AS u, wcf1_user_option_value AS v
|
||||
WHERE u.userID = v.userID AND u.userTitle LIKE '%WIAI%' AND not u.usertitle LIKE '%ex-WIAI%' AND not v.userOption53 LIKE 0 AND not v.userOption53 LIKE '%Nein%' AND not u.usertitle LIKE '%WIAI-extern%'
|
||||
ORDER BY v.userOption47";
|
||||
$ergebnis = mysql_query($abfrage);
|
||||
|
||||
while($data = mysql_fetch_array($ergebnis)){
|
||||
echo "<tr>";
|
||||
echo "<td>".$data['userOption47']."</td>";
|
||||
echo "<td> X </td>";
|
||||
echo "<td> </td>";
|
||||
echo "<td> </td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
|
||||
mysql_close($con);
|
||||
|
||||
?>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,4 +0,0 @@
|
||||
<?php
|
||||
$fachschaft = "WIAI";
|
||||
require_once 'tasks.php';
|
||||
?>
|
||||
BIN
intern/GN.ogg_
BIN
intern/GN.ogg_
Binary file not shown.
@ -1,66 +0,0 @@
|
||||
/* defaults for all examples */
|
||||
* {
|
||||
font-family: "Arial", Gadget, sans-serif;
|
||||
font-weight:bold;
|
||||
font-size:24px;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color:#1A1E65;
|
||||
color:white;
|
||||
}
|
||||
|
||||
.kwicks {
|
||||
overflow: hidden;
|
||||
list-style: none;
|
||||
position: relative;
|
||||
margin: 5px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
li {
|
||||
float: left;
|
||||
width: 110px;
|
||||
height: 90px;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.kwicks .kwicks_inner {
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.kwicks .bigLetter {
|
||||
margin-top:5px;
|
||||
margin-left:7px;
|
||||
font-size: 70px;
|
||||
height: 90px;
|
||||
color: black;
|
||||
float: left;
|
||||
display:block;
|
||||
}
|
||||
|
||||
.kwicks .smallLetters {
|
||||
display: none;
|
||||
text-align: center;
|
||||
width: 120px;
|
||||
color: black;
|
||||
font-size: 16px;
|
||||
margin-top: 13px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
li.active .smallLetters {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#music{
|
||||
background-image: url(../soundon.png);
|
||||
background-repeat: no-repeat;
|
||||
width: 45px;
|
||||
height: 43px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,5 +0,0 @@
|
||||
AuthType Basic
|
||||
#AuthBasicProvider ldap-ou basic-wiai
|
||||
AuthBasicProvider ldap-ou_fswiai ldap-ou_fssowi
|
||||
AuthName "interner Bereich"
|
||||
Require valid-user
|
||||
@ -1,39 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>FS-HTML</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/kwicks.css" />
|
||||
<script src="json/links.js" type="text/javascript"></script>
|
||||
<script src="js/main.js" type="text/javascript"></script>
|
||||
<script src="js/jquery-1.2.6.min.js" type="text/javascript"></script>
|
||||
<script src="js/jquery.easing.1.3.js" type="text/javascript"></script>
|
||||
<script src="js/jquery.kwicks-1.5.1.pack.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
$().ready(function() {
|
||||
$('.kwicks').kwicks({
|
||||
max: 205,
|
||||
spacing: 5,
|
||||
sticky: true
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body onload="buildLinks(4, fachschaftslinks);">
|
||||
<div class="container" align="center">
|
||||
<h1 id="header">Für den Fachschaftsdienst</h1>
|
||||
|
||||
|
||||
<div id="fsdienst">
|
||||
</div>
|
||||
|
||||
<div id="button">
|
||||
|
||||
<input id="change" type="button" value="Change" onclick="change();"/>
|
||||
<input id="music" type="button" value="" onclick="music();"/>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
32
intern/js/jquery-1.2.6.min.js
vendored
32
intern/js/jquery-1.2.6.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,205 +0,0 @@
|
||||
/*
|
||||
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
||||
*
|
||||
* Uses the built in easing capabilities added In jQuery 1.1
|
||||
* to offer multiple easing options
|
||||
*
|
||||
* TERMS OF USE - jQuery Easing
|
||||
*
|
||||
* Open source under the BSD License.
|
||||
*
|
||||
* Copyright © 2008 George McGinley Smith
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* Neither the name of the author nor the names of contributors may be used to endorse
|
||||
* or promote products derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
// t: current time, b: begInnIng value, c: change In value, d: duration
|
||||
jQuery.easing['jswing'] = jQuery.easing['swing'];
|
||||
|
||||
jQuery.extend( jQuery.easing,
|
||||
{
|
||||
def: 'easeOutQuad',
|
||||
swing: function (x, t, b, c, d) {
|
||||
//alert(jQuery.easing.default);
|
||||
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
|
||||
},
|
||||
easeInQuad: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t + b;
|
||||
},
|
||||
easeOutQuad: function (x, t, b, c, d) {
|
||||
return -c *(t/=d)*(t-2) + b;
|
||||
},
|
||||
easeInOutQuad: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t + b;
|
||||
return -c/2 * ((--t)*(t-2) - 1) + b;
|
||||
},
|
||||
easeInCubic: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t*t + b;
|
||||
},
|
||||
easeOutCubic: function (x, t, b, c, d) {
|
||||
return c*((t=t/d-1)*t*t + 1) + b;
|
||||
},
|
||||
easeInOutCubic: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t*t + b;
|
||||
return c/2*((t-=2)*t*t + 2) + b;
|
||||
},
|
||||
easeInQuart: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t*t*t + b;
|
||||
},
|
||||
easeOutQuart: function (x, t, b, c, d) {
|
||||
return -c * ((t=t/d-1)*t*t*t - 1) + b;
|
||||
},
|
||||
easeInOutQuart: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
|
||||
return -c/2 * ((t-=2)*t*t*t - 2) + b;
|
||||
},
|
||||
easeInQuint: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t*t*t*t + b;
|
||||
},
|
||||
easeOutQuint: function (x, t, b, c, d) {
|
||||
return c*((t=t/d-1)*t*t*t*t + 1) + b;
|
||||
},
|
||||
easeInOutQuint: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
|
||||
return c/2*((t-=2)*t*t*t*t + 2) + b;
|
||||
},
|
||||
easeInSine: function (x, t, b, c, d) {
|
||||
return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
|
||||
},
|
||||
easeOutSine: function (x, t, b, c, d) {
|
||||
return c * Math.sin(t/d * (Math.PI/2)) + b;
|
||||
},
|
||||
easeInOutSine: function (x, t, b, c, d) {
|
||||
return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
|
||||
},
|
||||
easeInExpo: function (x, t, b, c, d) {
|
||||
return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
|
||||
},
|
||||
easeOutExpo: function (x, t, b, c, d) {
|
||||
return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
|
||||
},
|
||||
easeInOutExpo: function (x, t, b, c, d) {
|
||||
if (t==0) return b;
|
||||
if (t==d) return b+c;
|
||||
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
|
||||
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
|
||||
},
|
||||
easeInCirc: function (x, t, b, c, d) {
|
||||
return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
|
||||
},
|
||||
easeOutCirc: function (x, t, b, c, d) {
|
||||
return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
|
||||
},
|
||||
easeInOutCirc: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
|
||||
return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
|
||||
},
|
||||
easeInElastic: function (x, t, b, c, d) {
|
||||
var s=1.70158;var p=0;var a=c;
|
||||
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
||||
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
||||
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
||||
return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
||||
},
|
||||
easeOutElastic: function (x, t, b, c, d) {
|
||||
var s=1.70158;var p=0;var a=c;
|
||||
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
||||
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
||||
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
||||
return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
|
||||
},
|
||||
easeInOutElastic: function (x, t, b, c, d) {
|
||||
var s=1.70158;var p=0;var a=c;
|
||||
if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
|
||||
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
||||
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
||||
if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
||||
return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
|
||||
},
|
||||
easeInBack: function (x, t, b, c, d, s) {
|
||||
if (s == undefined) s = 1.70158;
|
||||
return c*(t/=d)*t*((s+1)*t - s) + b;
|
||||
},
|
||||
easeOutBack: function (x, t, b, c, d, s) {
|
||||
if (s == undefined) s = 1.70158;
|
||||
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
|
||||
},
|
||||
easeInOutBack: function (x, t, b, c, d, s) {
|
||||
if (s == undefined) s = 1.70158;
|
||||
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
|
||||
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
|
||||
},
|
||||
easeInBounce: function (x, t, b, c, d) {
|
||||
return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
|
||||
},
|
||||
easeOutBounce: function (x, t, b, c, d) {
|
||||
if ((t/=d) < (1/2.75)) {
|
||||
return c*(7.5625*t*t) + b;
|
||||
} else if (t < (2/2.75)) {
|
||||
return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
|
||||
} else if (t < (2.5/2.75)) {
|
||||
return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
|
||||
} else {
|
||||
return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
|
||||
}
|
||||
},
|
||||
easeInOutBounce: function (x, t, b, c, d) {
|
||||
if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
|
||||
return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
*
|
||||
* TERMS OF USE - EASING EQUATIONS
|
||||
*
|
||||
* Open source under the BSD License.
|
||||
*
|
||||
* Copyright © 2001 Robert Penner
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* Neither the name of the author nor the names of contributors may be used to endorse
|
||||
* or promote products derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
@ -1,158 +0,0 @@
|
||||
/*
|
||||
Kwicks for jQuery (version 1.5.1)
|
||||
Copyright (c) 2008 Jeremy Martin
|
||||
http://www.jeremymartin.name/projects.php?project=kwicks
|
||||
|
||||
Licensed under the MIT license:
|
||||
http://www.opensource.org/licenses/mit-license.php
|
||||
|
||||
Any and all use of this script must be accompanied by this copyright/license notice in its present form.
|
||||
*/
|
||||
|
||||
(function($){
|
||||
$.fn.kwicks = function(options) {
|
||||
var defaults = {
|
||||
isVertical: false,
|
||||
sticky: false,
|
||||
defaultKwick: 0,
|
||||
event: 'mouseover',
|
||||
spacing: 0,
|
||||
duration: 500
|
||||
};
|
||||
var o = $.extend(defaults, options);
|
||||
var WoH = (o.isVertical ? 'height' : 'width'); // WoH = Width or Height
|
||||
var LoT = (o.isVertical ? 'top' : 'left'); // LoT = Left or Top
|
||||
|
||||
return this.each(function() {
|
||||
container = $(this);
|
||||
var kwicks = container.children('li');
|
||||
var normWoH = kwicks.eq(0).css(WoH).replace(/px/,''); // normWoH = Normal Width or Height
|
||||
if(!o.max) {
|
||||
o.max = (normWoH * kwicks.size()) - (o.min * (kwicks.size() - 1));
|
||||
} else {
|
||||
o.min = ((normWoH * kwicks.size()) - o.max) / (kwicks.size() - 1);
|
||||
}
|
||||
// set width of container ul
|
||||
if(o.isVertical) {
|
||||
container.css({
|
||||
width : kwicks.eq(0).css('width'),
|
||||
height : (normWoH * kwicks.size()) + (o.spacing * (kwicks.size() - 1)) + 'px'
|
||||
});
|
||||
} else {
|
||||
container.css({
|
||||
width : (normWoH * kwicks.size()) + (o.spacing * (kwicks.size() - 1)) + 'px',
|
||||
height : kwicks.eq(0).css('height')
|
||||
});
|
||||
}
|
||||
|
||||
// pre calculate left or top values for all kwicks but the first and last
|
||||
// i = index of currently hovered kwick, j = index of kwick we're calculating
|
||||
var preCalcLoTs = []; // preCalcLoTs = pre-calculated Left or Top's
|
||||
for(i = 0; i < kwicks.size(); i++) {
|
||||
preCalcLoTs[i] = [];
|
||||
// don't need to calculate values for first or last kwick
|
||||
for(j = 1; j < kwicks.size() - 1; j++) {
|
||||
if(i == j) {
|
||||
preCalcLoTs[i][j] = o.isVertical ? j * o.min + (j * o.spacing) : j * o.min + (j * o.spacing);
|
||||
} else {
|
||||
preCalcLoTs[i][j] = (j <= i ? (j * o.min) : (j-1) * o.min + o.max) + (j * o.spacing);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// loop through all kwick elements
|
||||
kwicks.each(function(i) {
|
||||
var kwick = $(this);
|
||||
// set initial width or height and left or top values
|
||||
// set first kwick
|
||||
if(i === 0) {
|
||||
kwick.css(LoT, '0px');
|
||||
}
|
||||
// set last kwick
|
||||
else if(i == kwicks.size() - 1) {
|
||||
kwick.css(o.isVertical ? 'bottom' : 'right', '0px');
|
||||
}
|
||||
// set all other kwicks
|
||||
else {
|
||||
if(o.sticky) {
|
||||
kwick.css(LoT, preCalcLoTs[o.defaultKwick][i]);
|
||||
} else {
|
||||
kwick.css(LoT, (i * normWoH) + (i * o.spacing));
|
||||
}
|
||||
}
|
||||
// correct size in sticky mode
|
||||
if(o.sticky) {
|
||||
if(o.defaultKwick == i) {
|
||||
kwick.css(WoH, o.max + 'px');
|
||||
kwick.addClass('active');
|
||||
} else {
|
||||
kwick.css(WoH, o.min + 'px');
|
||||
}
|
||||
}
|
||||
kwick.css({
|
||||
margin: 0,
|
||||
position: 'absolute'
|
||||
});
|
||||
|
||||
kwick.bind(o.event, function() {
|
||||
// calculate previous width or heights and left or top values
|
||||
var prevWoHs = []; // prevWoHs = previous Widths or Heights
|
||||
var prevLoTs = []; // prevLoTs = previous Left or Tops
|
||||
kwicks.stop().removeClass('active');
|
||||
for(j = 0; j < kwicks.size(); j++) {
|
||||
prevWoHs[j] = kwicks.eq(j).css(WoH).replace(/px/, '');
|
||||
prevLoTs[j] = kwicks.eq(j).css(LoT).replace(/px/, '');
|
||||
}
|
||||
var aniObj = {};
|
||||
aniObj[WoH] = o.max;
|
||||
var maxDif = o.max - prevWoHs[i];
|
||||
var prevWoHsMaxDifRatio = prevWoHs[i]/maxDif;
|
||||
kwick.addClass('active').animate(aniObj, {
|
||||
step: function(now) {
|
||||
// calculate animation completeness as percentage
|
||||
var percentage = maxDif != 0 ? now/maxDif - prevWoHsMaxDifRatio : 1;
|
||||
// adjsut other elements based on percentage
|
||||
kwicks.each(function(j) {
|
||||
if(j != i) {
|
||||
kwicks.eq(j).css(WoH, prevWoHs[j] - ((prevWoHs[j] - o.min) * percentage) + 'px');
|
||||
}
|
||||
if(j > 0 && j < kwicks.size() - 1) { // if not the first or last kwick
|
||||
kwicks.eq(j).css(LoT, prevLoTs[j] - ((prevLoTs[j] - preCalcLoTs[i][j]) * percentage) + 'px');
|
||||
}
|
||||
});
|
||||
},
|
||||
duration: o.duration,
|
||||
easing: o.easing
|
||||
});
|
||||
});
|
||||
});
|
||||
if(!o.sticky) {
|
||||
container.bind("mouseleave", function() {
|
||||
var prevWoHs = [];
|
||||
var prevLoTs = [];
|
||||
kwicks.removeClass('active').stop();
|
||||
for(i = 0; i < kwicks.size(); i++) {
|
||||
prevWoHs[i] = kwicks.eq(i).css(WoH).replace(/px/, '');
|
||||
prevLoTs[i] = kwicks.eq(i).css(LoT).replace(/px/, '');
|
||||
}
|
||||
var aniObj = {};
|
||||
aniObj[WoH] = normWoH;
|
||||
var normDif = normWoH - prevWoHs[0];
|
||||
kwicks.eq(0).animate(aniObj, {
|
||||
step: function(now) {
|
||||
var percentage = normDif != 0 ? (now - prevWoHs[0])/normDif : 1;
|
||||
for(i = 1; i < kwicks.size(); i++) {
|
||||
kwicks.eq(i).css(WoH, prevWoHs[i] - ((prevWoHs[i] - normWoH) * percentage) + 'px');
|
||||
if(i < kwicks.size() - 1) {
|
||||
kwicks.eq(i).css(LoT, prevLoTs[i] - ((prevLoTs[i] - ((i * normWoH) + (i * o.spacing))) * percentage) + 'px');
|
||||
}
|
||||
}
|
||||
},
|
||||
duration: o.duration,
|
||||
easing: o.easing
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
})(jQuery);
|
||||
@ -1,11 +0,0 @@
|
||||
/*
|
||||
Kwicks for jQuery (version 1.5.1)
|
||||
Copyright (c) 2008 Jeremy Martin
|
||||
http://www.jeremymartin.name/projects.php?project=kwicks
|
||||
|
||||
Licensed under the MIT license:
|
||||
http://www.opensource.org/licenses/mit-license.php
|
||||
|
||||
Any and all use of this script must be accompanied by this copyright/license notice in its present form.
|
||||
*/
|
||||
(function($){$.fn.kwicks=function(n){var p={isVertical:false,sticky:false,defaultKwick:0,event:'mouseover',spacing:0,duration:500};var o=$.extend(p,n);var q=(o.isVertical?'height':'width');var r=(o.isVertical?'top':'left');return this.each(function(){container=$(this);var k=container.children('li');var l=k.eq(0).css(q).replace(/px/,'');if(!o.max){o.max=(l*k.size())-(o.min*(k.size()-1))}else{o.min=((l*k.size())-o.max)/(k.size()-1)}if(o.isVertical){container.css({width:k.eq(0).css('width'),height:(l*k.size())+(o.spacing*(k.size()-1))+'px'})}else{container.css({width:(l*k.size())+(o.spacing*(k.size()-1))+'px',height:k.eq(0).css('height')})}var m=[];for(i=0;i<k.size();i++){m[i]=[];for(j=1;j<k.size()-1;j++){if(i==j){m[i][j]=o.isVertical?j*o.min+(j*o.spacing):j*o.min+(j*o.spacing)}else{m[i][j]=(j<=i?(j*o.min):(j-1)*o.min+o.max)+(j*o.spacing)}}}k.each(function(i){var h=$(this);if(i===0){h.css(r,'0px')}else if(i==k.size()-1){h.css(o.isVertical?'bottom':'right','0px')}else{if(o.sticky){h.css(r,m[o.defaultKwick][i])}else{h.css(r,(i*l)+(i*o.spacing))}}if(o.sticky){if(o.defaultKwick==i){h.css(q,o.max+'px');h.addClass('active')}else{h.css(q,o.min+'px')}}h.css({margin:0,position:'absolute'});h.bind(o.event,function(){var c=[];var d=[];k.stop().removeClass('active');for(j=0;j<k.size();j++){c[j]=k.eq(j).css(q).replace(/px/,'');d[j]=k.eq(j).css(r).replace(/px/,'')}var e={};e[q]=o.max;var f=o.max-c[i];var g=c[i]/f;h.addClass('active').animate(e,{step:function(a){var b=f!=0?a/f-g:1;k.each(function(j){if(j!=i){k.eq(j).css(q,c[j]-((c[j]-o.min)*b)+'px')}if(j>0&&j<k.size()-1){k.eq(j).css(r,d[j]-((d[j]-m[i][j])*b)+'px')}})},duration:o.duration,easing:o.easing})})});if(!o.sticky){container.bind("mouseleave",function(){var c=[];var d=[];k.removeClass('active').stop();for(i=0;i<k.size();i++){c[i]=k.eq(i).css(q).replace(/px/,'');d[i]=k.eq(i).css(r).replace(/px/,'')}var e={};e[q]=l;var f=l-c[0];k.eq(0).animate(e,{step:function(a){var b=f!=0?(a-c[0])/f:1;for(i=1;i<k.size();i++){k.eq(i).css(q,c[i]-((c[i]-l)*b)+'px');if(i<k.size()-1){k.eq(i).css(r,d[i]-((d[i]-((i*l)+(i*o.spacing)))*b)+'px')}}},duration:o.duration,easing:o.easing})})}})}})(jQuery);
|
||||
@ -1,196 +0,0 @@
|
||||
var $json = 0;
|
||||
var $playing = false;
|
||||
var $musicon = true;
|
||||
var light = new Array("black", "#CAD3FF", "#FFFFA6");
|
||||
var dark = new Array("white", "black", "black");
|
||||
var currentstyle = light;
|
||||
|
||||
function Client() {
|
||||
}
|
||||
|
||||
Client.prototype.mobileClients = [
|
||||
"midp",
|
||||
"240x320",
|
||||
"blackberry",
|
||||
"netfront",
|
||||
"nokia",
|
||||
"panasonic",
|
||||
"portalmmm",
|
||||
"sharp",
|
||||
"sie-",
|
||||
"sonyericsson",
|
||||
"symbian",
|
||||
"windows ce",
|
||||
"benq",
|
||||
"mda",
|
||||
"mot-",
|
||||
"opera mini",
|
||||
"philips",
|
||||
"pocket pc",
|
||||
"sagem",
|
||||
"samsung",
|
||||
"sda",
|
||||
"sgh-",
|
||||
"vodafone",
|
||||
"xda",
|
||||
"iphone",
|
||||
"android"
|
||||
];
|
||||
|
||||
Client.prototype.isMobileClient = function(userAgent)
|
||||
{
|
||||
userAgent=userAgent.toLowerCase();
|
||||
for (var i in this.mobileClients) {
|
||||
if (userAgent.indexOf(this.mobileClients[i]) != -1) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
var $client = new Client();
|
||||
|
||||
function StringBuilder(value) {
|
||||
this.strings = new Array("");
|
||||
this.append(value);
|
||||
};
|
||||
|
||||
StringBuilder.prototype.append = function(value) {
|
||||
if (value) {
|
||||
this.strings.push(value);
|
||||
}
|
||||
};
|
||||
|
||||
StringBuilder.prototype.clear = function() {
|
||||
this.strings.length = 1;
|
||||
};
|
||||
|
||||
StringBuilder.prototype.toString = function() {
|
||||
return this.strings.join("");
|
||||
};
|
||||
|
||||
function buildLinks(columns, JSON) {
|
||||
$("#fsdienst").children().remove();
|
||||
|
||||
var counter = 0;
|
||||
for ( var props in JSON) {
|
||||
counter++;
|
||||
}
|
||||
var rows = Math.round(counter / columns);
|
||||
if ((counter % columns) != 0) {
|
||||
rows++;
|
||||
}
|
||||
|
||||
var ul = new Array(rows);
|
||||
|
||||
for ( var i = 0; i < rows; i++) {
|
||||
var id = "kwicks" + i;
|
||||
ul[i] = id;
|
||||
var kwicks = "<ul class='kwicks' id='" + id + "'></ul>";
|
||||
$("#fsdienst").append(kwicks);
|
||||
}
|
||||
|
||||
var row = 0;
|
||||
var i = 1;
|
||||
var number = 1;
|
||||
|
||||
$.each(JSON, function() {
|
||||
|
||||
var sb = new StringBuilder();
|
||||
var id = "kwick" + number;
|
||||
var li = new StringBuilder();
|
||||
li.append("<li id='");
|
||||
li.append(id);
|
||||
if($client.isMobileClient(navigator.userAgent)){
|
||||
li.append("' ondblclick");
|
||||
}else{
|
||||
li.append("' onclick");
|
||||
}
|
||||
li.append("=\"redirect('");
|
||||
li.append(this.href);
|
||||
li.append("');\" onmouseover=\"noise();\"></li>");
|
||||
$("#" + ul[row]).append(li.toString());
|
||||
sb.append("<div class='kwicks_inner'><div class='bigLetter'>");
|
||||
sb.append(this.title.charAt(0));
|
||||
sb.append("</div><div class='smallLetters'>");
|
||||
sb.append(this.title.slice(1, this.title.length));
|
||||
sb.append("</div></div>");
|
||||
|
||||
$("#" + id).append(sb.toString());
|
||||
sb.clear();
|
||||
changeStyle(id);
|
||||
number++;
|
||||
if (i == columns) {
|
||||
i = 1;
|
||||
row++;
|
||||
} else {
|
||||
i++;
|
||||
}
|
||||
});
|
||||
|
||||
$().ready(function() {
|
||||
$('.kwicks').kwicks({
|
||||
max : 205,
|
||||
spacing : 5,
|
||||
sticky : true
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
var audio = new Audio("GN.ogg");
|
||||
|
||||
function noise() {
|
||||
if ($musicon) {
|
||||
if (audio.currentTime == 0 || audio.currentTime == audio.duration) {
|
||||
audio.play();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
function changeStyle(id) {
|
||||
var sheet = document.styleSheets[0];
|
||||
var normal = "#" + id + "{ background-color: " + currentstyle[1] + ";}"
|
||||
sheet.insertRule(normal, 0);
|
||||
var active = "#" + id + ".active { background-color: " + currentstyle[2]
|
||||
+ ";}";
|
||||
sheet.insertRule(active, 0);
|
||||
};
|
||||
|
||||
function change() {
|
||||
if ($json == 0) {
|
||||
buildLinks(4, unilinks);
|
||||
document.getElementById("header").innerHTML = "Links zur Universität";
|
||||
$json = 1;
|
||||
} else if ($json == 1){
|
||||
buildLinks(3, adminstrationslinks);
|
||||
document.getElementById("header").innerHTML = "Administrative Links";
|
||||
$json = 2;
|
||||
} else{
|
||||
buildLinks(4, fachschaftslinks);
|
||||
document.getElementById("header").innerHTML = "Für den Fachschaftsdienst";
|
||||
$json = 0;
|
||||
}
|
||||
};
|
||||
|
||||
function redirect(toUrl) {
|
||||
window.open(toUrl);
|
||||
|
||||
};
|
||||
|
||||
function music() {
|
||||
$musicon = !$musicon;
|
||||
if ($musicon) {
|
||||
document.getElementById('music').setAttribute("style",
|
||||
"background-image: url(soundon.png)");
|
||||
} else {
|
||||
document.getElementById('music').setAttribute("style",
|
||||
"background-image: url(soundoff.png)");
|
||||
}
|
||||
};
|
||||
|
||||
function view() {
|
||||
currentstyle = dark;
|
||||
buildLinks(4, fachschaftslinks);
|
||||
|
||||
};
|
||||
|
||||
@ -1,129 +0,0 @@
|
||||
var fachschaftslinks = {
|
||||
forum: {
|
||||
title: "Forum der Fachschaften WIAI und SOWI",
|
||||
href: "../board"
|
||||
},
|
||||
email: {
|
||||
title: "Email Account der Fachschaft",
|
||||
href: "https://mailex.uni-bamberg.de"
|
||||
},
|
||||
klausur: {
|
||||
title: "Klausurenmodul 3.0 der Fachschaft",
|
||||
href: "../klausuren"
|
||||
},
|
||||
memberwiai: {
|
||||
title: "Mitglieder der Fachschaft SoWi",
|
||||
href: "../board/extras/sowi.php"
|
||||
},
|
||||
membersowi: {
|
||||
title: "Mitglieder der Fachschaft WiAI",
|
||||
href: "../board/extras/wiai.php"
|
||||
},
|
||||
limesurvey: {
|
||||
title: "Limesurvey",
|
||||
href: "../limesurvey"
|
||||
},
|
||||
wiaide: {
|
||||
title: "wiai.de",
|
||||
href: "../"
|
||||
},
|
||||
wiai: {
|
||||
title: "WiAI Homepage",
|
||||
href: "http://www.uni-bamberg.de/wiai/fachschaft/"
|
||||
},
|
||||
sowi:{
|
||||
title: "SoWi Homepage",
|
||||
href: "http://www.uni-bamberg.de/sowi/fs"
|
||||
},
|
||||
redmine: {
|
||||
title: "Redmine",
|
||||
href: "http://wiai.de/redmine"
|
||||
},
|
||||
dummy1: {
|
||||
title: "P Pad List",
|
||||
href: "http://wiai.de/intern/list-pads/"
|
||||
},
|
||||
dummy2: {
|
||||
title: "OTRS",
|
||||
href: "http://wiai.de/otrs"
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
var adminstrationslinks = {
|
||||
typo3: {
|
||||
title: "Typo3 der Uni-Hompage",
|
||||
href: "http://www.uni-bamberg.de/typo3"
|
||||
},
|
||||
phpmyadmin: {
|
||||
title: "PHPMyAdmin des Servers",
|
||||
href: "../phpmyadmin"
|
||||
},
|
||||
limesurveyadmin: {
|
||||
title: "Limesurvey Login zur Administration",
|
||||
href: "../limesurvey/admin/"
|
||||
},
|
||||
wiaikeys: {
|
||||
title: "Wiai-Schlüsselliste",
|
||||
href: "https://wiai.de/board/extras/wiaikeys.php"
|
||||
},
|
||||
sowikeys: {
|
||||
title: "Sowi-Schlüsselliste",
|
||||
href: "https://wiai.de/board/extras/sowikeys.php"
|
||||
},
|
||||
dummy3: {
|
||||
title: "",
|
||||
href: ""
|
||||
}
|
||||
};
|
||||
|
||||
var unilinks = {
|
||||
uni: {
|
||||
title: "Otto-Friedrich-Universität",
|
||||
href: "http://www.uni-bamberg.de/"
|
||||
},
|
||||
feki: {
|
||||
title: "Feki.de",
|
||||
href: "http://www.feki.de"
|
||||
},
|
||||
od:{
|
||||
title: "Online Dienste",
|
||||
href: "http://www.uni-bamberg.de/leistungen/studium/online_dienste"
|
||||
},
|
||||
flexnow: {
|
||||
title: "FlexNow2 Prüfungssystem der Universität",
|
||||
href: "https://zul.zuv.uni-bamberg.de/FN2AUTH/FN2AuthServlet?op=Login"
|
||||
},
|
||||
vc: {
|
||||
title: "Virtueller Campus",
|
||||
href: "http://vc.uni-bamberg.de/moodle"
|
||||
},
|
||||
aaa: {
|
||||
title: "Akademisches Auslandsamt",
|
||||
href: "http://www.uni-bamberg.de/auslandsamt"
|
||||
},
|
||||
univis: {
|
||||
title: "Univis - Vorlesungs- verzeichnis",
|
||||
href: "http://univis.uni-bamberg.de/"
|
||||
},
|
||||
unibib: {
|
||||
title: "Bibliothek der Universität",
|
||||
href: "http://www.uni-bamberg.de/service_einrichtungen/unibib"
|
||||
},
|
||||
unimail: {
|
||||
title: "Mailserver für Studierende",
|
||||
href: "http://mail.stud.uni-bamberg.de/"
|
||||
},
|
||||
sv: {
|
||||
title: "Studierenden- vertretung (VC)",
|
||||
href: "http://www.studierendenvertretung-bamberg.de/"
|
||||
},
|
||||
bus: {
|
||||
title: "Busfahrplan",
|
||||
href: "http://www.stadtwerke-bamberg.de/cms/OePNV/Fahrplanauskunft/Fahrplanheft/Taschenfahrplan_2011.html"
|
||||
},
|
||||
mensa: {
|
||||
title: "Mensaplan",
|
||||
href: "http://www.studentenwerk-wuerzburg.de/admin_open/upload/index.php?show=prev&loc=studentenhaus"}
|
||||
|
||||
}
|
||||
@ -1,20 +0,0 @@
|
||||
<h1>Read ALL the Pads</h1>
|
||||
<h2>of the FS-Wiai Pad</h2>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
$con = mysqli_connect("localhost", "etherpad", "MyEtherpad17!", "etherpad") or die("FAIL");
|
||||
|
||||
$query = 'select distinct substring(store.key,5,locate(":",store.key,5)-5) from store where store.key like "pad:%"';
|
||||
|
||||
$result = $con->query($query);
|
||||
|
||||
|
||||
while($row = mysqli_fetch_array($result)){
|
||||
|
||||
echo "<a target='_blank' href='http://pad.wiai.de/p/".$row[0]."'>".$row[0]."</a><br/>";
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -1,2 +0,0 @@
|
||||
User-agent: *
|
||||
Disallow: /
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.6 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 KiB |
Loading…
x
Reference in New Issue
Block a user