ÿØÿà JFIF ` ` ÿþ
Server : Apache System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : tkt_travelbus ( 1137) PHP Version : 7.0.0p1 Disable Function : mysql_pconnect Directory : /tkt_travelbus/www/admin/member/ |
Upload File : |
<? include "../include/top.html"; include "_common.php"; //테이블명 $table = " TB_MEMBER "; // 검색 설정 $sql_where = " and mb_id != 'click' and mb_level = 21 /*일반회원*/ and del_flag='Y' "; if($ins_dt_s and $ins_dt_e) $sql_where .= " and ins_dt between '{$ins_dt_s}' and '{$ins_dt_e}' ";//가입일 if($mb_nat_cd_s) $sql_where .= " and mb_nat_cd = '{$mb_nat_cd_s}' ";//국적 if($mb_gend_s) $sql_where .= " and mb_gend = '{$mb_gend_s}' ";//성별 if($mb_nm_s) $sql_where .= " and mb_nm like '%{$mb_nm_s}%' ";//이름 // 리스트 수 가져옴 $sql = "select count(*) as total from {$table} where 0=0 {$sql_where} "; $row = db_fetch($sql); $total = $row[total]; // 페이지수 설정 if (!$page) $page = 1; // 페이지 번호 $line = 20; // 보여줄 갯수 $list = 10; // 블럭 갯수 $total_page = ceil($total / $line); // 총페이지 if ($total == 0) $total_page = 1; // 데이터가 하나도 없으면 총페이지 1 if ($page > $total_page) $page = $total_page; // 페이지가 전체 페이지보다 크면 페이지 번호를 바꿈 $total_list = intval($total_page / $list); if ($total_page % $list == 0) $total_list--; $curr_list = intval($page / $list); if ($page % $list == 0) $curr_list--; $start_page = $curr_list * $list + 1; $prev_list = $start_page - $list; $next_list = $start_page + $list; $olds = $line * ($page - 1); // 정렬 설정 $sql_order=" seq desc "; //목록 $sql = "select *, date_format(last_login_dt,'%Y.%m.%d %H:%i:%s') as last_login_dt2 , date_format(ins_dt,'%Y.%m.%d') as ins_dt2, date_format(ins_dt,'%Y.%m.%d %H:%i:%s') as ins_dt3, (select cd_nm from TB_CODEC where {$table}.mb_nat_cd=TB_CODEC.code limit 1 ) as mb_nat_cd2, 10 as resv_cnt /*예약건수*/, IF(mb_email_yn='Y','N','Y') as mb_email_yn_opp,IF(mb_email_yn='Y','btn_check.gif','btn_stop.gif') as mb_email_yn2, IF(mb_sms_yn='Y','N','Y') as mb_sms_yn_opp,IF(mb_sms_yn='Y','btn_check.gif','btn_stop.gif') as mb_sms_yn2 from {$table} where 0=0 "; if($sql_where) $sql .= " ".$sql_where ; if($sql_order) $sql .= " order by ".$sql_order; else $sql .= " order by seq desc "; if($olds) $sql .= " limit $olds , $line "; $rs = db_query($sql); //배열에 저장 $data = array(); $data = db_fetch_all($rs); ?> <div class="contents_wrap"> <div class="contents_wrap_in"> <div class="title"><strong>탈퇴 고객</strong></div> <div class="contents_detail"> <div id="Content_box"> <div class="top_txt_s"> <div class="bar_wrap"> <p class="search_result_txt member"><span><?=$total?></span><span class="txt">명의 회원이 검색되었습니다.</span></p> </div> </div> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_list" summary="탈퇴요청한 개인회원을 확인하실 수 있습니다."> <caption>개인회원 탈퇴요청</caption> <colgroup> <col style=" width:40px" /> <col style=" width:50px" /> <col style=" width:50px" /> <col style=" width:100px" /> <col /> <col style=" width:120px" /> <col style=" width:60px" /> <col style=" width:100px" /> <col style=" width:135px" /> <col style=" width:40px" /> </colgroup> <thead> <tr> <th scope="col">No</th> <th scope="col">메일</th> <th scope="col">sms</th> <th scope="col">구분</th> <th scope="col">아이디(이메일)</th> <th scope="col">이름</th> <th scope="col">예약수</th> <th scope="col">가입일</th> <th scope="col">탈퇴요청일</th> <th scope="col">삭제</th> </tr> </thead> <tbody> <? for($i=0 ; $i < count($data) ; $i++){ $row = $data[$i]; $num = $total - ($page - 1) * $line - $i; ?> <tr> <td><?=$num?></td> <td><img src="../image/btn/<?=$row['mb_email_yn2']?>" alt="메일보내기 여부" /></td> <td><img src="../image/btn/<?=$row['mb_sms_yn2']?>" alt="sms보내기 여부" /></td> <td><?=$row['mb_nat_cd2']?></td> <td class="mem_id"><?=$row['mb_id']?></td> <td><?=$row['mb_nm']?></td> <td><?=$row['resv_cnt']?></td> <td><?=$row['ins_dt2']?></td> <td><?=$row['last_login_dt2']?></td> <td><input type="image" src="../image/btn/btn_delete.gif" align="top" alt="삭제처리" style="cursor:pointer;" onClick="<?if($TK_MEMBER['mb_level']>'1'){?>alert('권한이없습니다.');return false;<?}?>mb_out_del('<?=$row['seq']?>','<?=$row['mb_id']?>');" /></td> </tr> <?}?> </tbody> </table> </div> </div> </div> </div> <script type="text/javascript"> function mb_out_del(seq,mb_id) { if(!confirm('완전히 삭제됩니다.'))return; ajax_loader("member_proc.php?SqlType=mb_out_del&seq="+seq+"&mb_id="+mb_id); } </script> <? include "../include/footer.html" ?>