56 lines
2.5 KiB
PHP
Executable File
56 lines
2.5 KiB
PHP
Executable File
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
|
|
<thead>
|
|
<tr>
|
|
<th rowspan="2" style='text-align:center'> <?= _("Updated") ?> </th>
|
|
<th rowspan="2" style='text-align:center'> <?= _("IP") ?> </th>
|
|
<th rowspan="2" style="text-align:center"> <?= _("Tentatives") ?> </th>
|
|
<th rowspan="2" style='text-align:center'> <?= _("Réactivé") ?> </th>
|
|
<th rowspan="2" style='text-align:center'> <?= _("Système") ?> </th>
|
|
<th colspan="2" style='text-align:center'> <?= _("Historique") ?> </th>
|
|
<th rowspan="2" style='text-align:center'><?= _("Réactiver") ?> </th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th style='text-align:center'> <?= _("Bannissement") ?> </th>
|
|
<th style='text-align:center'> <?= _("Réactivation") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($logconnexions as $logconnexion):
|
|
$reActivated = $logconnexion['reActivated'];
|
|
$ipConnexion = $logconnexion['ipConnexion'];
|
|
$idLigne = $logconnexion['id'];
|
|
?>
|
|
<tr valign="top">
|
|
<td align='center'> <?= dateheureLang($this->nettoyer($logconnexion['updated'])) ?> </td>
|
|
<td class="text-center">
|
|
<button style='font-size:8pt;' type="button" onclick="javascript:trouve_coordonnees_geo_ip('<?= $ipConnexion; ?>');"> <?= $ipConnexion; ?> </button>
|
|
</td>
|
|
<td align='center'> <?= format_N($this->nettoyer($logconnexion['nbTentative'])) ?> </td>
|
|
<?php if($reActivated=='1'): ?>
|
|
<td align='center'> <input type="checkbox" checked disabled ></td>
|
|
<?php else: ?>
|
|
<td align='center'> <input id="<?= 'case_'.$idLigne; ?>" type="checkbox" disabled ></td>
|
|
<?php endif; ?>
|
|
<td align='center'> <?= dateheureLang($this->nettoyer($logconnexion['dateSysteme'])) ?> </td>
|
|
|
|
<td class="text-center">
|
|
<button style='font-size:8pt;' type="button" onclick="javascript:historique_bannissement_ip('<?= $ipConnexion; ?>');"> <?= _("Détail") ?> </button>
|
|
</td>
|
|
|
|
<td class="text-center">
|
|
<button style='font-size:8pt;' type="button" onclick="javascript:historique_reactivation_ip('<?= $ipConnexion; ?>');"> <?= _("Détail") ?> </button>
|
|
</td>
|
|
|
|
<?php if($reActivated != '1'): ?>
|
|
<td class="text-center">
|
|
<button style='font-size:8pt;' type="button" id="<?= 'bouton'.$idLigne; ?>" onclick="javascript:init_reactiver_ip('<?= $ipConnexion; ?>', '<?= $idLigne; ?>');"> <?= _("Réactiver") ?> </button>
|
|
</td>
|
|
<?php else: ?>
|
|
<td> </td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|