/home/mjc1/public_html/html/millennium/billPrint.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
<?php include_once("./_common2.php"); ?>
<? 
include "../../manage/category/common.php";

    
/*20130717¿ù º¯¼ö¼±¾ð*/
    
$values2 "";
    
$month_2 "";
    
$day_2 "";
    
$item_2 "";
    
$standard_2 "";
    
$cnt_2 "";
    
$unitPrice_2 "";
    
$offerPrice_2 "";

    
$values3 "";
    
$month_3 "";
    
$day_3 "";
    
$item_3 "";
    
$standard_3 "";
    
$cnt_3 "";
    
$unitPrice_3 "";
    
$offerPrice_3 "";

    
$values4 "";
    
$month_4 "";
    
$day_4 "";
    
$item_4 "";
    
$standard_4 "";
    
$cnt_4 "";
    
$unitPrice_4 "";
    
$offerPrice_4 "";

    if(
$num !== "" && $code !== ""){

        
$strArr  explode"---",base64_decode($num) );

        
$queryTax " SELECT  volume, pageName, serialNum,
        m.companyNum sCompanyNum, m.companyName sCompanyName, m.chiefName sChiefName, m.CompanyAddr sCompanyAddr,
        m.opt_1 sUptae, m.opt_2 sJongmok,
        p.companyNum rCompanyNum, p.companyName rCompanyName, p.chiefName rChiefName, p.CompanyAddr rCompanyAddr,
        p.opt_1 rUptae, p.opt_2 rJongmok,
        year, MONTH, DAY, blankNum, offerPrice, billPrice,

        month_1, day_1, item_1, standard_1, cnt_1, unitPrice_1, offerPrice_1, billPrice_1,
        month_2, day_2, item_2, standard_2, cnt_2, unitPrice_2, offerPrice_2, billPrice_2,
        month_3, day_3, item_3, standard_3, cnt_3, unitPrice_3, offerPrice_3, billPrice_3,
        month_4, day_4, item_4, standard_4, cnt_4, unitPrice_4, offerPrice_4, billPrice_4,

        totalPrice, cash, checkPrice, bill, onCredit, irecved, bbookno,

        admission, bigo
        FROM bill_mijin m
        INNER JOIN bill_publish p ON m.companyNum = p.from_companynum
        WHERE p.idx = 
$code and replace(p.companyNum,'-','') = '$strArr[1]' ";

        
$resultTax mysql_query($queryTax);
        
$rowTax    mysql_fetch_array($resultTax);
        
$useStamp  1;
?>

<!DOCTYPE html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=euc-kr"/>
    <title>[Á¾À̰è»ê¼­]</title>
    <link rel="stylesheet" type="text/css" href="./css/reset.css"/>
    <link rel="stylesheet" type="text/css" href="./css/lyout.css"/>
    <link rel="stylesheet" type="text/css" href="./css/base.css"/>
    <script>
    function billPrint(){
        document.getElementById("sp_serial").style.letterSpacing = "1.5pt";
        document.getElementById("sp_supmoney").style.letterSpacing = "10pt";
        
        output.innerHTML = "";
        output2.innerHTML = "";
        window.print();
        
        document.getElementById("sp_serial").style.letterSpacing = "2pt";
        document.getElementById("sp_supmoney").style.letterSpacing = "10.5pt";

    }
    </script>
</head>

<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
    <div id='output2' class="print_top">
        <div>
            <span>¿ìÃøÀÇ <font>[¼¼±Ý°è»ê¼­ Ãâ·Â]</font> ¹öưÀ» ´­·¯ÁÖ¼¼¿ä.</span>
            <a href='javascript:billPrint();'><img src="./img/customer/taxprint_bt.jpg" alt="¼¼±Ý°è»ê¼­ Ãâ·Â"></a>
        </div>
    </div>

    <div class="taxWarp">
<?
    
include "inc.tax_test.php";  //Á¾À̰è»ê¼­
?>
    </div><!--//taxWarp-->

    <p class="taxComment">º» ¼¼±Ý°è»ê¼­´Â ºÎ°¡°¡Ä¡¼¼¹ý ½ÃÇà·É Á¦ 53Á¶¿¡ ÀǰÅ, Á¾À̼¼±Ý°è»ê¼­¸¦ ´ëüÇϴ ¼¼±Ý°è»ê¼­ÀÔ´Ï´Ù.</p>

    <div id='output'>
        <div>
            <span>¿¥Á¦À̼ÒÇÁÆ®</span>
            <span class="floatR">ÀüÀÚ°è»ê¼­ µµÀÔ¹®ÀÇ : 1566-8680</span>
        </div>
        <footer>
                <p class="red">¼¼±Ý°è»ê¼­ Ãâ·Â½Ã Ç¥(¼±)°¡ ÀμâµÇÁö ¾ÊÀ» °æ¿ì ¾Æ·¡¿Í °°ÀÌ ¼³Á¤Çϼ¼¿ä.</p>
                <p class="blue">µµ±¸ ¡æ <b>ȣȯ¼ºº¸±â ¼³Á¤</b> ¡æ 'ÀÌ À¥»çÀÌÆ®Ãß°¡' Ç׸ñ¿¡¼­ [Ãß°¡]¹öư Å¬¸¯ ¡æ [´Ý±â]</p>
                <p>¼¼±Ý°è»ê¼­°ü·ÃºÒÆí½Å°í : TEL 1566-8680</p>
        </footer>
        
    </div>
</body>
</html>

<script>
//var g_objpos = document.getElementById("dv_pos");
function getX(obj) {
    x = 0;
    while(obj.offsetParent) {
        alert( "OffsetParent of " + obj.tagName + " is " + obj.offsetParent.tagName );
        
        
        // distance from left of obj to the left of parent
        alert( "Distance form left of " + obj.tagName + " to " + obj.offsetParent.tagName + "'s right side of left border is " + obj.offsetLeft );
        x += obj.offsetLeft;
        
        
        alert( "Border thick of " + obj.tagName + "'s parent - " + obj.offsetParent.tagName + " is " + obj.offsetParent.clientLeft );
        x += obj.offsetParent.clientLeft;
        
        
        alert( "x=" + x );
        obj = obj.offsetParent;
    }
    alert( "x=" + x );
    

    return x;
}
function move_box(an, box) {
    //¸µÅ©µÈ À§Ä¡¿¡¼­ ºÎÅÍÀÇ ¼³Á¤°ª ÁöÁ¤
    var cleft = -8;  //¿ÞÂʸ¶Áø
    //var cleft = 20;  //¿ÞÂʸ¶Áø
    var ctop = -60;  //»ó´Ü¸¶Áø
    //var ctop = -10;  //»ó´Ü¸¶Áø
    var obj = an;
    while (obj.offsetParent) {
        cleft += obj.offsetLeft;
        ctop += obj.offsetTop;
        obj = obj.offsetParent;
    }
    box.style.left = cleft + 'px';
    ctop += an.offsetHeight;
    //ctop += an.offsetHeight + 8;
    if (document.body.currentStyle &&
    document.body.currentStyle['marginTop']) {
        ctop += parseInt(
        document.body.currentStyle['marginTop']);
    }
    box.style.top = ctop + 'px';
}
</script>
<?
    
}
?>
<!---------Å×ÀÌºí ³¡------------>