<html>
<head>
	<title><?php echo ucfirst($this->type) ?> Bilder - Seinheit</title>
	<link rel="stylesheet" type="text/css" href="<?php echo $this->base ?>/style/popup.css" />
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<script src="<?php echo $this->base ?>/script/admin.js"></script>
</head>
<body>

	<h1>Bild Hochladen</h1>
	<form method="post" enctype="multipart/form-data">
		<p>
			<input name="myfile" type="file" size="50" maxlength="100000">
			<input type="submit" value="Hochladen" />
		</p>
	</form>

	<hr>

	<h1>Bild Ausw&auml;hlen</h1>
	<table>
<?php foreach($this->files as $file): ?>
		<tr>
			<td width="50%">
				<a href="#" onclick="window.open('<?php echo "{$this->base}/img/{$this->type}/{$file}" ?>', 'Bild', 'width=800,height=600,status=yes,scrollbars=yes,resizable=yes'); return false;">
					<img src="<?php echo "{$this->base}/img/{$this->type}/{$file}" ?>" >
				</a>
			</td>
			<td>
				<a href="javascript: void(0);" onclick="adminPageInsertImage(<?php echo "'{$this->type}', '{$file}'" ?>); window.close();" >Einf&uuml;gen</a>
			</td>
			<td>
				<a href="?delete=<?php echo $file ?>" onclick="return confirm('Wirklich löschen?')">L&ouml;schen</a>
			</td>
		</tr>
<?php endforeach; ?>
	</table>

</body>
</html>