-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
174 lines (142 loc) · 6.4 KB
/
index.php
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<?php
include_once "db/conexion_pdo.php";
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="index.css">
<title>Pagina Principal</title>
<style>
.navbar-brand {
margin-left: 25px;
}
form > button {
margin-top: 15px;
}
footer > div {
color: white;
}
.space {
margin-top: 9px;
}
body{
background-image: url("imgs/students.jpg");
background-size: cover;
}
</style>
</head>
<body>
<div class="login-error"></div>
<nav class="navbar navbar-light bg-body-tertiary">
<div container-fluid>
<a class="navbar-brand">Sistema de monitoreo estudiantil</a>
</div>
<div class="d-flex align-items-center">
<button type="button" class="btn btn-outline-primary px-3 me-2" data-bs-toggle="modal" data-bs-target="#login">Login</button>
<button type="button" class="btn btn-success me-3" data-bs-toggle="modal" data-bs-target="#register">Sign up</button>
</div>
</nav>
<main>
<!-- Login -->
<div class="modal fade" id="login" role="dialog" >
<div class="modal-dialog">
<!-- Modal content -->
<div class="modal-content">
<!-- Modal-header -->
<div class="modal-header" style="padding:20px 50px;">
<h4><span class="glyphicon glyphicon-lock">Iniciar sesion</span></h4>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<!-- Modal body -->
<div class="modal-body" style="40px 50px;">
<form action="pages/iniciar_sesion.php" method="post" role="form">
<div class="form-group">
<label><span class="glyphicon glyphicon-user"></span>Correo</label>
<input type="text" class="form-control" id="correo" name="correo" title="Escribe tu correo de la universidad" placeholder="Ingresa tu correo" required>
<!-- <div class="valid-feedback">Valido</div>
<div class="invalid-feedback">Por favor llena este campo</div> -->
</div>
<div class="form-group">
<label><span class="glyphicon glyphicon-eye-close"></span>Password</label>
<input type="password" class="form-control" id="password" name="password" required placeholder="Ingresa tu password">
<!-- <div class="valid-feedback">Valido</div>
<div class="invalid-feedback">Por favor llena este campo</div> -->
</div>
<button type="submit" value="submit" class="btn btn-success btn-block"><span class="glyphicon glyphicon-off"></span>Login</button>
</form>
</div>
<!-- Modal footer -->
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Registro -->
<div class="modal fade" id="register" roles="dialog">
<div class="modal-dialog modal-lg modal-dialog-scrollable">
<!-- Modal content -->
<div class="modal-content">
<!-- Modal-header -->
<div class="modal-header" style="padding:20px 50px;">
<h4><span class="glyphicon glyphicon-lock">Crear cuenta</span></h4>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<!-- Modal body -->
<div class="modal-body">
<form action="pages/crear_cuenta.php" method="post">
<div class="row">
<div class="col-12">
<input type="text" class="form-control" name="nombre" pattern="[a-zA-Z]+(\s+[a-zA-Z]+)*" placeholder="Nombre">
</div>
<div class="space col-6">
<input type="text" class="form-control" name="apellidoPaterno" placeholder="Apellido paterno">
</div>
<div class="space col-6">
<input type="text" class="form-control" name="apellidoMaterno" placeholder="Apellido materno">
</div>
<div class="space col-6">
<input type="text" class="form-control" pattern="\S+@zapopan\.tecmm\.edu\.mx" name="correo" title="Escribe tu correo de la universidad" placeholder="Correo electronico">
</div>
<div class="space col-3">
<input type="password" class="form-control" name="password_1" pattern=".{8,}" title="Escribe 8 o mas caracteres" placeholder="Contrasena">
</div>
<div class="space col-3">
<input type="password" class="form-control" name="password_2" placeholder="Repite contrasena">
</div>
<div class="space col-4">
<input type="text" class="form-control" name="matricula" placeholder="Matricula">
</div>
<div class="space col-2">
<select class="form-select" name="roles">
<option selected>Roles</option>
<option value=1>Maestro</option>
<option value=2>Alumno</option>
</select>
</div>
<div id="error"></div>
<div class="space col-12">
<button type="submit" name="submit" class="btn btn-success">Crear</button>
</div>
</div>
</form>
</div>
<!-- Modal footer -->
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</main>
<footer class="bg-primary text-center text-while fixed-bottom">
<div class="text-center p-1">TSJZ - 2024 Copyright</div>
</footer>
</body>
</html>