-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy patheditar_usuario_aprovado.php
59 lines (50 loc) · 2.22 KB
/
editar_usuario_aprovado.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
<?php
include_once 'conexao.php';
include_once('head.php');
$id = $_GET['id'];
?>
<div style="padding:20px 0;max-width:800px" class="container">
<h4 style="padding:0 0 20px 0;margin-bottom:35px;" class="border-bottom">Formulário de Aprovação de Novo Usuário
</h4>
<form action="inserir_usuario_aprovado.php" method="POST">
<?php
$sql = "SELECT * FROM usuario WHERE IdUsuario = $id";
$retorno = mysqli_query($conexao,$sql);
while($array = mysqli_fetch_array($retorno,MYSQLI_ASSOC)){
$idUsuario = $array['IdUsuario'];
$nome = $array['Nome'];
$sobrenome = $array['Sobrenome'];
$email = $array['Email'];
?>
<input style="display:none" id="idUsuario" name="idUsuario" value="<?=$idUsuario?>">
<div class="row">
<div class="form-group col-md-6">
<label for="nome">Nome</label>
<input type="text" class="form-control" id="nome" name="nome" required autocomplete="off"
value="<?=$nome?>" readonly>
</div>
<div class="form-group col-md-6">
<label for="sobrenome">Sobrenome</label>
<input type="text" class="form-control" id="sobrenome" name="sobrenome" required autocomplete="off"
value="<?=$sobrenome?>" readonly>
</div>
</div>
<div class="row">
<div class="form-group col-md-6">
<label for="email">E-mail</label>
<input type="text" class="form-control" id="email" name="email" required autocomplete="off"
value="<?=$email?>" readonly>
</div>
<div class="form-group col-md-6">
<label>Nível de acesso</label>
<select class="form-control" name="nivelUsuario">
<option value="1">Administrador</option>
<option value="2">Funcionário</option>
<option value="3">Conferente</option>
</select>
</div>
</div>
<button type="submit" class="btn-enviar btn btn-success btn-sm btn-block">Confirmar</button>
<?php } ?>
</form>
</div>