Código PHP:
[HTML]<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var checkflag = "false";
function check(field) {
if (checkflag == "false") {
for (i = 0; i < field.length; i++) {
field[i].checked = true;}
checkflag = "true";
return "Uncheck All"; }
else {
for (i = 0; i < field.length; i++) {
field[i].checked = false; }
checkflag = "false";
return "Check All"; }
}
// End -->
</script>
</head>
<form name="frm">
<td>
<p>Fecha vuelta</p>
<select name="fechad1">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
</select>
<select name="fechad2">
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select>
<select name="fechad3">
<option>2011</option>
</select>
</td>
<td>
<p>Hora de Vuelta</p>
<select name="Horav">
<option>Todo horario</option>
<option>8:00</option>
<option>12:00</option>
</select>
</form>
</td>
<input type="checkbox" name="chk" onclick="document.frm.fechad1.disabled = !this.checked " >
<input type="checkbox" name="chk" onclick="document.frm.fechad2.disabled = !this.checked ">
<input type="checkbox" name="chk" onclick="document.frm.fechad3.disabled = !this.checked ">
<input type="checkbox" name="chk" onclick="document.frm.Horav.disabled = !this.checked ">
</body>
</html>
[/HTML]