/home/mjc1/public_html/emillennium/include/new_tax.php


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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
<style>
    #ly_image {margin:10px;}
    .st_bd td, .st_bd td{ height:32px; line-height:16px;top:0px;}

    .cus_title span{/*display:none;*/}
    .tax_table { width:700px; table-layout:fixed;}
    .tax_table tr { border-left:1px solid red; border-top:1px solid red; }
    .tax_table td, .tax_table th{ border-right:1px solid red; border-bottom:1px solid red;}
    .tax_table td { font-size:0.9em; }
    .tax_table th { color:red; }
    .tax_table .cost {padding-right:5px; text-align:right}
    .tax_table .linetxt {padding-left:3px; text-align:left}
    .tax_table .tcenter {padding-right:3px; text-align:center}
    .tax_table .border-2l { border-left:2px solid red;}
    .tax_table .border-2r { border-right:2px solid red;}
    .tax_table .border-2t { border-top:2px solid red;}
    .tax_table .border-2b { border-bottom:2px solid red;}
    .tax_table .border-1l { border-left:1px solid red;}
    .tax_table .border-1r { border-right:1px solid red;}
    .tax_table .border-1t { border-top:1px solid red;}
    .tax_table .border-1b { border-bottom:1px solid red;}
    .tax_table    .top_title { position:relative;border-top:0px; text-align:center; }
    .tax_table    .top_title div { position:absolute;top:0px;width:320px;font-size:30px; font-weight:bold; }
    .tax_table .border-ntop { border-top:0px; }
    .tax_table .border-nbottom { border-bottom:0px; }
    .st_bd tbody { font-size:0.8em; }
    .pos_realative { position:relative; }
    .seal_class { position:absolute; right:0px; color:red;}
    .hd_td { height:61px !important;}
    .hd_td .hd_modi { position:absolute; font-size:20px; font-weight:bold; top:20px; left:75px; color:red;}
    .tax_bigo_class {font-size:0.65em !important; }
    .hd_td .hd_title { position:absolute; font-size:20px; font-weight:bold; top:20px; left:160px; color:red;}
    .hd_td .hd_title2 { position:absolute; font-size:16px; top:12px; left:358px; color:red; }
    .hd_td .hd_title3 { position:absolute; font-size:13px; top:42px; left:2px; color:red; }
    .hd_td .hd_title4 { position:absolute; font-size:15px; top:3px; left:510px; color:red; line-height:27px; }
    .hd_inner_table { position:absolute; top:-1px; right:-1px;}
    .hd_inner_table td, .hd_inner_table th { height:30px;}
    .hd_inner_table th {text-align:right;font-size:1.2em; }

    .item_tbody td { height:30px; }
    .item_tot td { height:35px; }
</style>
        <table class='tax_table' border=0 cellspacing=0 cellpadding=0 class=''>
            <colgroup>
                <col style="width:20px;">
                <col style="width:70px;">
                <col style="width:120px;">
                <col style="width:20px;">
                <col style="width:20px;">
                <col style="width:20px;">
                <col style="width:80px;">

                <col style="width:20px;">
                <col style="width:70px;">
                <col style="width:120px;">
                <col style="width:20px;">
                <col style="width:20px;">
                <col style="width:20px;">
                <col style="width:80px;">
            </colgroup>
            <tbody class='st_bd'>
            <tr>
                <td class='pos_realative hd_td border-2l border-2t border-2r' colspan=14 style='border-bottom:0px;'>
                    <?php if($ORG_ETAXBIL_APPV_NO!=''){?><div class='hd_modi'>수&nbsp;&nbsp;&nbsp;&nbsp;정&nbsp;&nbsp;&nbsp;&nbsp;</div><?php }?>
                    <span class='hd_title'>세&nbsp;&nbsp;&nbsp;&nbsp;금&nbsp;&nbsp;&nbsp;&nbsp;계&nbsp;&nbsp;&nbsp;&nbsp;산&nbsp;&nbsp;&nbsp;&nbsp;서(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)</span>
                    <div class='hd_title2'>공 급 자<br>보 관 용</div>
                    <div class='hd_title3'>(별지 제11호 서식)</div>
                    <div class='hd_title4'>책&nbsp; 번&nbsp; 호<br>일련번호</div>
                    <table width=120 class='hd_inner_table'>
                        <tr>
                            <th colspan=3>권</th>
                            <th colspan=3>호</th>
                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr class=''>
                <th class='tcenter border-2l border-2b' rowspan=4 style='border-right:0px;'>공<br>급<br>자</td>
                <th class='tcenter border-2l border-2t' >등록번호</td>
                <td class='linetxt border-2r border-2t' colspan=5><?php echo $sCompanyNum;?></td>
                <th class='tcenter border-2b' rowspan=4 style='border-right:0px;'>공<br>급<br>받<br>는<br>자</td>
                <th class='tcenter border-2t border-2l border-2b' >등록번호</td>
                <td class='linetxt border-2r border-2t border-2b' colspan=5><?php echo $rCompanyNum;?></td>
            </tr>
            <tr class=''>
                <th class='tcenter border-2l border-2b ' >상&nbsp;&nbsp;&nbsp;호<br>(법인명)</td>
                <td class='linetxt border-2b' colspan=3><?php echo $sCompanyNname;?></td>
                <th class='tcenter border-2b' >성<br>명</td>
                <td class='linetxt pos_realative border-2b border-2r' >
                    <?php echo $sChiefName;?>
                    <span class='seal_class'>(인)</span>
                </td>
                <th class='tcenter border-1l' >상&nbsp;&nbsp;&nbsp;호<br>(법인명)</td>
                <td class='linetxt ' colspan=3><?php echo $rCompanyNname;?></td>
                <th class='tcenter ' >성<br>명</td>
                <td class='linetxt pos_realative border-2r' >
                    <?php echo $rChiefName;?>
                    <span class='seal_class'>(인)</span>
                </td>
            </tr>
            <tr class=''>
                <th class='tcenter border-1l' >사업장<br>주소</td>
                <td class='linetxt ' colspan=5><?php echo $sCompanyAddr;?></td>
                <th class='tcenter border-1l' >사업장<br>주소</td>
                <td class='linetxt border-2r' colspan=5><?php echo $rCompanyAddr;?></td>
            </tr>
            <tr class=''>
                <th class='tcenter border-2b border-1l' >업&nbsp;&nbsp;&nbsp;태</td>
                <td class='linetxt border-2b' ><?php echo $sUptae;?></td>
                <th class='tcenter border-2b' >종<br>목</td>
                <td class='linetxt pos_realative border-2b' colspan=3><?php echo $sJongmok;?></td>
                <th class='tcenter border-2b border-1l' >업&nbsp;&nbsp;&nbsp;태</td>
                <td class='linetxt border-2b' ><?php echo $rUptae;?></td>
                <th class='tcenter border-2b' >종<br>목</td>
                <td class='linetxt pos_realative border-2r' colspan=3><?php echo $rJongmok;?></td>
            </tr>
            </tbody>
        </table>
        <table border=0 class='tax_table' style='border-top:0px;'>
            <colgroup>
                <col style="width:39px;">
                <col style="width:33px;">
                <col style="width:33px;">

                <col style="width:55px;">
                <col style="width:20px;">
                <col style="width:20px;">
                <col style="width:20px;">
                <col style="width:20px;">
                <col style="width:20px;">
                <col style="width:20px;">
                <col style="width:20px;">
                <col style="width:20px;">
                <col style="width:20px;">
                <col style="width:20px;">
                <col style="width:20px;">

                <col style="width:20px;">
                <col style="width:20px;">
                <col style="width:20px;">
                <col style="width:20px;">
                <col style="width:20px;">
                <col style="width:20px;">
                <col style="width:20px;">
                <col style="width:20px;">
                <col style="width:20px;">
                <col style="width:20px;">

                <col style="width:120px;">
            </colgroup>
            <tbody>
                <tr style='border-top:0px;'>
                    <th class='tcenter border-2l' colspan=3 >작&nbsp;&nbsp;&nbsp;성</th>
                    <th class='tcenter' colspan=12>공&nbsp;&nbsp;급&nbsp;&nbsp;가&nbsp;&nbsp;액</th>
                    <th class='tcenter border-2r' colspan=10>세&nbsp;&nbsp;&nbsp;액</th>
                    <th class='tcenter border-2r'>비&nbsp;&nbsp;&nbsp;고</th>
                </tr>
                <tr>
                    <th class='tcenter  border-2l'>년</th>
                    <th class='tcenter'>월</th>
                    <th class='tcenter'>일</th>
                    <th class='tcenter'>공란수</th>

                    <th class='tcenter'>백</th>
                    <th class='tcenter'>십</th>
                    <th class='tcenter'>억</th>
                    <th class='tcenter'>천</th>
                    <th class='tcenter'>백</th>
                    <th class='tcenter'>십</th>
                    <th class='tcenter'>만</th>
                    <th class='tcenter'>천</th>
                    <th class='tcenter'>백</th>
                    <th class='tcenter'>십</th>
                    <th class='tcenter'>일</th>

                    <th class='tcenter'>십</th>
                    <th class='tcenter'>억</th>
                    <th class='tcenter'>천</th>
                    <th class='tcenter'>백</th>
                    <th class='tcenter'>십</th>
                    <th class='tcenter'>만</th>
                    <th class='tcenter'>천</th>
                    <th class='tcenter'>백</th>
                    <th class='tcenter'>십</th>
                    <th class='tcenter border-2r'>일</th>

                    <td class=' border-2r tax_bigo_class' rowspan=2><?php echo $bigo;?></td>

                </tr>
<?php
    $new_op 
$offerPrice."";
    
$op_len strlen($new_op);
    
$blank_len 11-$op_len;
    for(
$i=0;$i<$blank_len;$i++){
        
$pre_blank .= " ";
    }
    
$last_OP $pre_blank.$new_op;

    
$new_bp $billprice."";
    
$bp_len strlen($new_bp);
    
$blankbp_len 10-$bp_len;
    for(
$i=0;$i<$blankbp_len;$i++){
        
$prebp_blank .= " ";
    }
    
$last_BP $prebp_blank.$new_bp;
?>
                <tr style='height:40px;'>
                    <td class='tcenter  border-2l border-2bb'><?php echo $year;?></td>
                    <td class='tcenter border-2bb'><?php echo $month;?></td>
                    <td class='tcenter border-2bb'><?php echo $day;?></td>
                    <td class='tcenter border-2bb'><?php echo $blank_len;?></td>

<?php for($i=0;$i<11;$i++){ ?>
                    <td class='tcenter border-2bb'><?php echo $last_OP[$i];?></td>
<?php ?>
<?php 
for($i=0;$i<10;$i++){ ?>
                    <td class='tcenter border-2bb <?php if($i==9){ echo "border-2r"; }?>'><?php echo $last_BP[$i];?></td>
<?php ?>
                </tr>

            </tbody>
        </table>
        <table border=0 class='tax_table' style='border-top:0px;'>
            <colgroup>
                <col style="width:60px;">
                <col style="width:190px;">
                <col style="width:50px;">
                <col style="width:70px;">
                <col style="width:100px;">
                <col style="width:120px;">
                <col style="width:110px;">
            </colgroup>
            <thead>
                <tr>
                    <th class='tcenter border-2l'>월일</th>
                    <th class='tcenter'>품&nbsp;&nbsp;목 / 규&nbsp;&nbsp;격</th>
                    <th class='tcenter'>단위</th>
                    <th class='tcenter'>수&nbsp;&nbsp;&nbsp;&nbsp;량</th>
                    <th class='tcenter'>단&nbsp;&nbsp;&nbsp;&nbsp;가</th>
                    <th class='tcenter'>공&nbsp;급&nbsp;가&nbsp;액</th>
                    <th class='tcenter border-2r'>세&nbsp;&nbsp;&nbsp;&nbsp;액</th>
                </tr>
            </thead>
            <tbody class='item_tbody'>
<?php
    
for($i=0;$i<count($rowTaxArray);$i++){
        
//if($i==5){ break; }
        
$rowTax $rowTaxArray[$i];
        
$month_1        substr($rowTax[THNG_PURCHS_DT],4,2);
        
$day_1          substr($rowTax[THNG_PURCHS_DT],6,2);
        
$item_1         $rowTax[THNG_NM];
        
$standard_1     $rowTax[THNG_STNDRD_NM];
        
$cnt_1          $rowTax[THNG_QTY];
        
$unitPrice_1    $rowTax[THNG_UNTPC];
        
$offerPrice_1   number_format($rowTax[THNG_SUP_AMT]);
        
$billPrice_1    number_format($rowTax[THNG_TX]);
        
$note_1            $rowTax[THNG_NOTE];
?>
                <tr class="<?php if($i%2==1){?>odd<?php }?>">
                    <td class='tcenter border-2l'><?php echo $month_1;?>/<?php echo $day_1;?></td>
                    <td class='linetxt'><?php echo $item_1;?></td>
                    <td class='linetxt'><?php echo $standard_1;?></td>
                    <td class='cost'><?php echo $cnt_1;?></td>
                    <td class='cost'><?php echo $unitPrice_1;?></td>
                    <td class='cost'><?php echo $offerPrice_1;?></td>
                    <td class='cost border-2r'><?php echo $billPrice_1;?></td>
                </tr>
<?php
    
}
?>
<?php
$cnt 
0;
for(
$i=$i;$i<5;$i++){
?>
                <tr class="<?php if($i%2==1){?>odd<?php }?>">
                    <td class='tcenter border-2l'>&nbsp;</td>
                    <td class='linetxt'>&nbsp;<?php if($cnt==0){?>==== 이 하 여 백 ====<?php }?></td>
                    <td class='linetxt'>&nbsp;</td>
                    <td class='cost'>&nbsp;</td>
                    <td class='cost'>&nbsp;</td>
                    <td class='cost'>&nbsp;</td>
                    <td class='cost border-2r'>&nbsp;</td>
                </tr>
<?php
    $cnt
++;
}
?>
            </tbody>
        </table>
        <table border=0 class='tax_table' style='border-top:0px;'>
            <colgroup>
                <col style="width:110px;">
                <col style="width:110px;">
                <col style="width:110px;">
                <col style="width:110px;">
                <col style="width:110px;">
                <col style="width:150px;">
            </colgroup>
            <thead>
                <tr style='border-top:0px;'>
                    <th class='tcenter border-2l'>합&nbsp;계&nbsp;금&nbsp;액</th>
                    <th class='tcenter'>현&nbsp;&nbsp;&nbsp;&nbsp;금</th>
                    <th class='tcenter'>수&nbsp;&nbsp;&nbsp;&nbsp;표</th>
                    <th class='tcenter'>어&nbsp;&nbsp;&nbsp;&nbsp;음</th>
                    <th class='tcenter'>외&nbsp;상&nbsp;미&nbsp;수금</th>
                    <th class='tcenter border-2b border-2r' rowspan=2>이 금액을 &nbsp;&nbsp; <span style='color:#333;'><?php echo $irecved;?></span>&nbsp;&nbsp;&nbsp;&nbsp;함.</th>
                </tr>
                <tr class='item_tot'>
                    <td class='cost border-2l border-2b'>&nbsp;₩<?php echo $totalPrice;?></td>
                    <td class='cost border-2b'>₩<?php echo $cash;?></td>
                    <td class='cost border-2b'>₩<?php echo $checkPrice;?></td>
                    <td class='cost border-2b'>₩<?php echo $bill;?></td>
                    <td class='cost border-2b'>₩<?php echo $onCredit;?></td>
                </tr>
            </thead>
        </table>
<?php if($SndCheck=='D'){?>
    <div style='position:absolute;top:15px;left:15px;width:700px; height:500px;background:url("./images/cancel_bg.png");opacity:0.6;'></div>
<?php }?>