<?php if($_SESSION['user'] == sha1($administrator_name)) { ?>
	<?php if(isset($message)) { ?>
		<p class="error"><?php echo $message; ?></p>
	<?php } ?>
	
    <table class="list">
    	<tr>
    		<th><?php echo txt('settings', 'Aktiviert'); ?></th>
    		<th><?php echo txt('settings', 'Beschreibung'); ?></th>
    		<th><?php echo txt('settings', 'Version'); ?></th>
    		<th><?php echo txt('settings', 'Art'); ?></th>
    		<th><?php echo txt('settings', 'Größe'); ?></th>
    		<!-- <th><?php echo txt('settings', 'Autor'); ?></th> -->
    		<!-- <th><?php echo txt('settings', 'Hilfe'); ?></th> -->
    		<th>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
    	</tr>
    	
    	<?php foreach($modules as $module) if(isset($_GET['show_system_packages']) || $module['protected'] == 0) { ?>
    		<tr class="data">
    			<td><input type="checkbox" name="active" onclick="toggleWMEPstatus('modules', '<?php echo $module['key']; ?>', this.checked)" <?php if($module['active'] == 1) echo 'checked="checked"'; ?> <?php if($module['protected'] == 1) echo 'disabled="disabled"'; ?>></td>
    			<td>
    				<strong><?php echo txt($module['key'], 'title: ' . $module['key']); ?></strong> &nbsp;
    				<?php if($module['writeable'] == 0) { ?><span class="wmep-not-writeable" title="<?php echo txt('settings', 'Das Verzeichnis dieses Pakets ist schreibgeschützt.'); ?>">&nbsp;</span><?php } ?>
    				<?php if($module['version conflict'] == 1) { ?><span class="version-conflict" title="<?php echo txt('settings', 'Dieses Paket wurde für eine neuere Version von Pagemap erstellt und sollte nicht verwendet werden.'); ?>">&nbsp;</span><?php } ?>
    				<?php $description = txt($module['key'], 'description: ' . $module['key']); ?>
    				<div class="small description"><?php if($description != 'description: ' . $module['key']) { ?><?php echo txt($module['key'], 'description: ' . $module['key']); ?><?php } ?></div>
    			</td>
    			<td><?php echo $module['version']; ?></td>
    			<td><?php echo translate_keyword('module type: ' . ($module['protected'] == 1 ? 'protected' : $module['for'])); ?></td>
    			<td class="nowrap"><?php echo format_filesize($module['size']); ?></td>
    			<!-- <td><?php echo $module['author']; ?></td> -->
    			<!-- <td><a href="<?php echo $module['support']; ?>"><?php echo txt('settings', $module['support type']); ?></a></td> -->
    			<td>
    				<?php if($module['writeable'] == 1 && $module['protected'] == 0) { ?><a class="delete" title="<?php echo txt('settings', 'Löschen'); ?>" href="index.php?backend=settings&amp;area=<?php echo $_GET['area']; ?>&amp;delete-wmep=<?php echo $module['key']; ?>" onclick="return window.confirm('<?php echo txt('settings', 'Wollen Sie das Paket wirklich löschen?'); ?>')">&nbsp;</a><?php } ?>
    			</td>
    		</tr>
    	<?php } ?>
	</table>
<?php } ?>