1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
|
<?php $sub_menu = "800100"; include("./_common.php"); include("./auth_check.php"); // 관리자 권한 체크 include($j3_adm_path."/shop_header.php");
if($order_key==''){ $order_key = 'a.idx desc'; }
$where = " ";
if($stx!=''){ $where .= " and {$sti} like '%{$stx}%' "; }
$sql = "select count(*) as cnt from shop_visit a WHERE 1=1 $where "; $result = mysql_query($sql,$connect_j3); $row = mysql_fetch_array($result); $total_count = $row['cnt'];
$list_num = $config['page_line']; if($_COOKIE['page_line']!=''){ $list_num = $_COOKIE['page_line']; } $total_page = ceil($total_count / $list_num); // 전체 페이지 계산 if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지) $from_record = ($page - 1) * $list_num; // 시작 열을 구함
$sql = "select a.* from shop_visit a WHERE 1=1 $where order by $order_key limit $from_record, $list_num"; $result = mysql_query($sql,$connect_j3);
//_pr($sql); while($cus_info=mysql_fetch_array($result)){ $list_array[] = $cus_info; }
$qstr = $_SERVER['QUERY_STRING'];
?> <div id="wrap" class='container_wrap'> <div id="sub-title"> <h2>접속자통계 리스트</h2> <div class="sub-location"> <a href="./index.php" class="home"><span class="screen_out">홈</span></a> <span class="location-gt"></span> <a>통계/마케팅</a> <span class="location-gt"></span> <a>접속자통계 리스트</a> </div> </div> <!-- 검색영역 --> <form name='content_search_form' method='get'> <input type='hidden' name='faq_idx' size='' value='<?php echo $faq_idx;?>'> <input type='hidden' name='page' size='' value='<?php echo $page;?>'> <div id="sub-contents-area"> <div class="sub-btn-area"> <div class="sub-btn"> <!--<a class="lignt-blue-btn" id='btn_order_new'>신규등록</a><a class="blue-btn">주문복사</a><?php if($Orow['ordstate']==0){ ?><a class="black-btn">전체삭제</a><?php }?><a class="gray-btn" id='buy_print'>인쇄</a><a class="gray-btn" id='xls_down'>엑셀</a><a class="black-btn" id='sel_delete'>선택삭제</a>--> </div> </div> <div class="sub-btn-area"> <div class="sub-btn sub-btn-search"> <select name='sti'> <option value='a.vi_ip' <?php if($sti=='a.vi_ip'){?>selected<?php }?>>아이피</option> <option value='a.vi_referer' <?php if($sti=='a.vi_referer'){?>selected<?php }?>>경로</option> <option value='a.vi_agent' <?php if($sti=='a.vi_agent'){?>selected<?php }?>>브라우저/운영체제</option> </select> <input type='text' id='stx' name='stx' size='' value='<?php echo $stx;?>' class="stx_class"> <a href="#" class="black-btn" id='search_btn_press'>검색</a> </div> </div> </div> </form> <!-- 검색 영영 끝 --> <!-- 탭 구분 영역 끝 --> <div class="item_tab"> <div class="item_tab_navi"> <a value='1' class="on"><span>접속자 리스트</span></a> <a value='2' class=""><span>일별 통계</span></a> <a value='3' class=""><span>월별 통계</span></a> <a value='4' class=""><span>년별 통계</span></a> </div> </div><!--//item_tab--> <!-- 탭 구분 영역 끝 -->
<form name='kword_list_form' method='post'> <input type='hidden' name='sel_del' value=''> <input type='hidden' name='b_table' value='<?php echo $b_table;?>'> <div class="div-list-area"> <div class="cust-list-area"> <table class="order-sheet2"> <caption class="screen_out">내용 리스트 조회<caption> <colgroup> <col style="width:30px;"> <col style="width:100px;"><col style="width:100px;"><col style="width:100px;"> <col style=""><col style="width:150px;"> </colgroup>
<thead> <tr> <th scope="col"><input type='checkbox' name='ck_all' class='check_all_class'></th> <th scope="col">아이피</th><th scope="col">접속일</th><th scope="col">접속시간</th> <th scope="col">접속경로</th><th scope="col">브라우저/운영체제</th> </tr> </thead> <tbody> <?php for($i=0;$i<count($list_array);$i++){ // 게시물 처리 $info = $list_array[$i];
$brow = get_brow($info['vi_agent']); $os = get_os($info['vi_agent']); ?> <tr> <td class="tcenter "> <input type='checkbox' name='code_idx[]' value='<?php echo $i;?>' class='code_idx_class'> <input type='hidden' name='codes[]' value='<?php echo $info['idx'];?>'> </td> <td class="tcenter "><?php echo $info['vi_ip'];?></td> <td class="tcenter "><?php echo $info['vi_date'];?></td> <td class="linetxt "><?php echo $info['vi_time'];?></td> <td class="tcenter "><?php echo $info['vi_referer'];?></td> <td class="tcenter "><?php echo $brow." / ".$os;?></td> </tr> <?php } ?> </tbody> </table> </div> </div> </form>
<div class='pg_wrap' style='padding-top:0px;'> <?php echo get_paging($list_num, $page, $total_page, "?$qstr");?> </div>
</div><!--//wrap--> <script> var qstr = '<?php echo $qstr;?>'; $(function(){ $(".item_tab_navi a").click(function(){ //네비게이션 탭 처리 v = $(this).attr("value"); if(v=='2'){ document.location.href='visited_date.php?datemode=day'; } else if(v=='3'){ document.location.href='visited_date.php?datemode=month'; } else if(v=='4'){ document.location.href='visited_date.php?datemode=year'; } });
$(".check_all_class").click(function(){ // 전체선택 전체선택 해제 if($(this).is(":checked")){ $("input[name='code_idx[]']").prop("checked",true); } else { $("input[name='code_idx[]']").prop("checked",false); } });
$("#search_btn_press").click(function(){ // 검색버튼 누를때 document.content_search_form.action='?'; document.content_search_form.target = ''; document.content_search_form.submit(); });
});
</script>
<?php include($j3_adm_path."/shop_footer.php"); ?> <div id="modal_member_box" title="거래처수정" style="display:none;width:100%; height:100%; padding-top:3px;padding-left:3px;background-color:#FFFFFF;position:relative;"></div>
|