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
|
<?php $dir = "."; include_once($dir."/_common.php"); include('./header.php');
if($xmlx!=''){ $xmlx = stripslashes($xmlx); $res_opt = cur_11_rtn_conv2($xmlx); }
$week_date = date("Ymd",time()-(60*60*24*7));
$path = "./data/api_log"; $dirs = dir($path); while(false !== ($entry = $dirs->read())){ // 읽기 if(($entry != '.') && ($entry != '..')) { if(is_dir($path.'/'.$entry)) { // 폴더이면 if($week_date<=$entry){ $entrys['dir'][] = $entry; } } else { // 파일이면 $entrys['file'][] = $entry; } } } $dirs->close(); // 닫기 sort($entrys['dir']);
if($log_date!=''){ $path = "./data/api_log/$log_date"; $dirs = dir($path); while(false !== ($entry = $dirs->read())){ // 읽기 if(($entry != '.') && ($entry != '..')) { if(is_dir($path.'/'.$entry)) { // 폴더이면 $files['dir'][] = $entry; } else { // 파일이면 $files['file'][] = $entry; } } } $dirs->close(); // 닫기 sort($files['file']); }
?>
<!--<div id="contents" style="background:#999"><img src="http://placehold.it/960x150" alt="롤링배너"></div>--> <div id="contents" style="height:2px;border-bottom:1px solid #eee;background:#2f6ba9"> <span class="screen_out">header 하단 선</span> </div>
<div id="wrap"> <div id="sub-title"> <h2>XML파싱 관리</h2> <div class="sub-location"> <a href="./index.php" class="home"><span class="screen_out">홈</span></a> <span class="location-gt"></span> <a>XML파싱 관리</a> <span class="location-gt"></span> <a>XML파싱 관리</a> </div> </div> <div class="order-sheet-area" style='width:1200px;'> <table class="order-sheet"> <colgroup> <col style="width:150px;"><col style="width:850px;"> </colgroup>
<tbody> <?php foreach($entrys['dir'] as $key=>$val){ ?> <tr> <th>로그 날짜</th> <td class='linetxt'> <a href='?log_date=<?php echo $val;?>'>DIR : <?php echo $val;?></a> <?php if($log_date!='' && $val==$log_date){ foreach($files['file'] as $key2=>$val2){ echo "<br>FILE : <a onclick=\"log_view('{$val}','{$val2}')\">$val2</a>"; } } ?> </td> </tr> <?php } ?> </table> </div>
<form name='category_search_form' method='get'> <input type='hidden' name='biztype' size='' value='<?php echo $biztype;?>'> <div id="sub-contents-area"> <div class="sub-btn-area"> <div class="sub-btn"> <a class="lignt-blue-btn" id='btn_xml_array'>XML파싱</a> </div> </div> </div> </form> <div class="item_tab screen_out"> <div class="item_tab_navi"> <a value='0' class="on"><span>전체</span></a> <a value='1'><span>11번가</span></a> </div> </div>
<form name='product_list_form' id='product_list_form' method='post'> <input type='hidden' name='sel_del' value=''> <div class="div-list-area"> <div class="cust-list-area" style='padding-top:20px;'> <textarea name='xmlx' style='width:99%;height:300px;'><?php echo $xmlx;?></textarea> </div> <div class="cust-list-area xml_array_class" style='padding-top:20px;'> <?php _pr($res_opt);?> </div> </div> </form>
<span class='help_info'></span>
</div><!--//wrap-->
<script> var qstr = '<?php echo $qstr;?>'; $(function(){ $(".item_tab_navi a").click(function(){ //네비게이션 탭 처리 v = $(this).attr("value"); if(v==0){ document.location.href="?"; } else { document.location.href="?stpc=11"; } });
$(".check_all_class").click(function(){ // 전체선택 전체선택 해제 if($(this).is(":checked")){ $("input[name='code_idx[]']").prop("checked",true); } else { $("input[name='code_idx[]']").prop("checked",false); } });
$(".click_edit").click(function(){ $code = $(this).closest("tr").find("input[name='codes[]']").val(); setsave("qstr",qstr,1); document.location.href='product_view.php?idx='+$code; });
$("#btn_xml_array").click(function(){ form_data = $("#product_list_form").serialize(); $.ajax({type:"post", url:"ajax.xml_array_process.php", data:form_data, async:true, dataType : "html", success:function(xml){ $(".xml_array_class").html(xml); }, error:function(rtn,status,error){ alert(error); } }); });
});
function log_view($dir,$file){ window.open("xml_log_view.php?dir="+$dir+"&file="+$file,"log_view","width=1024, height=768, scrolbars=yes"); } </script> <?php include('./footer.php'); ?>
|