-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshowsenha.php
More file actions
85 lines (77 loc) · 2.2 KB
/
showsenha.php
File metadata and controls
85 lines (77 loc) · 2.2 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
83
84
85
<?php
include('restt.php');
include('conectar.php');
$query_conta = "SELECT * FROM usuarios WHERE ncartao = ?";
$stmt_query = $mysqli->prepare($query_conta);
$stmt_query->bind_param('i', $login_ncartaou);
$stmt_query->execute();
$result_query = $stmt_query->get_result();
$infoconta = $result_query->fetch_array();
$nome = $infoconta['nome'];
$emaili = $infoconta['intermail'];
$nu1 = $infoconta['n1'];
$nu2 = $infoconta['n2'];
$nu3 = $infoconta['n3'];
$nu4 = $infoconta['n4'];
$tipo = $infoconta['tipo'];
$credit = $infoconta['credito'];
$endere = $infoconta['endereco'];
$estado = $infoconta['estado'];
$pais = $infoconta['pais'];
$idade = $infoconta['idade'];
$adm = $infoconta['adm'];
$enter = $infoconta['enter'];
$normal = "normal";
if($adm != 1){
header("Location: cliente.php");
}
$ida = $_GET['id'];
$query_list = "SELECT * FROM usuarios WHERE id = ?";
$stmt_list = $mysqli->prepare($query_list);
$stmt_list->bind_param("i", $ida);
$stmt_list->execute();
$res_list = $stmt_list->get_result();
$listar = $res_list->fetch_array();
$contado = $listar['ncartao'];
$senhado = $listar['senha'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Document sans titre</title>
<style type="text/css">
.textto {
font-family: Verdana, Geneva, sans-serif;
}
</style>
</head>
<body>
<table width="200" border="0">
<tr>
<td width="74" class="textto">Id:</td>
<td width="110" class="textto"><?=$ida; ?></td>
</tr>
<tr>
<td class="textto">N° do Cartão:</td>
<td class="textto"><?=$contado; ?></td>
</tr>
<tr>
<td class="textto">Senha:</td>
<td class="textto"><?=$senhado; ?></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="button" value="Fechar" onclick="FecharJanela();" /></td>
</tr>
</table>
<script type='text/javascript'>
<!--
function FecharJanela()
{
ww = window.open(window.location, "_self");
ww.close();
}
-->
</script>
</body>
</html>