2016-05-26 04:04:52 +02:00

48 lines
1.6 KiB
PHP

<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>