-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
105 lines (105 loc) · 3.15 KB
/
index.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
<?php
require_once(__DIR__.'/../framework/framework.php');
if (!Utility::isLoggedIn()) {
header("Location: /error.php");
} else {
?>
<!DOCTYPE html>
<html>
<head>
<?php head('브리드 복싱 & 크로스핏 - 관리자메뉴',
array('/common/font-awesome/css/font-awesome.css',
'/common/css/style.css','/common/css/style-responsive.css',
'/admin/css/dashboard.css'));?>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!--header start-->
<?php adminHeader(); ?>
<!--header end-->
<!--sidebar start-->
<?php adminSidebar("index"); ?>
<!--sidebar end-->
<section id='main-content'>
<section class='wrapper'>
<div class="col-lg-12 mt">
<div class="row">
<div class = "col-md-3 col-sm-6 mb">
<div class="white-panel pn">
<div class = "white-header">
<h5>체육관 회원수</h5>
</div>
<h1><i class="icon fa fa-users"></i></h1>
<h3><?=AdminInformation::pageMemberCount()?>명</h3>
</div>
</div>
<div class = "col-md-3 col-sm-6 mb">
<div class="white-panel pn">
<div class = "white-header">
<h5>체육관 오늘 출석</h5>
</div>
<h1><i class="icon fa fa-calendar-check-o"></i></h1>
<h3><?=AdminInformation::attendanceCount()?>명</h3>
</div>
</div>
<div class = "col-md-3 col-sm-6 mb">
<div class="white-panel pn">
<div class = "white-header">
<h5>최근 웹페이지 가입자 (1개월)</h5>
</div>
<h1><i class="icon fa fa-user-plus"></i></h1>
<h3><?=AdminInformation::recentlyJoinedMember()?>명</h3>
</div>
</div>
<div class = "col-md-3 col-sm-6 mb">
<div class="white-panel pn">
<div class = "white-header">
<h5>웹페이지 방문자 수 (오늘)</h5>
</div>
<h1><i class="icon fa fa-bar-chart-o"></i></h1>
<h3><?=VisitCountDB::showTodayVisitRecord()?>명</h3>
</div>
</div>
</div>
</div>
<div class="col-lg-12">
<h3>이번 주 만료 예정자</h3>
<div class="content-panel">
<table class="table table-striped">
<thead>
<tr>
<th>이름</th>
<th>등록일</th>
<th>마감일</th>
<th>전화</th>
</tr>
</thead>
<tbody>
<?php
$endedMembers = AdminInformation::endedMembers();
foreach ($endedMembers as $endedMember) { ?>
<tr>
<td><a href="/admin/member/profile.php?type=gym&barcode=<?=$endedMember['barcode']?>">
<?=$endedMember['name']?></a>
</td>
<td><?=$endedMember['registerDate']?></td>
<td><?=$endedMember['expireDate']?></td>
<td><?=$endedMember['phone']?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</section>
</section>
<script src="/common/js/jquery-1.11.1.min.js"></script>
<script src="/common/js/bootstrap.min.js"></script>
<script src="/common/js/jquery.dcjqaccordion.2.7.js"></script>
<script src="/common/js/common-scripts.js"></script>
</body>
</html>
<?php }?>