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/trchk_log.php
<? include_once("inc_header.php"); $on_menu="training"; $on_sub_menu=2; ?> <!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/plugins/datapicker/datepicker3.css" rel="stylesheet"> <link href="css/plugins/daterangepicker/daterangepicker-bs3.css" rel="stylesheet"> <link href="css/plugins/chosen/bootstrap-chosen.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_post.php"); ?> <? $sub_query=''; if(!$v_num) { $v_num=10; } $query="select count(*) as cnt from training_chk_log where 1 "; if($chk_qry==1) { $sub_query=stripslashes($prev_qry); } if($search) { $sub_query.=" and mem_no in (select no from member where $find like '%$search%' ) "; } if($sel_no) { $sub_query.=" and a_mem_no = '$sel_no' "; } if($sel_zone) { $sub_query.=" and uzone = '$sel_zone' "; } if($sel_mzone) { $sub_query.=" and mlevel = '$sel_mzone' "; } if($sel_date) { $sub_query.=" and date(regdate) = '$sel_date' "; } 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($sel_sdate) { $sub_query.=" and date(regdate) >= '$sel_sdate' "; } if($sel_edate) { $sub_query.=" and date(regdate) <= '$sel_edate' "; } if($sub_query) {$query.=$sub_query;} $rs=RS($query); vari($rs[cnt],10,$v_num,$c_page); $query="select * from training_chk_log where 1 "; if($sub_query) {$query.=$sub_query;} 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 "; } } //echo $query; $result=mysql_query($query); $gita="&find=".urlencode($find)."&search=".urlencode($search)."&sel_sort=".urlencode($sel_sort)."&sel_no=".urlencode($sel_no)."&sel_date=".urlencode($sel_date)."&sel_zone=".urlencode($sel_zone)."&sel_mzone=".urlencode($sel_mzone)."&chk_qry=".urlencode($chk_qry)."&sel_sdate=".urlencode($sel_sdate)."&sel_edate=".urlencode($sel_edate)."&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' method='post'> <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> </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> </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> <div class="row"> <div class="col-sm-2 m-b-xs"> <select class="form-control-sm form-control input-s-sm inline" name="sel_mzone" onchange='this.form.submit()'> <option value=''>LEVEL 선택</option> <? for($nn=1;$nn<=8;$nn++) {?> <option value='<?=$nn?>' <?if($sel_mzone==$nn) echo "selected";?>><?=$nn?>단계</option> <?}?> </select> </div> <div class="col-sm-2 m-b-xs"> <select class="form-control-sm form-control input-s-sm inline" name="sel_zone" onchange='this.form.submit()'> <option value=''>ZONE 선택</option> <option value='1' <?if($sel_zone=="1") echo "selected";?>>ZONE.1</option> <option value='2' <?if($sel_zone=="2") echo "selected";?>>ZONE.2</option> <option value='3' <?if($sel_zone=="3") echo "selected";?>>ZONE.3</option> <option value='4' <?if($sel_zone=="4") echo "selected";?>>ZONE.4</option> <option value='5' <?if($sel_zone=="5") echo "selected";?>>ZONE.5</option> </select> </div> <div class="col-sm-4 m-b-xs"> <div class="form-group" id="data_5"> <div class="input-daterange input-group" id="datepicker"> <input type="text" class="form-control-sm form-control" name="sel_sdate" value="<?=$sel_sdate?>" autocomplete="off"> <span class="input-group-addon">to</span> <input type="text" class="form-control-sm form-control" name="sel_edate" value="<?=$sel_edate?>" autocomplete="off"> </div> </div> </div> <div class="col-sm-2 m-b-xs"> <div class="form-group" > <div > <button class="btn btn-info " type="button" onclick="this.form.submit()"><i class="fa fa-search"></i> 검색실행</button> </div> </div> </div> </div> <div class="pull-left"></div> <input type='hidden' name='sel_gigan' id='sel_gigan' value="<?=$sel_gigan?>"> <input type='hidden' name='c_page' id='c_page' value="<?=$c_page?>"> </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>LEVEL(1~8)</th> <th>ZONE</th> <th>측정일시</th> </tr> </thead> <tbody> <? while($rs=mysql_fetch_array($result)) { $rsmem=RS("select * from member where no='{$rs[mem_no]}' "); $age=$rsmem[birth]?(date('Y')-$rsmem[birth]+1)."세":''; ?> <tr> <td><?=$i?></td> <td><a href='member.php?find=id&search=<?=$rsmem[id]?>'><?=$rsmem[id]?></a></td> <td><?=$rsmem[nick]?></td> <td><?=$age?></td> <td><?=$rsmem[gender]=='M'?'남':'여'?></td> <td><?=$rs[max_bpm]?></td> <td><?=$rs[get_max_bpm]?></td> <td><?=$rs[mlevel]?>단계</td> <td><?=$rs[uzone]?></td> <td><?=str_replace(" ","<br>",$rs[regdate])?></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> <!-- Chosen --> <script src="js/plugins/chosen/chosen.jquery.js"></script> <!-- Data picker --> <script src="js/plugins/datapicker/bootstrap-datepicker.js"></script> <!-- Date range use moment.js same as full calendar plugin --> <script src="js/plugins/fullcalendar/moment.min.js"></script> <!-- Date range picker --> <script src="js/plugins/daterangepicker/daterangepicker.js"></script> <script src="css/messagebox.js"></script> <script> $(document).ready(function(){ $('.i-checks').iCheck({ checkboxClass: 'icheckbox_square-green', radioClass: 'iradio_square-green', }); $('#data_5 .input-daterange').datepicker({ keyboardNavigation: false, forceParse: false, autoclose: true, format: 'yyyy-mm-dd', }); $('.chosen-select').chosen({width: "100%"}); }); </script> </body> </html>