You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
3.3 KiB

7 years ago
  1. <div class="page-header">
  2. <h1 class="page-title">사용자 접속 로그</h1>
  3. </div>
  4. <?=form_open(NULL, array('method'=>'get','class'=>'form-flex','autocomplete'=>'off'))?>
  5. <div class="form-group">
  6. <label class="control-label">일자 검색</label>
  7. <div class="controls">
  8. <input class="form-control form-control-inline" name="startdate" data-toggle="datepicker" value="<?=$startdate?>">
  9. <input class="form-control form-control-inline" name="enddate" data-toggle="datepicker" value="<?=$enddate?>">
  10. <button class="btn btn-default"><i class="far fa-search"></i> 필터적용</button>
  11. </div>
  12. </div>
  13. <?=form_close()?>
  14. <div class="H10"></div>
  15. <div data-ax5grid>
  16. <table>
  17. <thead>
  18. <tr>
  19. <th>접속일자</th>
  20. <th>국가</th>
  21. <th class="W100">지역</th>
  22. <th class="W100">조직</th>
  23. <th>브라우져</th>
  24. <th>접속기기</th>
  25. <th class="W100">모바일</th>
  26. <th class="col-sm-3">리퍼러</th>
  27. <th>접속 검색어</th>
  28. <th>접속 IP</th>
  29. </tr>
  30. </thead>
  31. <tbody>
  32. <?php foreach($visit_list['list'] as $row) :?>
  33. <tr>
  34. <td class="text-center"><?=$row['sta_regtime']?></td>
  35. <?php if($row['sta_country']) :?>
  36. <td class="text-center"><?=$row['sta_country']?></td>
  37. <td class="text-center" title="<?=$row['sta_addr']?>"><span class="ellipsis W100" style="display:block"><?=$row['sta_addr']?></span></td>
  38. <td class="text-center" title="<?=$row['sta_org']?>"><span class="ellipsis W100" style="display:block"><?=$row['sta_org']?></span></td>
  39. <?php else :?>
  40. <td class="text-center" colspan="3">
  41. <button type="button" class="btn btn-default" data-button="get-ip-info" data-ip="<?=$row['sta_ip']?>"><i class="far fal fas fa-search"></i> 확인</button>
  42. </td>
  43. <?php endif;?>
  44. <td class="text-center"><?=$row['sta_browser']?></td>
  45. <td class="text-center"><?=$row['sta_device']?></td>
  46. <td class="text-center"><?=$row['sta_is_mobile']?></td>
  47. <td>
  48. <?php if($row['sta_referrer_host']) : ?>
  49. <a href="<?=$row['sta_referrer']?>" title="<?=$row['sta_referrer']?>" target="_blank"><?=$row['sta_referrer_host']?></a>
  50. <?php endif;?>
  51. </td>
  52. <td><?=$row['sta_keyword']?></td>
  53. <td class="text-center"><?=$row['sta_ip']?></td>
  54. </tr>
  55. <?php endforeach;?>
  56. </tbody>
  57. </table>
  58. </div>
  59. <div class="H10"></div>
  60. <div class="text-center">
  61. <?=$pagination?>
  62. </div>
  63. <div class="H30"></div>
  64. <script>
  65. $(function(){
  66. $('[data-button="get-ip-info"]').click(function(e){
  67. e.preventDefault();
  68. var ip = $(this).data('ip');
  69. $.ajax({
  70. url : '/ajax/tools/ip_info',
  71. type : 'POST',
  72. async:false,
  73. cache:false,
  74. data : {
  75. ip : ip
  76. },
  77. success:function(res) {
  78. location.reload();
  79. }
  80. })
  81. });
  82. });
  83. </script>