landingpage/extras/wiaikeys.php
2016-05-26 04:04:52 +02:00

38 lines
1.1 KiB
PHP

<html>
<head>
<title>Schl&uuml;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&uuml;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>