-
Notifications
You must be signed in to change notification settings - Fork 1
/
profilo.php
116 lines (99 loc) · 4.96 KB
/
profilo.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
<?php
include "php/api.php";
logged_or_die();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Aulapp - Profilo</title>
<!-- Bootstrap -->
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<!-- Latest compiled and minified CSS -->
<!-- Optional theme -->
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap-theme.min.css">-->
<link rel="stylesheet" href="./styles/styles.css" </head>
<body>
<div class="container">
<div class="header">
<h2 class="text-muted brand" style="text-align: center">AulAPP</h2>
<nav class="padLeft">
<button type="button" class="btn btn-default btnLeft visible-xs pull-left"><a href="home.php"><span class="glyphicon bianco glyphicon-home"></a>
</button>
<button type="button" class="btn btn-default btnLeft visible-xs pull-right"><a href="php/logout.php"><span class="glyphicon bianco glyphicon-log-out"></a>
</button>
<ul class="nav nav-pills pull-right">
<li role="presentation" class="hidden-xs"><a href="home.php"><span class="glyphicon bianco glyphicon-home"></span>
<p class="bianco">Home</p>
</a>
</li>
<li role="presentation" class="hidden-xs"><a href="php/logout.php"><span class="glyphicon bianco glyphicon-log-out"></span><p class="bianco"> Logout</p> </a>
</li>
</ul>
</nav>
</div>
<div class="center-profile">
<div class="row">
<img class="img-circle" src="./img/ricalco-circle.png" style="height: 140px;">
</div>
<div class="row-marketing">
<h3><?php echo $_SESSION['email'] ?></h3>
</div>
<hr>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([["Data", "Punti"]<?php
$m = 0;
$p = 5;
$t = rand(3, 5) * rand(3, 5);
for ($i = 0; $i < $t; $i++) {
$m -= rand(500, 36000);
$p += rand(-1, 1);
if ($p < 0)
$p = -$p;
echo ", [new Date(".(time() - $m)."000), ".$p."]";
}
?>]);
var options = {
title: 'Punteggio',
hAxis: {title: 'Punti', titleTextStyle: {color: '#333'}},
vAxis: {minValue: 0}
};
var chart = new google.visualization.AreaChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
</script>
<div class="row-marketing">
<label class="lblPunti">Punti <?php echo $p ?></label>
</div>
<div class="row-marketing">
<center><div id="chart_div" style="width: 100%"></div></center>
</div>
<div class="row-marketing">
<table align="center" class="tblLikes">
<tr>
<th class="leftTh"><span class="glyphicon glyphicon-thumbs-up"></span><?php echo $t ?></th>
<th class="rightTh"><span class="glyphicon glyphicon-thumbs-down"></span><?php echo $t-$p ?></th>
</tr>
</table>
</div>
<footer class="footer">
<p>Brunella © Company 2014</p>
</footer>
</div>
</div>
<!-- /.container -->
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
</body>
</html>