@@ -31,7 +31,7 @@ CREATE TABLE `examen` (
31
31
` tematica` int (11 ) DEFAULT NULL ,
32
32
` aprueba_con` int (11 ) DEFAULT NULL ,
33
33
PRIMARY KEY (` idexamen` )
34
- ) ENGINE= InnoDB DEFAULT CHARSET= utf8;
34
+ ) ENGINE= InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET= utf8;
35
35
/* !40101 SET character_set_client = @saved_cs_client */ ;
36
36
37
37
--
@@ -40,6 +40,7 @@ CREATE TABLE `examen` (
40
40
41
41
LOCK TABLES ` examen` WRITE;
42
42
/* !40000 ALTER TABLE `examen` DISABLE KEYS */ ;
43
+ INSERT INTO ` examen` VALUES (3 ,' Examen convivencia vial ciclistas' ,' responda las preguntas de selección múltiple ' ,' 2019-06-19' ,5 ,1 ,3 );
43
44
/* !40000 ALTER TABLE `examen` ENABLE KEYS */ ;
44
45
UNLOCK TABLES;
45
46
@@ -57,7 +58,7 @@ CREATE TABLE `imagen` (
57
58
PRIMARY KEY (` idImagen` ),
58
59
KEY ` fk_imagen_tematica_idx` (` tematica_idTematica` ),
59
60
CONSTRAINT ` fk_imagen_tematica` FOREIGN KEY (` tematica_idTematica` ) REFERENCES ` tematica` (` idTematica` ) ON DELETE NO ACTION ON UPDATE NO ACTION
60
- ) ENGINE= InnoDB AUTO_INCREMENT= 17 DEFAULT CHARSET= utf8;
61
+ ) ENGINE= InnoDB AUTO_INCREMENT= 22 DEFAULT CHARSET= utf8;
61
62
/* !40101 SET character_set_client = @saved_cs_client */ ;
62
63
63
64
--
@@ -66,7 +67,7 @@ CREATE TABLE `imagen` (
66
67
67
68
LOCK TABLES ` imagen` WRITE;
68
69
/* !40000 ALTER TABLE `imagen` DISABLE KEYS */ ;
69
- INSERT INTO ` imagen` VALUES (1 ,' ../../imagenes/1.PNG' ,1 ),(2 ,' ../../imagenes/2.PNG' ,1 ),(3 ,' ../../imagenes/3.PNG' ,1 ),(16 ,' ../../imagenes/4.PNG' ,1 );
70
+ INSERT INTO ` imagen` VALUES (1 ,' ../../imagenes/1.PNG' ,1 ),(2 ,' ../../imagenes/2.PNG' ,1 ),(3 ,' ../../imagenes/3.PNG' ,1 ),(16 ,' ../../imagenes/4.PNG' ,1 ),( 20 , ' ../../imagenes/img 35.jpg ' , 3 ),( 21 , ' ../../imagenes/5.PNG ' , 1 ) ;
70
71
/* !40000 ALTER TABLE `imagen` ENABLE KEYS */ ;
71
72
UNLOCK TABLES;
72
73
@@ -91,7 +92,7 @@ CREATE TABLE `menu` (
91
92
92
93
LOCK TABLES ` menu` WRITE;
93
94
/* !40000 ALTER TABLE `menu` DISABLE KEYS */ ;
94
- INSERT INTO ` menu` VALUES (1 ,' Gestionar Persona' ,' fa fa-male' ),(2 ,' Curso' ,' fa fa-car' ),(3 ,' Gestionar Tematica' ,' fa fa-book' ),(4 ,' Gestionar Evaluacion' ,' fa fa-mortar-board' ),(5 ,' Perfil' ,' fa fa-male' ),(6 ,' Resultados' ,' fa fa-bar-chart ' );
95
+ INSERT INTO ` menu` VALUES (1 ,' Gestionar Persona' ,' fa fa-male' ),(2 ,' Curso' ,' fa fa-car' ),(3 ,' Gestionar Tematica' ,' fa fa-book' ),(4 ,' Gestionar Evaluacion' ,' fa fa-mortar-board' ),(5 ,' Perfil' ,' fa fa-male' ),(6 ,' Resultados' ,' fa fa-check-square-o ' );
95
96
/* !40000 ALTER TABLE `menu` ENABLE KEYS */ ;
96
97
UNLOCK TABLES;
97
98
@@ -189,17 +190,18 @@ DROP TABLE IF EXISTS `preguntas`;
189
190
/* !40101 SET character_set_client = utf8 */ ;
190
191
CREATE TABLE `preguntas ` (
191
192
` idpreguntas` int (11 ) NOT NULL AUTO_INCREMENT,
192
- ` enunciado` varchar (300 ) DEFAULT NULL ,
193
- ` opc1` varchar (200 ) DEFAULT NULL ,
194
- ` opc2` varchar (200 ) DEFAULT NULL ,
195
- ` opc3` varchar (200 ) DEFAULT NULL ,
196
- ` opc4` varchar (200 ) DEFAULT NULL ,
197
- ` respuesta__correcta` int (11 ) DEFAULT NULL ,
193
+ ` cont` int (11 ) DEFAULT NULL ,
194
+ ` enunciado` varchar (1000 ) DEFAULT NULL ,
195
+ ` opc1` varchar (1000 ) DEFAULT NULL ,
196
+ ` opc2` varchar (1000 ) DEFAULT NULL ,
197
+ ` opc3` varchar (1000 ) DEFAULT NULL ,
198
+ ` opc4` varchar (1000 ) DEFAULT NULL ,
199
+ ` respuesta` int (11 ) DEFAULT NULL ,
198
200
` examen_idexamen` int (11 ) NOT NULL ,
199
201
PRIMARY KEY (` idpreguntas` ),
200
202
KEY ` fk_preguntas_examen_idx` (` examen_idexamen` ),
201
203
CONSTRAINT ` fk_preguntas_examen` FOREIGN KEY (` examen_idexamen` ) REFERENCES ` examen` (` idexamen` ) ON DELETE NO ACTION ON UPDATE NO ACTION
202
- ) ENGINE= InnoDB DEFAULT CHARSET= utf8;
204
+ ) ENGINE= InnoDB AUTO_INCREMENT = 6 DEFAULT CHARSET= utf8;
203
205
/* !40101 SET character_set_client = @saved_cs_client */ ;
204
206
205
207
--
@@ -208,9 +210,44 @@ CREATE TABLE `preguntas` (
208
210
209
211
LOCK TABLES ` preguntas` WRITE;
210
212
/* !40000 ALTER TABLE `preguntas` DISABLE KEYS */ ;
213
+ INSERT INTO ` preguntas` VALUES (1 ,1 ,' rerr' ,' ert' ,' e3tr' ,' ert' ,' ert' ,2 ,3 ),(2 ,2 ,' rterert' ,' etrer' ,' ertert' ,' ert' ,' ert' ,3 ,3 ),(3 ,3 ,' jhhjhhgjhghgjh' ,' uuyy' ,' bnbnb' ,' nbnbn' ,' jhjhhj' ,3 ,3 ),(4 ,4 ,' hgfhgfhgfgh' ,' dfgggfdg' ,' dfgdfg' ,' gfdg' ,' gfdgd' ,3 ,3 ),(5 ,5 ,' jkjkknjjkjjnn' ,' hjjjh' ,' hjj' ,' jkk' ,' lklk' ,3 ,3 );
211
214
/* !40000 ALTER TABLE `preguntas` ENABLE KEYS */ ;
212
215
UNLOCK TABLES;
213
216
217
+ --
218
+ -- Table structure for table `resultado`
219
+ --
220
+
221
+ DROP TABLE IF EXISTS ` resultado` ;
222
+ /* !40101 SET @saved_cs_client = @@character_set_client */ ;
223
+ /* !40101 SET character_set_client = utf8 */ ;
224
+ CREATE TABLE `resultado ` (
225
+ ` idresultado` int (11 ) NOT NULL AUTO_INCREMENT,
226
+ ` estado` varchar (50 ) DEFAULT NULL ,
227
+ ` pre_buenas` bigint (20 ) DEFAULT NULL ,
228
+ ` pre_malas` bigint (20 ) DEFAULT NULL ,
229
+ ` total_preguntas` bigint (20 ) DEFAULT NULL ,
230
+ ` fecha` varchar (45 ) DEFAULT NULL ,
231
+ ` examen_idexamen` int (11 ) NOT NULL ,
232
+ ` persona_idPersona` int (11 ) NOT NULL ,
233
+ PRIMARY KEY (` idresultado` ),
234
+ KEY ` fk_resultado_examen_idx` (` examen_idexamen` ),
235
+ KEY ` fk_resultado_persona1_idx` (` persona_idPersona` ),
236
+ CONSTRAINT ` fk_resultado_examen` FOREIGN KEY (` examen_idexamen` ) REFERENCES ` examen` (` idexamen` ) ON DELETE NO ACTION ON UPDATE NO ACTION,
237
+ CONSTRAINT ` fk_resultado_persona1` FOREIGN KEY (` persona_idPersona` ) REFERENCES ` persona` (` idPersona` ) ON DELETE NO ACTION ON UPDATE NO ACTION
238
+ ) ENGINE= InnoDB AUTO_INCREMENT= 3 DEFAULT CHARSET= utf8;
239
+ /* !40101 SET character_set_client = @saved_cs_client */ ;
240
+
241
+ --
242
+ -- Dumping data for table `resultado`
243
+ --
244
+
245
+ LOCK TABLES ` resultado` WRITE;
246
+ /* !40000 ALTER TABLE `resultado` DISABLE KEYS */ ;
247
+ INSERT INTO ` resultado` VALUES (1 ,' Pass' ,4 ,1 ,5 ,' 22/06/2019 11:04:46 p. m.' ,3 ,6 ),(2 ,' Pass' ,5 ,0 ,5 ,' 24/06/2019 9:09:19 p. m.' ,3 ,6 );
248
+ /* !40000 ALTER TABLE `resultado` ENABLE KEYS */ ;
249
+ UNLOCK TABLES;
250
+
214
251
--
215
252
-- Table structure for table `rol`
216
253
--
@@ -251,7 +288,7 @@ CREATE TABLE `rol_vista` (
251
288
KEY ` fk_idVista_idx` (` Vista_idvista` ),
252
289
CONSTRAINT ` fk_idRol` FOREIGN KEY (` rol_idrol` ) REFERENCES ` rol` (` idRol` ) ON DELETE NO ACTION ON UPDATE NO ACTION,
253
290
CONSTRAINT ` fk_idVista` FOREIGN KEY (` Vista_idvista` ) REFERENCES ` vista` (` idVista` ) ON DELETE NO ACTION ON UPDATE NO ACTION
254
- ) ENGINE= InnoDB AUTO_INCREMENT= 14 DEFAULT CHARSET= utf8;
291
+ ) ENGINE= InnoDB AUTO_INCREMENT= 15 DEFAULT CHARSET= utf8;
255
292
/* !40101 SET character_set_client = @saved_cs_client */ ;
256
293
257
294
--
@@ -260,7 +297,7 @@ CREATE TABLE `rol_vista` (
260
297
261
298
LOCK TABLES ` rol_vista` WRITE;
262
299
/* !40000 ALTER TABLE `rol_vista` DISABLE KEYS */ ;
263
- INSERT INTO ` rol_vista` VALUES (1 , 1 , 1 ),( 3 , 1 , 3 ),( 5 ,1 ,5 ),(6 ,1 ,6 ),(8 ,1 ,8 ),(9 , 1 , 9 ),( 11 ,2 ,11 ),(12 ,2 ,12 ),(13 ,2 ,13 );
300
+ INSERT INTO ` rol_vista` VALUES (5 ,1 ,5 ),(6 ,1 ,6 ),(8 ,1 ,8 ),(11 ,2 ,11 ),(12 ,2 ,12 ),(13 ,2 ,13 ),( 14 , 2 , 14 );
264
301
/* !40000 ALTER TABLE `rol_vista` ENABLE KEYS */ ;
265
302
UNLOCK TABLES;
266
303
@@ -289,7 +326,7 @@ CREATE TABLE `tematica` (
289
326
290
327
LOCK TABLES ` tematica` WRITE;
291
328
/* !40000 ALTER TABLE `tematica` DISABLE KEYS */ ;
292
- INSERT INTO ` tematica` VALUES (1 ,' Convivencia Vial Ciclistas ' ,' 1' ,' A' ,1 ),(2 ,' tipos de señales' ,' 2' ,' A ' ,2 ),(3 ,' Señalamientos viales ' ,' 3' ,' A' ,1 );
329
+ INSERT INTO ` tematica` VALUES (1 ,' Convivencia Vial Ciclistas ' ,' 1' ,' A' ,1 ),(2 ,' tipos de señales' ,' 2' ,' I ' ,2 ),(3 ,' Señalamientos viales ' ,' 3' ,' A' ,1 );
293
330
/* !40000 ALTER TABLE `tematica` ENABLE KEYS */ ;
294
331
UNLOCK TABLES;
295
332
@@ -359,7 +396,7 @@ CREATE TABLE `vista` (
359
396
PRIMARY KEY (` idVista` ),
360
397
KEY ` fk_menu_idx` (` menu_idmenu` ),
361
398
CONSTRAINT ` fk_menu` FOREIGN KEY (` menu_idmenu` ) REFERENCES ` menu` (` idMenu` ) ON DELETE NO ACTION ON UPDATE NO ACTION
362
- ) ENGINE= InnoDB AUTO_INCREMENT= 14 DEFAULT CHARSET= utf8;
399
+ ) ENGINE= InnoDB AUTO_INCREMENT= 15 DEFAULT CHARSET= utf8;
363
400
/* !40101 SET character_set_client = @saved_cs_client */ ;
364
401
365
402
--
@@ -368,7 +405,7 @@ CREATE TABLE `vista` (
368
405
369
406
LOCK TABLES ` vista` WRITE;
370
407
/* !40000 ALTER TABLE `vista` DISABLE KEYS */ ;
371
- INSERT INTO ` vista` VALUES (1 ,' Registrar Usuario' ,' ../Usuario/RegistrarU.aspx' ,' fa fa-pencil' ,1 ),(3 ,' Actualizar Usuario' ,' ../Usuario/ActualizarU.aspx' ,' fa fa-edit' ,1 ),(5 ,' Registrar Tematica' ,' ../Administrador/Agregar_tematica.aspx' ,' fa fa-pencil' ,3 ),(6 ,' Agregar Contenido' ,' ../Administrador/Ver_tematica_admin.aspx' ,' fa fa-edit' ,3 ),(8 ,' Realizar Evaluacion ' ,' ../Administrador/examen.aspx' ,' fa fa-line-chart' ,4 ),(9 , ' Modificar Evaluacion ' , ' ../Evaluacion/ActualizarE.aspx ' , ' fa fa-edit ' , 4 ),( 10 ,' Eliminar Evaluacion ' ,' e' ,' fa fa-times' ,4 ),(11 ,' Actualizar Datos' ,' a' ,' fa fa-pencil' ,5 ),(12 ,' Ver temáticas ' ,' ../Estudiante/Tematicas_estudiantes.aspx' ,' fa fa-gamepad' ,2 ),(13 ,' Ver Resultados' ,' b ' ,' fa fa-area-chart ' ,6 );
408
+ INSERT INTO ` vista` VALUES (1 ,' Registrar Usuario' ,' ../Usuario/RegistrarU.aspx' ,' fa fa-pencil' ,1 ),(3 ,' Actualizar Usuario' ,' ../Usuario/ActualizarU.aspx' ,' fa fa-edit' ,1 ),(5 ,' Registrar Tematica' ,' ../Administrador/Agregar_tematica.aspx' ,' fa fa-pencil' ,3 ),(6 ,' Agregar Contenido' ,' ../Administrador/Ver_tematica_admin.aspx' ,' fa fa-edit' ,3 ),(8 ,' Realizar Evaluacion ' ,' ../Administrador/examen.aspx' ,' fa fa-line-chart' ,4 ),(10 ,' Eliminar Evaluacion ' ,' e' ,' fa fa-times' ,4 ),(11 ,' Actualizar Datos' ,' a' ,' fa fa-pencil' ,5 ),(12 ,' Ver temáticas ' ,' ../Estudiante/Tematicas_estudiantes.aspx' ,' fa fa-gamepad' ,2 ),(13 ,' Ver Resultados' ,' ../Estudiante/mis_resulltados.aspx ' ,' fa fa-check-square-o ' ,6 ),( 14 , ' Evaluación ' , ' ../Estudiante/ver_examenes.aspx ' , ' fa fa-pencil ' , 2 );
372
409
/* !40000 ALTER TABLE `vista` ENABLE KEYS */ ;
373
410
UNLOCK TABLES;
374
411
@@ -514,4 +551,4 @@ DELIMITER ;
514
551
/* !40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */ ;
515
552
/* !40111 SET SQL_NOTES=@OLD_SQL_NOTES */ ;
516
553
517
- -- Dump completed on 2019-06-17 9:55:22
554
+ -- Dump completed on 2019-06-26 21:32:35
0 commit comments