Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/EjercitarWeb/WebContent/Concepto.jsp
blob: 0a09af8cebbf65223f7f977331e8f0e01d29312c (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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<%@ 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>
	<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script src="js/jquery.validate.min.js"></script>
	<script src="js/validaciones.js"></script>
	

</head>
<body>
	<%@page import="java.util.List" import="model.Tema" import = "model.Profesor" import="model.Concepto"%> 
	<div id="content">
<form  id="form1" name="form1" method="post" action="">
		<br>
		<% Profesor profesor = (Profesor) request.getSession().getAttribute("profesor");%>
		
		<input name="profesor" type=hidden id="profesor" value=<%=profesor.getIdProfesor() %>>
		<fieldset> 
		
			<p>
				<label>Nombre:</label>
				 <input type="text" name="nombre" id= "nombre"/>
			</p>
			
			<p>
				<label>Descripción:</label>
			   <input type="text" name="descripcion" id="descripcion"></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() %>"><%= tema.getNombre() %></option>
					<% } %>
			  </select>
			</p>
		
			<fieldset>
				<legend> Probabilidades </legend>
				<p>
					<label>A priori:</label>
				   <input type="text" name="a_priori" id= "a_priori" value="0.5" />
				</p>
				<p>
					<label>Adivinanza:</label>
				   <input type="text" name="adivinanza" id="adivinanza" value="0.2"  />
				</p>
				<p>
					<label>Descuido:</label>
				   <input type="text" name="descuido" id="descuido" value="0.2"  />
				</p>
			</fieldset>
			<p class="nolabel">
			        <button type="submit" name="Submit"> <img src="css/img/guardar.png" align="middle"/> Guardar </button>

			</p>
		</fieldset>

	</form>
	</div>

	<script>
	
	$( "#a_priori" ).spinner({
	step: 0.01,
	numberFormat: "n",
	max:1,
	min:0
	});

	$( "#adivinanza" ).spinner({
		step: 0.1,
		numberFormat: "n",
		max:1,
		min:0
		});

	$( "#descuido" ).spinner({
		step: 0.1,
		numberFormat: "n",
		max:1,
		min:0
		});
	
	</script>

</body>

        
</html>