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
|
<?php include_once("./_common.php");
$cuscode = $id_ccode; $sacode = $configshop["office_code"];
if($txtdate==''){ $txtdate = date("Y-m-d",time()-(60*60*24*7)); } if($txtdate2==''){ $txtdate2 = date("Y-m-d",time()); }
$optionqry = "SELECT optname, optvalue FROM options"; $optresult = mysql_query($optionqry,$connect_j3); while( $optrow = mysql_fetch_array($optresult)){ //$optrow['optname'] = iconv_utf8($optrow['optname']);
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지정상품분류") $optcate = $optrow['optvalue']; if($optrow['optname'] == "ON지정상품") $optpro = $optrow['optvalue']; if($optrow['optname'] == "ON특별단가적용") $optonspe = $optrow['optvalue']; if($optrow['optname'] == ("특별단가적용방식". $sacode)) $optspemode = $optrow['optvalue']; if($optrow['optname'] == "상품매출가숨김") $optpophide = $optrow['optvalue']; //$optpophide = 1; $optmhide = '1'; // 임시로 온 표시 //$optinvnqnt = 1; // 임시로 온 표시 if($optrow['optname'] == "온주상품비고숨김") $optproductbigo = $optrow['optvalue']; if($optrow['optname'] == "금액소수점수") $pricepoint = $optrow['optvalue']; if($optrow['optname'] == "단가소수점수") $unitpoint = $optrow['optvalue']; if($optrow['optname'] == "수량소수점수") $amountpoint = $optrow['optvalue']; if($optrow['optname'] == "ON거래처별할인적용") $sp_danga_sale = $optrow['optvalue']; if($optrow['optname'] == "특별단가거래처할인") $sp_danga_cate_sale = $optrow['optvalue']; // 특별단가 옵션에 거래처별/소분류 할인 적용 if($optrow['optname'] == "온주세트상품조회") $sp_set_view = $optrow['optvalue']; //if($optrow['optname'] == "선수금주문방식") $sp_allow_overincome = $optrow['optvalue']; // <선수금> 만큼만 주문허용
// 정상 옵션 if($optrow['optname'] == "특별단가사용") $optspe = $optrow['optvalue']; if($optrow['optname'] == "다중단가계산기준Sale") $optdac = $optrow['optvalue']; //0 매입단가 1매출단가 2기준단가 if($optrow['optname'] == "원단위자리수") $optwon = $optrow['optvalue']; if($optrow['optname'] == "원단위처리") $optwoncut = $optrow['optvalue']; if($optrow['optname'] == "특별DC사용") $sp_dc_use = $optrow['optvalue']; if($optrow['optname'] == "ON주문시박스관리") $optbox = $optrow['optvalue']; if($optrow['optname'] == "ON현재고표시") $optinvnqnt = $optrow['optvalue']; } include($j3_path."/header.sub.php"); ?> <style> .form-print-dl { width:100%;} .form-print-dl dt {float:left;width:50%; text-align:center; } .form-print-dl dd {float:right;width:50%; text-align:center; } .form-print { width:100%; padding:10px; text-align:center; } .form-print .gray-btn {display:inline-block; margin-left:5px; width:80px; height:28px; line-height:28px; text-align:center; color:#FFF; font-weight:600; background:#777; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px} </style> <style> /* Sub : 검색 */ .sub-order-area {margin-top:10px;position:relative; } .sub-order-area h3 {margin-bottom:10px; line-height:21px; font-size:21px} .sub-order-area h3 span {float:right; font-size:13px;} .sub-order-area h3 span em {font-weight:600}
.form-search .light-blue-btn {display:inline-block; margin-right:1px; width:50px; height:28px; line-height:28px; text-align:center; color:#FFF; background:#5994cc; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px} .form-search .search_date {margin:0 2px 0 5px; padding-left:5px; width:90px; height:28px; line-height:28px; border:1px solid #E1E1E1;} .form-search .calendar {display:inline-block; width:24px; height:28px; line-height:28px} .form-search .black-btn {display:inline-block; margin-left:5px; width:80px; height:28px; line-height:28px; text-align:center; color:#FFF; font-weight:600; background:#000; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px} .form-search .gray-btn {display:inline-block; margin-left:5px; width:80px; height:28px; line-height:28px; text-align:center; color:#FFF; font-weight:600; background:#777; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px}
.form-search {height:49px; border-top:2px solid #000; border-bottom:1px solid #E1E1E1;} .form-search dt {float:left; width:160px; text-align:center; line-height:49px; font-weight:600; background:#f7f7f7} .form-search dd {float:right; width:780px; line-height:49px}
/* Sub : 테이블 */ .order-sheet-area {margin-top:10px; width:100%; border-top:2px solid #000} .order-sheet {width:100%} .order-sheet th {height:30px; line-height:30px; text-align:center; font-weight:600; border-bottom:1px solid #E1E1E1; background:#f7f7f7} .order-sheet td {height:30px; line-height:30px; text-align:center; border-bottom:1px solid #E1E1E1} .order-sheet td input[type=text] {padding:0 5px; width:170px; height:24px; line-height:24px} .order-sheet td input.long-text {width:810px} .order-sheet .step span {font-weight:600} .order-sheet td.dark-border {border-bottom:1px solid #888} .order-sheet td.total-bgcolor {color:#333; font-weight:600; background:#9ac4eb} .order-sheet td.cost {padding-right:3px; text-align:right} .order-sheet td.linetxt {padding-right:3px; text-align:center} .order-sheet td.beginning-balance {color:#2f6ba9; font-size:14px; font-weight:600; background:#FFC} .order-sheet tfoot th, .order-sheet tfoot td {height:36px; line-height:36px; text-align:center; font-weight:600; border-bottom:1px solid #000; background:#E8E8E8} .order-sheet .class_td_tfoot {height:36px; line-height:36px; text-align:center; font-weight:600; border-bottom:1px solid #000; background:#E8E8E8} .order-sheet .class_td_tfoot td{border-bottom:1px solid #333 !important; } .order-sheet tfoot th {background:#E1E1E1} .order-sheet tfoot td {font-size:15px;} </style> <div class="sub-order-area"> 거래일자 : <input type='text' value='<?php echo $txtdate;?>' readonly size=12> ~ <input type='text' value='<?php echo $txtdate2;?>' readonly size=12> </div> <?php include($j3_shop_path."/buy_list_inc.php"); ?> <div class='form-print'> <a href="#" class="gray-btn" id='print_btn_press'>인쇄하기</a> </dl>
<script> $(function(){ $(".form-print .gray-btn") .click(function(){ $(this).hide(); window.print(); }); }); </script>
<?php include($j3_path."/footer.sub.php"); ?>
|