-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.php
More file actions
109 lines (97 loc) · 3.22 KB
/
home.php
File metadata and controls
109 lines (97 loc) · 3.22 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?php
session_start();
include_once 'Config.php';
if (!isset($_SESSION['user'])) {
header("Location: index.php");
}
$user = $_SESSION['user'];
$sql = "select * from tbl_login where username = '$user'";
$stmt = $pdo->query($sql);
$row = $stmt->fetchObject();
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RIN- Career Ready Academy</title>
<link href="css/reset.css" rel="stylesheet" type="text/css">
<link href="css/base.css" rel="stylesheet" type="text/css">
<link href="css/style.css" rel="stylesheet" type="text/css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
</head>
<body>
<div class="section toparea">
<div class="wrapper">
<div class="columns branding">
<div class="tagline"><img src="images/rin.png" width="80" height="65"></div>
</div>
<div class="columns user-area">
<div class="logged-name" style="margin-top: 20px;">Welcome <?php echo $row->username; ?> <a
href="logout.php?logout">Logout</a></div>
</div>
</div>
</div>
<div class="main-nav">
<ul id="accordion" class="accordion">
<li class="default open">
<div class="link"><a href="home.php">Dashboard</a></div>
</li>
<li>
<div class="link"><a href="Demographic.php">Demographic</a></div>
</li>
<li>
<div class="link"><a href="Campaign.php">Campaign</a></div>
</li>
<li>
<div class="link"><a href="System.php">System</a></div>
</li>
</ul>
</div>
<div class="content-area">
<h1>dashboard</h1>
<div class="row ">
<div class="twelve columns card">
<div class="card-content">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>Total registered subscriber</td>
<td>Total completed</td>
<td>Total minute completed</td>
</tr>
<tr>
<td><h4 id="totalRegistered">0</h4></td>
<td><h4 id="totalLesson">0</h4></td>
<td><h4 id="totalMinuteCompleted">0</h4></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div style="height: 200px;"></div>
</div>
<div class="section footer">
<div class="wrapper">
<div class="columns copyright">
<p>RIN- Career Ready Academy | All Rights Reserved | 2016 | Powered by <span>SSD-Tech</span></p>
</div>
</div>
</div>
</body>
<script>
$(document).ready(function () {
var urlHit = "HomeDBApi.php";
$.ajax({
url: urlHit,
success: function (result) {
var result = jQuery.parseJSON(result);
$("#totalRegistered").html(result['totalRegistered']);
$("#totalLesson").html(result["totalLesson"]);
$("#totalMinuteCompleted").html(result["totalMinuteCompleted"]);
}
});
})
</script>
</html>