<fieldset><legend><?php echo $tpl['application']['name']; ?></legend></fieldset>
<ul class="system_info">
	<li class="info"><?php echo __('Version :'); ?> <span><?php echo $tpl['application']['version']; ?></span></li>
	<li class="info"><?php echo __('Historique :'); ?>
		<table>
<?php foreach ($tpl['application']['history'] as &$i) : ?>
			<tr><td><?php echo $i['version']; ?></td><td><?php echo $i['date']; ?></td></tr>
<?php endforeach; ?>
		</table>
	</li>
	<li class="<?php if ($tpl['application']['errors'] > 0) : ?>warning<?php else : ?>ok<?php endif; ?>"><?php echo __('Incidents :'); ?> <span><?php echo $tpl['application']['errors']; ?></span></li>
</ul>

<fieldset><legend><?php echo __('Serveur'); ?></legend></fieldset>
<ul class="system_info">
	<li class="info"><?php echo __('Type de serveur :'); ?> <span><?php echo $tpl['server']['type']; ?></span></li>
	<li class="info"><?php echo __('Système d\'exploitation :'); ?> <span><?php echo $tpl['server']['os']; ?></span></li>
	<li class="info"><?php echo __('Temps serveur :'); ?> <span><?php echo $tpl['server']['time']; ?></span></li>
</ul>

<fieldset><legend><?php echo __('Base de données'); ?></legend></fieldset>
<ul class="system_info">
	<li class="info"><?php echo __('Type :'); ?> <span><?php echo $tpl['database']['type']; ?></span></li>
	<li class="<?php if ($tpl['database']['version_ok']) : ?>ok<?php else : ?>warning<?php endif; ?>"><?php echo __('Version :'); ?> <span><?php echo $tpl['database']['version']; ?></span></li>
<?php foreach ($tpl['database']['details'] as &$i) : ?>
	<li class="info"><?php echo $i['text']; ?> : <span><?php echo $i['value']; ?></span></li>
<?php endforeach; ?>
</ul>

<fieldset><legend>PHP</legend></fieldset>
<ul class="system_info">
	<li class="ok"><?php echo __('Version :'); ?> <span><?php echo $tpl['php']['version']; ?></span></li>
	<li class="info"><?php echo __('Interface :'); ?> <span><?php echo $tpl['php']['interface']; ?></span></li>
</ul>

<fieldset><legend>GD</legend></fieldset>
<ul class="system_info">
<?php foreach ($tpl['gd_infos'] as $name => &$i) : ?>
	<li class="<?php echo $i['status']; ?>"><?php echo $name; ?> : <span><?php echo $i['value']; ?></span></li>
<?php endforeach; ?>
</ul>

<fieldset><legend><?php echo __('Directives PHP'); ?></legend></fieldset>
<ul class="system_info">
<?php foreach ($tpl['php_directives'] as $name => &$i) : ?>
	<li class="<?php echo $i['status']; ?>"><?php echo $name; ?> : <span><?php echo $i['value'] === '' ? '/' : $i['value']; ?></span></li>
<?php endforeach; ?>
</ul>

<fieldset><legend><?php echo __('Extensions PHP'); ?></legend></fieldset>
<ul class="system_info">
<?php foreach ($tpl['php_extensions'] as $name => &$active) : ?>
	<li class="<?php echo $active ? 'ok' : 'warning'; ?>"><?php echo $name; ?> : <span><?php echo $active ? __('chargée') : __('non chargée'); ?></span></li>
<?php endforeach; ?>
</ul>

<fieldset><legend><?php echo __('Fonctions PHP'); ?></legend></fieldset>
<ul class="system_info">
<?php foreach ($tpl['php_functions'] as $name => &$active) : ?>
	<li class="<?php echo $active ? 'ok' : 'warning'; ?>"><?php echo $name; ?> : <span><?php echo $active ? __('activée') : __('non activée'); ?></span></li>
<?php endforeach; ?>
</ul>