<html xmlns:AI>
	<head>
	<title></title> 
	<link href='dm.css' rel='stylesheet' type='text/css'>
		<?php 
			include "functions.php";
		?>
		<link href='dm.css' rel='stylesheet' type='text/css'>
	</head>
<html>
<body leftmargin=0 topmargin=0>
	<div align="center">
	<table width="100%" border="0" cellspacing="3" cellpadding="0">
		<?php
			include "header.php";
		?>
		<tr>
			<td align="center" valign="top" class="content">
				<?php
					DBConnect();

 					$action = ( isset($_REQUEST['action'] ) ? $_REQUEST['action'] : "" );
 					$n = ( isset($_REQUEST['n'] ) ? $_REQUEST['n'] : "" );
 					$event = ( isset($_REQUEST['event'] ) ? $_REQUEST['event'] : "" );

			    $query = "SELECT ID,Email,Name,NameSZ,NameJoy,NameFetlife FROM teilnehmer order by Email";
	  		  $result = mysql_query($query);

					print "<table width=100% border='0' cellspacing='3' cellpadding='4'><tr>";
					print "<td bgcolor='#CCCCCC'>Name</td><td bgcolor='#CCCCCC'>Email</td><td bgcolor='#CCCCCC'>SZ</td><td bgcolor='#CCCCCC'>Joy</td>";
					print "<td colspan='1' bgcolor='#CCCCCC'>&nbsp;</td></tr>";
		  		while ($line = mysql_fetch_array($result)) {
				  	print "<tr valign='top'><td bgcolor='#EEEEEE'>".$line["Name"]."&nbsp;</td>";
						print "<td bgcolor='#EEEEEE'>".$line["Email"]."&nbsp;</td>";
						print "<td bgcolor='#EEEEEE'>".$line["NameSZ"]."&nbsp;</td>";
						print "<td bgcolor='#EEEEEE'>".$line["NameJoy"]."&nbsp;</td>";
						$ln = $line["ID"];
				  	print "<td bgcolor='#EEEEEE'><a href=\"admin.php?n=$event&guest=$ln&action=add\">Hinzufügen</a></td>";
					}
					
					print "</table>";

				
				?>
				
			</td>
		</tr>
	</table>
	</div>

</body>
</html>
