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
|
<?php include_once("./_common.php");
?> <style> .height130 { height:130px; } </style>
<form name='prod_use_reg_form' id='prod_use_reg_form' method='post' action='ajax.prod_use_img.php' enctype="multipart/form-data"> <input type='hidden' name='qstr' value=''> <input type='hidden' name='mode' value='memout'>
<div class="p10_20"> <h4 class="mb10 height24 ">회원탈퇴하기</h4> <table class="width_full top_bold_line"> <colgroup> <col class="width80"><col> <col class=""><col> </colgroup>
<tbody> <tr> <td colspan="4" class="pt10 pb10 pl20 txt14 gray2 gray_line_b2"> ※ 회원탈퇴를 하시면 고객의 개인정보를 모두 삭제하게 됩니다.<br> ※ 단 이중가입과 회원교란방지를 위해서 아이디(id)정보는 남겨놓기 때문에 같은 아이디로 재가입이 불가능합니다. </td> </tr> <tr> <th class="pt10 pb10 pl20 txt14 gray2 gray_line_b2">탈퇴이유</th> <td colspan="3" class="pt10 pb10 pl20 txt14 gray2 gray_line_b2" style='line-height:25px;'> <input type='radio' name='out_reason' value='상품다양성/가격품질 불만'>상품다양성/가격품질 불만 <input type='radio' name='out_reason' value='교환/환불/품질불만'>교환/환불/품질불만 <input type='radio' name='out_reason' value='배송지연'>배송지연 <br> <input type='radio' name='out_reason' value='이용빈도 낮음'>이용빈도 낮음 <input type='radio' name='out_reason' value='개인정보유출'>개인정보유출 <input type='radio' name='out_reason' value='회원특혜/쇼핑혜택 부족'>회원특혜/쇼핑혜택 부족 <br> <input type='radio' name='out_reason' value='A/S불만'>A/S불만 <input type='radio' name='out_reason' value='기타'>기타 </td> </tr> <tr> <th class="pt10 pb10 pl20 txt14 gray2 gray_line_b2">남기고 싶은말</th> <td colspan="3" class="pt10 pb10 pl20 txt14 gray2 gray_line_b2"> <input type='text' name='add_msg' class="box340_30 gray_line" value=''> </td> </tr> <tr> <th class="pt10 pb10 pl20 txt14 gray2 gray_line_b2">현재패스워드</th> <td colspan="3" class="pt10 pb10 pl20 txt14 gray2 gray_line_b2"> <input type='password' name='cur_password' class="box170_30 gray_line" value=''> </td> </tr> <tr> <td colspan="3" class="pt10 pb10 pl20 txt14 gray2 gray_line_b2"> <a class="mr10 box100_40 custom2 align_c bold l_height40 custom_line2 bg_custom2 white member_out_class">탈퇴하기</a> </td> </tr> </tbody> </table>
</div> </form> <script> $(function(){ $(".member_out_class").click(function(){ $cnt = 0; $("input[name='out_reason']").each(function(){ if($(this).is(":checked")){ $cnt++; } }); if($cnt==0){ alert('탈퇴이유를 선택해주시기 바랍니다.'); return; } if($("input[name='cur_password']").val()==''){ alert('현재패스워드를 입력해주시기 바랍니다.'); return; } if(confirm('정말로 회원탈퇴를 하시겠습니까?')){ form_data = $("#prod_use_reg_form").serialize();
$.ajax({type:"post", url:"../shop/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('회원탈퇴가 완료 되었습니다.'); document.location.href='<?php echo $j3_url;?>'; } else { alert(v_msg); } }, error:function(rtn,status,error){ alert(error); } }); } }); });
</script>
|