+
" alt="">
+
+
+
+
+
+
+
+
+
+
+
+
+ Archivos:
+ " class="mt-4" download="">Archivo +
+
+
+
+
+ query("SELECT * FROM delivers WHERE id_module=1 AND id_team=1");
+ if ($result2->num_rows > 0) {
+ while($row = $result2->fetch_assoc()) {?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app-final/actividadesLider_view.php b/app-final/actividadesLider_view.php
new file mode 100644
index 0000000..0ea754d
--- /dev/null
+++ b/app-final/actividadesLider_view.php
@@ -0,0 +1,116 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ Código Frida
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app-final/agregarEquipoLider_view.php b/app-final/agregarEquipoLider_view.php
new file mode 100644
index 0000000..5b19a4b
--- /dev/null
+++ b/app-final/agregarEquipoLider_view.php
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ Código Frida
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/app-final/archivos/fridas/Entregable 3ra Parcial- Miranda Gonz\303\241lez.docx" "b/app-final/archivos/fridas/Entregable 3ra Parcial- Miranda Gonz\303\241lez.docx"
new file mode 100644
index 0000000..343abcb
Binary files /dev/null and "b/app-final/archivos/fridas/Entregable 3ra Parcial- Miranda Gonz\303\241lez.docx" differ
diff --git "a/app-final/archivos/lider/M\303\263dulo I. Frida.pptx" "b/app-final/archivos/lider/M\303\263dulo I. Frida.pptx"
new file mode 100644
index 0000000..e05b19d
Binary files /dev/null and "b/app-final/archivos/lider/M\303\263dulo I. Frida.pptx" differ
diff --git a/app-final/avanceEquipoFrida_view.php b/app-final/avanceEquipoFrida_view.php
new file mode 100644
index 0000000..7ac92cc
--- /dev/null
+++ b/app-final/avanceEquipoFrida_view.php
@@ -0,0 +1,152 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ Código Frida
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app-final/avanceEquipoLider_view.php b/app-final/avanceEquipoLider_view.php
new file mode 100644
index 0000000..4f93cc8
--- /dev/null
+++ b/app-final/avanceEquipoLider_view.php
@@ -0,0 +1,152 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ Código Frida
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app-final/codigofrida.sql b/app-final/codigofrida.sql
new file mode 100644
index 0000000..6a4f29e
--- /dev/null
+++ b/app-final/codigofrida.sql
@@ -0,0 +1,219 @@
+-- phpMyAdmin SQL Dump
+-- version 4.8.0.1
+-- https://www.phpmyadmin.net/
+--
+-- Servidor: localhost
+-- Tiempo de generación: 04-12-2018 a las 16:07:27
+-- Versión del servidor: 8.0.13
+-- Versión de PHP: 7.2.4
+
+SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
+SET AUTOCOMMIT = 0;
+START TRANSACTION;
+SET time_zone = "+00:00";
+
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8mb4 */;
+
+--
+-- Base de datos: `codigofrida`
+--
+
+-- --------------------------------------------------------
+
+--
+-- Estructura de tabla para la tabla `delivers`
+--
+
+CREATE TABLE `delivers` (
+ `id` int(11) NOT NULL,
+ `id_module` int(11) NOT NULL,
+ `file_upload` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
+ `id_team` int(11) NOT NULL,
+ `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
+
+
+-- --------------------------------------------------------
+
+--
+-- Estructura de tabla para la tabla `feedbacks`
+--
+
+CREATE TABLE `feedbacks` (
+ `id` int(11) NOT NULL,
+ `id_autor` int(11) NOT NULL,
+ `date` date NOT NULL,
+ `comment` varchar(200) NOT NULL,
+ `id_deliver` int(11) NOT NULL,
+ `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
+
+-- --------------------------------------------------------
+
+--
+-- Estructura de tabla para la tabla `fridas`
+--
+
+CREATE TABLE `fridas` (
+ `id` int(11) NOT NULL,
+ `email` varchar(50) NOT NULL,
+ `password` varchar(20) NOT NULL,
+ `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
+ `name` varchar(50) NOT NULL,
+ `last_name` varchar(50) NOT NULL,
+ `birthdate` date NOT NULL,
+ `school` varchar(100) NOT NULL,
+ `phone` varchar(20) NOT NULL,
+ `avatar` varchar(500) NOT NULL,
+ `team_id` int(11) NOT NULL,
+ `token` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
+ `tokenExpiry` datetime DEFAULT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
+
+-- --------------------------------------------------------
+
+--
+-- Estructura de tabla para la tabla `fridas_modules`
+--
+
+CREATE TABLE `fridas_modules` (
+ `id` int(11) NOT NULL,
+ `name` varchar(30) NOT NULL,
+ `description` varchar(100) NOT NULL,
+ `video_link` varchar(500) NOT NULL,
+ `image` varchar(100) NOT NULL,
+ `file` varchar(100) NOT NULL,
+ `name_activity` varchar(20) NOT NULL,
+ `activity` varchar(300) NOT NULL,
+ `limit_date` date NOT NULL,
+ `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
+
+
+-- --------------------------------------------------------
+
+--
+-- Estructura de tabla para la tabla `teams`
+--
+
+CREATE TABLE `teams` (
+ `id` int(11) NOT NULL,
+ `name` varchar(50) NOT NULL,
+ `id_mentor` varchar(50) NOT NULL,
+ `id_mentor2` varchar(50) DEFAULT NULL,
+ `code` varchar(20) NOT NULL,
+ `level` int(11) NOT NULL,
+ `score` int(11) NOT NULL,
+ `image` varchar(500) NOT NULL,
+ `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
+
+-- --------------------------------------------------------
+
+--
+-- Estructura de tabla para la tabla `users`
+--
+
+CREATE TABLE `users` (
+ `id` int(11) NOT NULL,
+ `email` varchar(50) NOT NULL,
+ `password` varchar(20) NOT NULL,
+ `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `name` varchar(50) NOT NULL,
+ `last_name` varchar(50) NOT NULL,
+ `birthdate` date NOT NULL,
+ `company` varchar(100) NOT NULL,
+ `phone` varchar(20) NOT NULL,
+ `avatar` varchar(500) NOT NULL,
+ `expertise` varchar(41) NOT NULL,
+ `type` varchar(6) NOT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=COMPACT;
+
+--
+-- Índices para tablas volcadas
+--
+
+--
+-- Indices de la tabla `delivers`
+--
+ALTER TABLE `delivers`
+ ADD PRIMARY KEY (`id`);
+
+--
+-- Indices de la tabla `feedbacks`
+--
+ALTER TABLE `feedbacks`
+ ADD PRIMARY KEY (`id`);
+
+--
+-- Indices de la tabla `fridas`
+--
+ALTER TABLE `fridas`
+ ADD PRIMARY KEY (`id`);
+
+--
+-- Indices de la tabla `fridas_modules`
+--
+ALTER TABLE `fridas_modules`
+ ADD PRIMARY KEY (`id`);
+
+--
+-- Indices de la tabla `teams`
+--
+ALTER TABLE `teams`
+ ADD PRIMARY KEY (`id`);
+
+--
+-- Indices de la tabla `users`
+--
+ALTER TABLE `users`
+ ADD PRIMARY KEY (`id`);
+
+--
+-- AUTO_INCREMENT de las tablas volcadas
+--
+
+--
+-- AUTO_INCREMENT de la tabla `delivers`
+--
+ALTER TABLE `delivers`
+ MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
+
+--
+-- AUTO_INCREMENT de la tabla `feedbacks`
+--
+ALTER TABLE `feedbacks`
+ MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
+
+--
+-- AUTO_INCREMENT de la tabla `fridas`
+--
+ALTER TABLE `fridas`
+ MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
+
+--
+-- AUTO_INCREMENT de la tabla `fridas_modules`
+--
+ALTER TABLE `fridas_modules`
+ MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
+
+--
+-- AUTO_INCREMENT de la tabla `teams`
+--
+ALTER TABLE `teams`
+ MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
+
+--
+-- AUTO_INCREMENT de la tabla `users`
+--
+ALTER TABLE `users`
+ MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
+COMMIT;
+
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
diff --git a/app-final/css/styles-actividadFrida.css b/app-final/css/styles-actividadFrida.css
new file mode 100644
index 0000000..ef6f54a
--- /dev/null
+++ b/app-final/css/styles-actividadFrida.css
@@ -0,0 +1,58 @@
+@import 'styles-header.css';
+
+.main{
+ margin-top: 63px;
+ margin-bottom: 60px;
+}
+.main .header-curso{
+ /* background: url("https://previews.123rf.com/images/hilch/hilch1508/hilch150800097/43338126-tecnolog%C3%ADa-mano-empate-integrar-iconos-establecidos-en-el-papel-dibujo-vectorial-colorido-infograf%C3%ADa-ilu.jpg") repeat;
+ background-size: contain; */
+ position: relative;
+ height: 400px;
+ color: #343a40;
+ font-weight: bold;
+ padding: 0;
+ overflow: hidden;
+}
+
+.main .header-curso img{
+ width: 100%;
+ padding: 0;
+ margin: 0;
+ position: absolute;
+ top: -220px;
+ /* filter: blur(3px); */
+ filter: opacity(0.8);
+}
+
+.main .header-curso .nombre-curso{
+ position: absolute;
+ top: 0;
+ margin: 80px 60px;
+}
+
+.seccion-actividad{
+ border: gray solid 1px;
+ border-radius: 5px;
+ height: 200px;
+ font-size: 20px;
+ padding: 0;
+}
+
+.seccion-actividad textarea{
+ width: 100%;
+ height: 100%;
+ resize: none;
+ border: none;
+ border-radius: 5px;
+ padding-top: 20px;
+ padding-bottom: 20px;
+}
+
+.infoDescargable a{
+ font-size: 20px;
+}
+
+.titulo{
+ color: #11798A;
+}
\ No newline at end of file
diff --git a/app-final/css/styles-agregarEquipoLider.css b/app-final/css/styles-agregarEquipoLider.css
new file mode 100644
index 0000000..440911a
--- /dev/null
+++ b/app-final/css/styles-agregarEquipoLider.css
@@ -0,0 +1,48 @@
+@import 'styles-header.css';
+
+.main{
+ margin-top: 100px;
+}
+
+form{
+ width: 90%;
+ margin: 2% 5%;
+}
+
+form .form-group{
+ width: 50%;
+ padding: 20px 20px 10px;
+ margin-bottom: 0;
+}
+
+#nombreEquipo{
+ padding-top: 0;
+}
+
+#inputNombreEquipo,
+#seleccionMentor,
+#fridasInvitacion select{
+ height: 46px;
+}
+
+.buttonFrida{
+ width: 10%;
+}
+
+#btnOtraFrida{
+ font-size: 20px;
+ font-weight: bold;
+ height: 46px;
+ width: 46px;
+}
+
+@media only screen and (max-width: 768px) {
+ #btnUpload{
+ white-space: normal;
+ font-size: 15px;
+ }
+
+ #agregar{
+ font-size: 18px;
+ }
+}
\ No newline at end of file
diff --git a/app-final/css/styles-avanceEquipo.css b/app-final/css/styles-avanceEquipo.css
new file mode 100644
index 0000000..6b0f717
--- /dev/null
+++ b/app-final/css/styles-avanceEquipo.css
@@ -0,0 +1,50 @@
+@import 'styles-header.css';
+
+.main{
+ margin-top: 100px;
+}
+
+.title{
+ font-size: 30px;
+ color: #17a2b8;
+}
+
+.subtitle{
+ font-size: 18px;
+ margin-bottom: 10px;
+}
+
+.equipo .title{
+ font-size: 19px;
+}
+
+.equipo select{
+ font-size: 17px;
+}
+
+.modulo{
+ width: 100%;
+ border: 1px solid #727F8C;
+ border-radius: 5px;
+ height: 80px;
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ margin-bottom: 20px;
+}
+
+.modulo .moduloName{
+ width: 70%;
+ padding-left: 50px;
+ font-size: 25px;
+}
+
+.modulo .moduloCalificacion{
+ width: 30%;
+ padding-right: 30px;
+ padding-left: 50px;
+}
+
+.modulo .moduloCalificacion img{
+ width: 45px;
+}
\ No newline at end of file
diff --git a/app-final/css/styles-cursosFrida.css b/app-final/css/styles-cursosFrida.css
new file mode 100644
index 0000000..8295a97
--- /dev/null
+++ b/app-final/css/styles-cursosFrida.css
@@ -0,0 +1,80 @@
+@import 'styles-header.css';
+
+/*MAIN*/
+
+.main{
+ margin-top: 100px;
+}
+
+/*CURSOS*/
+
+.equipo .titulo{
+ color: #11798A;
+}
+.cursos{
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ justify-content: space-between;
+}
+
+.cursos .curso{
+ width: 30%;
+ margin-bottom: 50px;
+}
+
+.titulo{
+ color: #11798A;
+}
+
+/*PANTALLA-CURSO*/
+.pantalla-curso .main{
+ margin-top: 63px;
+}
+.pantalla-curso .main .header-curso{
+ background: url("../img/curso.jpg") repeat;
+ background-size: contain;
+ height: 400px;
+ color: white;
+ font-weight: bold;
+ padding: 50px;
+}
+
+
+/*PANTALLA SUBUNIDAD*/
+
+.pantalla-subunidad .main,
+.pantalla-actividad-terminada .main,
+.pantalla-actividad .main{
+ margin-top: 63px;
+}
+.pantalla-subunidad .main .header-curso{
+ height: 20px;
+}
+
+.pantalla-subunidad .main .main-curso .actividad{
+ border: gray solid 2px;
+ border-radius: 10px;
+ padding: 20px 20px 10px;
+ margin-bottom: 20px;
+}
+
+/*PANTALLA- ACTIVIDAD- TERMINADA*/
+
+.pantalla-actividad-terminada .main .header-curso{
+ height: 200px;
+}
+
+.pantalla-actividad-terminada .main .main-curso .seccion-actividad,
+.pantalla-actividad .main .main-curso .seccion-actividad,
+{
+ border: gray solid 1px;
+ border-radius: 5px;
+ padding: 20px;
+ font-size: 30px;
+}
+
+.pantalla-actividad-terminada .main .main-curso .calificacion,
+.pantalla-actividad .main .main-curso .botones{
+ font-size: 40px;
+}
\ No newline at end of file
diff --git a/app-final/css/styles-equiposMentor.css b/app-final/css/styles-equiposMentor.css
new file mode 100644
index 0000000..7d99966
--- /dev/null
+++ b/app-final/css/styles-equiposMentor.css
@@ -0,0 +1,62 @@
+@import 'styles-header.css';
+
+/*MAIN*/
+
+.main{
+ margin-top: 100px;
+}
+
+.main .title{
+ font-size: 30px;
+ color: #17a2b8;
+}
+
+.main .subtitle{
+ font-size: 18px;
+}
+
+.main .containerBtnTeam button{
+ font-size: 20px;
+}
+
+.main .teams{
+ margin: 30px auto;
+ width: 80%;
+}
+
+.main .teams .team{
+ width: 200px;
+ border: 1px solid #727F8C;
+ padding: 20px;
+ border-radius: 5px;
+ margin: 10px 20px;
+ text-align: center;
+}
+
+.main .teams .team:hover{
+ background-color: #727F8C;
+ cursor: pointer;
+}
+
+.main .teams .team:hover .teamCode,
+.main .teams .team:hover .teamName{
+ color: #fff;
+}
+
+.main .teams .team .teamName{
+ font-size: 18px;
+ font-weight: bold;
+}
+
+.main .teams .team .teamCode{
+ font-size: 12px;
+ color: #727F8C;
+ font-style: italic;
+}
+
+
+/*MODAL*/
+#nuevoNombre{
+ width: 70%;
+ margin: 10px auto;
+}
\ No newline at end of file
diff --git a/app-final/css/styles-fridasLider.css b/app-final/css/styles-fridasLider.css
new file mode 100644
index 0000000..bc56419
--- /dev/null
+++ b/app-final/css/styles-fridasLider.css
@@ -0,0 +1,61 @@
+@import 'styles-header.css';
+
+.main{
+ margin-top: 100px;
+}
+
+.title{
+ font-size: 30px;
+ color: #17a2b8;
+}
+
+.subtitle{
+ font-size: 18px;
+ margin-bottom: 10px;
+}
+
+table{
+ width: 80%;
+}
+
+tr, th, td{
+ padding: 10px
+}
+
+th{
+ text-align: center;
+}
+
+.main .activities{
+ margin: 30px auto;
+ width: 80%;
+}
+
+.main .activities .activity{
+ width: 250px;
+ border: 1px solid #727F8C;
+ padding: 20px;
+ padding-bottom: 10px;
+ border-radius: 5px;
+ margin: 10px 20px;
+ text-align: left;
+}
+
+.main .activities .activity .activityName{
+ font-size: 18px;
+ font-weight: bold;
+}
+
+.main .activities .activity .teamName{
+ font-size: 12px;
+ color: #727F8C;
+}
+
+.main .activities .activity .activityStatus{
+ font-size: 16px;
+ text-align: end;
+}
+
+.main .activities .activity .activityStatus button{
+ width: 110px;
+}
\ No newline at end of file
diff --git a/app-final/css/styles-header.css b/app-final/css/styles-header.css
new file mode 100644
index 0000000..d1a172b
--- /dev/null
+++ b/app-final/css/styles-header.css
@@ -0,0 +1,46 @@
+nav{
+ z-index: 10000;
+ box-shadow: 0 0 3px 0 rgba(0, 0, 0, .5);
+}
+
+nav .navbar-brand{
+ width: 100px;
+ text-align: center;
+ font-size: 25px;
+ font-weight: bold;
+}
+
+nav #navbar ul {
+ list-style-type: none;
+}
+
+nav #navbar ul form input{
+ width: 600px;
+}
+
+nav #navbar .dropSesion a{
+ color: #1d2124;
+}
+
+nav #navbar .dropSesion a[class~="nav-link"]{
+ color: #fff;
+}
+
+nav #navbar .dropSesion a[class~="nav-link"]:active{
+ background-color: transparent;
+}
+
+nav #navbar .dropSesion a[class~="active"],
+nav #navbar .dropSesion a:active{
+ color: #fff!important;
+ background-color: #727F8C;
+}
+
+nav #navbar .dropSesion a:not([class~="active"]):hover{
+ background-color: rgb(114,127,140,0.5);
+ color: #fff;
+}
+
+nav #navbar .dropSesion a[class~="nav-link"]:hover{
+ background-color: transparent;
+}
\ No newline at end of file
diff --git a/app-final/css/styles-login.css b/app-final/css/styles-login.css
new file mode 100644
index 0000000..be50e50
--- /dev/null
+++ b/app-final/css/styles-login.css
@@ -0,0 +1,65 @@
+*{
+ margin: 0;
+ padding: 0;
+}
+
+.main{
+ width: 100%;
+ height: 100vh;
+ margin: 0;
+ padding: 0;
+}
+
+.derecha{
+ background: url("../img/tcm.jpg") repeat;
+ background-size: cover;
+ background-position: right;
+}
+
+.izquierda{
+ position: relative;
+}
+
+.izquierda .container{
+ width: 80%;
+ height: 60%;
+ position: absolute;
+ top: 15%;
+ left: 10%;
+ text-align: center;
+ color: #17a2b8;
+}
+
+.izquierda .container img{
+ width: 250px;
+ margin-bottom: 30px;
+}
+
+#registrate, #ingresar{
+ border: none;
+ background: transparent;
+ color: #17a2b8;
+}
+
+#registrate:hover, #ingresar:hover{
+ cursor: pointer;
+ text-decoration: underline;
+}
+
+#form-registro{
+ display: none;
+}
+
+#soyFrida:hover, #soyMentor:hover{
+ color: #fff;
+}
+
+@media screen and (max-width: 768px) {
+ .izquierda .container{
+ top: 10%;
+ }
+
+ .izquierda .container img{
+ width: 200px;
+ }
+}
\ No newline at end of file
diff --git a/app-final/css/styles-perfil.css b/app-final/css/styles-perfil.css
new file mode 100644
index 0000000..299322c
--- /dev/null
+++ b/app-final/css/styles-perfil.css
@@ -0,0 +1,47 @@
+@import 'styles-header.css';
+
+/*MAIN*/
+
+.main{
+ margin-top: 70px;
+}
+
+.user{
+ border-radius: 50%;
+ border: 5px solid #17a2b8;
+}
+
+.data-group{
+ min-height: 100px;
+ margin-bottom: 20px;
+}
+
+.data-group .data{
+ width: 50%;
+}
+
+.titulo{
+ color: #11798A;
+}
+
+#editarPerfil:hover{
+ color: #fff!important;
+}
+
+
+/*---Equipo---*/
+.fridas .frida{
+ margin-right: 40px;
+}
+
+.fridas .frida button{
+ padding: 10px;
+ width: 250px;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.fridas .frida button img{
+ width: 40px;
+}
diff --git a/app-final/css/styles-perfilEditor.css b/app-final/css/styles-perfilEditor.css
new file mode 100644
index 0000000..57054fd
--- /dev/null
+++ b/app-final/css/styles-perfilEditor.css
@@ -0,0 +1,30 @@
+
+/*MAIN*/
+
+.main{
+ margin-top: 70px;
+}
+
+.user{
+ border-radius: 50%;
+ border: 5px solid #17a2b8;
+}
+
+.data-group{
+ min-height: 100px;
+ margin-bottom: 20px;
+}
+
+.form-group{
+ width: 50%;
+ padding: 20px;
+ margin-bottom: 0;
+}
+
+.titulo{
+ color: #11798A;
+}
+
+#modal2 .modal-body, #modal2 .modal-footer button{
+ font-size: 20px;
+}
\ No newline at end of file
diff --git a/app-final/css/styles-registro.css b/app-final/css/styles-registro.css
new file mode 100644
index 0000000..dfd7f13
--- /dev/null
+++ b/app-final/css/styles-registro.css
@@ -0,0 +1,127 @@
+*{
+ margin: 0;
+ padding: 0;
+}
+
+.main{
+ width: 100%;
+ margin: 0;
+ padding: 0;
+}
+
+.izquierda{
+ padding: 0;
+ height: 100vh;
+ position: fixed;
+ top: 0;
+ left: 0;
+}
+
+.izquierda img{
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ object-position: right;
+}
+
+.derecha{
+ width: 100%;
+ display: block;
+ position: absolute;
+ right: 0;
+}
+
+.derecha .container{
+ width: 85%;
+ height: 60%;
+ position: absolute;
+ left: 7.5%;
+ color: #17a2b8;
+}
+
+.derecha .container form{
+ /*margin: 10% 0;*/
+ margin: 2% 0;
+}
+
+.derecha form .form-group{
+ width: 50%;
+ padding: 20px 20px 10px;
+ margin-bottom: 0;
+}
+
+#ingresarCodigo{
+ padding-top: 0;
+ display: block;
+}
+
+#nombreEquipo{
+ padding-top: 0;
+ display: none;
+}
+
+#ingresar{
+ color: #17a2b8;
+}
+
+/*FRIDA EQUIPO*/
+#labelYaTengo{
+ border-top-right-radius: 0;
+ border-bottom-right-radius: 0;
+ font-size: 15px;
+}
+
+#labelCrear{
+ border-radius: 0;
+ border-left: 0;
+ border-right: 0;
+ font-size: 15px;
+}
+
+#labelNoTengo{
+ border-top-left-radius: 0;
+ border-bottom-left-radius: 0;
+ font-size: 15px;
+}
+
+#yaTengoEquipo:checked ~ #labelYaTengo,
+#crearEquipo:checked ~ #labelCrear,
+#noTengoEquipo:checked ~ #labelNoTengo{
+ background-color: #17a2b8!important;
+ color: #fff!important;
+}
+
+/*#yaTengoEquipo:checked ~ #labelYaTengo*/
+
+@media only screen and (max-width: 1200px) {
+
+ #labelYaTengo, #labelCrear, #labelNoTengo{
+ border-radius: 0.2rem;
+ white-space: normal;
+ font-size: 15px;
+ border: 1px solid #17a2b8;
+ margin: 5px 10px;
+ }
+
+ #labelCrear{
+ border-radius: 0.2rem;
+ font-size: 15px;
+ }
+
+ #labelNoTengo{
+ border-top-left-radius: 0;
+ border-bottom-left-radius: 0;
+ font-size: 15px;
+ }
+}
+
+@media only screen and (max-width: 768px) {
+ #btnUpload{
+ white-space: normal;
+ font-size: 15px;
+ }
+
+ #registrarme{
+ font-size: 18px;
+ }
+}
\ No newline at end of file
diff --git a/app-final/css/styles-revisionActividad.css b/app-final/css/styles-revisionActividad.css
new file mode 100644
index 0000000..443ce07
--- /dev/null
+++ b/app-final/css/styles-revisionActividad.css
@@ -0,0 +1,54 @@
+@import 'styles-header.css';
+
+.main{
+ margin-top: 100px;
+}
+
+.main .main-curso .seccion-actividad{
+ border: gray solid 1px;
+ border-radius: 5px;
+ padding: 0;
+ height: 200px;
+ font-size: 30px;
+}
+
+.seccion-actividad textarea{
+ width: 100%;
+ height: 100%;
+ resize: none;
+ border: none;
+ border-radius: 5px;
+ padding-top: 20px;
+ padding-bottom: 20px;
+}
+
+.main .main-curso .comentarios,
+.main .main-curso .calificacion{
+ width: 50%;
+}
+
+.main .main-curso .comentarios p,
+.main .main-curso .calificacion{
+ font-size: 20px;
+}
+
+.main .main-curso .comentarios textarea{
+ width: 90%;
+ resize: none;
+}
+
+.main .main-curso .calificacion input{
+ height: 50px;
+}
+
+#btnUpload{
+ background-color: transparent;
+ border: none;
+ color: #17a2b8;
+}
+
+#btnUpload:hover{
+ cursor: pointer;
+ text-decoration: underline;
+}
+
diff --git a/app-final/cursosFridas_view.php b/app-final/cursosFridas_view.php
new file mode 100644
index 0000000..e14f4b3
--- /dev/null
+++ b/app-final/cursosFridas_view.php
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ Código Frida
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app-final/equipo_view.php b/app-final/equipo_view.php
new file mode 100644
index 0000000..9c7dfc5
--- /dev/null
+++ b/app-final/equipo_view.php
@@ -0,0 +1,116 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ Código Frida
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app-final/equiposLider_view.php b/app-final/equiposLider_view.php
new file mode 100644
index 0000000..025d4ac
--- /dev/null
+++ b/app-final/equiposLider_view.php
@@ -0,0 +1,92 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ Código Frida
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app-final/fotos/fridas/CarmenMiranda.jpg b/app-final/fotos/fridas/CarmenMiranda.jpg
new file mode 100644
index 0000000..cff3380
Binary files /dev/null and b/app-final/fotos/fridas/CarmenMiranda.jpg differ
diff --git a/app-final/fotos/lider/AndreaOlarte.jpeg b/app-final/fotos/lider/AndreaOlarte.jpeg
new file mode 100644
index 0000000..6897941
Binary files /dev/null and b/app-final/fotos/lider/AndreaOlarte.jpeg differ
diff --git a/app-final/fridasLider_view.php b/app-final/fridasLider_view.php
new file mode 100644
index 0000000..011c3cc
--- /dev/null
+++ b/app-final/fridasLider_view.php
@@ -0,0 +1,103 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ Código Frida
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app-final/funciones.php b/app-final/funciones.php
new file mode 100644
index 0000000..e014498
--- /dev/null
+++ b/app-final/funciones.php
@@ -0,0 +1,24 @@
+connect_error) {
+ die("Error al conectarse a la base de datos, " . $conn->connect_error);
+ }
+ return $conn;
+ }
+
+?>
\ No newline at end of file
diff --git a/app-final/img/logo.png b/app-final/img/logo.png
new file mode 100644
index 0000000..b635c9f
Binary files /dev/null and b/app-final/img/logo.png differ
diff --git a/app-final/img/logoBn.png b/app-final/img/logoBn.png
new file mode 100644
index 0000000..cc7bfc9
Binary files /dev/null and b/app-final/img/logoBn.png differ
diff --git a/app-final/img/logoLetras.jpg b/app-final/img/logoLetras.jpg
new file mode 100644
index 0000000..d08d4ac
Binary files /dev/null and b/app-final/img/logoLetras.jpg differ
diff --git a/app-final/img/logoLetras.png b/app-final/img/logoLetras.png
new file mode 100644
index 0000000..a911c35
Binary files /dev/null and b/app-final/img/logoLetras.png differ
diff --git a/app-final/img/logoLetrasBlanco.png b/app-final/img/logoLetrasBlanco.png
new file mode 100644
index 0000000..76afd40
Binary files /dev/null and b/app-final/img/logoLetrasBlanco.png differ
diff --git a/app-final/img/logoSin.png b/app-final/img/logoSin.png
new file mode 100644
index 0000000..a29f604
Binary files /dev/null and b/app-final/img/logoSin.png differ
diff --git a/app-final/img/nivel_cinco.png b/app-final/img/nivel_cinco.png
new file mode 100644
index 0000000..f54a86a
Binary files /dev/null and b/app-final/img/nivel_cinco.png differ
diff --git a/app-final/img/nivel_cuatro.png b/app-final/img/nivel_cuatro.png
new file mode 100644
index 0000000..7df885e
Binary files /dev/null and b/app-final/img/nivel_cuatro.png differ
diff --git a/app-final/img/nivel_dos.png b/app-final/img/nivel_dos.png
new file mode 100644
index 0000000..89e8c06
Binary files /dev/null and b/app-final/img/nivel_dos.png differ
diff --git a/app-final/img/nivel_ocho.png b/app-final/img/nivel_ocho.png
new file mode 100644
index 0000000..121f488
Binary files /dev/null and b/app-final/img/nivel_ocho.png differ
diff --git a/app-final/img/nivel_seis.png b/app-final/img/nivel_seis.png
new file mode 100644
index 0000000..b339e94
Binary files /dev/null and b/app-final/img/nivel_seis.png differ
diff --git a/app-final/img/nivel_siete.png b/app-final/img/nivel_siete.png
new file mode 100644
index 0000000..bdc61a1
Binary files /dev/null and b/app-final/img/nivel_siete.png differ
diff --git a/app-final/img/nivel_tres.png b/app-final/img/nivel_tres.png
new file mode 100644
index 0000000..fa77869
Binary files /dev/null and b/app-final/img/nivel_tres.png differ
diff --git a/app-final/img/nivel_uno.png b/app-final/img/nivel_uno.png
new file mode 100644
index 0000000..ee4e5c4
Binary files /dev/null and b/app-final/img/nivel_uno.png differ
diff --git a/app-final/img/tcm.jpg b/app-final/img/tcm.jpg
new file mode 100644
index 0000000..301369b
Binary files /dev/null and b/app-final/img/tcm.jpg differ
diff --git a/app-final/img/user.png b/app-final/img/user.png
new file mode 100644
index 0000000..4173f3b
Binary files /dev/null and b/app-final/img/user.png differ
diff --git a/app-final/index.php b/app-final/index.php
new file mode 100644
index 0000000..e1ec3fa
--- /dev/null
+++ b/app-final/index.php
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Código Frida
+
+
+
"+ + ""+team_id+"
Sus compañeras de equipo y mentoras deberán "+ + "ingresar este código al registrarse para quedar inscritas en él." + ); + $("#modal1").modal('toggle'); + $("#modal2").modal('toggle'); + } + }); + } else{ + var parameters = { + "email_Frida":email, + "password":pwd1, + "name_Frida":name, + "lastName_Frida": last_name, + "birthdate_Frida": birthdate, + "school_Frida": school, + "phone_Frida": phone, + "avatar_Frida": avatar, + "id_team": team_id + }; + $.ajax({ + type: 'POST', + url: 'http://localhost/CodigoFrida/registroFrida.php', + // contentType: "application/json; charset=utf-8", + //dataType:'json', + data: parameters, + //data: $("#form-registro").serialize(), + beforeSend: function () { + console.log("Cargando...."); + //$("#resultado").html("Procesando, espere por favor..."); + }, + success: function (response) { + console.log(response); + $("#modal2 .modal-body").html( + "¡Felicidades!
Usted está registrada en el programa.
Más adelante se te notificará "+ + "el equipo al que ha sido asignada." + ); + $("#modal1").modal('toggle'); + $("#modal2").modal('toggle'); + } + }); + } + + } + }else{ + $("#modal1").modal('toggle'); + alert("Las contraseñas no son iguales"); + } + } + else{ + $("#modal1").modal('toggle'); + alert("Rellene todos los campos"); + } + }); + + + + $("#modal2 .modal-footer button").click(function(){ + window.location.replace('index.php'); + $("#modal2").modal('toggle'); + }); +}); \ No newline at end of file diff --git a/app-final/js/registroMentor.js b/app-final/js/registroMentor.js new file mode 100644 index 0000000..4993e44 --- /dev/null +++ b/app-final/js/registroMentor.js @@ -0,0 +1,23 @@ +$(document).ready(function(){ + $('[data-toggle="popover"]').popover(); + + $('#celLider').keypress(function(tecla) { + if(tecla.charCode < 48 || tecla.charCode > 57) return false; + }); + + $("#imgUpload").on('change', function(){ + var path = $("#imgUpload").val(); + var filename = path.split('\\').pop().split('/').pop() + $("#archivoSeleccionado").text(filename); + $("#btnUpload").text("Selecciona otra imagen"); + }); + + $("#aceptarRegistro").click(function(){ + $("#modal1").modal('toggle'); + $("#modal2").modal('toggle'); + }); + + $("#modal2 .modal-footer button").click(function(){ + window.location.replace('index.php'); + }); +}); \ No newline at end of file diff --git a/app-final/js/revisionActividad.js b/app-final/js/revisionActividad.js new file mode 100644 index 0000000..f0ba52a --- /dev/null +++ b/app-final/js/revisionActividad.js @@ -0,0 +1,18 @@ +$(document).ready(function(){ + $("#archUpload").on('change', function(){ + var files = $("#archUpload")[0].files; + var filesNames=""; + for (var i = 0; i < files.length; i++){ + filesNames+=files[i].name +'\n'; + } + $("#seccion-actividad").val(filesNames); + }); + + $('#calificacion').keypress(function(tecla) { + if(tecla.charCode < 48 || tecla.charCode > 53) return false; + }); + + $('#calificar').on('click',function(){ + window.location.replace('actividadesLider_view.php'); + }); +}); \ No newline at end of file diff --git a/app-final/perfilFridaEdicion_view.php b/app-final/perfilFridaEdicion_view.php new file mode 100644 index 0000000..6c17a6d --- /dev/null +++ b/app-final/perfilFridaEdicion_view.php @@ -0,0 +1,127 @@ + + + + + + + + + + + + +Código Frida
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app-final/perfilFrida_view.php b/app-final/perfilFrida_view.php
new file mode 100644
index 0000000..b9fc886
--- /dev/null
+++ b/app-final/perfilFrida_view.php
@@ -0,0 +1,93 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ Código Frida
+
+
+
+
Actividades
+ +
+
+
+
+ Mentor:
+
+
+
+ Equipo:
+
+
+
+ Actividad:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Actividad 1
+ Equipo Friditas
+ Revisada
+
+
+
+ Actividad 2
+ Equipo Friditas
+
+ Avance Equipo
+ +
+
+
+
+
+
+
+
+ Nombre del equipo
+Código
+
+
+
+ Puntos XP:
15 ++
Nivel:
1 +
+
+
+ AVANCE
+
+
+
+
+
+
+ Módulo 1. ksksks
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Módulo 2. ksksks
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Módulo 3. ksksks
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Módulo 4. ksksks
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Módulo 5. ksksks
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Módulo 6. ksksks
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Módulo 7. ksksks
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Módulo 8. ksksks
+
+
+
+
+
+
+
+
+
+
+
+
+ Avance Equipos
+ +
+
+
+
+
+
+ Equipo:
+ +
+
+ Puntos XP:
15 +Nivel:
1 +
+
+
+
+
+ Módulo 1. ksksks
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Módulo 2. ksksks
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Módulo 3. ksksks
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Módulo 4. ksksks
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Módulo 5. ksksks
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Módulo 6. ksksks
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Módulo 7. ksksks
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Módulo 8. ksksks
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ BRED's CAR
+Código: 53445ldxwzh7ahfuimspw
+
+
+
+ Puntos XP:
15 ++
Nivel:
1 +
+
+
+
+
+
+
+
+ Módulo 1.
+Entre problemáticas y los Objetivos de Desarrollo Sostenible.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Equipo:
+Friditas
+
+
+ Mentor:
+Nombre Mentor Código
+
+
+ Fridas:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Puntos XP:
15 ++
Nivel:
1 +
+
+
+ Editar perfil
+
+
+
+ Equipos
+
+ Agregar Equipo
+
+
+
+ Mentor:
+
+
+
+
+
+ Equipo Friditas
+ Código del equipo
+
+
+ Equipo Fridotas
+ Código del equipo
+
+
+ Equipo CAR
+ Código del equipo
+
+
+ Equipo Lelele
+ Código del equipo
+
+
+ Equipo Lilili
+ Código del equipo
+
+
+ Equipo Lololo
+ Código del equipo
+ Fridas sin asignar
+ +
| Nombre | +Fecha de nacimiento | +Correo electrónico | +Escuela de procedencia | ++ |
|---|---|---|---|---|
| María Cristina Ramírez Deníz | +31-05-2001 | +frida1@gmail.com | +Escuela 1 | ++ |
| María Cristina Ramírez Deníz | +15-03-2003 | +frida2@gmail.com | +Escuela 2 | ++ |
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app-final/js/actividadFrida.js b/app-final/js/actividadFrida.js
new file mode 100644
index 0000000..4ec4bf0
--- /dev/null
+++ b/app-final/js/actividadFrida.js
@@ -0,0 +1,10 @@
+$(document).ready(function(){
+ $("#archUpload").on('change', function(){
+ var files = $("#archUpload")[0].files;
+ var filesNames="";
+ for (var i = 0; i < files.length; i++){
+ filesNames+=files[i].name +'\n';
+ }
+ $("#seccion-actividad").val(filesNames);
+ });
+});
\ No newline at end of file
diff --git a/app-final/js/agregarEquipoLider.js b/app-final/js/agregarEquipoLider.js
new file mode 100644
index 0000000..49222b2
--- /dev/null
+++ b/app-final/js/agregarEquipoLider.js
@@ -0,0 +1,41 @@
+$(document).ready(function(){
+ $("#btnOtraFrida").click(function(){
+ var formFridas = document.getElementById("fridasInvitacion");
+ var childs=formFridas.childElementCount;
+
+ if(childs<6){
+ var select = document.createElement("select");
+ select.className="form-control mb-2";
+ select.innerHTML = "";
+ select.innerHTML += "";
+ select.innerHTML += "";
+ select.innerHTML += "";
+ select.innerHTML += "";
+ select.innerHTML += "";
+ formFridas.appendChild(select);
+ if(childs==5){
+ $("#btnOtraFrida").css("display","none");
+ }
+ }
+ });
+
+ $("#btnUpload").click(function(){
+ $("#imgUpload").click();
+ });
+
+ $("#imgUpload").on('change', function(){
+ var path = $("#imgUpload").val();
+ var filename = path.split('\\').pop().split('/').pop()
+ $("#archivoSeleccionado").text(filename);
+ $("#btnUpload").text("Selecciona otra imagen");
+ });
+
+ $("#aceptarRegistro").click(function(){
+ $("#modal1").modal('toggle');
+ $("#modal2").modal('toggle');
+ });
+
+ $("#modal2 .modal-footer button").click(function(){
+ window.location.replace('equiposLider_view.php');
+ });
+});
\ No newline at end of file
diff --git a/app-final/js/avanceEquipoFrida.js b/app-final/js/avanceEquipoFrida.js
new file mode 100644
index 0000000..48ffa04
--- /dev/null
+++ b/app-final/js/avanceEquipoFrida.js
@@ -0,0 +1,36 @@
+$(document).ready(function(){
+ var contador=1;
+ $("#imgAvance").on('click',function(){
+ if(contador==8)
+ contador=1;
+ else{
+ contador++;
+ }
+ switch(contador){
+ case 1:
+ $("#imgAvance").attr('src','img/nivel_uno.png');
+ return;
+ case 2:
+ $("#imgAvance").attr('src','img/nivel_dos.png');
+ return;
+ case 3:
+ $("#imgAvance").attr('src','img/nivel_tres.png');
+ return;
+ case 4:
+ $("#imgAvance").attr('src','img/nivel_cuatro.png');
+ return;
+ case 5:
+ $("#imgAvance").attr('src','img/nivel_cinco.png');
+ return;
+ case 6:
+ $("#imgAvance").attr('src','img/nivel_seis.png');
+ return;
+ case 7:
+ $("#imgAvance").attr('src','img/nivel_siete.png');
+ return;
+ case 8:
+ $("#imgAvance").attr('src','img/nivel_ocho.png');
+ return;
+ }
+ });
+});
\ No newline at end of file
diff --git a/app-final/js/equiposLider.js b/app-final/js/equiposLider.js
new file mode 100644
index 0000000..de31803
--- /dev/null
+++ b/app-final/js/equiposLider.js
@@ -0,0 +1,29 @@
+$(document).ready(function(){
+ var equipoModalAbierto;
+
+ $("div[class='team']").click(function(){
+ /*equipoModalAbierto = document.getElementById($(this).attr("id"));
+ $("#modal1").modal('toggle');*/
+ console.log("Holi");
+ window.location.replace('equipo_view.php');
+ });
+
+ /*$("#aceptarEdicion").click(function(){
+ var nuevoNombreElemento = document.getElementById("nuevoNombre");
+ var nuevoNombre=document.getElementById("nuevoNombre").value;
+ if(nuevoNombre!=""){
+ equipoModalAbierto.children[0].innerHTML= "Equipo "+ nuevoNombre;
+ var newId= 'team'+nuevoNombreElemento.value;
+ equipoModalAbierto.id=newId;
+ $("#modal1").modal('toggle');
+ nuevoNombreElemento.value="";
+ }else{
+ alert("Debe de ingresarse un nombre");
+ nuevoNombreElemento.focus();
+ }
+ });
+
+ $("#modal2 .modal-footer button").click(function(){
+ window.location.replace('index.html');
+ });*/
+});
\ No newline at end of file
diff --git a/app-final/js/logIn.js b/app-final/js/logIn.js
new file mode 100644
index 0000000..009f0d4
--- /dev/null
+++ b/app-final/js/logIn.js
@@ -0,0 +1,21 @@
+$(document).ready(function(){
+ $("#registrate").click(function(){
+ $("#form-log-in").css("display","none");
+ $("#form-registro").css("display","block");
+ });
+
+ $("#ingresar").click(function(){
+ $("#form-registro").css("display","none");
+ $("#form-log-in").css("display","block");
+ });
+
+ $("#iniciarSesion").on("click",function(){
+ var user = $("#user").val();
+ var pwd = $("#pwd").val();
+
+ if(user=="cmiranda@ucol.mx")
+ window.location.replace('cursosFridas_view.php');
+ else
+ window.location.replace('fridasLider_view.php');
+ });
+});
\ No newline at end of file
diff --git a/app-final/js/perfilEditor.js b/app-final/js/perfilEditor.js
new file mode 100644
index 0000000..51e47fe
--- /dev/null
+++ b/app-final/js/perfilEditor.js
@@ -0,0 +1,25 @@
+$(document).ready(function(){
+ $("#btnUpload").click(function(){
+ $("#imgUpload").click();
+ });
+
+ $("#imgUpload").on('change', function(){
+ var path = $("#imgUpload").val();
+ var filename = path.split('\\').pop().split('/').pop()
+ $("#archivoSeleccionado").text(filename);
+ $("#btnUpload").text("Selecciona otra imagen");
+ });
+
+ $("#aceptarCambios").click(function(){
+ $("#modalGuardar").modal('toggle');
+ $("#modal2").modal('toggle');
+ });
+
+ $("#btnOkCambiosRealizadosFrida, #aceptarCancelacionFrida").click(function(){
+ window.location.replace('perfilFrida_view.php');
+ });
+
+ // $("#btnOkCambiosRealizadosMentor, #aceptarCancelacionMentor").click(function(){
+ // window.location.replace('perfil-mentor.html');
+ // });
+});
\ No newline at end of file
diff --git a/app-final/js/registroFrida.js b/app-final/js/registroFrida.js
new file mode 100644
index 0000000..ac14f0d
--- /dev/null
+++ b/app-final/js/registroFrida.js
@@ -0,0 +1,173 @@
+$(document).ready(function(){
+ $('[data-toggle="popover"]').popover();
+
+ $("input[name='radioEquipo']").change(function(){
+ if($(this).val() == 'option1'){
+ $("#ingresarCodigo").css("display","block");
+ $("#nombreEquipo").css("display","none");
+ }else{
+ if($(this).val() == 'option2'){
+ $("#ingresarCodigo").css("display","none");
+ $("#nombreEquipo").css("display","block");
+ }else{
+ $("#nombreEquipo").css("display","none");
+ $("#ingresarCodigo").css("display","none");
+ }
+ }
+ });
+
+ $('#celFrida').keypress(function(tecla) {
+ if(tecla.charCode < 48 || tecla.charCode > 57) return false;
+ });
+
+ $("#imgUpload").on('change', function(){
+ var path = $("#imgUpload").val();
+ var filename = path.split('\\').pop().split('/').pop()
+ $("#archivoSeleccionado").text(filename);
+ $("#btnUpload").text("Selecciona otra imagen");
+ });
+
+ $("#aceptarRegistro").click(function(){
+ var email = $('#emailFrida').val(),
+ pwd1 = $('#pdwFrida').val(),
+ pwd2 = $('#pdwFrida2').val(),
+ name = $('#nameFrida').val(),
+ last_name = $('#lastNameFrida').val(),
+ birthdate = $('#dateFrida').val(),
+ school = $('#schoolFrida').val(),
+ phone = $('#celFrida').val(),
+ avatar = $('#imgUpload').val(),
+ team_id = 0;
+
+ //var code = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
+
+ if(email != ""&&pwd1 != "" && pwd2 != "" && name != "" && last_name != "" && birthdate != "" && school != ""&& phone != "" && avatar!= ""){
+ if($('#pdwFrida').val() == $('#pdwFrida2').val()){
+ if( $('#yaTengoEquipo').is(':checked') ) {
+ team_id = $('#codeTeam').val();
+ var parameters = {
+ "email_Frida":email,
+ "password":pwd1,
+ "name_Frida":name,
+ "lastName_Frida": last_name,
+ "birthdate_Frida": birthdate,
+ "school_Frida": school,
+ "phone_Frida": phone,
+ "avatar_Frida": avatar,
+ "id_team": team_id
+ };
+ $.ajax({
+ type: 'POST',
+ url: 'http://localhost/CodigoFrida/registroFrida.php',
+ // contentType: "application/json; charset=utf-8",
+ //dataType:'json',
+ data: parameters,
+ //data: $("#form-registro").serialize(),
+ success: function(response){
+ console.log(response);
+ $("#modal2 .modal-body").html(
+ "¡Felicidades! Usted ha sido registrada al equipo con el código: "+team_id+""
+ );
+ $("#modal1").modal('toggle');
+ $("#modal2").modal('toggle');
+ },
+ error: function(error){
+ console.log(error);
+ },
+ beforeSend: function () {
+ console.log("Cargando....");
+ //$("#resultado").html("Procesando, espere por favor...");
+ }
+ });
+ } else{
+ if( $('#crearEquipo').is(':checked') ) {
+ team_name = $('#nameTeam').val();
+ team_id = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
+
+ var parameters = {
+ "email_Frida":email,
+ "password":pwd1,
+ "name_Frida":name,
+ "lastName_Frida": last_name,
+ "birthdate_Frida": birthdate,
+ "school_Frida": school,
+ "phone_Frida": phone,
+ "avatar_Frida": avatar,
+ "id_team": team_id
+ };
+ $.ajax({
+ type: 'POST',
+ url: 'http://localhost/CodigoFrida/registroFrida.php',
+ // contentType: "application/json; charset=utf-8",
+ //dataType:'json',
+ data: parameters,
+ //data: $("#form-registro").serialize(),
+ beforeSend: function () {
+ console.log("Cargando....");
+ //$("#resultado").html("Procesando, espere por favor...");
+ },
+ success: function (response) {
+ console.log(response);
+ $("#modal2 .modal-body").html(
+ "Se ha creado el equipo "+$("#nameTeam").val()+" exitosamente! El código del equipo es
+
+
+
+
+
+
+
+
+
+
+
+
+ "+ + ""+team_id+"
Sus compañeras de equipo y mentoras deberán "+ + "ingresar este código al registrarse para quedar inscritas en él." + ); + $("#modal1").modal('toggle'); + $("#modal2").modal('toggle'); + } + }); + } else{ + var parameters = { + "email_Frida":email, + "password":pwd1, + "name_Frida":name, + "lastName_Frida": last_name, + "birthdate_Frida": birthdate, + "school_Frida": school, + "phone_Frida": phone, + "avatar_Frida": avatar, + "id_team": team_id + }; + $.ajax({ + type: 'POST', + url: 'http://localhost/CodigoFrida/registroFrida.php', + // contentType: "application/json; charset=utf-8", + //dataType:'json', + data: parameters, + //data: $("#form-registro").serialize(), + beforeSend: function () { + console.log("Cargando...."); + //$("#resultado").html("Procesando, espere por favor..."); + }, + success: function (response) { + console.log(response); + $("#modal2 .modal-body").html( + "¡Felicidades!
Usted está registrada en el programa.
Más adelante se te notificará "+ + "el equipo al que ha sido asignada." + ); + $("#modal1").modal('toggle'); + $("#modal2").modal('toggle'); + } + }); + } + + } + }else{ + $("#modal1").modal('toggle'); + alert("Las contraseñas no son iguales"); + } + } + else{ + $("#modal1").modal('toggle'); + alert("Rellene todos los campos"); + } + }); + + + + $("#modal2 .modal-footer button").click(function(){ + window.location.replace('index.php'); + $("#modal2").modal('toggle'); + }); +}); \ No newline at end of file diff --git a/app-final/js/registroMentor.js b/app-final/js/registroMentor.js new file mode 100644 index 0000000..4993e44 --- /dev/null +++ b/app-final/js/registroMentor.js @@ -0,0 +1,23 @@ +$(document).ready(function(){ + $('[data-toggle="popover"]').popover(); + + $('#celLider').keypress(function(tecla) { + if(tecla.charCode < 48 || tecla.charCode > 57) return false; + }); + + $("#imgUpload").on('change', function(){ + var path = $("#imgUpload").val(); + var filename = path.split('\\').pop().split('/').pop() + $("#archivoSeleccionado").text(filename); + $("#btnUpload").text("Selecciona otra imagen"); + }); + + $("#aceptarRegistro").click(function(){ + $("#modal1").modal('toggle'); + $("#modal2").modal('toggle'); + }); + + $("#modal2 .modal-footer button").click(function(){ + window.location.replace('index.php'); + }); +}); \ No newline at end of file diff --git a/app-final/js/revisionActividad.js b/app-final/js/revisionActividad.js new file mode 100644 index 0000000..f0ba52a --- /dev/null +++ b/app-final/js/revisionActividad.js @@ -0,0 +1,18 @@ +$(document).ready(function(){ + $("#archUpload").on('change', function(){ + var files = $("#archUpload")[0].files; + var filesNames=""; + for (var i = 0; i < files.length; i++){ + filesNames+=files[i].name +'\n'; + } + $("#seccion-actividad").val(filesNames); + }); + + $('#calificacion').keypress(function(tecla) { + if(tecla.charCode < 48 || tecla.charCode > 53) return false; + }); + + $('#calificar').on('click',function(){ + window.location.replace('actividadesLider_view.php'); + }); +}); \ No newline at end of file diff --git a/app-final/perfilFridaEdicion_view.php b/app-final/perfilFridaEdicion_view.php new file mode 100644 index 0000000..6c17a6d --- /dev/null +++ b/app-final/perfilFridaEdicion_view.php @@ -0,0 +1,127 @@ + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+ Perfil.png
+
+
+
+