-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfirmaExclusao.php
More file actions
82 lines (80 loc) · 2.73 KB
/
ConfirmaExclusao.php
File metadata and controls
82 lines (80 loc) · 2.73 KB
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
<!DOCTYPE html>
<?php
$host = "localhost";
$user = "root";
$pass = "";
$banco = "user";
$conexao = mysql_connect($host, $user, $pass);
mysql_select_db($banco) or die (mysql_error());
?>
<?php
session_start();
if(!isset($_SESSION["user"]) || !isset($_SESSION["password"])){
header("Location: Login.php");
exit;
} else {
if ($_SESSION["tuser"]==1) {
header("Location: Painel.php");
}
$NomeUser=$_SESSION["user"];
}
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<title>Cadastro Usuário</title>
<link rel="shortcut icon" href="css/imagens/parae.ico" type="image/x-icon" />
<center><img src="css/imagens/paraefinal.png" class="img-rounded" width="200" height="205" onclick="location.href='paginicial.php'"></center>
<div align="right"> Olá, <?php echo $NomeUser ?> | <a href="paginicial.php"><i class="icon-home"></i></a> | <a href="logout.php">Sair</a></div>
<br><br>
<center><h3><?php $nome = $_GET['nome'];
$t = $_GET['t'];
if($t==3){
echo "Você tem certeza que deseja remover '$nome' e confirma a devolução do saldo do cliente?";
}else{
echo "Você tem certeza que deseja remover '$nome'?"; }?></h3></center>
<br><br>
<center><button type="button" name="voltar" class="btn btn-default" id="voltar" onclick="location.href='<?php
$t = $_GET['t'];
if($t==2){
$id = $_GET['id'];
$nome = $_GET['nome'];
echo "ConsultaConvenio.php";
} elseif ($t==1) {
$id = $_GET['id'];
$nome = $_GET['nome'];
$nuser = $_GET['tusu'];
echo "ConsultaUsuario.php?cpf=0&nome=0";
} elseif ($t==3){
$id = $_GET['id'];
$nome = $_GET['nome'];
echo "ConsultaCliente.php?nome=$nome&cpf=&codigo=";
} elseif ($t==4){
$id = $_GET['id'];
$nome = $_GET['nome'];
echo "ConsultaVaga.php";
}
?>'">VOLTAR</button>
   
<input name="button" class="btn btn-default" type="submit" id="cadastrar" title="ENVIAR" value="CONFIRMAR" onclick="location.href='<?php
$t = $_GET['t'];
if($t==2){
$id = $_GET['id'];
$nome = $_GET['nome'];
echo "AlteraConvenio.php?id=$id&alt=0&fun=2";
} elseif ($t==1) {
$id = $_GET['id'];
$nome = $_GET['nome'];
$nuser = $_GET['tusu'];
echo "AlteraUsuario.php?id=$id&fun=2&tusu=$nuser&alt=0";
} elseif($t==3){
$id = $_GET['id'];
echo "AlteraCliente.php?id=$id&func=1";
} elseif ($t==4) {
$id = $_GET['id'];
$nome = $_GET['nome'];
echo "AlteraVaga.php?id=$id&alt=0&fun=2";
}
?>'"/></center>
</head>
<body>