find_id.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?php
  2. include $_SERVER['DOCUMENT_ROOT'].'/common/lib/comm.php';
  3. ?>
  4. <?php include("include/header.php") ?>
  5. <main class="normal--wrap pb123">
  6. <section class="idpw--form--wrap">
  7. <h2 class="">ID/PW 찾기</h2>
  8. <p>회원님의 아이디와 패스워드를 찾아드립니다.</p>
  9. <div class="idpw--form--contents">
  10. <div class="tab">
  11. <div class="tab--items">
  12. <a href="#" class="actv">아이디 찾기</a>
  13. <a href="find_pwd.php">비밀번호 찾기</a>
  14. </div>
  15. <div class="inner--contents">
  16. <h2>등록된 이름과 휴대폰 번호로 찾기</h2>
  17. <p>회원가입에 등록한 휴대번호를 인증하여 회원님의 아이디를 찾을 수 있습니다!</p>
  18. <div class="items--box">
  19. <div>
  20. <label>이름</label>
  21. <input type="text" class="form-control" id="nm_name" name="nm_name" value=""/>
  22. </div>
  23. <div>
  24. <label>휴대폰 번호</label>
  25. <div class="d-flex align-items-center">
  26. <select id="nm_hp1" name="nm_hp1" class="form-select" style="max-width:90px;"></select>
  27. <label for="nm_hp2" class="ml10 mr10">-</label>
  28. <input type="text" class="form-control" id="nm_hp2" name="nm_hp2" style="max-width:105px;" maxlength="4">
  29. <label for="nm_hp3" class="ml10 mr10">-</label>
  30. <input type="text" class="form-control" id="nm_hp3" name="nm_hp3" style="max-width:105px;" maxlength="4">
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. <div class="col-12 d-flex justify-content-center join--btn--wrap mt70">
  37. <button type="button" class="btn btn-secondary cancel--btn" style="width:180px; height:55px;" id="btn_cancel">취소</button>
  38. <button type="button" class="btn btn-primary ml15" style="width:180px; height:55px;" id='btn_proc'>확인</button>
  39. </div>
  40. </div>
  41. </section>
  42. <!-- 임시 패스워드 전송 -->
  43. <div class="modal fade type2" id="findIdModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  44. <div class="modal-dialog modal-dialog-centered" style="max-width:400px;">
  45. <div class="modal-content">
  46. <div class="icon--wrap">
  47. <div class="thumb pp--ic"></div>
  48. </div>
  49. <div class="modal-body modal--body">
  50. <h2>아이디를 전송함</h2>
  51. <p>휴대번호로 아이디를 전송했습니다.</p>
  52. </div>
  53. <div class="modal-footer d-flex justify-content-center ty2">
  54. <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">취소</button>
  55. <button type="button" class="ml20 btn btn-primary" id='btn_proc_confirm'>확인</button>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </main>
  61. <script>
  62. $(function() {
  63. setCodeSelect("listPhone","nm_hp1","","","","선택","");
  64. $("#btn_cancel").on("click", function() {
  65. link("login.php");
  66. });
  67. $("#btn_proc_confirm").on("click", function() {
  68. $(".idpw--form--contents input, .idpw--form--contents select").each(function() {
  69. $(this).val("");
  70. });
  71. $("#findIdModal").modal("hide");
  72. });
  73. $("#btn_proc").on("click", function() {
  74. var custom_opts = {
  75. title : '',
  76. btn_close_show : false,
  77. }
  78. var fieldlist = [["nm_name","이름"],["nm_hp1","휴대폰 번호"], ["nm_hp2", "휴대폰 번호"], ["nm_hp3", "휴대폰 번호"]];
  79. if (!fnCheckForm(fieldlist)){
  80. return false;
  81. }
  82. var nm_hp = $("#nm_hp1").val()+"-"+$("#nm_hp2").val()+"-"+$("#nm_hp3").val();
  83. $.post("join_proc.php", { mode:"IdSearch", nm_name: $("#nm_name").val(), nm_hp: nm_hp},function(res) {
  84. if(res.CODE != "0000") {
  85. // custom_opts.title = res.MSG;
  86. custom_opts.title = '입력하신 정보가 정확하지 않습니다.';
  87. custom_modal_alert(custom_opts);
  88. return false;
  89. }
  90. $("#findIdModal").modal("show");
  91. }, "json");
  92. });
  93. });
  94. </script>
  95. <?php include("include/footer.php") ?>