-
Notifications
You must be signed in to change notification settings - Fork 1
/
administrator.html
313 lines (301 loc) · 10.3 KB
/
administrator.html
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="./assets/img/favicon.png" type="image/png" />
<link rel="stylesheet" href="./assets/css/reset.css" />
<link rel="stylesheet" href="./assets/css/normalize.css" />
<link rel="stylesheet" href="./assets/css/administrator/administrator.css" />
<link rel="stylesheet" href="./assets/css/administrator/administratorHeader.css" />
<link rel="stylesheet" href="./assets/css/administrator/administratorMain.css" />
<link rel="stylesheet" href="./assets/css/modals/modalUsers.css" />
<link rel="stylesheet" href="./assets/css/modals/modalProducts.css" />
<!-- Fuente del Proyecto Poppins -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap"
rel="stylesheet"
/>
<!-- KIT Fontawesome -->
<script
src="https://kit.fontawesome.com/8e46837a7d.js"
crossorigin="anonymous"
></script>
<!--MODAL PRODUCTS -->
<script type="module" src="./assets/js/modalsProducts.js"></script>
<!--MODAL MODIFY -->
<!-- Despliegue Lista Header -->
<script type="module" src="./assets/js/indexHeader.js"></script>
<!-- jQuery-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script type="module" src="./assets/mvc/View/servicesJS/checkSession.js"></script>
<script
type="module"
src="./assets/mvc/View/servicesJS/validateAdminSesion.js"
></script>
<!-- Manejo de modales de usuario -->
<script type="module" src="./assets/js/modalsUsers.js"></script>
<title>Talyx</title>
</head>
<body class="adminBody">
<script>
function imgErrorHTML(image) {
image.src = './assets/img/main/destacados/default-img.png';
}
</script>
<header class="header">
<nav class="header__category">
<a class="header__category-menu header__text header__category--mobile" href="#"
>CATEGORIAS</a
>
<i class="fa-solid fa-bars header__category-down"></i>
<ul class="header__category-list"></ul>
</nav>
<!--header__category-->
<div class="header__logo">
<img
class="header__logo-img"
src="./assets/img/logo/logo_talyx.svg"
alt="Logo Talyx"
/>
</div>
<!--header__logo-->
<section class="header__btnAdd">
<button class="header__btnAdd--addProduct" id="open">Agregar productos</button>
</section>
<!--header__btnAdd-->
<nav class="header__user">
<a id="openLogin" class="header__user-welcome header__links" href="#">
<i class="fa-solid fa-circle-user header__icons"></i>
<p id="welcome__username" class="header__p">Bienvenido/a Usuario</p>
<button id="cerrarsesion" class="signOff">cerrar sesion</button>
</a>
</nav>
<!--header__user-->
<section class="header__btnBack">
<button class="header__btnBack--goBack" onclick="location.href='./index.html'"> Volver</button>
<a class="header__btnBack--text header__text" href="./index.html">VOLVER</a>
</section>
<!--header__btnBack-->
</header>
<!-- * MODAL PRODUCTS -->
<section id="modal" class="modalProducts">
<div id="modal__container" class="modalProducts__container">
<div class="modalProducts__content">
<div class="modalProducts__header">
<h2>Agregar Producto</h2>
<span id="modal__add" class="modalProducts__add">+</span>
</div>
<div class="modalProducts__formContainer">
<form action="" id="add_Products" class="modalProducts__form">
<input
class="modalProducts__input"
name="category"
type="text"
placeholder="Categoría:"
/>
<input
class="modalProducts__input"
name="subcategory"
type="text"
placeholder="Subcategoría:"
/>
<input
class="modalProducts__input"
type="text"
placeholder="Dirección de imagen:"
name="img"
/>
<input
class="modalProducts__input"
name="title"
type="text"
placeholder="Título:"
/>
<textarea
class="modalProducts__input modalProducts__input--desc"
placeholder="Descripción:"
name="description"
></textarea>
<input
class="modalProducts__input modalProducts__input--price"
type="number"
name="price"
placeholder="Precio:"
/>
<div class="modalProducts__btns">
<button id="modal__close" class="modalProducts__btn">Volver</button>
<button
class="modalProducts__btn modalProducts__btn--save"
form="add_Products"
type="submit"
>
Guardar
</button>
</div>
</form>
</div>
</div>
</div>
</section>
<!-- MODAL ADDPRODUCTS-->
<!-- * MODAL MODIFYPRODUCTS -->
<section id="modalModify" class="modalProducts">
<div id="modalModify__container" class="modalProducts__container">
<div class="modalProducts__content">
<div class="modalProducts__header">
<h2>Modificar Producto</h2>
</div>
<div class="modalProducts__formContainer">
<form id="modalModifyProducts__form" action="" class="modalProducts__form">
<input
class="modalProducts__input"
name="categoria"
type="text"
placeholder="Categoría:"
/>
<input
class="modalProducts__input"
name="subcategoria"
type="text"
placeholder="Subcategoría:"
/>
<input
class="modalProducts__input"
name="dir_imagen"
type="text"
placeholder="Dirección de imagen:"
/>
<input
class="modalProducts__input"
name="titulo"
type="text"
placeholder="Título:"
/>
<textarea
name="descripcion"
class="modalProducts__input modalProducts__input--desc"
placeholder="Descripción:"
></textarea>
<input
class="modalProducts__input modalProducts__input--price"
name="precio"
type="number"
placeholder="Precio:"
/>
<div class="modalProducts__btns">
<button id="modalModify__close" class="modalProducts__btn">Volver</button>
<button
form="modalModifyProducts__form"
class="modalProducts__btn modalProducts__btn--save"
type="submit"
>
Guardar
</button>
</div>
</form>
</div>
</div>
</div>
</section>
<!-- MODAL MODIFYPRODUCTS-->
<!-- * MODAL USERS -->
<section id="modalLogin" class="modal">
<div id="" class="modal__container">
<div class="modal__base">
<div class="modal__empty"></div>
<div class="modal__register">
<span id="" class="modal__close">x</span>
<p class="modal__question">¿Aún no tienes una cuenta?</p>
<p class="modal__phrase">Registrate para que puedas iniciar sesión</p>
<button id="modalNewAccount" class="modal__newAccount">Registrarse</button>
</div>
<div class="modal__principal">
<h5 class="modal__title">Iniciar Sesión</h5>
<form class="modal__form">
<input class="modal__input" type="email" placeholder="Correo Electronico" />
<input class="modal__input" type="password" placeholder="Contraseña" />
<a class="modal__forget" href="./forgetPassword.html">¿Olvidaste tu Contraseña?</a>
</form>
<div class="modal__footer">
<button id="modalAccess" class="modal__access">Entrar</button>
<img class="modal__logo" src="./assets/img/logo/talyx.png" alt="Logo Talyx" />
</div>
</div>
</div>
</div>
</section>
<section id="modalRegister" class="modal">
<div id="" class="modal__container">
<div class="modal__base modal__base--reg">
<div class="modal__empty modal__empty--reg"></div>
<div class="modal__login">
<span id="" class="modal__close modal__close--reg">x</span>
<p class="modal__question">¿Ya tienes una cuenta?</p>
<p class="modal__phrase">Iniciar sesión para entrar en la página</p>
<button id="toAccount" class="modal__toAccount">Iniciar Sesión</button>
</div>
<div class="modal__principal modal__principal--reg">
<h5 class="modal__title modal__title--reg">Registrarse</h5>
<form class="modal__form modal__form--reg">
<input class="modal__input" type="text" placeholder="Nombre" />
<input class="modal__input" type="text" placeholder="Apellido" />
<input class="modal__input" type="email" placeholder="Correo Electronico" />
<input class="modal__input" type="password" placeholder="Contraseña" />
</form>
<div class="modal__footer modal__footer--reg">
<button id="modalCreate" class="modal__access">Crear</button>
<img class="modal__logo" src="./assets/img/logo/talyx.png" alt="Logo Talyx" />
</div>
</div>
</div>
</div>
</section>
<!-- MODAL USERS-->
<main class="main">
<!--section class="mainProducts"-->
<div class="mainFeatured">
<!--mainProductsBox-->
<div class="mainFeatured__Container" id="container__Products" mainDestacadosP>
<!--container__Products-->
</div>
</div>
<div class="buttons">
<button
class="mainFeatured__Container--buttonleft bt__Slider bt__SliderLeft"
id="bt__SliderLeft-Featured"
>
<div class="mainFeatured__Container--buttonleftbox btbox__Slider">
<img
src="./assets/img/main/flechaIzquierda.svg"
alt=""
class="mainFeatured__Container--buttonleftimg btnimg__Slider"
/>
</div>
</button>
<div id="pages" class="mainFeatured__Container--pagenumbers"></div>
<button
class="mainFeatured__Container--buttonright bt__Slider bt__SliderRight"
id="bt__SliderRight-Featured"
>
<div
class="mainFeatured__Container--buttonrightbox btbox__Slider"
id="bt__SliderLeft-Featured"
>
<img
src="./assets/img/main/flechaDerecha.svg"
alt=""
class="mainFeatured__Container--buttonrigthimg btnimg__Slider"
/>
</div>
</button>
</div>
<!--/section-->
</main>
</body>
<script type="module" src="./assets/mvc/View/Index/getProducts.js"></script>
<script type="module" src="./assets/mvc/View/administrador/CreateProduct.js"></script>
</html>