landingpage/extras/sowikeys.php
2016-05-31 12:40:56 +02:00

39 lines
1.1 KiB
PHP

<html>
<head>
<title>Schl&uuml;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&uuml;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 = $mysqli->query($abfrage);
while($data = $ergebnis->fetch_assoc()){
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>