extras update

This commit is contained in:
otrs 2016-12-06 18:13:25 +01:00
parent 0d1ba93227
commit aa46fd8a2c
18 changed files with 19 additions and 158 deletions

View File

@ -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&uuml;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&uuml;sselbesitzer";
}
else {echo "";
}
echo "</td>";
echo "</tr>";
}
mysql_close($con);
?>
</table>
</body>
</html>

4
extras/include.php Normal file → Executable file
View File

@ -1,7 +1,5 @@
<?php <?php
header('Content-Type: text/html; charset=iso-8859-1'); $mysqli = new mysqli("dbboardold3","board","board","board");
$mysqli = new mysqli("localhost","extras","extrauser","forum");
if ($mysqli->connect_errno){ if ($mysqli->connect_errno){
echo "Error: Failed to make a MySQL connection: \n"; echo "Error: Failed to make a MySQL connection: \n";
echo "Errno: " . $mysqli->connect_errno . "\n"; echo "Errno: " . $mysqli->connect_errno . "\n";

0
extras/keys.css Normal file → Executable file
View File

2
extras/list.php Normal file → Executable file
View File

@ -46,7 +46,7 @@ while($data = $ergebnis->fetch_assoc()){
echo "</tr>"; echo "</tr>";
} }
$mysqli->free(); #$mysqli->free();
$mysqli->close(); $mysqli->close();
?> ?>

View File

@ -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);
?>

View File

@ -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&uuml;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&uuml;sselbesitzer";
}
else {echo "";
}
echo "</td>";
echo "</tr>";
}
mysql_close($con);
?>
</table>
</body>
</html>

View File

@ -1,4 +0,0 @@
<?php
$fachschaft = "SOWI";
require_once 'list.php';
?>

View File

@ -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;
}

View File

@ -1,4 +0,0 @@
<?php
$fachschaft = "WIAI";
require_once 'list.php';
?>

0
extras/sowi.php Normal file → Executable file
View File

0
extras/sowikeys.php Normal file → Executable file
View File

0
extras/sowitasks.php Normal file → Executable file
View File

0
extras/style.css Normal file → Executable file
View File

0
extras/tasks.css Normal file → Executable file
View File

0
extras/tasks.php Normal file → Executable file
View File

0
extras/wiai.php Normal file → Executable file
View File

23
extras/wiaikeys.php Normal file → Executable file
View File

@ -7,20 +7,31 @@
</head> </head>
<body> <body>
<h1>Schl&uuml;sselliste der Fachschaft WIAI - Stand <?php <h1>Schl&uuml;sselliste der Fachschaft WIAI - Stand <?php
echo date(DATE_RFC822) #echo date(DATE_RFC822)
?></h1> ?></h1>
<table> <table>
<tr><th>Name</th><th>EXEK MU15</th><th>VMU1A</th><th>395</th></tr> <tr><th>Name</th><th>EXEK MU15</th><th>VMU1A</th><th>395</th></tr>
<?php <?php
include 'include.php'; include 'include.php';
$abfrage = "SELECT v.userOption47, v.userOption53 #$abfrage = "SELECT v.userOption47, v.userOption53
FROM wcf1_user AS u, wcf1_user_option_value AS v # 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%' # 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"; # ORDER BY v.userOption47";
$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 ='WIAI'
ORDER BY v.userOption47";
$ergebnis = $mysqli->query($abfrage); $ergebnis = $mysqli->query($abfrage);
while($data = $ergebnis->fetch_assoc()){ while($data = $ergebnis->fetch_assoc()){
if(!($data['userOption53'] == "1" || $data['userOption53'] == "Ja")) {
continue;
}
echo "<tr>"; echo "<tr>";
echo "<td>".$data['userOption47']."</td>"; echo "<td>".$data['userOption47']."</td>";
echo "<td> X </td>"; echo "<td> X </td>";
@ -29,7 +40,7 @@ while($data = $ergebnis->fetch_assoc()){
echo "</tr>"; echo "</tr>";
} }
$mysqli->free(); #$mysqli->free();
$mysqli->close(); $mysqli->close();
?> ?>

0
extras/wiaitasks.php Normal file → Executable file
View File