<?php if (!empty($tpl['update']['message_info'])) : ?>
<br>
<div class="report_classic">
	<div class="report_msg report_info">
		<p><?php echo $tpl['update']['message_info']; ?></p>
	</div>
</div>
<?php elseif (!empty($tpl['update']['message_error'])) : ?>
<br>
<div class="report_classic">
	<div class="report_msg report_error">
		<p><?php echo $tpl['update']['message_error']; ?></p>
	</div>
</div>
<?php elseif (!empty($tpl['update']['message_success'])) : ?>
<br>
<div class="report_classic">
	<div class="report_msg report_success">
		<p><?php echo $tpl['update']['message_success']; ?></p>
	</div>
</div>
<?php elseif (empty($_POST)) : ?>
<form action="<?php echo $tpl['current_url_pageless']; ?>" method="post" id="app_update">
<?php if (isset($_GET['section_2'])) : ?>
	<h3><?php printf(__('Nouvelle version de %s disponible !'), $tpl['app']['name']); ?></h3>
	<p class="field">
		<?php printf(__('Version actuelle : %s'), '<span>' . $tpl['app']['version'] . '</span>'); ?>
	</p>
	<p class="field">
		<?php printf(__('Nouvelle version : %s'), '<span>' . $tpl['update']['new_version'] . '</span>'); ?>
	</p>
	<input name="update" type="hidden" value="1">
	<input type="submit" value="<?php echo __('Installer la nouvelle version'); ?>">
<?php else : ?>
	<input name="check" type="hidden" value="1">
	<input type="submit" value="<?php printf(__('Rechercher une mise à jour de %s'), $tpl['app']['name']); ?>">
<?php endif; ?>
	<input name="anticsrf" type="hidden" value="<?php echo $tpl['anticsrf'](); ?>">
</form>
<?php endif; ?>