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