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
|
<!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>AutoClasse</title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="css/Main.css" />
</head>
<body>
<div class="page-width">
<div class="menu_in">
<div>
<a href="index.php"><div id="logo-align"></div></a>
<div id="menu-align">
<ul id="menu">
<li><a href="#">Importer</a></li>
</ul>
</ul>
</div>
</div>
</div>
</div>
<div class="clear"></div>
<div class="page-width">
<br/>
</div>
<div class="clear"></div>
<div id="white-container">
<br/>
<div class="page-width">
<div class="contentbox">
<img class="paper" src="images/paper.png" alt="Content"/>
<div class="paperalign">
<html>
<head>
<script type='text/javascript'>
var sid = "'.session_id().'";
function getXhr()
{
var xhr = null;
if(window.XMLHttpRequest)
xhr = new XMLHttpRequest();
else if(window.ActiveXObject)
{
try
{
xhr = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
xhr = new ActiveXObject("Microsoft.XMLHTTP");
}
}
else
{
alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");
xhr = false;
}
return xhr;
}
/**
* Méthode qui sera appelée sur le click du bouton
*/
function go(n)
{
var xhr = getXhr();
xhr.open("POST","Vues/reqAjaxClasse.php",true);
xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
sel = document.getElementById('option1');
option1= sel.options[sel.selectedIndex].value;
xhr.send("option1="+option1+"&niveau="+n);
alert("option1="+option1+"&niveau="+n);
xhr.onreadystatechange = function()
{
if(xhr.readyState == 4 && xhr.status == 200)
{
leselect = xhr.responseText;
document.getElementById('option2').innerHTML = leselect;
}
}
}
</script>
</head>
<body>
<form action="index.php?vue=creation_classe_option_conf" method="post">
<fieldset class="interieur_cadre_inscription">
<label>Option1 : </label>
<select name='option1' id='option1' onchange='go(6)'>
<option value='-1'>AUCUNE</option>
<option>CINEMA </option><option>LVB </option> </select><br>
<label>Option2 : </label>
<div name='option2' id='option2' style='display:inline'>
<select name='option2'>
<option value='-1'>AUCUNE</option>
</select>
</div>
<center><input type="submit"></center>
</fieldset>
</form>
</body>
</html>
</div>
</div>
</div>
<div class="clear"></div>
<br/>
<div class="clear"></div>
</div>
</div>
<div class="footer-container">
<div class="page-width">
<div class="footdivleft">
<div class="text-left">Copyleft <span style="-webkit-transform: rotate(180deg); -moz-transform: rotate(180deg); -o-transform: rotate(180deg); -khtml-transform: rotate(180deg); -ms-transform: rotate(180deg); transform: rotate(180deg); display: inline-block;">
©</span> Armel PIQUET</div>
</div>
<div class="clear"></div>
</div>
</div>
</body>
</html> |
Partager