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
|
<?php
require_once('xajax_core/xajaxAIO.inc.php');
include('config.php');
function SelectVille($codePostal)
{
$options="";
$ObjResponse = new xajaxResponse();
$db = new PDO(DSN,DBUSER,DBPASSWD);
$req = $db->query('SELECT CP,VILLE FROM LOCALISATION WHERE CP LIKE \'' . $codePostal .'%\'');
while ($souscat = $req->fetch())
{
$options .= '<option value="'.$souscat['CP'].'">'.$souscat['VILLE'].'</option>';
}
$ObjResponse->assign('liste_ville','innerHTML',$options);
return $objResponse;
}
$xajax = new xajax();
$xajax->registerFunction("SelectVille");
$xajax->processRequest();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Document sans titre</title>
<?php $xajax->printJavascript('../'); ?>
</head>
<body>
<div id="Container">
<div id="Header">
<div id="HeaderLeft">
LOGO
</div>
<div id="HeaderRight"
<form action="Accueil.php" method="post">
<label>Déjà membres? </label>
<label>Pseudo</label>
<input type="text" id="pseudo" name="pseudo" />
<label>Mot de passe</label>
<input type="password" id="pass" name="pass" />
<input type="submit" name="Entrer" />
</form>
</div>
</div>
<div id="Center">
<form action="accueil.php" method="post">
<label>Inscription Rapide </label>
<br />
<label>Je suis :</label>
<input type="text" id="JeSuis" name="JeSuis" />
<br />
<label>Je cherche : </label>
<input type="text" id="JeCherche" name="JeCherche"/>
<br />
<label>De : </label>
<input type="text" id="De" name="De"/>
<label>à : </label>
<input type="text" id="A" name="A" />
<label>ans</label>
<br />
<label>Je suis né(e) le : </label>
<select name="Day">
<?php
for($i=0; $i <= 31;$i++)
{
echo "<option>". $i . "</option>";
}
?>
</select>
<select name="Month">
<?php
for($i=0; $i <= 12;$i++)
{
echo "<option>". $i . "</option>";
}
?>
</select>
<select name="Year">
<?php
for($i=1920; $i <=2010-17;$i++)
{
echo "<option>". $i . "</option>";
}
?>
</select>
<br />
<label> Mon code postal : </label>
<input type="text" id="Cp" onkeyup="xajax_SelectVille(this.value)" name="Cp "/>
<br />
<label> Ma ville : </label>
<select id="liste_ville" name="liste_ville">
</select>
<br />
<label>Nature de la recherche : </label>
<input type="text" id="NatRecherche" name="NatRecherche"/>
<br />
<label>Mon pseudo : </label>
<input type="text" id="MonPSeudo" name="MonPSeudo"/>
<br />
<label>Mon mot de passe : </label>
<input type="text" id="MonPass" name="MonPass"/>
<br />
<label>Mon adresse e-mail : </label>
<input type="text" id="MonMail" name="MonMail" />
<br />
<input type="checkbox" value="true" name="Certifie"/>
<Label>Je certifie être majeur(e) et Avoir lu et accepté les conditions d'acccès ainsi que la politique sur le respect de la vie privée et des services décrit.
</Label>
<br />
<input type="submit" value="Inscription rapide" name="Inscription"/>
</form>
</div>
<div id="Footer">
<a href="" >Premier liens</a>
<a href="" >Deuxième liens</a>
<a href="" >Troisième liens</a>
<a href="" >Quatrième liens</a>
</div>
</div>
</body>
</html> |
Partager