/
alta_usuario.php
110 lines (96 loc) · 3.78 KB
/
alta_usuario.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
<?php
session_start();
if(!isset($_SESSION['user']))
header('location: login.php');
require_once 'include/clases.php';
if(isset($_POST["altausuario"])){
if ($_SESSION['tipo']=='ADM')
user::add($_POST["nombre"], $_POST["apellido"], $_POST["email"], $_POST["username"],$_POST["pass1"],$_POST["pass2"],@$_POST["adm"]);
var_dump(msg::get());
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script style="color: rgb(0, 0, 0);" src="js/jquery-1.11.1.min.js"></script>
<!---<script src="https://code.jquery.com/jquery-1.10.2.js"></script>--->
<script src="js/functions.js"></script>
<script src="js/colors.js"></script>
<script src="js/funciones.js"></script>
<script src="js/switchery.min.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="css/styles-form.css">
<link rel="stylesheet" type="text/css" media="all" href="css/switchery.min.css">
<link href="css/style.css" rel="stylesheet" type="text/css" media="all">
<link href="css/estilo.css" rel="stylesheet" type="text/css" media="all">
<title>[StockMGR]</title>
<link rel="icon"
type="image/png"
href="images/fav.png" />
</head>
<body style=" background-image: url(images/bg%20hipster%20forest.jpg);
background-repeat: no-repeat;
background-size: cover;">
<?php
require("include/header.php");
?>
<div id="wrapper">
<h1>Alta de Usuario</h1>
<form method="POST">
<div class="col-3">
<label>
Nombre
<input placeholder="Nombre" id="nameUsr" name="nombre" tabindex="1">
</label>
</div>
<div class="col-3">
<label>
Apellido
<input placeholder="Apellido" id="phone" name="apellido" tabindex="2">
</label>
</div>
<div class="col-3">
<label>
E-mail
<input placeholder="Dirección de correo electrónico" id="email" name="email" tabindex="3">
</label>
</div>
<div class="col-3">
<label>
Usuario
<input placeholder="Nombre de usuario" id="user" name="username" tabindex="4">
</label>
</div>
<div class="col-3">
<label>
Contraseña
<input type="password" placeholder="••••••••" id="pass" name="pass1" tabindex="5">
</label>
</div>
<div class="col-3">
<label>
Reingresa tu contraseña
<input type="password" placeholder="••••••••" id="rePass" name="pass2" tabindex="5">
</label>
</div>
<div class="col-2">
<label>Administrador</label>
<center style="position:relative; margin-bottom:8px;"><input class="js-switch" type="checkbox" name="adm"></center>
</div>
<div class="col-2">
<label>Acepto los términos y condiciones</label>
<center style="position:relative;margin-bottom:8px;"><input class="js-switch" type="checkbox"></center>
</div>
<div class="col-submit">
<button type="submit" name="altausuario" class="submitbtn">Darme de alta</button>
</div>
</form>
</div>
<script type="text/javascript">
var elems = Array.prototype.slice.call(document.querySelectorAll('.js-switch'));
elems.forEach(function(html) {
var switchery = new Switchery(html);
});
</script>
<div id="scrollup" style="z-index: 8; position: fixed; bottom: 0%; float: right; display: block;"><img src="images/up.svg" width="30px"></div>
</body>
</html>