<div class="form form-profile aif" style='width:auto'>
	<h2 style="margin-top:0px;">
		Logos
	</h2>
	<table class="admintable" style="width:100%; overflow:hidden;">
		<tr><th width="150">Image</th>
		<th width="150">Title</th>
		<th width="300">Text</th>
		<th width="300">Filename</th>
		<th>Actions</th></tr>
		<?php
		foreach ($logos as $logo) {
			echo "<tr>
			<td style='padding:10px; text-align:center;'><img src='/{$logo['image']}' 
			onerror=\"this.src='/static/system/placeholder.jpg'\"
			alt='{$logo['title']}' /></td>
			<td style='padding:10px;'>{$logo['title']}</td>
			<td style='padding:10px;'>{$logo['content']}
				<br /><br />
				{$logo['author']}
			</td>
			<td style='padding:10px; overflow:hidden;'>{$logo['image']}</td>
			<td style='padding:10px;'><a href='?logo&edit={$logo['id']}'>edit</a> | 
			<a href='?logo&delete={$logo['id']}' class='confirm'>delete</a></td></tr>";
		}
		?>
	</table>
	
	<div style="margin:10px;">
		<a href='?logo&add' class='btn btn-blue'>Add New</a>
	</div>
</div>
                            