id_search.php 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. include $_SERVER['DOCUMENT_ROOT'].'/common/lib/comm.php';
  3. // include $_SERVER['DOCUMENT_ROOT'].'/common/auth_chk.php';
  4. exit;
  5. ?>
  6. <? include("../include/inc_top.php") ?>
  7. <? include("../include/inc_header.php") ?>
  8. <section id="wrap" class="bg_join">
  9. <section id="content">
  10. <div class="find_wrap">
  11. <div class="fl find">
  12. <h2>아이디 찾기</h2>
  13. <div class="find_form">
  14. <p><input type="text" class="inp_txt" style="width:100%;" placeholder="이름"></p>
  15. <p><input type="text" class="inp_txt" style="width:100%;" placeholder="핸드폰"></p>
  16. </div>
  17. <p class="btn"><a href="#" class="button" onclick="openLayer('id'); return false;">아이디 찾기</a></p>
  18. </div>
  19. <div class="fr find ty2">
  20. <h2>비밀번호 찾기</h2>
  21. <div class="find_form">
  22. <p>
  23. <input type="text" class="inp_txt" style="width:140px;" placeholder="아이디"> @
  24. <input type="text" class="inp_txt" style="width:140px;">
  25. <span class="select" style="width:163px;">
  26. <select>
  27. <option value="">직접입력</option>
  28. </select>
  29. </span>
  30. </p>
  31. <p><input type="text" class="inp_txt" style="width:100%;" placeholder="이름"></p>
  32. <p><input type="text" class="inp_txt" style="width:100%;" placeholder="핸드폰"></p>
  33. </div>
  34. <p class="btn"><a href="#" class="button" onclick="openLayer('pw'); return false;">비밀번호 찾기</a></p>
  35. </div>
  36. </div>
  37. <!-- layer popup -->
  38. <div class="layer_popup find_popup id_popup">
  39. <div class="search_result">
  40. <p><span>구은호</span>님의 아이디는<br><em>design@interscope.co.kr</em> 입니다.</p>
  41. <div class="btn_center"><a href="#" class="button" onclick="closeLayer('id'); return false;">확인</a></div>
  42. </div>
  43. </div>
  44. <div class="layer_popup find_popup pw_popup">
  45. <div class="search_result">
  46. <p><span>구은호</span>님의 비밀번호는<br><em>fjdsdljflsjdglk58463@</em> 입니다.</p>
  47. <div class="btn_center"><a href="#" class="button" onclick="closeLayer('pw'); return false;">확인</a></div>
  48. </div>
  49. </div>
  50. <!-- // layer popup -->
  51. </section>
  52. </section>
  53. <script language="javascript" type="text/javascript">
  54. $(function(){
  55. $("#idSearchResult").hide();
  56. $("#nm_name, #nm_email").focus(function() {
  57. $("#idSearchResult").fadeOut();
  58. });
  59. $("#btn_search").on("click",function(){
  60. if($("#nm_name").val()==""){
  61. alert("이름을 입력하세요");
  62. return false;
  63. }
  64. if($("#nm_hp").val()==""){
  65. alert("휴대폰 번호를 입력하세요");
  66. return false;
  67. }
  68. $.post("proc_join.php", { mode: "IdSearch", nm_name: $("#nm_name").val(), nm_hp: $("#nm_hp").val()},function(data) {
  69. if(data!=""){
  70. $("#idSearchResult").show();
  71. $("#idSearchResult").find("td").html("아이디 <span style='color:red'>"+data +"</span> 가 검색되었습니다.");
  72. $("#pw_search").show();
  73. }else{
  74. alert("검색된 아이디가 없습니다.");
  75. return;
  76. }
  77. });
  78. });
  79. });
  80. </script>
  81. <? include("../include/inc_footer.php") ?>
  82. <? include("../include/inc_bottom.php") ?>
  83. <?
  84. mysql_close($connect);
  85. ?>