blob: 9a7c6ee88847ddf048ada6ac19a94c894cb7b271 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
<%@ 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">
<%@ include file="templateCSS.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Concepto</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<%@page import="java.util.List" import="model.Tema" import = "model.Profesor" import="model.Concepto"%>
<div id="content">
<form style="width: 1071px; height: 521px;" method="post" name="ejercicio_form">
<br>
<% Profesor profesor = (Profesor) request.getSession().getAttribute("profesor");%>
<% Concepto concepto = (Concepto) request.getAttribute("concepto");%>
<input name="profesor" type=hidden id="profesor" value=<%=profesor.getIdProfesor() %>>
<input name="concepto" type=hidden id="concepto" value=<%= concepto.getIdConcepto() %>>
<input name="asignatura" type=hidden id="asignatura" value=<%= request.getParameter("asignatura") %>>
<fieldset>
<p>
<label>Nombre:</label>
<input type="text" name="nombre" id= "nombre" value=<%= concepto.getNombre() %>>
</p>
<p>
<label>Descripción:</label>
<input type="text" name="descripcion" id="descripcion" value= <%= concepto.getDescripcion() %> ></input>
</p>
<p>
<label>Tema:</label>
<select id="temas" name="tema">
<% List<Tema> temas = (List<Tema>)request.getAttribute("lista_temas"); %>
<% for(Tema tema : temas) {%>
<option value="<%= tema.getIdTema() %>" <% if (concepto.getTema().equals(tema.getNombre())) {%> selected <% } %>>
<%= tema.getNombre() %></option>
<% } %>
</select>
</p>
<fieldset>
<legend> Probabilidades </legend>
<p>
<label>A priori:</label>
<input type="text" name="a_priori" id= "a_priori" value=<%= concepto.getApriori() %> >
</p>
<p>
<label>Adivinanza:</label>
<input type="text" name="adivinanza" id="adivinanza" value=<%= concepto.getAdivinanza() %>>
</p>
<p>
<label>Descuido:</label>
<input type="text" name="descuido" id="descuido" value=<%= concepto.getDescuido() %> >
</p>
<p>
<label>Peso:</label>
<input type="text" name="peso" id="peso" value=<%= concepto.getPeso() %>>
</p>
</fieldset>
<p class="nolabel">
<input type="submit" name="Aceptar" value="Guardar">
<input type="submit" name="Eliminar" value="Eliminar">
</p>
</fieldset>
</form>
</div>
</body>
</html>
|