member_withdrawal.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <?php
  2. include $_SERVER['DOCUMENT_ROOT'].'/common/lib/comm.php';
  3. include $_SERVER['DOCUMENT_ROOT'].ADMIN_PATH.'common/auth_chk.php';
  4. $mp = "24"; //set top nav
  5. ?>
  6. <? include("../inc/inc_top.php") ?>
  7. <? include("../inc/inc_header.php") ?>
  8. <?
  9. $PageNo =$_REQUEST['pageno'];
  10. $PageSize =$_REQUEST['PageSize'];
  11. if (empty($PageNo)) {$PageNo=1;}else{$PageNo=$PageNo;}
  12. if (empty($PageSize)) {
  13. $PageSize=10; //목록개수설정
  14. }else{$PageSize=$PageSize;}
  15. $pagestartpoint=($PageNo-1)*$PageSize;
  16. $sql = "where ds_delind='N'"; //삭제하지 않은
  17. $sql = $sql. " and ds_status = 'W0' "; //활동 중인 - A0:활동,B0:휴면
  18. //echo $_REQUEST['searchtype'];
  19. //echo "<BR>";
  20. $searchtype = $_REQUEST['searchtype'];
  21. $searchword = $_REQUEST['searchword'];
  22. $dt_start = $_REQUEST['dt_start'];
  23. $dt_end = $_REQUEST['dt_end'];
  24. if($searchword != ""){
  25. if($searchtype=="" || $searchtype==null){
  26. $sql = $sql. " and (nm_name like '$searchword%' or nm_email like '$searchword%') ";
  27. }else{
  28. $sql = $sql. " and $searchtype like '$searchword%'";
  29. }
  30. }
  31. if($dt_start != "" && $dt_end != ""){
  32. $sql = $sql. " and dt_insert between '$dt_start' and '$dt_end' ";
  33. }
  34. // echo $sql;
  35. $totalrows = @mysql_result(mysql_query("select count(*) from member_master $sql"),0,0);
  36. ?>
  37. <section id="contents">
  38. <h2>탈퇴회원 관리</h2>
  39. <h3><em>▶</em> 회원검색</h3>
  40. <table class="tbl_search">
  41. <colgroup>
  42. <col width="10%">
  43. <col width="38%">
  44. <col width="10%">
  45. <col width="*">
  46. </colgroup>
  47. <form id="frmSearch" name="frmSearch" method="post">
  48. <input type="hidden" id="PageSize" name="PageSize">
  49. <input type="hidden" id="searchtype" name="searchtype">
  50. <tr>
  51. <th>검색어</th>
  52. <td colspan=3>
  53. <span class="select2" style="margin-right:5px;width:100px;" id="sel_searchtype">
  54. <select>
  55. <option value="">전체</option>
  56. <option value="nm_email"<? if($searchtype =="cd_userid"){?> selected<?}?>>아이디</option>
  57. <!-- <option value="nm_name"<? if($searchtype =="nm_name"){?> selected<?}?>>이름</option> -->
  58. </select>
  59. </span>
  60. <input type="text" class="inp_txt" style="width:60%;" id="searchword" name="searchword" value="<?=$searchword?>">
  61. <input type="submit" class="rnd_btn ty3 gray" value="검색" title="검색">
  62. </td>
  63. <!-- <th>검색어</th>
  64. <td>
  65. <div class="radio_chk">
  66. <span class="check_wrap"><input type="radio" name="radiobutton" id="radio1"><i></i><label for="radio1">전체</label></span>
  67. <span class="check_wrap"><input type="radio" name="radiobutton" id="radio2"><i></i><label for="radio2">관리자삭제</label></span>
  68. <span class="check_wrap"><input type="radio" name="radiobutton" id="radio3"><i></i><label for="radio3">본인탈퇴</label></span>
  69. </div>
  70. </td> -->
  71. </tr>
  72. <!-- <tr>
  73. <th>탈퇴일</th>
  74. <td colspan="3">
  75. <input type="text" class="inp_txt" style="width:25%;">
  76. <span class="btn_cal">달력보기</span>
  77. ~
  78. <input type="text" class="inp_txt" style="width:25%;">
  79. <span class="btn_cal">달력보기</span>
  80. <input type="submit" class="rnd_btn ty3 gray" value="검색" title="검색">
  81. </td>
  82. </tr> -->
  83. </form>
  84. </table>
  85. <div class="select_view_type">
  86. <span class="select" style="width:160px;" id="selBox">
  87. <select id="page_size">
  88. <option value="10"<? if($PageSize==10){ ?> selected<? } ?>>10개 보기</option>
  89. <option value="20"<? if($PageSize==20){ ?> selected<? } ?>>20개 보기</option>
  90. <option value="30"<? if($PageSize==30){ ?> selected<? } ?>>30개 보기</option>
  91. </select>
  92. </span>
  93. </div>
  94. <div class="tbl_wrap">
  95. <table class="tbl_list">
  96. <colgroup>
  97. <col width="7%">
  98. <col width="*">
  99. <col width="21%">
  100. </colgroup>
  101. <thead>
  102. <tr>
  103. <th>번호</th>
  104. <th>아이디</th>
  105. <th>탈퇴일</th>
  106. </tr>
  107. </thead>
  108. <?
  109. if($totalrows>0) {
  110. $r = mysqli_query($connect, "SELECT *, getCode('member_master','ds_company_bp',ds_company_bp) as nm_company_bp, getCode('member_master','ds_branch',ds_branch) as nm_branch FROM member_master $sql ORDER BY cd_user desc LIMIT $pagestartpoint,$PageSize");
  111. $i=1;
  112. while($col = mysqli_fetch_array($r)) {
  113. $tmpNum =$totalrows-($PageSize*($PageNo-1));
  114. $no = ($tmpNum - $i)+1;
  115. ?>
  116. <tr>
  117. <td><?=$no?></td>
  118. <td><?=$col['cd_userid']?></td>
  119. <td><?=$col['dt_withdrawal']?></td>
  120. </tr>
  121. <?
  122. $i++;
  123. }
  124. }else{
  125. ?>
  126. <tr>
  127. <td colspan="7">데이터가 존재 하지 않습니다.</td>
  128. </tr>
  129. <?
  130. }
  131. ?>
  132. </table>
  133. </div>
  134. <div class="paging">
  135. <?
  136. $url = "./member_withdrawal.php?searchtype=$searchtype&searchword=$searchword&dt_start=$dt_start&dt_end=$dt_end";
  137. ListPg1($url ,$PageNo,$PageSize,10,$totalrows,$leftboard[1],$rootpath);
  138. ?>
  139. </div>
  140. <div class="btn_right">
  141. <!-- <a href="#" class="rnd_btn gray">관리자탈퇴</a> -->
  142. </div>
  143. </section>
  144. <? include("../inc/inc_footer.php") ?>
  145. <? include("../inc/inc_bottom.php") ?>
  146. <?
  147. mysql_close($connect);
  148. ?>