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.

86 lines
3.6 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. <div class="page-header" data-fit-aside>
  2. <h1 class="page-title">회원 로그인 기록<small>회원 관리 &gt; 회원 로그인 기록</small></h1>
  3. </div>
  4. <form data-grid-search onsubmit="grid.refresh(1);return false;" data-fit-aside autocomplete="off">
  5. <div data-ax-tbl>
  6. <div data-ax-tr>
  7. <div data-ax-td>
  8. <div data-ax-td-label>기간 검색</div>
  9. <div data-ax-td-wrap>
  10. <input class="form-control" data-chained-datepicker="[name='enddate']" name="startdate" data-toggle="datepicker" value="<?=date('Y-m-d',strtotime('-1 month'))?>">
  11. </div>
  12. <div data-ax-td-wrap>
  13. <input class="form-control" name="enddate" data-toggle="datepicker" value="<?=date('Y-m-d')?>">
  14. </div>
  15. </div>
  16. <div data-ax-td>
  17. <div data-ax-td-label>검색어 입력</div>
  18. <div data-ax-td-wrap>
  19. <select class="form-control form-control-inline" name="sc">
  20. <option value="userid" <?=$sc=='userid'?'selected':''?>>아이디</option>
  21. <option value="nickname" <?=$sc=='nickname'?'selected':''?>>닉네임</option>
  22. <option value="idx" <?=$sc=='idx'?'selected':''?>>회원번호</option>
  23. </select>
  24. </div>
  25. </div>
  26. <div data-ax-td>
  27. <div data-ax-td-wrap>
  28. <input class="form-control" name="st" value="<?=$st?>">
  29. </div>
  30. <div data-ax-td-wrap>
  31. <button class="btn btn-default btn-sm"><i class="fal fa-search"></i> 필터적용</button>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. </form>
  37. <div class="H10" data-fit-aside></div>
  38. <div class="grid-wrapper" data-fit-content>
  39. <div id="grid-container" class="grid-wrapper"></div>
  40. </div>
  41. <script>
  42. var grid = new GRID('#grid-container', {
  43. paging: {
  44. pageSize:15
  45. },
  46. columns: [
  47. {caption:'순번', dataField:'nums', alignment:'right', width:80, dataType:'number', format:'fixedPoint'},
  48. {caption:'일시', dataField:'mlg_regtime', alignment:'center', width:160},
  49. {caption:'아이디', dataField:'mem_userid', alignment:'left', width:160},
  50. {caption:'이름', dataField:'mem_nickanem', alignment:'left', width:100},
  51. {caption:'브라우져', dataField:'mlg_browser', alignment:'left', width:80},
  52. {caption:'OS', dataField:'mlg_platform', alignment:'left', width:80},
  53. {caption:'모바일', dataField:'mlg_is_mobile', alignment:'center', width:60},
  54. {caption:'IP', dataField:'mlg_ip', alignment:'center', width:120},
  55. {caption:'', calculateCellValue:function(e) {return ''}}
  56. ],
  57. dataSource: new DevExpress.data.DataSource({
  58. key : 'mlg_idx',
  59. load: function(loadOptions) {
  60. var d = $.Deferred();
  61. var params = grid.getSearchParam(loadOptions);
  62. $.ajax({
  63. url : base_url + '/admin/ajax/members/logs',
  64. type: 'GET',
  65. async: false,
  66. cache: false,
  67. data: params
  68. }).done(function(res) {
  69. d.resolve(res.lists, {
  70. totalCount : res.totalCount
  71. });
  72. });
  73. return d.promise();
  74. }
  75. }),
  76. })
  77. $(function() {
  78. grid.init();
  79. });
  80. </script>