-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_user_reservation.html
More file actions
262 lines (230 loc) · 8.63 KB
/
check_user_reservation.html
File metadata and controls
262 lines (230 loc) · 8.63 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<!DOCTYPE html>
<html>
<head>
<title>우리 마을 변호사</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Black+Han+Sans&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Jua&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Do+Hyeon&display=swap" rel="stylesheet">
<style>
#logo {
display: block;
}
a:link {
color: darkgray;
text-decoration: none;
}
a:visited {
color: darkgray;
text-decoration: none;
}
#menubar {
background: rgb(163, 213, 201);
}
#menubar ul {
margin: 0;
padding: 3;
width: 95%;
}
#menubar ul li {
display: inline-block;
list-style-type: none;
padding: 6px 20px;
}
#menubar ul li a {
color: rgb(68, 68, 68);
text-decoration: none;
font-family: 'Black Han Sans', sans-serif;
font-size: 125%;
}
#menubar ul li a:hover {
color: rgb(242, 146, 72)
}
#menubar li.menu_lawyer {
float: right;
margin-left: -1px;
z-index: 1;
}
#title_ {
border: 5px;
width: 100%;
height: 100%;
font-size: 30px;
text-align: center;
font-family: 'Do Hyeon', sans-serif;
}
#name {
width: 60%;
height: 100%;
margin-left: auto;
margin-right: auto;
text-align: center;
margin-top: 50px;
margin-bottom: 30px;
font-family: 'Do Hyeon', sans-serif;
font-size: 30px;
}
#name thead {
background-color: azure;
}
#data {
width: 60%;
height: 100%;
margin-left: auto;
margin-right: auto;
font-size: 20px;
font-family: 'Do Hyeon', sans-serif;
}
.msg {
border: 1px solid;
padding: 10px;
width: 60%;
height: 100%;
margin-left: auto;
margin-right: auto;
}
</style>
</head>
<body>
<header>
<div>
<a id="logo" href="#none" onclick="move_home()">
<center><img src="img/main_logo.png" width="600" height="200"></center>
</a>
</div>
<br><br><br>
<nav id="menubar">
<ul>
<!-- 변호사 검색 버튼 -->
<li><a href="#none" onclick="move_search()">변호사 검색 & 상담 예약 신청</a></li>
<!-- 사이버법률상담 버튼 -->
<li><a href="#none" onclick="move_cyber()">사이버법률상담</a></li>
<!-- 이용 안내 버튼 -->
<li><a href="#none" onclick="move_howtouse()">이용 안내</a></li>
<li><a href="#none" onclick="move_blog()">마을변호사 소식</a></li>
<li><a href="#none" onclick="move_qna()">자주묻는 질문</a></li>
<li class="menu_lawyer"><a href="#none" onclick="move_res()" style="color: rgb(242, 146, 72);">상담신청 게시판</a></li>
<li class="menu_lawyer"><a href="./home.html">로그아웃</a></li>
<li class="menu_lawyer"><a id="lawyer_name">땡땡땡</a></li>
</ul>
</nav>
<br>
<br>
</header>
<!-- 예약 신청 목록 -->
<section>
<table id="name" border="1">
<thead>
<tr>
<th id="user_name" width="50px">이름</td>
<th id="phone" width="40px">전화번호</td>
<th id="day" width="30px">원하는 상담 날짜</td>
</tr>
</thead>
<tbody id="data" class="report data">
</tbody>
</table>
<h3 id="title_"></h3>
<div class="msg">
안녕하세요.<br>
<br>
초상권 침해 관련하여 억울한 일을 겪어 변호사님과 상담하고 싶습니다.<br>
<br>
카페 내 활동중 채팅으로 분란이 발생하여 채팅 내용 캡쳐 후 카페 게시글로 게시를 했습니다.<br>
채팅 내용 캡쳐본에 상대방의 프로필 사진에 본인의 사진이 게시되어 있어 초상권 침해로 신고한다고 합니다.<br>
그 점에 무지했던 저는 여러번 사과 드렸습니다<br>
혹시 초상권 침해로 신고를 당하면 벌금이 어느정도 나올까요?<br>
<br>
글로 표현하는데에 어려움이 있어 간략하게 상황만 설명했습니다.<br>
변호사님과 직접 만나 상담을 받고 싶어 해당 날짜에 예약 신청합니다.<br>
<br>
연락 기다리겠습니다.
</div>
</section>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script type="text/javascript">
/* 로그인 정보 가져오기 */
var getParameter = function (param) {
var returnValue;
var url = location.href;
var parameters = (url.slice(url.indexOf('?') + 1, url.length)).split('&');
for (var i = 0; i < parameters.length; i++) {
var varName = parameters[i].split('=')[0];
if (varName.toUpperCase() == param.toUpperCase()) {
returnValue = parameters[i].split('=')[1];
return decodeURIComponent(returnValue);
}
}
};
$(document).ready(function () {
var day = getParameter('day');
var name = getParameter('writer');
var title = getParameter('title');
var lawyer_name = getParameter('index');
change_name(lawyer_name);
//이전 페이지로부터 "day, name, title" 받음
console.log('day : ' + day);
console.log('name : ' + name);
console.log('title : ' + title);
window.onload = function () {
init_user_info(day, name, title);
document.getElementById('title_').innerText = '[ ' + title + ' ]';
}
});
/* 테이블 구성 */
function init_user_info(day, name, title) {
var list = [
{ user_name: name, phone: "010-4332-5778", day: day },
];
tagParsing(list, true);
}
function tagParsing(obj, init) {
var len = obj.length;
var tag = '';
for (i = 0; i < obj.length; i++) {
tag += "<tr><td class='user_name'>" + obj[i].user_name + "</td>"
+ "<td class='phone'>" + obj[i].phone + "</td>"
+ "<td class='day'>" + obj[i].day + "</td></tr>";
}
document.getElementById("data").innerHTML = tag;
}
function change_name(name) {
var user = document.getElementById("lawyer_name");
if (name != undefined) {
user.innerText = name + " 변호사";
}
}
function move_res()
{
var name= getParameter('index');
window.location.href = "reservation_list.html?index=" + name;
}
function move_search() {
var name = getParameter('index');
window.location.href = "lawyer_search_lawyer.html?index=" + name;
}
function move_cyber() {
var name = getParameter('index');
window.location.href = "cyber_qa_lawyer.html?index=" + name;
}
function move_home(){
var name = getParameter('index');
window.location.href = "lawyer_home.html?index="+name;
}
function move_blog() {
var name = getParameter('index');
window.location.href = "blog_lawyer.html?index=" + name;
}
function move_howtouse() {
var name = getParameter('index');
window.location.href = "howtouse_lawyer.html?index=" + name;
}
function move_qna() {
var name = getParameter('index');
window.location.href = "qna_lawyer.html?index=" + name;
}
</script>
</body>
</html>