-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadminMonth.html
More file actions
106 lines (97 loc) · 4.3 KB
/
adminMonth.html
File metadata and controls
106 lines (97 loc) · 4.3 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
<!DOCTYPE html>
<html>
<head>
<title>ParkBentley</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="./css/main.css" />
<link rel="stylesheet" href="./css/changeReservation.css" />
<link rel="stylesheet" href="./css/adminMonth.css" />
<link href='https://fonts.googleapis.com/css?family=Red Rose' rel='stylesheet'>
</head>
<body>
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap" rel="stylesheet">
<script type=text/javascript>
</script>
<nav class="loginText">
<li><a href="./login.html">Login</a></li>
<li><a href="./join.html">join</a></li>
</nav>
<nav class="navbar">
<div class="logo">
<a href="./index.html">Park Bentley</a>
</div>
<ul class="navbar_menu">
<li><a href="">서비스 이용</a>
<ul>
<li><a href="./makeReservation.html">예약하기</a></li>
<li><a href="./changeReservation.html">예약변경</a></li>
<li><a href="#">예약확인</a></li>
</ul>
</li>
<li><a href="">입출차 확인</a>
<ul>
<li><a href="./enterCar.html">입차하기</a></li>
<li><a href="./departCar.html">출차하기</a></li>
</ul>
</li>
<li><a href="">마이페이지</a>
<ul>
<li><a href="myrecord.html">사용 기록 조회</a></li>
<li><a href="charge.html">잔액 충전</a></li>
</ul>
</li>
<li><a href="">사용 통계 조회</a>
<ul>
<li><a href="adminMonth.html">월별 사용통계</a></li>
<li><a href="adminDay.html">일별 사용통계</a></li>
</ul>
</li>
</ul>
</nav>
<!-- 기본 테마 끝 -->
<div class="yellowBar">
<p class="yellowBarText">월별 사용 통계</p>
<h2 id="year">
날짜 선택 <select id="select_year"
onchange="javascript:pickMonthAdmin();"></select>년 <select id="select_month"
onchange="javascript:pickMonthAdmin();"></select> 월
</h2>
<button id="button" onclick="getMonthAdmin();">조회</button>
<h1 class="js-startDate" id="termDate"></h1>
</div>
<div class="js-pickDate" id="date">
</div>
<div class="yellowRoundBox">
<div class="bars">
<div id="bar-7"></div>
<div id="bar-8"></div>
<div id="bar-9"></div>
<div id="bar-10"></div>
<div id="bar-11"></div>
<div id="bar-12"></div>
</div>
</div>
<script src="./content/admin/pickMonthAdmin.js"></script>
<script src="./content//admin/getMonthAdmin.js"></script>
<script src="./content/admin/drawGraph.js"></script>
<script src="./content/graph/jquery.min.js" type="text/javascript"></script>
<script src="./content/graph/jqbar.js" type="text/javascript"></script>
<script type="text/javascript">
//안되면 여기는 가라치자 ^^
$(document).ready(function () {
$('button').click(function(){
//document.addEventListener("DOMContentLoaded", function($){
//label에 월, value에 값
//나의 생각은 bar-10에 현재 select 한 월을 넣고 이를 기준으로 +- 1씩해서 나머지 바를 채울 생각
//라벨을 함수로 채울 수 있는 방법... 지금 $ 이걸 쓰는 형식은 jQuery 문법이라 잘 모르겠다.. ㅠ
$('#bar-7').jqbar({ label: '3월', barColor: '#F5E1C2', value: 90, orientation: 'v' });
$('#bar-8').jqbar({ label: '4월', barColor: '#F5E1C2', value: 70, orientation: 'v' });
$('#bar-9').jqbar({ label: '5월', barColor: '#F5E1C2', value: 50, orientation: 'v' });
$('#bar-10').jqbar({ label: '6월', barColor: '#483F37', value: 90, orientation: 'v' });
$('#bar-11').jqbar({ label: '7월', barColor: '#F5E1C2', value: 70, orientation: 'v' });
$('#bar-12').jqbar({ label: '8월', barColor: '#F5E1C2', value: 50, orientation: 'v' });
})
});
</script>
</body>
</html>