-
Notifications
You must be signed in to change notification settings - Fork 2
/
cad-chamado-senha.php
74 lines (59 loc) · 2.01 KB
/
cad-chamado-senha.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="../css/formstyle.css">
<link rel="stylesheet" type="text/css" href="css/estilo.css">
<link rel="stylesheet" type="text/css" href="css/autenticacao.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<title>ARVDESK</title>
</head>
<body class="body-forgot-password">
<div class="back forgot-password">
<div class="content">
<form class="form-forgot-password">
<h1>ARV-DESK</h1>
<?php
include ("conexao.php");
$tipo = 2;
$dtAbertura = date('Y-m-d');
$NomeRequerente = $_POST['NomeRequerente'];
$setor = $_POST['setor'];
$tpReparo = 5;
$status = 1;
$prioridade = 1;
$atribuicao = 1;
$descricao = $_POST['descricao'];
$sql = mysqli_query($conexao,"INSERT INTO chamados
(tipo, dtAbertura, NomeRequerente, setor, tpReparo, status, prioridade, atribuicao, descricao) VALUES
('$tipo', '$dtAbertura', '$NomeRequerente', '$setor', '$tpReparo', '$status', '$prioridade','$atribuicao', '$descricao')");
if($sql){
echo "
<div class='grupo' align='center'>
<i class='bi bi-check-circle-fill'></i><br><br>
</div>
<div>
<font color=#333><center><h1>Solicitação enviada com sucesso !</h1></center>
</div>
";
}else if($sqp->error){
echo "
<div class='grupo' align='center'>
<i class='bi bi-exclamation-triangle-fill'></i><br><br>
</div>
<div>
<font color=#333><center><h1>Ocorreu um erro ao enviar solicitação, entre em contato com o Administrador.</h1></center>
</div>
";
}
mysqli_close($conexao);
?>
<center><a href="index.html" class="go-back">Clique aqui para retornar a pagina de login</a></center>
</form>
</div>
</div>
</body>
</html>