seinheit.ch/application/view/AdminPage/image.phtml
2013-07-19 14:43:25 +02:00

39 lines
No EOL
1.2 KiB
PHTML

<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="javascript: void(0);" onclick="window.open('<?php echo "{$this->base}/img/{$this->type}/{$file}" ?>', 'Bild', 'width=500,height=400,status=yes,scrollbars=yes,resizable=yes');">
<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>
<br>
<a href="?delete=<?php echo $file ?>">L&ouml;schen</a>
</td>
</tr>
<?php endforeach; ?>
</table>
</body>
</html>