-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathemblemas.php
More file actions
82 lines (79 loc) · 1.72 KB
/
emblemas.php
File metadata and controls
82 lines (79 loc) · 1.72 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
<?php
include('headclient.php');
?>
<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="5%"> </td>
<td bgcolor="#FFFFFF" width="90%"> </td>
<td width="5%"> </td>
</tr>
<tr>
<td height="211"> </td>
<td bgcolor="#FFFFFF">
<table width="100%" cellspacing="10" border="0">
<tr>
<td colspan="4" class="text1"><h1>Suas conquistas</h1>
<h3>Aqui você pode ver todas as suas conquistas!</h3></td>
</tr>
<tr>
<td width="5%" rowspan="3"> </td>
<td width="40%"><table align="center" width="200" border="0">
<?php
$query_conq = "SELECT * FROM vouchers WHERE ncartao = ? ORDER BY data";
$stmt_conq= $mysqli->prepare($query_conq);
$stmt_conq->bind_param('i', $login_ncartaou);
$stmt_conq->execute();
$res_conq = $stmt_conq->get_result();
$numm = $res_conq->num_rows;
$i = 0;
?>
<td colspan="12" class="text1" align="center">
Você possui atualmente <b><?php echo "$numm"; ?></b> conquistas
</td>
<?php
while($conquistos = $res_conq->fetch_array()){
$nomconq = $conquistos['nome'];
$linkconq= $conquistos['link'];
$infoconq= $conquistos['info'];
$valorconq = $conquistos['valor'];
if($i == 0){
echo"<tr>";
}
echo "<td><img src='Imagens/conquistas/$linkconq.gif' title='$nomconq - $infoconq - F$ $valorconq' /></td>";
$i++;
if($i == 12){
$i = 0;
echo"</tr>";
}
}
if($i ==1){
echo "<td></td><td></td></tr>";
}
if($i ==2)
{
echo "<td></td></tr>";
}
?>
</table></td>
<td width="5%" rowspan="3"> </td>
</tr>
<tr>
<td height="24"> </td>
</tr>
</table></td>
<td width="5%" rowspan="3"> </td>
</tr>
<tr>
<td height="24" class="text1"> </td>
</tr>
</table></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td bgcolor="#FFFFFF"> </td>
<td> </td>
</tr>
</table>
</body>
</html>