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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
|
<?php Global $cinfo, $configshop;
$cuscode = $id_ccode; $sacode = $configshop["office_code"]; if($txtdate==''){ $txtdate = date("Y-m-01",time()); } if($txtdate2==''){ $txtdate2 = date("Y-m-d",time()); }
$optionqry = "SELECT optname, optvalue FROM options"; $optresult = mysql_query($optionqry, $connect_j3); $amountpoint = 0; $unitpoint = 0; $pricepoint = 0; while( $optrow = mysql_fetch_array($optresult)){
//$optrow = array_utf8($optrow);
if($optrow['optname'] == "ON라인신규고객등록") $optnew = $optrow['optvalue']; if($optrow['optname'] == "ON주문시금액숨김") $optmhide = $optrow['optvalue']; if($optrow['optname'] == "주문한도숨김") $optlimit = $optrow['optvalue']; if($optrow['optname'] == "선수금주문방식") $optsmoney = $optrow['optvalue']; if($optrow['optname'] == "ON주문시박스관리") $optbox = $optrow['optvalue']; if($optrow['optname'] == "ON지정상품분류") $optcate = $optrow['optvalue']; if($optrow['optname'] == "ON지정상품") $optpro = $optrow['optvalue']; if($optrow['optname'] == "ON특별단가적용") $optspe = $optrow['optvalue']; if($optrow['optname'] == "다중단가계산기준") $optdac = $optrow['optvalue']; //0 매입단가 1매출단가 2기준단가 if($optrow['optname'] == "온주원장입금비고") $optreceivebigo = $optrow['optvalue'];
if($optrow['optname'] == "수량소수점수") $amountpoint = $optrow['optvalue']; if($optrow['optname'] == "단가소수점수") $unitpoint = $optrow['optvalue']; if($optrow['optname'] == "금액소수점수") $pricepoint = $optrow['optvalue']; }
$optreceivebigo = '1';
if($skin_css!=''){ echo $skin_css; } else { ?> <!-- 상단 카테고리 내 위치 --> <style> select {width:100%;padding:0 3px;height:27px;border:1px solid #afafaf;font-size:14px;color:#444;line-height:1.62em;vertical-align:middle;-webkit-appearance:none;border-radius:3px;background-size:25px 730px,100% 100%} input.it{width:100% !important;min-width:14px;height:27px;padding:0 0 0 3px;color:#444;border:1px solid #afafaf;border-radius:3px;-webkit-appearance:none;box-sizing:border-box;box-shadow:0 1px 0 #f2f2f2 inset;-webkit-box-shadow:0 1px 0 #f2f2f2 inset;-moz-box-shadow:0 1px 0 #f2f2f2 inset}
.product_section {clear:both;display:block;margin:0 3px;} .sum {margin:10px 0;padding:10px;border:1px solid #c3cedc;border-top:2px solid #6288bf;background:#f3f9fb } .sum h3 {display:inline-block;float:left;width:30%;line-height:27px;color:#2e5694;font-weight:600;letter-spacing:-1px;} .sum p {width:70%;line-height:27px;overflow:hidden;} .search {margin:10px 0;padding:10px;border:1px solid #c3cedc;border-top:2px solid #000;background:#FFF} .search .buy {display:block;width:100%;margin-top:3px;line-height:27px;}/*2열*/ .search .buy select {width:32%;margin-right:2%;} .search .buy select:last-child {margin-right:0px;} .search .buy input[type=text] {width:45% !important;} .search .buy span {display:inline-block;width:10%;text-align:center} .search .buy dd{margin-bottom:3px;} .search .buy h3 {display:block;float:left;width:15%;font-weight:600;} .search .order {display:block;float:left;width:48.7%;margin-top:3px;}/*4열*/ .search .odd {margin-right:2%;} .search .order_w {display:inline-block;width:100%;margin-top:3px;}/*2열*/ .search .order h3, .search .order_w h3 {display:inline-block;float:left;line-height:27px;font-weight:600;letter-spacing:-1px;} .search .order h3 {width:40%;} .search .order_w h3 {width:19%;} .search .order p {width:58%;padding-left:2%;letter-spacing:-1px;line-height:27px;overflow:hidden} .search .order p span {line-height:1.25em;} .search .order_w p {width:78.9%;padding-left:1.6%;line-height:27px;overflow:hidden;} .search .order input[type=text] {width:90%;}
.search .notice {margin:0 0 10px;padding:5px;text-align:center;border:1px solid #afafaf;border-radius:3px;} .cust_info {border-top:2px solid #6288bf;} .cust_info th, .cust_info td {border-bottom:1px solid #8db3e2;} .cust_info th {padding:5px 0;font-weight:600;letter-spacing:-1px;background:#c6d9f0;} .cust_info td {padding-left:5px;} .cust_info .addr {padding:5px;}
.search .pwd {display:inline-block;width:100%;margin-top:3px;}/*2열*/ .search .pwd h3 {display:inline-block;float:left;width:30%;line-height:27px;font-weight:600;letter-spacing:-1px;} .search .pwd p {width:68%;padding-left:2%;letter-spacing:-1px;line-height:27px;overflow:hidden} .search div > input[type=button] {line-height:27px;} .search .item {margin-top:5px;} .search .item input[type=text], .search .item select {width:32% !important;margin-right:2%;} .search .item input[type=text]:last-child, .search .item select:last-child {margin-right:0%;} .search .item .check {display:inline-block;margin-top:2px;} .search .item label {margin-right:10px;letter-spacing:-1px;font-weight:600;} .search .item input[type=text].long {width:50% !important;} .search .item .b_blue {float:right;width:23%;}
/*조회버튼*/ .ls_v2, .search .ls_v3 {display:block;width:100%;height:27px;margin-top:7px;} /*하단형*/ .ls_v3 p {display:inline-block;float:left;width:48.3%;margin-right:2%;}/*더블형*/ .ls_v3 p:last-child {margin:0;}
b_blue a, .b_blue input, .b_blue span {display:block;width:100%;line-height:25px;text-align:center;font-size:1em;font-weight:600;}
/*조회내역 : 우선*/ .list {clear:both;margin:10px 0;display:inline-block;width:100%;overflow:hidden;} .list h3 {margin:0 0 10px;font-size:1em;font-weight:600;text-align:center;} .list .chb_all{display:block;margin:10px 0 0;padding:10px;min-height:20px;border:1px solid #c3cedc;border-top:2px solid #000;background:#FFF;} .list .chb_all div{float:right;margin-top:-3px;}
.p_line {border-top:2px solid #6288bf;} .product {width:100%;border-left:1px solid #c3cedc;border-right:1px solid #c3cedc;background:#FFF;} .product .odd, .product .daily {background:#f3f9fb;} .product .deposit{background:#fefee9;} .product .deposit_b {border-top:2px solid #6288bf;} .product thead td {font-weight:600;} .product th{padding:2px 0;font-size:0.95em;font-weight:600;letter-spacing:-1px;border-bottom:1px solid #c3cedc;background:#accaf2;} .product th a {font-size:1em;font-weight:600;} .product td{padding:2px;height:27px;font-size:0.85em;text-align:center;white-space:normal;border-bottom:1px solid #c3cedc;} .product input[type=checkbox] {width:21px;height:21px;} .product td p{display:block;margin:0 auto;width:15px;height:15px;border:1px solid #afafaf;} .product td strong {font-size:1em;} .product .lineR {border-right:1px solid #c3cedc;} .product td .b_blue, .product td .b_defn {float:right;width:25%;}
.pw1{width:12%;} .pw2{width:14%;} .pw3{width:13%;} .pw4{width:12%;} .pw5{width:8%;} .pw8{width:11%;} .lw1 {width:23%;height:35px;} .lw2 {width:20%;font-weight:600;} .lw3 {width:17%;} .lw4 {width:25%;} .lw5 {width:15%;}
.pcw1{width:36px;} .pcw2{width:10%;} .pcw3{width:30%;} .pcw4{width:20%;} .bw1 {width:15%;} .bw2 {width:20%;}
/*매출처원장*/ .blueBox {margin:10px;border:1px solid #90b3e6;background:#accaf2;} .blueBox table {margin:5px 10px 7px;background:#FFF} .blueBox table caption {font-size:0.95em;} .blueBox table th {padding:1px 0;color:#666;font-size:0.9em;font-weight:600;border-bottom:1px solid #accaf2;background:#c7dffc;} .blueBox table td {text-align:center;padding:0 1%;border-bottom:1px solid #accaf2;} .grayBox {margin:10px 0;border:1px solid #DDD;background:#E8E8E8;} .grayBox table {margin:5px 10px 7px;background:#FFF} .grayBox table caption {color:#444;text-align:right;font-size:0.95em;} .grayBox table th {padding:1px 0;color:#777;font-size:0.9em;font-weight:600;border-bottom:1px solid #E8E8E8;background:#f8f8f8;} .grayBox table td {text-align:center;padding:0 1%;border-bottom:1px solid #E8E8E8;}
.dotLine {margin:15px 10px;height:1px;border-bottom:1px dashed #999} </style> <?php }?>
<div class="product_section"> <div class="search"> <h2>거래원장 조회</h2> <form name='searchFrm' method='get'> <div class="buy"> <select title="기간" name='set_date' id='set_date'> <option value="">기간선택</option> <option value="0 day" <?php if($set_date=='0 day'){?>selected<?php }?>>오늘</option> <option value="-3 day" <?php if($set_date=='-3 day'){?>selected<?php }?>>최근 3일</option> <option value="-5 day" <?php if($set_date=='-5 day'){?>selected<?php }?>>최근 5일</option> <option value="-7 day" <?php if($set_date=='-7 day'){?>selected<?php }?>>최근 7일</option> <option value="-1 month" <?php if($set_date=='-1 month'){?>selected<?php }?>>최근 1개월</option> <option value="-3 month" <?php if($set_date=='-3 month'){?>selected<?php }?>>최근 3개월</option> <option value="-6 month" <?php if($set_date=='-6 month'){?>selected<?php }?>>최근 6개월</option> <option value="-1 year" <?php if($set_date=='-1 year'){?>selected<?php }?>>최근 1년</option> </select> </div> <div class='buy'> <input type='text' name='txtdate' id='txtdate' value='<?php echo $txtdate;?>' class='it' placeholder='시작일(YYYY-MM-DD)'><span>~</span><input type='text' name='txtdate2' id='txtdate2' value='<?php echo $txtdate2;?>' class='it' placeholder='시작일(YYYY-MM-DD)'> </div> <div class="ls_v3 b_blue"> <input type="button" title="조회" value="조회" onclick="Search();" > </div> </form> </div><!-- class="search" -->
<?php if($app_id=='kyongsang241'){ $optmhide = "1"; $optaphide = "1"; // 모든 금액 숨김처리용 } include($j3_shopm_path."/buy_list_inc.php"); ?>
</div><!--//product_section--> <script> $(function(){ $( "#txtdate" ).datepicker({ dateFormat: "yy-mm-dd", changeMonth: true, changeYear: true, monthNames: ['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월'], monthNamesShort: ['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월'], dayNames: ['일','월','화','수','목','금','토'], dayNamesShort: ['일','월','화','수','목','금','토'], dayNamesMin: ['일','월','화','수','목','금','토'], showMonthAfterYear: true, yearSuffix: '년' });
$( "#txtdate2" ).datepicker({ dateFormat: "yy-mm-dd", changeMonth: true, changeYear: true, monthNames: ['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월'], monthNamesShort: ['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월'], dayNames: ['일','월','화','수','목','금','토'], dayNamesShort: ['일','월','화','수','목','금','토'], dayNamesMin: ['일','월','화','수','목','금','토'], showMonthAfterYear: true, yearSuffix: '년' });
$("#set_date").change(function(){ day_val = $(this).val(); rtn_val1 = "txtdate"; rtn_val2 = "txtdate2"; form_data = "val1="+day_val+"&rtn1="+rtn_val1+"&rtn2="+rtn_val2; $.ajax({type:"post", url:"<?php echo $j3_url;?>/shop/ajax_datediff.php?",data:form_data, dataType : "xml", success:function(xml){ $("#"+$(xml).find('rtn1').text()).val($(xml).find('vdate1').text()); $("#"+$(xml).find('rtn2').text()).val($(xml).find('vdate2').text()); }, error:function(rtn,status,error){
} }); }); });
function Search(){ $("form[name='searchFrm']").submit(); } </script>
|