Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1386 → Rev 1387

/web/autoregistrationinfo.php
27,6 → 27,31
<title>Auto enregistrement</title>
<link rel="stylesheet" href="/css/style_intercept.css">
<style type=text/css"></style>
<!-- DataTables CSS -->
<link rel="stylesheet" type="text/css" href="../css/jquery.dataTables.css">
<!-- jQuery -->
<script type="text/javascript" charset="utf8" src="../js/jquery.js"></script>
<!-- DataTables -->
<script type="text/javascript" charset="utf8" src="../js/jquery.dataTables.js"></script>
<script type="text/javascript">
$(document).ready( function () {
$('#table_id').DataTable({
"language": {
"paginate": {
"sFirst": "Premier",
"sLast": "Dernier",
"sPrevious": "Précédent",
"sNext": "Suivant"
},
"lengthMenu": "Montrer _MENU_ résultat par page",
"zeroRecords": "Aucun résultat",
"info": "Affiche la page _PAGE_ sur _PAGES_",
"infoEmpty": "Aucun résultat",
"sSearch": "Recherche (5 dernier chiffre) :"
}
});
} );
</script>
</head>
<body>
<?
45,7 → 70,7
$l_num_expiration = "Expiration du bloquage";
$l_num_inconnu = "Le numero renseigné n'est dans la base de donnée";
$l_num_empty = "Le champ de recherche est vide.";
$l_num_invalid = "Le format n'est pas correct: +xxxYYYYYYYYY (xxx: code pays / YYYYYYYYY: numéro de téléphone)";
$l_num_invalid = "Le format n'est pas correct: xxxYYYYYYYYY (xxx: code pays / YYYYYYYYY: numéro de téléphone)";
$l_num_recherche = "Rechercher votre numéro:";
 
$l_recherche = "Rechercher";
53,8 → 78,8
$l_tuto_1 = "Bienvenue sur la page d'auto enregistrement.";
$l_tuto_2 = "Le portail auquel vous essayez de vous connectez offre la possibilité de s'inscrire automatiquement, en envoyant votre mot de passe par SMS au numéro (prix d'un SMS, non surtaxé):";
$l_tuto_3 = "Votre SMS ne doit contenir qu'un seul mot.";
$l_tuto_4 = "A la suite de votre inscription, vous pourrez retrouver votre numéro de téléphone dans le tableau ci-dessous, avec l'état et la date d'expiration de validité ou bloquage de ce dernier. Seul les 30 dernier numéros peuvent être affichés. Un champ de recherche est néanmoins disponible.";
$l_help_s = "Pour la France: +3312234455";
$l_tuto_4 = "A la suite de votre inscription, vous pourrez retrouver votre numéro de téléphone dans le tableau ci-dessous, avec l'état et la date d'expiration de validité ou bloquage de ce dernier.";
$l_tuto_5 = "Le champ de recherche ci-dessous vous permet de rechercher votre numéro suivant les 5 derniers chiffres.";
}
else {
 
69,7 → 94,7
<div>
<table id="boite-info">
<tr>
<td rowspan="6" width="20%"><img id="logo-organ" src="/images/organisme.png"></td>
<td rowspan="6" width="30%"><img id="logo-organ" src="/images/organisme.png"></td>
</tr>
<tr>
<td><?php echo "$l_tuto_1" ?></td>
95,6 → 120,9
<tr>
<td><?php echo "$l_tuto_4" ?></td>
</tr>
<tr>
<td colspan="2"><?php echo "$l_tuto_5" ?></td>
</tr>
</table>
</div>
<?php
118,21 → 146,23
 
$result = mysqli_query($con, "SELECT *
FROM `SMS_ban_perm`
ORDER BY date_add DESC
LIMIT 0,30;");
ORDER BY date_add DESC;");
?>
 
echo " <br />
<table id=\"boite-info\" border=\"1\">
<tr>
<td><b>$l_num_num</b></td>
<td><b>$l_num_raison</b></td>
<td><b>$l_num_expiration</b></td>
</tr>";
 
<table id="table_id" class="display">
<thead>
<tr>
<th><b><?php echo $l_num_num; ?></b></th>
<th><b><?php echo $l_num_raison; ?></b></th>
<th><b><?php echo $l_num_expiration; ?></b></th>
</tr>
</thead>
<tbody>
<?php
while($row = mysqli_fetch_array($result))
{
$start = substr($row['SenderNumber'], 0, 5);
$end = substr($row['SenderNumber'], -3);
$start = substr($row['SenderNumber'], 0, 3);
$end = substr($row['SenderNumber'], -5);
echo "
<tr>
<td>".$start."****".$end."</td>";
148,56 → 178,11
echo " <td>" . $row['Expiration']. "</td>
</tr>";
}
 
if (isset($_POST['number']))
{
$num = mysqli_real_escape_string($con, $_POST['number']);
echo "<tr>";
if($num!=""){
if(preg_match('#^\+#', $num) == 1)
{
echo "<td><b>$num</b></td>";
$result = mysqli_query($con, "SELECT * FROM SMS_ban_perm WHERE SenderNumber='$num';");
$row = mysqli_fetch_array($result);
if($row['Perm']=="")
{
echo "<td colspan=\"2\"><b><font color=\"red\">$l_num_inconnu</font></b></td>";
} else {
if($row['Perm']==0)
{
echo "<td><b><font color=\"red\">$l_num_exist</font></b></td>";
}
if($row['Perm']==1)
{
echo "<td><b><font color=\"red\">$l_num_flood</font></b></td>";
}
echo " <td><b>" . $row['Expiration']. "</b></td>";
}
} else {
echo "<td colspan=\"3\"><b><font color=\"red\">$l_num_invalid</font></b></td>";
}
} else {
echo "<td colspan=\"3\"><b><font color=\"red\">$l_num_empty</font></b></td>";
}
echo "</tr>";
}
 
 
echo "</table>";
mysqli_close($con);
?>
<table id="boite-info">
<tr>
<form action="autoregistrationinfo.php" method="POST">
<td><?php echo "$l_num_recherche"; ?> <input type="text" name="number" maxlength="10" size="10"> <input type="submit" value="<?php echo "$l_recherche" ?>"></td>
</form>
</tr>
<tr>
<td colspan=\"2\"><?php echo $l_help_s; ?></td>
</tr>
</tbody>
</table>
 
 
<?php mysqli_close($con); ?>
<br />
</div>
</center>