-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeneficios.php
139 lines (135 loc) · 6.62 KB
/
beneficios.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?php
include_once("config.php");
include_once("api/CheckBalance.php");
$balchk = new CheckBalance;
$bal = $balchk->do();
$pdo = new PDO(SERVER, USER, PASSWORD);
$stmt = $pdo->prepare("SELECT * FROM `benefits` INNER JOIN partners ON partners.id = partner_id");
$stmt->execute();
$benefits = $stmt->fetchAll();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>MyThree - Adote uma Arvore</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="css/style.css" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
<!-- Our Custom CSS -->
<link rel="stylesheet" href="css/style3.css">
<!-- Scrollbar Custom CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/malihu-custom-scrollbar-plugin/3.1.5/jquery.mCustomScrollbar.min.css">
<!-- Font Awesome JS -->
<script defer src="https://use.fontawesome.com/releases/v5.0.13/js/solid.js" integrity="sha384-tzzSw1/Vo+0N5UhStP3bvwWPq+uvzCMfrN1fEFe+xBmv1C/AtVX5K0uZtmcHitFZ" crossorigin="anonymous"></script>
<script defer src="https://use.fontawesome.com/releases/v5.0.13/js/fontawesome.js" integrity="sha384-6OIrr52G08NpOFSZdxxz1xdNSndlD4vdcf/q2myIUVO0VsqaGHJsB0RaBE01VTOY" crossorigin="anonymous"></script>
<style>
#map {
height: 370px;
}
.image_enterprise{
postion: absolute;
height: 90px;
}
</style>
</head>
<!-- This snippet uses Font Awesome 5 Free as a dependency. You can download it at fontawesome.io! -->
<body>
<div class="container">
<div class="row">
<div class="col-sm-12">
<div id="content">
<nav class="navbar navbar-expand-lg">
<div class="container-fluid">
<button class="btn btn-dark d-inline-block d-lg-none ml-auto" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<i class="fas fa-align-justify"></i>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="nav navbar-nav ml-auto">
<li class="nav-item active">
<a class="nav-link" href="dashboard.php">Árvores</a>
</li>
<li class="nav-item">
<a class="nav-link" href="incluir.php">Incluir Árvore</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Benefícios</a>
</li>
<li class="nav-item">
<a class="nav-link" href="arvoresperto.php">Redondeza</a>
</li>
<li class="nav-item">
<a href="./api/Logout.php" id="sidebarCollapse" class="btn btn-danger">
<span>Sair</span>
<i class="fa fa-power-off"></i>
</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
</div>
<div class="wrapper">
<!-- Page Content -->
<div class="overlay"></div>
<br>
<br>
<br>
<br>
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="card card-signin my-1">
<div class="card-body">
<h4 style="color: gray" class="card-title text-center">Lista de beneficios</h4>
<div class='row'>
<div class='col-sm-1'>
<p style='color: gray;'></p>
</div>
<div class='col-sm-8'>
<p style='color: gray;'>Suas Moedas obtidas</p>
</div>
<div class='col-sm-3'>
<button type="button" class="btn btn-outline-success" disabled><?php echo $bal ?> Moedas Verdes</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
foreach($benefits as $benefit){
include("beneficio.php");
}
?>
<!-- jQuery CDN - Slim version (=without AJAX) -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<!-- Popper.JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ" crossorigin="anonymous"></script>
<!-- Bootstrap JS -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" crossorigin="anonymous"></script>
<!-- jQuery Custom Scroller CDN -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/malihu-custom-scrollbar-plugin/3.1.5/jquery.mCustomScrollbar.concat.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$("#sidebar").mCustomScrollbar({
theme: "minimal"
});
$('#dismiss, .overlay').on('click', function () {
$('#sidebar').removeClass('active');
$('.overlay').removeClass('active');
});
$('#sidebarCollapse').on('click', function () {
$('#sidebar').addClass('active');
$('.overlay').addClass('active');
$('.collapse.in').toggleClass('in');
$('a[aria-expanded=true]').attr('aria-expanded', 'false');
});
});
</script>
</body>
</html>