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 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182
| <SCRIPT LANGUAGE="JavaScript">
/*
SCRIPT TROUVE SUR L'EDITEUR JAVASCRIPT
http://www.lesite.com
*/
function HeureCheckEJS()
{
krucial = new Date;
heure = krucial.getHours();
min = krucial.getMinutes();
sec = krucial.getSeconds();
jour = krucial.getDate();
mois = krucial.getMonth()+1;
annee = krucial.getFullYear();
if (sec < 10)
sec0 = "0";
else
sec0 = "";
if (min < 10)
min0 = "0";
else
min0 = "";
if (heure < 10)
heure0 = "0";
else
heure0 = "";
DinaHeure = heure0 + heure + ":" + min0 + min + ":" + sec0 + sec;
which = DinaHeure
if (document.getElementById){
document.getElementById("ejs_heure").innerHTML=which;
}
setTimeout(" HeureCheckEJS()", 1000)
}
window.onload = HeureCheckEJS;
</SCRIPT>
<?php
include("fonctions.php"); // pour appeler la fonction de la connexion
?>
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>main</title>
</head>
<body style="">
<div style="text-align: center;">
<div style="text-align: left;">
<table style="text-align: left; width: 100%;" border="0"
cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td><img src="Images/mbrd.PNG" alt=""></td>
<td style="text-align: center;"><big><span
style="color: rgb(255, 0, 0);" class="lien_blanc">Accueil</span><span
style="color: rgb(255, 0, 0);"> </span>| <span
style="color: rgb(51, 102, 255);" class="lien_blanc">Ajouter
aux favoris</span> | <span style="color: rgb(255, 0, 0);"
class="lien_blanc">Ma page de démarrage</span>
| <span class="lien_blanc"><span
style="color: rgb(51, 102, 255);">Conditions
générales de vente</span> </span>| <span
style="color: rgb(255, 0, 0);" class="lien_blanc">Contact</span></big></td>
</tr>
</tbody>
</table>
<br>
</div>
<br>
<table style="text-align: left; width: 100%;" border="0"
cellpadding="2" cellspacing="1">
<tbody>
<tr>
<td colspan="2" style="width: 120px;"><?php setlocale (LC_TIME, 'fr_FR.utf8','fra'); echo '<big
style="color: rgb(102, 102, 102);">'.(strftime("%A %d %B")).' '.(2000+date('y')).'</big>'; ?> <big
style="color: rgb(102, 102, 102);">
<div id="ejs_heure">Chargement...</div>
<noscript><a
href="http://www.lesite.com/countus/">compteur
live</a></noscript>
</big></td>
</tr>
<tr>
<td style="width: 120px;"><big
style="color: rgb(255, 0, 0);">Famille</big><br>
<div style="text-align: center;">
<ul style="text-align: left;">
<li><big style="color: rgb(255, 0, 0);"><small><span
style="color: rgb(51, 102, 255);">Faiseau</span></small></big></li>
<li><big style="color: rgb(255, 0, 0);"><small>Radiateur</small></big></li>
<li><big style="color: rgb(255, 0, 0);"><small><span
style="color: rgb(51, 102, 255);">Tout...</span></small></big></li>
</ul>
<big style="color: rgb(255, 0, 0);"><small><span
style="color: rgb(51, 102, 255);"></span></small></big></div>
<big style="color: rgb(255, 0, 0);"><small><span
style="color: rgb(51, 102, 255);"><br>
</span></small></big></td>
<td colspan="1" rowspan="3"
style="text-align: center; width: 826px;"><img alt=""
src="Images/rad.PNG" style="width: 594px; height: 465px;"></td>
</tr>
<tr>
<td style="width: 120px; text-align: left;"><big
style="color: rgb(255, 0, 0);">Demande de Prix</big></td>
</tr>
<tr>
<td style="vertical-align: top; width: 120px;">
<div style="text-align: left;">
<br>
</div>
<div style="text-align: left; font-weight: bold;">
<div style="text-align: left;"></div>
<form method="post" name="athentification">
<div style="text-align: center;"></div>
<div style="text-align: left;">
<div style="text-align: left; width: 146px;"><big><big><span
style="color: rgb(51, 102, 255);">Mon Compte</span></big></big><br>
</div>
<big><big><span style="color: rgb(51, 51, 255);"></span></big></big><big><big><span
style="color: rgb(51, 51, 255);"> </span></big></big></div>
<big><big><span style="color: rgb(51, 51, 255);"></span></big></big>
<table
style="text-align: left; background-color: transparent; width: 119px; height: 227px;"
border="0" cellpadding="1" cellspacing="1">
<tbody>
<tr>
<td style="width: 117px; text-align: center;"><input
name="login"><br>
</td>
</tr>
<tr>
<td
style="background-color: rgb(255, 255, 255); width: 117px; text-align: center;"><input
name="motpasse" value="chawki" type="password"></td>
</tr>
<tr>
<td style="width: 117px; text-align: center;"><input
name="valider" value="Connexion" type="submit"></td>
</tr>
<tr>
<td style="width: 117px;"><small><span
class="lien_gris" style="color: rgb(153, 153, 153);">Nouveau
membre?</span></small></td>
</tr>
</tbody>
</table>
<br>
<small><span class="lien_gris"
style="color: rgb(153, 153, 153);"> </span></small><br>
</form>
</div>
<br>
</td>
</tr>
</tbody>
</table>
<br>
<br>
</div>
<br>
<div style="text-align: center;"><br>
</div>
<?php if(isset($_POST['valider'])) {
$mp=$_POST['motpasse'] ;
$login=$_POST['login'] ;
connectMaBase();
$sql = 'SELECT * FROM utilisateur WHERE id="'.$login.'" and psw ="'.$mp.'"';
$req = mysql_query($sql) or die('Erreur SQL !<br />'.$sql.'<br />'.mysql_error());
$trouv=false;
while ($data = mysql_fetch_array($req)) {
$trouv=true;
}
header('Location:produit.html');
mysql_free_result ($req);
//On ferme sql
mysql_close ();
}
if($trouv){
}
?>
</body>
</html> |
Partager