<?php global $modules, $page_info, $id, $form, $message, $action, $message_sent, $required; ?>

<?php if($message_sent == '') { ?>
	<?php if($message != '') { ?><p class="error"><?php echo $message; ?></p><?php } ?>
	
	<form accept-charset="utf-8" method="post" action="<?php echo $action; ?>">
		<?php echo $form; ?>
		
		<input type="hidden" name="required" value="<?php echo time(); ?>">
	</form>
<?php } else { ?>
	<div class="message">
		<?php echo $message_sent; ?>
		<p class="back"><a href="<?php echo $page_info->href; ?>"><?php echo txt('form', 'Zurück zum Formular'); ?></a></p>
	</div>
<?php } ?>