-
Notifications
You must be signed in to change notification settings - Fork 5
/
home.php
120 lines (111 loc) · 3.34 KB
/
home.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
<?php
require_once('funs.php');
session_start();
check_session();
$session_name = $_SESSION['username'];
$row = array();
$row = get_member_data($session_name);
$id = $row['id'];
$name = $row['name'];
$role = $row['role'];
$pic = $row['pic'];
$last_login = $row['last_login'];
$last_login = date('jS M Y H:i', strtotime($last_login));
$total_members = get_all_status();
$core_members = get_vip_status();
$total_sessions = total_sessions();
$completed_sessions = completed_sessions();
$all_posts = get_all_posts();
starter($id,$name,$role,$pic,$last_login,$total_members,$core_members,$total_sessions,$completed_sessions);
?>
<div class="row">
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-home" aria-hidden="true"></i></a></li>
<li class="active">Dashboard</li>
</ol>
</div><!--/.row-->
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Dashboard</h1>
</div>
</div><!--/.row-->
<div class="row">
<div class="col-xs-12 col-md-6 col-lg-3">
<div class="panel panel-blue panel-widget ">
<div class="row no-padding">
<div class="col-sm-3 col-lg-5 widget-left">
<i class="fa fa-user fa-4x" aria-hidden="true"></i>
</div>
<div class="col-sm-9 col-lg-7 widget-right">
<div class="large"><?php echo $total_members; ?></div>
<div class="text-muted">Total Members</div>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 col-lg-3">
<div class="panel panel-orange panel-widget">
<div class="row no-padding">
<div class="col-sm-3 col-lg-5 widget-left">
<i class="fa fa-user-secret fa-4x" aria-hidden="true"></i>
</div>
<div class="col-sm-9 col-lg-7 widget-right">
<div class="large"><?php echo $core_members; ?></div>
<div class="text-muted">Core Members</div>
</div>
</div>
</div>
</div>
<a href="schedule.php">
<div class="col-xs-12 col-md-6 col-lg-3">
<div class="panel panel-teal panel-widget">
<div class="row no-padding">
<div class="col-sm-3 col-lg-5 widget-left">
<i class="fa fa-calendar fa-4x" aria-hidden="true"></i>
</div>
<div class="col-sm-9 col-lg-7 widget-right">
<div class="large"><?php echo $total_sessions; ?></div>
<div class="text-muted">Total Sessions</div>
</div>
</div>
</div>
</div>
</a>
<a href="blog-home.php">
<div class="col-xs-12 col-md-6 col-lg-3">
<div class="panel panel-red panel-widget">
<div class="row no-padding">
<div class="col-sm-3 col-lg-5 widget-left">
<i class="fa fa-pencil fa-4x" aria-hidden="true"></i>
</div>
<div class="col-sm-9 col-lg-7 widget-right">
<div class="large"><?php echo $all_posts; ?></div>
<div class="text-muted">Blog Posts</div>
</div>
</div>
</div>
</div>
</a>
</div><!--/.row-->
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Recent Blog Posts</h1>
</div>
</div><!--/.row-->
<div class="row">
<div class="col-lg-12">
<?php show_home_posts(); ?>
</div>
</div><!--/.row-->
<script>
$(document).ready(function()
{
$('.menu').on("click",".menu",function(e){
e.preventDefault(); // cancel click
var page = $(this).attr('href');
$('.menu').load(page);
});
});
</script>
<?php
at_bottom();