forked from server/landingpage
50 lines
1.6 KiB
PHP
Executable File
50 lines
1.6 KiB
PHP
Executable File
<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";
|
|
|
|
$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);
|
|
|
|
while($data = $ergebnis->fetch_assoc()){
|
|
if(!($data['userOption53'] == "1" || $data['userOption53'] == "Ja")) {
|
|
continue;
|
|
}
|
|
echo "<tr>";
|
|
echo "<td>".$data['userOption47']."</td>";
|
|
echo "<td> X </td>";
|
|
echo "<td> </td>";
|
|
echo "<td> </td>";
|
|
echo "</tr>";
|
|
}
|
|
|
|
#$mysqli->free();
|
|
$mysqli->close();
|
|
|
|
?>
|
|
</table>
|
|
</body>
|
|
</html>
|