-
Notifications
You must be signed in to change notification settings - Fork 0
/
member_form.php
241 lines (224 loc) Β· 8.97 KB
/
member_form.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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>λ©λλ‘±λν</title>
<link rel="stylesheet" href="css/main1.css">
<link rel="stylesheet" type="text/css" href="./css/common.css">
<link rel="stylesheet" type="text/css" href="./css/member.css">
<script>
function check_input()
{
if (!document.member_form.id.value) {
alert("μμ΄λλ₯Ό μ
λ ₯νμΈμ!");
document.member_form.id.focus();
return;
}
if (!document.member_form.pass.value) {
alert("λΉλ°λ²νΈλ₯Ό μ
λ ₯νμΈμ!");
document.member_form.pass.focus();
return;
}
if (!document.member_form.pass_confirm.value) {
alert("λΉλ°λ²νΈνμΈμ μ
λ ₯νμΈμ!");
document.member_form.pass_confirm.focus();
return;
}
if (!document.member_form.name.value) {
alert("μ΄λ¦μ μ
λ ₯νμΈμ!");
document.member_form.name.focus();
return;
}
if (!document.member_form.email1.value) {
alert("μ΄λ©μΌ μ£Όμλ₯Ό μ
λ ₯νμΈμ!");
document.member_form.email1.focus();
return;
}
if (!document.member_form.email2.value) {
alert("μ΄λ©μΌ μ£Όμλ₯Ό μ
λ ₯νμΈμ!");
document.member_form.email2.focus();
return;
}
if (document.member_form.pass.value !=
document.member_form.pass_confirm.value) {
alert("λΉλ°λ²νΈκ° μΌμΉνμ§ μμ΅λλ€.\nλ€μ μ
λ ₯ν΄ μ£ΌμΈμ!");
document.member_form.pass.focus();
document.member_form.pass.select();
return;
}
if (!document.member_form.univ.value) {
alert("λνκ΅λͺ
μ μ
λ ₯νμΈμ!");
document.member_form.univ.focus();
return;
}
if (!document.member_form.fac.value) {
alert("νλΆλ₯Ό μ
λ ₯νμΈμ!");
document.member_form.fac.focus();
return;
}
if (!document.member_form.dpt.value) {
alert("νκ³Όλ₯Ό μ
λ ₯νμΈμ!");
document.member_form.dpt.focus();
return;
}
if (!document.member_form.birth.value) {
alert("μλ
μμΌμ μ
λ ₯νμΈμ!");
document.member_form.birth.focus();
return;
}
if (!document.member_form.gen.value) {
alert("μ±λ³μ μ
λ ₯νμΈμ!");
document.member_form.gen.focus();
return;
}
if (!document.member_form.stu_num.value) {
alert("νλ²μ μ
λ ₯νμΈμ!");
document.member_form.stu_num.focus();
return;
}
if (!document.member_form.phone_num.value) {
alert("μ°λ½μ²λ₯Ό μ
λ ₯νμΈμ!");
document.member_form.phone_num.focus();
return;
}
document.member_form.submit();
}
function reset_form() {
document.member_form.id.value = "";
document.member_form.pass.value = "";
document.member_form.pass_confirm.value = "";
document.member_form.name.value = "";
document.member_form.email1.value = "";
document.member_form.email2.value = "";
document.member_form.univ.value = "";
document.member_form.fac.value = "";
document.member_form.dpt.value = "";
document.member_form.birth.value = "";
document.member_form.stu_num.value ="";
document.member_form.phone_num.value = "";
document.member_form.gen.value = "";
document.member_form.id.focus();
return;
}
function check_id() {
window.open("member_check_id.php?id=" + document.member_form.id.value,
"IDcheck",
"left=700,top=300,width=350,height=200,scrollbars=no,resizable=yes");
}
</script>
</head>
<body>
<header>
<?php include "header.php";?>
</header>
<section>
<div id="main_img_bar">
<img src="./img/main_img.png">
</div>
<div id="main_content">
<div id="join_box">
<form name="member_form" class="join_submit" method="post" action="member_insert.php">
<h2>νμ κ°μ
</h2>
<div class="form id">
<div class="col1">μμ΄λ</div>
<div class="col2">
<input type="text" name="id" onfocus="this.value='';" value="μμ΄λλ₯Ό μ
λ ₯νμΈμ." style="color: #808080;">
</div>
<div class="col3">
<a href="#"><img src="./img/check_id.gif"
onclick="check_id()"></a>
</div>
</div>
<div class="clear"></div>
<div class="form">
<div class="col1">λΉλ°λ²νΈ</div>
<div class="col2">
<input type="password" name="pass">
</div>
</div>
<div class="clear"></div>
<div class="form">
<div class="col1">λΉλ°λ²νΈ νμΈ</div>
<div class="col2">
<input type="password" name="pass_confirm">
</div>
</div>
<div class="clear"></div>
<div class="form">
<div class="col1">μ΄λ¦</div>
<div class="col2">
<input type="text" name="name" onfocus="this.value='';" value="μ΄λ¦μ μ
λ ₯νμΈμ." style="color: #808080;">
</div>
</div>
<div class="clear"></div>
<div class="form email">
<div class="col1">μ΄λ©μΌ</div>
<div class="col2">
<input type="text" name="email1">@<input type="text" name="email2">
</div>
</div>
<div class="clear"></div>
<div class="form">
<div class="col1">λνκ΅λͺ
</div>
<div class="col2">
<input type="text" name="univ" onfocus="this.value='';" value="λνκ΅λͺ
μ μ
λ ₯νμΈμ." style="color: #808080;">
</div>
</div>
<div class="clear"></div>
<div class="form">
<div class="col1">νλΆ</div>
<div class="col2">
<input type="text" name="fac" onfocus="this.value='';" value="νλΆλ₯Ό μ
λ ₯νμΈμ." style="color: #808080;">
</div>
</div>
<div class="clear"></div>
<div class="form">
<div class="col1">νκ³Ό</div>
<div class="col2">
<input type="text" name="dpt" onfocus="this.value='';" value="νκ³Όλ₯Ό μ
λ ₯νμΈμ." style="color: #808080;">
</div>
</div>
<div class="clear"></div>
<div class="form">
<div class="col1">μλ
μμΌ</div>
<div class="col2">
<input type="text" name="birth" onfocus="this.value='';" value="μλ
μμΌμ μ
λ ₯νμΈμ. ex) 210101" style="color: #808080;">
</div>
</div>
<div class="clear"></div>
<div class="form">
<div class="col1">μ±λ³</div>
<div class="col2">
<input type="text" name="gen" onfocus="this.value='';" value="μ±λ³μ μ
λ ₯νμΈμ. ex) λ¨ λλ μ¬" style="color: #808080;">
</div>
</div>
<div class="clear"></div>
<div class="form">
<div class="col1">νλ²</div>
<div class="col2">
<input type="text" name="stu_num" onfocus="this.value='';" value="νλ²μ μ
λ ₯νμΈμ. ex) 20210101" style="color: #808080;">
</div>
</div>
<div class="clear"></div>
<div class="form">
<div class="col1">μ°λ½μ²</div>
<div class="col2">
<input type="text" name="phone_num" onfocus="this.value='';" value="μ°λ½μ²λ₯Ό μ
λ ₯νμΈμ. ex) 010-1234-5678" style="color: #808080;">
</div>
</div>
<div class="clear"></div>
<div class="bottom_line"> </div>
<div class="buttons">
<img style="cursor:pointer" src="./img/button_save.gif" onclick="check_input();">
<img id="reset_button" style="cursor:pointer" src="./img/button_reset.gif"
onclick="reset_form();">
</div>
</form>
</div> <!-- join_box -->
</div> <!-- main_content -->
</section>
<footer>
<?php include "footer.php";?>
</footer>
</body>
</html>