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
|
<?php include_once("../../_common.php"); ?> <? include("../common.php");
if (!isset($id)) $id = ""; //20130902 ¼öÁ¤ if (!isset($row)) $row = ""; //20130906 ¼öÁ¤
$qry = " select * from member WHERE Mid = '$id' "; $result = mysql_query($qry);
if( mysql_num_rows($result) > 0){ $row = mysql_fetch_array($result); } if(!isset($row['Mid'])) $row['Mid'] = ""; ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=euc-kr"> <link href="../../css/import.css" rel="stylesheet" type="text/css"> <title>¾ÆÀ̵ð üũ</title> <style> .idCheckContents{ width:445px; height:375px; border:5px solid #777; background:url('../images/member/login_popup.png') no-repeat top right; } .idCheckContents h2{ padding-top:20px; color:#231f20; font-size:35px; line-height:110%; text-align:center; } .idCheckContents h2 span{ display:block; padding:5px 0 10px; width:100%; color:#666; font-size:13px; line-height:110%; overflow:hidden; } .idCheckSection{ width:400px; margin:0 auto; border-top:2px solid #231f20; }
.idCheck{ height:80px; padding:15px 0; background:#f8f8f8; } .idCheck h3{ height:32px; font-size:13px; line-height:16px; text-align:center; font-weight:600; } .idCheck form{ margin:10px 0 0 40px; } .idCheck form input[type=text]{ padding:0 3px; width:210px; height:34px; line-height:34px; border:1px solid #ccc; } .idCheck form input[type=image]{ margin-left:10px; vertical-align:middle; }
.idUse{ height:115px; padding:15px 0; } .idUse h3{ height:32px; font-size:13px; line-height:16px; text-align:center; font-weight:600; } .idUse p.checkText{ margin:15px 0; font-size:13px; line-height:15px; text-align:center; font-weight:600; } .idUse p.useBtn{ margin:0 auto; width:100px; } </style> </head>
<body> <div class="idCheckContents"> <h2>¾ÆÀ̵ð Áߺ¹È®ÀÎ<span>»ç¿ëÇÏ½Ç ¾ÆÀ̵𸦠ÀÔ·ÂÇØ ÁÖ¼¼¿ä.</span></h2>
<div class="idCheckSection">
<? if(!$id){ echo(" <div></div> ");
} else if(!$row['Mid']){ echo(" <div class='idUse'> <h3>½ÅûÇϽоÆÀ̵ð <span class='orange'><b>[ $id ]</b></span>Àº<br /> »ç¿ëÀÌ °¡´ÉÇÑ ¾ÆÀ̵ðÀÔ´Ï´Ù.</h3>
<p class='checkText'>ÀÌ ¾ÆÀ̵𸦠»ç¿ëÇϽðڽÀ´Ï±î?</p> <p class='useBtn'><input type='image' src='../../images/common/use_btn.png' alt='»ç¿ëÇϱâ' onClick=\"useMemberId('$id');\"></p> </div> "); } else { echo("
<div class='idUse'> <h3>½ÅûÇϽоÆÀ̵ð <span class='orange'><b>[ $id ]</b></span>Àº<br /> »ç¿ëÁßÀÎ ¾ÆÀ̵ðÀÔ´Ï´Ù.</h3> <p class='checkText'>´Ù¸¥ ¾ÆÀ̵𸦠ÀÔ·ÂÇØ ÁÖ¼¼¿ä.</p> </div>
"); } ?> <div class="idCheck"> <h3>¾ÆÀ̵𸦠ÀÔ·ÂÇϽŠÈÄ Áߺ¹Ã¼Å© ¹öưÀ» ´·¯ÁÖ¼¼¿ä.<br />¾ÆÀ̵ð´Â ¿µ¹®/¼ýÀÚ Á¶ÇÕÀ¸·Î 4~12 ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.</h3> <form method="post" name='idcheck' action="<?=$PHP_SELF?>" onSubmit="return check_id()"> <input type="text" name="id" size="10" maxlength='12'> <input type='image' src="../../images/common/check_btn.png" alt="Áߺ¹È®ÀÎ"> </form> </div><!-- //idCheck -->
</div><!-- //idCheckSection -->
</div><!-- //idCheckContents -->
</body> </html>
<script> function useMemberId(s){ opener.memberJoin.Mid.value = s; self.close(); }
function check_id(){ var memid = idcheck.id.value.trim(); if(memid == ""){ alert("* ¾ÆÀ̵𸦠ÀÔ·ÂÇØÁÖ¼¼¿ä."); idcheck.id.focus(); return false; }
var pattern0 = /(^[a-zA-Z]+$)/; if (!pattern0.test(memid.substring(0,1))){ alert("¾ÆÀ̵ð ù±ÛÀÚ´Â ¿µ¹®À̾î¾ßÇÕ´Ï´Ù."); idcheck.id.focus(); return false; }
if(memid.length < 4 || memid.length > 12){ alert("¾ÆÀ̵ð´Â 4 ~ 12 ÀÚ¸®·Î ÇϼžßÇÕ´Ï´Ù."); idcheck.id.focus(); return false; }
var pattern1 = /(^([a-z0-9]+)([a-z0-9_]+$))/; if (!pattern1.test(memid)){ alert("¾ÆÀ̵ð´Â ¿µ¼Ò¹®ÀÚ, ¼ýÀÚ, _ ¸¸ °¡´ÉÇÕ´Ï´Ù."); idcheck.id.focus(); return false; } return true; }
String.prototype.trim = function(){ return this.replace(/(^\s*)|(\s*$)/g, ""); } </script>
|