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
|
<? include("../../manage/category/cscommon.php"); $qry = " SELECT a.sa_name, b.cus_code, b.cus_WebID FROM saupja a left join custom b on (a.sa_code = b.sa_code) WHERE a.sa_code='$code1' and b.cus_WebID LIKE '$id'"; $result = mysql_query($qry);
if( mysql_num_rows($result) > 0){ $row = mysql_fetch_array($result); }
?> <html> <head> <title>¾ÆÀ̵ð üũ</title> <meta http-equiv="Content-Type" content="text/html; charset=euc-kr"> <style type=text/css> table { font-color;#000000;font-size:9pt } .td {BACKGROUND-COLOR:#C1CDD8} .nontd {BACKGROUND-COLOR:#ffffff} </style> </head> <script> function useMemberId(s){ opener.memberJoin.cus_WebID.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 false; }
String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/g, ""); } </script> <body bgcolor="#FFFFFF" text="#000000"> <table width="400" border="0" cellspacing="1" cellpadding="5" bgcolor="#E3E3E3"> <tr> <td bgcolor="#F7F7F7"> <table width="100%" border="0" cellspacing="0" cellpadding="5"> <tr> <td bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#EFEFEF"> <tr> <td bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="40" valign="top"><img src="idcheck_01.gif" width="133" height="37"></td> </tr> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <? $code1 = $sa_code; if(!$id){ echo(" <tr> <td width='25'> </td> <td><img src='icon.gif' width='11' height='9'> </td> <td width='25'> </td> </tr> ");
} else if(!$row[cus_WebID]){ echo(" <tr> <td width='25'> <input name='code' type='text'></td> <td><img src='icon.gif' width='11' height='9'> <span class='line'>½ÅûÇϽоÆÀ̵ð [ $id ]Àº »ç¿ëÀÌ °¡´ÉÇÑ ¾ÆÀ̵ðÀÔ´Ï´Ù.[ $code ]<br> <font color='#FF3366'>$id</font> ÀÌ ¾ÆÀ̵𸦠»ç¿ëÇϽðڽÀ´Ï±î? <input type='button' value=' Yes ' onClick=\"useMemberId('$id');\"style='cursor:hand'> </span></td> <td width='25'> </td> </tr> "); }else{ echo(" <tr> <td width='25'> <input name='code' type='text'></td> <td><img src='icon.gif' width='11' height='9'> <span class='line'>½ÅûÇϽоÆÀ̵ð [ $id ]Àº »ç¿ëÁßÀÎ ¾ÆÀ̵ðÀÔ´Ï´Ù. [ $code ]<br> <font color='#FFFFFF'></font> </span></td> <td width='25'> </td> </tr>
"); } ?> <tr> <td width="25" height="10"></td> <td height="10"></td> <td width="25" height="10"></td> </tr> <tr> <td width="25"> </td> <td class="line"> <table width="100%" border="0" cellspacing="1" cellpadding="5" bgcolor="#CCCCCC"> <tr> <td bgcolor="#F5F5F5" class="line"> <FORM METHOD=post name='idcheck' ACTION="<?=$PHP_SELF?>" target="_self" onSubmit="check_id()"> <table width="100%" border="0" cellspacing="0" cellpadding="3"> <tr> <td class="line" align="center"> ¾ÆÀ̵𸦠ÀÔ·ÂÇϽŠÈÄ Áߺ¹Ã¼Å© ¹öưÀ» ´·¯ÁÖ¼¼¿ä.<br> ¾ÆÀ̵ð´Â ¿µ¹®/¼ýÀÚ Á¶ÇÕÀ¸·Î 4~12 ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä. <input type='text' name='code' value='<?=$sa_code?>'> </td> </tr> <tr> <td align="center"> <input type="Text" name="id" style="width:130; height:19; border-style:solid; background-color=#FFFFFF; border-color:#CCCCCC; border-width:1; margin-top:2; font-size:12px; color:#333333;" size="10" maxlength='12'> <input type='image' src="idcheck_bt.gif" width="69" height="19" align="absmiddle" > </td> </tr> </FORM> </table> </td> </tr> </table> </td> <td class="line" width="25"> </td> </tr> <tr> <td width="25"> </td> <td> </td> <td width="25"> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </body> </html>
|