-
Notifications
You must be signed in to change notification settings - Fork 0
/
r_user.php
258 lines (219 loc) · 9.18 KB
/
r_user.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
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
<?php
require('php/connect.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>PETICIONES - QUEJAS Y RECLAMOS</title>
<!-- MDB icon -->
<link rel="icon" href="img/1.png" type="image/x-icon">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css">
<!-- Google Fonts Roboto -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- Material Design Bootstrap -->
<link rel="stylesheet" href="css/mdb.min.css">
<link rel="stylesheet" type="text/css" href="style.css">
<!-- Your custom styles (optional) -->
<!-- main css -->
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/responsive.css">
<!--<link rel="stylesheet" href="css/style.css">-->
<style type="text/css">
form{
width:500px;
padding:16px;
border-radius:10px;
margin:auto;
}
.container-login100{
width: 100%;
min-height: 100vh;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
padding: 15px;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}
.btn-info {
color: #fff;
background-color: #8bc34a !important;
}
</style>
<script type="text/JavaScript">
function validaDatos(formulario){
if ((form.name.value.length == 0) || (form.identificacion.value.length == 0) || (form.email.value.length == 0) || (form.departamento.value.length == 0) || (form.ciudad.value.length == 0)|| (form.direccion.value.length == 0) {
alert("¡Uno de los campos esta vacio!");
return false;
}
if (!/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(form.email.value)){
alert("Correo electronico invalido");
return false;
}
return true;
}
function soloLetras(e){
/*Validacion de solo caracteres*/
key = e.keyCode || e.which;
teclado = String.fromCharCode(key).toLowerCase();
letras = "abcdefghijklmnñopqrstuvwxyz";
especiales = "8-37-38-46-164";
teclado_especiales = false;
for ( var i in especiales){
if( key == especiales[i]){
teclado_especiales = true; break;
}
}
if( letras.indexOf(teclado) == -1 && !teclado_especiales){
return false;
}
}
</script>
<?php include('php/user.php'); ?>
</head>
<body style=" background-image: url(./IMG_0059.jpg); background-repeat: no-repeat; background-position: 100% 100%;">
<!-- Start your project here-->
<!-- Default form register -->
<!-- Default form contact -->
<!-- Default form contact -->
<html>
<body>
<div style="" class="container-login100">
<form class="text-center border border-light p-5" action="" onsubmit=" return validaDatos(this);" id="form" value="1" method="POST" style="background: #FFFFFF;">
<p class="h4 mb-4">Formulario de Registro de Usuario</p>
<!-- Name -->
<input type="text" id="defaultContactFormName" class="form-control mb-4" placeholder="Nombre y Apellido" name="name" onkeypress="return soloLetras(event);">
<input type="text" id="defaultContactFormName" class="form-control mb-4" placeholder="Numero de Identificacion" name="identificacion">
<!-- Email -->
<input type="email" id="defaultContactFormEmail" class="form-control mb-4" placeholder="Correo Electronico" name="email">
<div class="form-row mb-4">
<div class="col">
<!-- First name -->
<select class="browser-default custom-select mb-4" name="departamento">
<option value="" disabled>Departamento</option>
<?php
$contador = 0;
$query = $conexion->query("SELECT * FROM dep");
while($valores = mysqli_fetch_array($query)){
echo '<option value="'.$valores["ID"].'">'.$valores["departamento"].'</option>';
}
$contador++;
?>
<!--<option value="4">Feature request</option>-->
</select>
</div>
<div class="col">
<!-- Last name -->
<select class="browser-default custom-select mb-4" name="ciudad">
<option value="" disabled>Ciudad</option>
<?php
$contador = 0;
$query = $conexion->query("SELECT * FROM data");
while($valores = mysqli_fetch_array($query)){
echo '<option value="'.$valores["ID"].'">'.$valores["ciudad"].'</option>';
}
$contador++;
?>
<!--<option value="4">Feature request</option>-->
</select>
</div>
<div class="col">
<!-- Last name -->
<input type="text" id="defaultRegisterFormLastName" class="form-control" placeholder="Direccion" name="direccion">
</div>
</div>
<div class="form-row mb-4">
<div class="col">
<!-- First name -->
<input type="text" id="defaultRegisterFormFirstName" class="form-control" placeholder="Poliza" name="poliza">
</div>
<div class="col">
<!-- Last name -->
<select class="browser-default custom-select mb-4" name="aseo">
<option value="" disabled>Aseo</option>
<?php
$contador = 0;
$query = $conexion->query("SELECT * FROM pub_aseo");
while($valores = mysqli_fetch_array($query)){
echo '<option value="'.$valores["ID"].'">'.$valores["emp_aseo"].'</option>';
}
$contador++;
?>
<!--<option value="4">Feature request</option>-->
</select>
</div>
</div>
<!-- Subject -->
<label>Tipo de Usuario</label>
<select class="browser-default custom-select mb-4" name="tipo_usuario">
<option value="" disabled>Tipo de Usuario</option>
<option value="1" selected>Residencial</option>
<option value="2">Propiedad Horizontal</option>
<option value="3">Industrial</option>
<!--<option value="4">Feature request</option>-->
</select>
<!-- Subject -->
<label>Tipo de Remitente</label>
<select class="browser-default custom-select mb-4" name="remitente">
<option value="" disabled>Tipo de Remitente</option>
<option value="1" selected>Natural</option>
<option value="2">Juridica</option>
<!--<option value="3">Reclamo</option>-->
<!--<option value="4">Feature request</option>-->
</select>
<!-- Message -->
<div class="form-group">
</div>
<div class="custom-control custom-checkbox mb-4">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="flexCheckDefault" name="check2">
<label class="form-check-label" for="flexCheckDefault">
Acepto
<a href="docs/TERMINOS Y CONDICIONES ECORECUPERAMOS.pdf" data-togle="modal" data-target="#ventanaModal"" ><u style="color: #007bff">Terminos y Condiciones</u></a>
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" name="check1">
<label class="form-check-label" for="flexCheckChecked">
Acepto
<a href="docs/Politica de Tratamiento de Datos - ECORECUPERAMOS S.pdf" data-togle="modal" data-target="#ventanaModal"" ><u style="color: #007bff">Politica de Privacidad de Datos</u></a>
</label>
</div>
<!--<label class="custom-control-label" for="defaultContactFormCopy">Send me a copy of this message</label>-->
</div>
<!-- Send button -->
<button class="btn btn-info btn-block" type="submit" name="send" ">Enviar</button>
</form>
</div>
</body>
</html>
<!-- Default form contact
-->
<!-- Default form contact -->
<!-- Default form register -->
<!-- Default form login -->
<!-- End your project here-->
<!-- jQuery -->
<script type="text/javascript" src="js/jquery.min.js"></script>
<!-- Bootstrap tooltips -->
<script type="text/javascript" src="js/popper.min.js"></script>
<!-- Bootstrap core JavaScript -->
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<!-- MDB core JavaScript -->
<script type="text/javascript" src="js/mdb.min.js"></script>
<!-- Your custom scripts (optional) -->
<script type="text/javascript"></script>
</body>
</html>