-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathread_users_writing.html
More file actions
259 lines (217 loc) · 7.86 KB
/
read_users_writing.html
File metadata and controls
259 lines (217 loc) · 7.86 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
<!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_user {
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;
}
#menubar li.user {
float: right;
margin-left: -1px;
z-index: 1;
}
</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()"style="color: rgb(242, 146, 72);">변호사 검색 & 상담 예약 신청</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="user"><a href="./home.html">로그아웃</a></li>
<li class="user"><a id="user_name">땡땡땡</a></li>
</ul>
</nav>
<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 id="msg_"></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 () {
window.onload = function () {
var writer_name_writed = getParameter('writer_name');
var title_writed = getParameter('title');
var phone_writed = getParameter('phone');
var msg_writed = getParameter('msg');
var date_writed = getParameter('date');
// console.log(title_writed);
// console.log(phone_writed);
// console.log(msg_writed);
init_user_info(date_writed, writer_name_writed, title_writed, phone_writed);
change_name(writer_name_writed);
document.getElementById('title_').innerText = '[ ' + title_writed + ' ]';
document.getElementById('msg_').innerText = msg_writed;
}
});
/* 테이블 구성 */
function init_user_info(day, name, title, phone) {
var list = [
{ user_name: name, phone: phone, 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 movePage(day, writer, title) {
window.location.href = "check_user_reservation.html?day=" + day + "&writer=" + writer + "&title=" + title;
}
function move_search() {
var name = getParameter('writer_name');
window.location.href = "lawyer_search.html?index=" + name;
}
function move_cyber() {
var name = getParameter('writer_name');
window.location.href = "cyber_qa_user.html?index=" + name;
}
function move_home() {
var name = getParameter('writer_name');
window.location.href = "user_home.html?index=" + name;
}
function move_blog() {
var name = getParameter('writer_name');
window.location.href = "blog_user.html?index=" + name;
}
function move_howtouse() {
var name = getParameter('writer_name');
window.location.href = "howtouse_user.html?index=" + name;
}
function move_qna() {
var name = getParameter('writer_name');
window.location.href = "qna_user.html?index=" + name;
}
function change_name(name) {
var user = document.getElementById("user_name");
if (name != undefined) {
user.innerText = name + " 님";
}
}
</script>
</body>
</html>