blob: da3b64245ff13de04ed00f70e9918c09413dfb16 (
plain)
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
|
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@ include file="templateCSS.jsp"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Resultados</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<%@page import="java.util.List" import="model.Tema" import="model.Profesor"%>
</head>
<body>
<div id="content">
<form id="form1" name="form1" method="post" action="">
<fieldset>
<legend> Seleccione un tema </legend>
<label> Tema: </label>
<select id="temas" name="Tema" onchange="cargarResultados(<%= request.getParameter("asignatura") %>)">
<option value='-1'> Seleccione un tema... </option>
<% List<Tema> temas = (List<Tema>)request.getAttribute("lista_temas"); %>
<% for(Tema tema : temas) {%>
<option value="<%= tema.getIdTema() %>"><%= tema.getNombre() %></option>
<% } %>
</select>
</fieldset>
<br>
<div id="tabla">
</div>
</form>
</div>
<script type="text/javascript">
function cargarResultados(asignatura, alumnoList){
//obtiene los objetos productCode, y obtiene el valor del objeto
var tema_id=$("#temas").val(); //ya se tiene el objeto select
//llama al servlet con el parametro seleccionado
$("#tabla").load("CargarResultadosServlet", {asignatura:asignatura, tema_id:tema_id});
//$("#conceptos").multiselect("refresh");
}
</script>
</body>
</html>
|