-
Notifications
You must be signed in to change notification settings - Fork 0
/
venta.html
284 lines (247 loc) · 8.16 KB
/
venta.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Venta de libros</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.4/css/bulma.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/tablas.css">
</head>
<body>
<section class="hero is-info">
<div class="hero-body">
<div class="container">
<a href="index.html"><img id="logo" src="pics/Esricolombia.png" alt="Esricolombia"></a>
<h6 class="title">
BIBLIOTECA
</h6>
</div>
</div>
<div class="primeros">
<a href="#" class="button is-primary" id="nuevoRegistro">Insertar un libro nuevo</a>
</div>
</section>
<div class="field" id="search">
<p class="control has-icons-left has-icons-right">
<input class="input" id="buscarPrestar" onkeypress="buscar();" type="search" placeholder="Search">
<span class="icon is-small is-left">
<i class="fas fa-search"></i>
</span>
</div>
<div class="form-group"> <!-- Show Numbers Of Rows -->
<select class ="form-control" name="state" id="maxRows">
<option value="5">5</option>
<option value="10">10</option>
<option value="15">15</option>
<option value="20">20</option>
</select>
</div>
<div class="Page-container">
<table class="table" id="paraVenta">
<thead>
<tr>
<th>Nombre</th>
<th>Detalles</th>
<th>Modificar</th>
<th>Eliminar</th>
<th>Vender</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="modal" id="detalles">
<div class="modal-background"></div>
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title" id="detallesNombre"></p>
<button class="delete" aria-label="close"></button>
</header>
<section class="modal-card-body">
<h2 id="Autor"></h2>
<p id="year"></p>
</section>
</div>
</div>
<div class="modal" id="modificar">
<div class="modal-background"></div>
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title" id="modificarNombre"></p>
<button class="delete" aria-label="close"></button>
</header>
<section class="modal-card-body">
<div class="field">
<label class="label">ISBN</label>
<div class="control">
<input class="input" type="text">
</div>
</div>
<div class="field">
<label class="label">Nombre</label>
<div class="control">
<input class="input" type="text">
</div>
</div>
<div class="field">
<label class="label">Autor</label>
<div class="control">
<input class="input" type="text">
</div>
</div>
<div class="field">
<label class="label">Editorial</label>
<div class="control">
<input class="input" type="text">
</div>
</div>
<div class="field">
<label class="label">Año de Publicación</label>
<div class="control">
<input class="input" type="date">
</div>
</div>
<div class="field">
<label class="label">Categoría</label>
<div class="control">
<input class="input" type="text">
</div>
</div>
<div class="field">
<label class="label">Cantidad disponible para Venta</label>
<div class="control">
<input class="input" type="number">
</div>
</div>
</section>
<footer class="modal-card-foot">
<button class="button is-success" onclick="modificar();">MODIFICAR</button>
<button class="button" name="cancel">CANCELAR</button>
</footer>
</div>
</div>
<div class="modal" id="eliminar">
<div class="modal-background"></div>
<div class="modal-card">
<section class="modal-card-body">
<p>¿Está seguro de eliminar?</p>
</section>
<footer class="modal-card-foot">
<button onclick="eliminar();" class="button is-danger">SI</button>
<button class="button" name="cancel">NO</button>
</footer>
</div>
</div>
<div class="modal" id="modal">
<div class="modal-background"></div>
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title" id="libroP"></p>
<button class="delete" aria-label="close"></button>
</header>
<section class="modal-card-body">
<div class="field">
<label class="label">CORREO CORPORATIVO</label>
<div class="control">
<input id="correo" class="input" type="email" placeholder="jortiz@esri.co">
</div>
</div>
</section>
<footer class="modal-card-foot">
<button onclick="enviar();" class="button is-success">VENDER</button>
<button class="button" name="cancel">CANCELAR</button>
</footer>
</div>
</div>
<div id="modalRegistro" class="modal">
<div class="modal-background"></div>
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title">INSERTAR UN NUEVO LIBRO</p>
<button class="delete" aria-label="close"></button>
</header>
<section class="modal-card-body">
<div class="field">
<label class="label">ISBN</label>
<div class="control">
<input class="input" type="text">
</div>
</div>
<div class="field">
<label class="label">Nombre</label>
<div class="control">
<input class="input" type="text">
</div>
</div>
<div class="field">
<label class="label">Autor</label>
<div class="control">
<input class="input" type="text">
</div>
</div>
<div class="field">
<label class="label">Editorial</label>
<div class="control">
<input class="input" type="text">
</div>
</div>
<div class="field">
<label class="label">Año de Publicación</label>
<div class="control">
<input class="input" type="date">
</div>
</div>
<div class="field">
<label class="label">Categoría</label>
<div class="control">
<input class="input" type="text">
</div>
</div>
<div class="field">
<label class="label">Cantidad disponible para Venta</label>
<div class="control">
<input class="input" type="number">
</div>
</div>
</section>
<footer class="modal-card-foot">
<button class="button is-success" onclick="registrarLibro();">GUARDAR</button>
<button class="button" name="cancel">CANCELAR</button>
</footer>
</div>
</div>
<div class='pagination-container'>
<nav>
<ul class="pagination">
<li data-page="prev" >
<span> < <span class="sr-only">(current)</span></span>
</li>
<!-- Here the JS Function Will Add the Rows -->
<li data-page="next" id="prev">
<span> > <span class="sr-only">(current)</span></span>
</li>
</ul>
</nav>
</div>
</div>
<footer class="footer">
<div class="content has-text-centered">
<p>
<strong>Powered</strong> by <a href="https://geogeeks2.maps.arcgis.com/home/index.html">Semillero de Innovación Geográfica</a>.
</p>
<a href="https://www.facebook.com/geogeeksco/" class="fa fa-facebook"></a>
<a href="https://twitter.com/geo_geeks" class="fa fa-twitter"></a>
<a href="#" class="fa fa-github"></a>
<a href="https://www.youtube.com/channel/UCuGsuNbUykWZ6lsb85PeW0A?view_as=subscriber" class="fa fa-youtube"></a>
<a href="https://www.instagram.com/geo_geeks/" class="fa fa-instagram"></a>
</div>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.18.0/axios.min.js" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js" charset="utf-8"></script>
<script src="js/tablas.js" charset="utf-8"></script>
<script src="js/main.js" charset="utf-8"></script>
<script src="js/venta.js" charset="utf-8"></script>
</body>
</html>