-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcolclass.php
More file actions
70 lines (46 loc) · 1.4 KB
/
colclass.php
File metadata and controls
70 lines (46 loc) · 1.4 KB
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
<div class="col-lg-12">
<table>
<tr><td></td>
<td> <select class="form-control" onchange="afficher(this.value)">
<option><br>Choisir un date exact</option>
<?php
$c=$_GET['semaine'];
$con=mysqli_connect("localhost","root","","emplois");
$res=mysqli_query($con,"select DISTINCT* from seance where semaine='$c'");
if(mysqli_num_rows($res)>0)
while ($r=mysqli_fetch_assoc($res))
{
echo '<br><option>'.$r['nom_dep'].'</option>' ;
}
?> </select> </td> </tr>
</table>
<div id="result"> </div>
</div>
<!-- </div>
</div>
</div> -->
<!--TABLE, PANEL, ACCORDION AND MODAL -->
<title>Mise à jour</title>
<script>
function afficher(str){
if (str == "Choisir un date exact") {
document.getElementById("result").innerHTML = "Choisir un date exact";
return;
} else {
if (window.XMLHttpRequest) {
// code for IE7+ ? Firefox , Chrome, Opéra, Safari
xmlhttp = new XMLHttpRequest();
} else {
// code for IE6 , IE5
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function(){
if ( this.readyState == 4 && this.status == 200 ) {
document.getElementById("result").innerHTML=this.responseText;
}
};
xmlhttp.open("GET","colhistorique.php?class="+str,true);
xmlhttp.send();
}
}
</script>