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
|
<?php include_once("./_common.php"); include_once($j3_path."/header.sub.php"); ?> <div id="wrap"> <!-- 상단메뉴고정 --> <header class="relative height40 align_c gray_line_b bg_white"> <h1 class="l_height40 txt17">검색</h1> <a href="<?php echo $j3_shop_url;?>" class="absolute ab_top_left block p5 box30"><img src="<?php echo $j3_imgm_url;?>/ico_back.png" alt="이전" class="box_full"></a> </header> <!-- //상단메뉴고정 -->
<div id="container">
<div class="m15 gray_line"> <style> .tab_nav .on {color:#fff;font-weight:600;background:#00bbb6;} </style> <form name='id_pw_form' id='id_pw_form' method='get' onsubmit="return false;"> <input type='hidden' name='mode' value=''> <ul class="tab_nav"> <a rel="tab1" value="1" class="on float_l width_50 height40 l_height40 gray2 txt14 align_c bg_gray">아이디찾기</a> <a rel="tab2" value="2" class="float_l width_50 height40 l_height40 gray2 txt14 align_c bg_gray">비밀번호찾기</a> </ul> <div id="item_tab1" class="tab_cont bg_white" style="display:block;"> <fieldset class="p20"> <legend class="screen_out">회원로그인</legend> <dl class="mb5"> <dt class="height24 txt14 align_l bold l_height24">이름(대표자명)</dt> <dd><input type="text" name='id_ceo_name' class="pl10 width_96 height40 gray_line"></dd> </dl> <dl> <dt class="height24 txt14 align_l bold l_height24">이메일</dt> <dd><input type="text" name='id_email' class="pl10 width_96 height40 gray_line"></dd> </dl>
<input type="button" value="아이디 찾기" class="mt15 width_full height50 white bold none_line bg_custom2 pointer login_btn" onclick="id_find()";> </fieldset> </div> <div id="item_tab2" class="tab_cont bg_white" style="display:none;"> <fieldset class="p20"> <legend class="screen_out">회원로그인</legend> <dl class="mb5"> <dt class="height24 txt14 align_l bold l_height24">아이디</dt> <dd><input type="text" name='pw_login_id' class="pl10 width_96 height40 gray_line"></dd> </dl> <dl> <dt class="height24 txt14 align_l bold l_height24">이메일</dt> <dd><input type="text" name='pw_email' class="pl10 width_96 height40 gray_line"></dd> </dl>
<input type="button" value="비밀번호 찾기" class="mt15 width_full height50 white bold none_line bg_custom2 pointer login_btn" onclick="pw_find()";> </fieldset> </div> </form> </div>
<script> $(function(){ $(".tab_nav a").click(function () { var tab_id = $(this).attr("value"); $(".tab_cont").hide(); $("#item_tab"+tab_id).show(); });
if(''!=''){ show_next_tab(''); }
$(".tab_nav a").click(function(){ $(".tab_nav a").removeClass("on"); $(this).addClass("on").css("border-bottom","1px solid #fff"); }); }); function show_next_tab(v){ $(".tab_cont").hide(); $("#item_tab"+v).show(); $("html,body").animate({scrollTop:0},100); }
function id_find(){ // 아이디 찾기 $form_obj = $("#id_pw_form"); if($form_obj.find("input[name='id_ceo_name']").val()==''){ alert("이름(대표자명)을 입력하세요."); return; } if($form_obj.find("input[name='id_email']").val()==''){ alert("이메일을 입력하세요."); return; }
$form_obj.find("input[name='mode']").val('id_find'); form_data = $form_obj.serialize(); $.ajax({type:"post", url:"<?php echo $j3_shopp_url?>/ajax.id_pw_process.php", data:form_data, async:false, dataType : "xml", success:function(xml){ var v_mode = $(xml).find("mode").text(); var v_mode_ok = $(xml).find("mode_ok").text(); var v_msg = $(xml).find("msg").text(); var v_login_id = $(xml).find("login_id").text(); if(v_mode_ok=="Y"){ alert("찾으신 고객님의 아이디는 "+v_login_id+" 입니다."); $("#modal_member_box").dialog("close"); $("#modal_member_box input").val(""); } else { alert(v_msg); } }, error:function(rtn,status,error){ alert(error); } }); } function pw_find(){ // 비밀번호 찾기 $form_obj = $("#id_pw_form"); if($form_obj.find("input[name='pw_login_id']").val()==''){ alert("아이디를 입력하세요."); return; } if($form_obj.find("input[name='pw_email']").val()==''){ alert("이메일을 입력하세요."); return; }
$form_obj.find("input[name='mode']").val('pw_find'); form_data = $form_obj.serialize(); if(confirm('비밀번호 찾기시엔 임시비밀번호를 저장후 이메일로 전송합니다.\n정말로 비밀번호 찾기를 하시겠습니까?')){ $.ajax({type:"post", url:"<?php echo $j3_shopp_url?>/ajax.id_pw_process.php", data:form_data, async:false, dataType : "xml", success:function(xml){ var v_mode = $(xml).find("mode").text(); var v_mode_ok = $(xml).find("mode_ok").text(); var v_msg = $(xml).find("msg").text(); var v_login_id = $(xml).find("login_id").text(); if(v_mode_ok=="Y"){ alert($form_obj.find("input[name='pw_email']").val()+" 메일로 변경된 비밀번호가 발송되었습니다."); $("#modal_member_box").dialog("close"); $("#modal_member_box input").val(""); } else { alert(v_msg); } }, error:function(rtn,status,error){ alert(error); } }); } } </script>
</div> </div><!-- #wrap --> <?php include_once($j3_path."/footer.sub.php"); ?>
|