<?php if (isset($tpl['report'])) : ?>
<div id="messages">
<?php if (isset($tpl['report']['error'])) : ?>
	<p class="message_error"><?php echo nl2br($tpl['report']['error']); ?></p>
<?php endif; ?>
<?php if (isset($tpl['report']['warning'])) : ?>
	<p class="message_error"><?php echo nl2br($tpl['report']['warning']); ?></p>
<?php endif; ?>
<?php if (isset($tpl['report']['success'])) : ?>
	<p class="message_success"><?php echo nl2br($tpl['report']['success']); ?></p>
<?php endif; ?>
<?php if (isset($tpl['report']['info'])) : ?>
	<p class="message_info"><?php echo nl2br($tpl['report']['info']); ?></p>
<?php endif; ?>
</div>
<?php endif; ?>