<?php if (isset($tpl['report'])) : ?>
<div id="report"<?php if (isset($tpl['report']['error']) || isset($tpl['report']['warning'])) : ?> class="error"<?php endif; ?>>
<?php if (isset($tpl['report']['error'])) : ?>
	<div class="report_msg report_error">
		<p><?php echo nl2br($tpl['report']['error']); ?></p>
	</div>
<?php endif; ?>
<?php if (isset($tpl['report']['warning'])) : ?>
	<div class="report_msg report_warning">
		<p><?php echo nl2br($tpl['report']['warning']); ?></p>
	</div>
<?php endif; ?>
<?php if (isset($tpl['report']['success'])) : ?>
	<div class="report_msg report_success">
		<p><?php echo nl2br($tpl['report']['success']); ?></p>
	</div>
<?php endif; ?>
<?php if (isset($tpl['report']['info'])) : ?>
	<div class="report_msg report_info">
		<p><?php echo nl2br($tpl['report']['info']); ?></p>
	</div>
<?php endif; ?>
</div>
<?php endif; ?>