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
|
<html>
<head>
<%
'la requête pour le SELECT des Datas
otsql = "select oto1.otmodel model1,oto2.otmodel model2 as sousrub from otobject oto1, otobject oto2"
otSql = otSql & " where oto1.oidobjecttype=113 and oto1.oidobjectfather=954200851 and oto1.otmodel NOT LIKE 'z-%'"
otSql = otSql & " and oto2.oidobjectfather = oto1.oidobject"
set oRec = oPam.ogbAdoData.Execute(otsql)
result = oRec.recordCount
%>
<script type="text/javascript">
function Choix(form){
i=form.liste1.selectedIndex;
if (i==0){
for(i=0;i<3;i++){
form.liste2.options[i].text="";
}
return;
}
switch(i){
case 1 : var txt = new Array ('Page1.1','Page1.2','Page1.3'); break;
case 2 : var txt = new Array ('Page2.1','Page2.2','Page2.3'); break;
case 3 : var txt = new Array ('Page3.1','Page3.2','Page3.3'); break;
}
form.liste2.options[0].text="-----Faites votre choix-----";
for (i=0;i<3;i++){
form.liste2.options[i+1].text=txt[i];
}
}
</script>
</head>
<body>
<form action="#" name="form">
<select name="liste1" onChange='Choix(this.form)'>
<option selected> --- Choisissez une rubrique --</option>
<option>Rubrique1</option>
<option>Rubrique2</option>
<option>Rubrique3</option>
</select>
<select name="liste2">
<option selected> -- Choisissez une rubrique -- </option>
<option></option>
<option></option>
<option></option>
</select>
</form>
</body>
</head> |
Partager