1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
<html>
<head>
<title> CHAT SMS : Welcome </title>
<link rel="stylesheet" href="css/design.css" />
<script type="text/javascript" src="js/jquery-1.8.2.js"></script>
<script type="text/javascript">
function encode(istr)
{
var j,nchar,ch,str ="";
for(j=0;j < istr.length; j++)
{
nchar = istr.charCodeAt(j);
str= nchar+ ";" ;
}
return str;
}
$(document).ready(function(){
// lorseque je sous le formulaire
$(".formlogin").on("submit",function(){
// je recupere les valeurs
var login=encode($('#login').val());
var password= encode($('#password').val());
if(login== '' ||password== '')
{
alert('les champs doivent etre remplis');
}else
{
$.ajax({
url:"authentification.php",
type:$(this).attr('method'),
data: $(this).serialize(),
success: function(data)
{
$(this).html(this)
}
});
}
return false;
});
});
</script>
</head>
<body>
<div id="corps">
<?php
$chemin='header/';
include($chemin.'logo.php');
// $chemin='../admin/header/';
// include($chemin.'banniere.php');
?>
<div id="contenu">
<form dir="rtl" class="formlogin" method="post" action="authentification.php">
<table >
<caption>FORMULAIRE D'IDENTIFICATION</caption>
<tr>
<td> <input type="hidden" name="id" ></td>
</tr>
<tr>
<td dir="rtl"><label> إسم*الدخول:</label></td>
<td><input type="text" id="login" name="login" ></td>
</tr>
<tr>
<td dir="rtl"><label> كلمة*السر:</label></td>
<td><input type="password" id="password" name="password" ></td>
</tr>
<tr>
<td> <button type="submit" id="send" name="send" value="se connecter">
se connecter
</button>
</td>
<td><a href="sendmail.php">mot de pass oublié?</a></td>
</tr>
</table>
</form> |
Partager