Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
egg.eemo.co.kr
/
public_html
/
super5
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/egg.eemo.co.kr/public_html/super5/member.php
<? include_once("inc_header.php"); $on_menu="member"; $on_sub_menu=1; ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title><?=$_TITLE?></title> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="font-awesome/css/font-awesome.css" rel="stylesheet"> <link href="css/plugins/iCheck/custom.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href="css/style.css" rel="stylesheet"> <link href="css/messagebox.css" rel="stylesheet"> </head> <body class="fixed-sidebar"> <div id="wrapper"> <? include_once("inc_sidemenu.php"); ?> <div id="page-wrapper" class="gray-bg"> <? include_once("inc_top.php"); include_once("inc_now_position.php"); include_once("navigation.php"); ?> <? if(!$v_num) { $v_num=10; } $sub_query=''; $query="select count(no) as cnt from member where 1 "; if($chk_qry==1) { $sub_query=stripslashes($prev_qry); } if($search) { if($find=='tel') { $vtel=str_replace("-","",$search); $sub_query.=" and REPLACE(tel,'-','') like '%$vtel%' "; } else { $sub_query.=" and $find like '%$search%' "; } } if($sel_gender) { $sub_query.=" and gender = '$sel_gender' "; } if($sel_os) { if($sel_os != "no") { $sub_query.=" and lower(push_os) = '$sel_os' "; } else { $sub_query.=" and (push_os is null or push_os='') "; } } if($sel_etime) { $vv_etime=substr($sel_etime,1); if($vv_etime != 0) { $sub_query.=" and juro_etime = '$vv_etime' "; } } if($sel_sdate) { $sub_query.=" and date(regdate) >= '$sel_sdate' "; } if($sel_edate) { $sub_query.=" and date(regdate) <= '$sel_edate' "; } if($sel_gigan) { if($sel_gigan=='today') { $sub_query.=" and date(regdate) = date(now()) "; } else if($sel_gigan=='week') { $sub_query.=" and date(regdate) > date((CURDATE()-INTERVAL 7 DAY)) "; } else if($sel_gigan=='month') { $sub_query.=" and date(regdate) > date((CURDATE()-INTERVAL 1 MONTH)) "; } } if($sub_query) {$query.=$sub_query;} //echo $query; $rs=RS($query); vari($rs[cnt],10,$v_num,$c_page); $query="select * from member where 1 "; if($sub_query) {$query.=$sub_query;} $limit=$v_num; if($sel_sort=='') { $sel_sort="no_desc"; $query.=" order by no desc limit $offset, $limit "; } else { if($sel_sort=="no_desc") { $query.=" order by no desc limit $offset, $limit "; } else if($sel_sort=="no_asc") { $query.=" order by no asc limit $offset, $limit "; } else if($sel_sort=="bdate_desc") { $query.=" order by bdate desc limit $offset, $limit "; } else if($sel_sort=="bdate_asc") { $query.=" order by bdate asc limit $offset, $limit "; } else if($sel_sort=="weight_desc") { $query.=" order by weight desc limit $offset, $limit "; } else if($sel_sort=="weight_asc") { $query.=" order by weight asc limit $offset, $limit "; } else if($sel_sort=="kee_desc") { $query.=" order by kee desc limit $offset, $limit "; } else if($sel_sort=="kee_asc") { $query.=" order by kee asc limit $offset, $limit "; } else if($sel_sort=="age_desc") { $query.=" order by age desc limit $offset, $limit "; } else if($sel_sort=="age_asc") { $query.=" order by age asc limit $offset, $limit "; } else if($sel_sort=="todaycalo_desc") { $query.=" order by today_calo desc limit $offset, $limit "; } else if($sel_sort=="todaycalo_asc") { $query.=" order by today_calo asc limit $offset, $limit "; } else if($sel_sort=="nucalo_desc") { $query.=" order by nu_calo desc limit $offset, $limit "; } else if($sel_sort=="nucalo_asc") { $query.=" order by nu_calo asc limit $offset, $limit "; } } //echo $query; $result=mysql_query($query); $gita="&find=".urlencode($find)."&search=".urlencode($search)."&sel_sort=".urlencode($sel_sort)."&sel_gender=".urlencode($sel_gender)."&sel_os=".urlencode($sel_os)."&sel_etime=".urlencode($sel_etime)."&chk_qry=".urlencode($chk_qry)."&chk_bunsuk=".urlencode($chk_bunsuk)."&sel_gigan=".urlencode($sel_gigan)."&v_num=".urlencode($v_num); ?> <div class="wrapper wrapper-content animated fadeInRight"> <div class="row"> <div class="col-lg-12"> <div class="ibox "> <div class="ibox-title"> <h5>Custom responsive table </h5> <div class="ibox-tools"> <a class="collapse-link"> <i class="fa fa-chevron-up"></i> </a> <a class="dropdown-toggle" data-toggle="dropdown" href="#"> <i class="fa fa-wrench"></i> </a> <ul class="dropdown-menu dropdown-user"> <li><a href="#" class="dropdown-item">Config option 1</a> </li> <li><a href="#" class="dropdown-item">Config option 2</a> </li> </ul> <a class="close-link"> <i class="fa fa-times"></i> </a> </div> </div> <div class="ibox-content"> <form name='frm_search'> <div class="row"> <div class="col-sm-2 m-b-xs"> <select class="form-control-sm form-control input-s-sm inline" name="sel_sort" onchange="this.form.submit()"> <option value='no_desc' <?if($sel_sort=="no_desc") echo "selected";?>>최근가입 내림순</option> <option value='no_asc' <?if($sel_sort=="no_asc") echo "selected";?>>먼저가입 오름순</option> <option value='bdate_desc' <?if($sel_sort=="bdate_desc") echo "selected";?>>최근접속 오름순</option> <option value='bdate_asc' <?if($sel_sort=="bdate_asc") echo "selected";?>>최근접속 오름순</option> <option value='weight_desc' <?if($sel_sort=="weight_desc") echo "selected";?>>몸무게 내림순</option> <option value='weight_asc' <?if($sel_sort=="weight_asc") echo "selected";?>>몸무게 오름순</option> <option value='kee_desc' <?if($sel_sort=="kee_desc") echo "selected";?>>키 내림순</option> <option value='kee_asc' <?if($sel_sort=="kee_asc") echo "selected";?>>키 오름순</option> <option value='age_desc' <?if($sel_sort=="age_desc") echo "selected";?>>나이 내림순</option> <option value='age_asc' <?if($sel_sort=="age_asc") echo "selected";?>>나이 오름순</option> </select> </div> <div class="col-sm-2 m-b-xs"> <div class="btn-group btn-group-toggle" data-toggle="buttons" > <label class="btn btn-white <?if($sel_gigan=='all') echo "active";?>" onclick="$('#sel_gigan').val('all');document.frm_search.submit()"> <input type="radio" name="chk_gigan" id="sel_gigan1" autocomplete="off" <?if($sel_gigan=='all') echo "checked";?> value="all" > 전체 </label> <label class="btn btn-white <?if($sel_gigan=='today') echo "active";?>" onclick="$('#sel_gigan').val('today');document.frm_search.submit()"> <input type="radio" name="chk_gigan" id="sel_gigan2" autocomplete="off" <?if($sel_gigan=='today') echo "checked";?> value="today" "> 금일 </label> <label class="btn btn-white <?if($sel_gigan=='week') echo "active";?>" onclick="$('#sel_gigan').val('week');document.frm_search.submit()"> <input type="radio" name="chk_gigan" id="sel_gigan3" autocomplete="off" <?if($sel_gigan=='week') echo "checked";?> value="week" > 1주일 </label> <label class="btn btn-white <?if($sel_gigan=='month') echo "active";?>" onclick="$('#sel_gigan').val('month');document.frm_search.submit()"> <input type="radio" name="chk_gigan" id="sel_gigan4" autocomplete="off" <?if($sel_gigan=='month') echo "checked";?> value="month" > 1개월 </label> </div> </div> <div class="col-sm-2 m-b-xs"> <select class="form-control-sm form-control input-s-sm inline" name="find" id="select2"> <option value="" <?if($find=="") echo "selected";?>>선택</option> <option value="id" <?if($find=="id") echo "selected";?>>아이디</option> <option value="nick" <?if($find=="nick") echo "selected";?>>닉네임</option> <option value="tel" <?if($find=="tel") echo "selected";?>>연락처</option> <option value="lot_serial_vcode" <?if($find=="lot_serial_vcode") echo "selected";?>>제품시리얼</option> <option value="lot_body_vcode" <?if($find=="lot_body_vcode") echo "selected";?>>바디시리얼(IM-BIKE)</option> <option value="reg_cont" <?if($find=="reg_cont") echo "selected";?>>접수내용</option> <option value="proc_cont" <?if($find=="proc_cont") echo "selected";?>>처리결과</option> <option value="rst_hwesu_bigo" <?if($find=="rst_hwesu_bigo") echo "selected";?>>회수결과</option> <option value="rst_songjang" <?if($find=="rst_songjang") echo "selected";?>>AS송장번호</option> </select> </div> <div class="col-sm-3 m-b-xs"> <div class="input-group"><input placeholder="Search" type="text" name='search' class="form-control form-control-sm" value="<?=$search?>"> <span class="input-group-append"> <button type="button" class="btn btn-sm btn-primary" onclick="this.form.submit()">Go! </button> </span></div> </div> <div class="col-sm-2 m-b-xs"> <select class="form-control-sm form-control input-s-sm inline" name="v_num" onchange='this.form.submit()'> <option value="10" <?if($v_num=="10") echo "selected";?>>10라인</option> <option value="20" <?if($v_num=="20") echo "selected";?>>20라인</option> <option value="30" <?if($v_num=="30") echo "selected";?>>30라인</option> <option value="50" <?if($v_num=="50") echo "selected";?>>50라인</option> <option value="100" <?if($v_num=="100") echo "selected";?>>100라인</option> <option value="500" <?if($v_num=="500") echo "selected";?>>500라인</option> <option value="1000" <?if($v_num=="1000") echo "selected";?>>1,000라인</option> </select> </div> </div> <input type='hidden' name='sel_gigan' id='sel_gigan'> </form> <div class="table-responsive"> <table class="table"> <thead> <tr> <th>no</th> <th>아이디 </th> <th>전화번호 </th> <th>닉네임</th> <th>성별</th> <th>나이</th> <th>키</th> <th>몸무게</th> <th>가입일시</th> <th>최근접속</th> <th>금일운동</th> <th>누적운동</th> <th>푸시</th> <th>문자</th> </tr> </thead> <tbody> <? while($rs=mysql_fetch_array($result)) { $age=$rs[birth]?(date('Y')-$rs[birth]+1)."세":''; $rs_regid=RS("select * from gcm_regid where mem_id='{$rs[id]}' and reg_id is not null "); $rs_exday=RS("select * from exerday_raw where id='{$rs[id]}' and jdate=date(now()) "); $rs_exsum=RS("select sum(calo) as cnt from exerday_raw where id='{$rs[id]}' "); $rs_time=RS("select * from member_tong where mem_no='{$rs[no]}' order by ecnt desc limit 0,1 "); //$rs_sul=RS("select * from tmp_poll_answer where id='{$rs[id]}' "); $tel_no=str_replace("-","",strtoupper($rs[tel])); $rs_sms=RS("select count(no) as cnt from sms_send where REPLACE(to_num,'-','')='$tel_no' "); ?> <tr> <td><?=$i?></td> <td><a onclick="if(document.getElementById('td2_<?=$rs[no]?>').style.display=='none') {document.getElementById('td2_<?=$rs[no]?>').style.display='table-cell';document.getElementById('td3_<?=$rs[no]?>').style.display='table-cell';document.getElementById('td4_<?=$rs[no]?>').style.display='table-cell';}else {document.getElementById('td2_<?=$rs[no]?>').style.display='none';document.getElementById('td3_<?=$rs[no]?>').style.display='none';document.getElementById('td4_<?=$rs[no]?>').style.display='none';}" style='cursor:pointer'><?=$rs[id]?></a></td> <td><a onclick="if(document.getElementById('td2_<?=$rs[no]?>').style.display=='none') {document.getElementById('td2_<?=$rs[no]?>').style.display='table-cell';document.getElementById('td3_<?=$rs[no]?>').style.display='table-cell';document.getElementById('td4_<?=$rs[no]?>').style.display='table-cell';}else {document.getElementById('td2_<?=$rs[no]?>').style.display='none';document.getElementById('td3_<?=$rs[no]?>').style.display='none';document.getElementById('td4_<?=$rs[no]?>').style.display='none';}" style='cursor:pointer'><?=add_hyphen($rs[tel])?></a></td> <td><?=$rs[nick]?></td> <td><?=$rs[gender]=='M'?'남':'여'?></td> <td><?=$age?></td> <td><?=$rs[kee]?> cm</td> <td><?=$rs[weight]?> Kg</td> <td><?=str_replace(" ","<br>",$rs[regdate])?></td> <td><?=str_replace(" ","<br>",$rs[bdate])?></td> <td><?=sprintf("%.1f",$rs_exday[calo])?>Kcal</td> <td><?=sprintf("%.1f",$rs_exsum[cnt])?>Kcal</td> <td><?=$rs[zom2_token]?"<i class='fa fa-envelope' onclick=\"send_push('".$rs[id]."')\"></i>":''?></td> <td style='cursor:pointer'> <?=$rs[tel]?"<i class='fa fa-envelope' onclick=\"send_lms('".$rs[id]."')\"></i>":''?> <? if($rs_sms[cnt] && $tel_no) {echo "".$rs_sms[cnt]."건";} ?> </td> </tr> <?$i--;}?> </tbody> </table> <?navi($_SERVER[PHP_SELF],$t_record,$limit,$pagelimit,$c_page,$gita);?> </div> </div> </div> </div> </div> </div> <? include_once("inc_footer.php"); ?> </div> </div> <!-- Mainly scripts --> <script src="js/jquery-3.1.1.min.js"></script> <script src="js/popper.min.js"></script> <script src="js/bootstrap.js"></script> <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> <script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script> <!-- Peity --> <script src="js/plugins/peity/jquery.peity.min.js"></script> <!-- Custom and plugin javascript --> <script src="js/inspinia.js"></script> <script src="js/plugins/pace/pace.min.js"></script> <!-- iCheck --> <script src="js/plugins/iCheck/icheck.min.js"></script> <!-- Peity --> <script src="js/demo/peity-demo.js"></script> <script src="css/messagebox.js"></script> <script> $(document).ready(function(){ $('.i-checks').iCheck({ checkboxClass: 'icheckbox_square-green', radioClass: 'iradio_square-green', }); }); </script> </body> </html>