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
|
<? include "../manage/category/common.php";
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,
totalPrice, cash, checkPrice, bill, onCredit, irecved,
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; ?> <html> <title>¼¼±Ý°è»ê¼ Ãâ·Â</title> <style> .title { font-family:µ¸¿ò,Verdana; color:#000000; font-size:9pt; text-decoration:none; line-height:17px;} .tit01 { font-family:µ¸¿ò,Verdana; color:#333333; font-size:12pt; text-decoration:none; line-height:17px;} .txt02{ font-family:±¼¸²,Verdana; color:#333333; font-size:9pt; text-decoration:none; line-height:17px; font-weight:bold;letter-spacing:3px;} .txt04 { font-family:±¼¸²,Verdana; color:#333333; font-size:9pt; text-decoration:none; line-height:17px; padding-left:20px;} .log { BORDER-RIGHT: #CECFCE 1px solid; BORDER-TOP: #CECFCE 1px solid; PADDING-LEFT: 3px; FONT-SIZE: 12px; BORDER-LEFT: #CECFCE 1px solid; COLOR: #444a45; PADDING-TOP: 3px; BORDER-BOTTOM: #CECFCE 1px solid; FONT-FAMILY: ""; LETTER-SPACING: 0px; BACKGROUND-COLOR: #ffffff } .noline {border-style:none; PADDING-top: 2px;} </style> <script> function billPrint(){ document.getElementById("sp_serial").style.letterSpacing = "1.5pt"; document.getElementById("sp_supmoney").style.letterSpacing = "10pt"; document.getElementById("sp_taxmoney").style.letterSpacing = "10pt"; output.innerHTML = ""; window.print(); /* with (factory.printing) { header = ''; footer = ''; portrait = true; // true ¼¼·ÎÃâ·Â , false °¡·ÎÃâ·Â leftMargin = 0; rightMargin = 0; topMargin = 0; bottomMargin = 0; //Print(true, window) // ù¹øÂ° ÀÎÀÚ : ´ëÈ»óÀÚÇ¥½Ã¿©ºÎ , µÎ¹øÂ°ÀÎÀÚ : Ãâ·ÂµÉ ÇÁ·¹ÀÓ Preview(); }*/ document.getElementById("sp_serial").style.letterSpacing = "2pt"; document.getElementById("sp_supmoney").style.letterSpacing = "10.5pt"; document.getElementById("sp_taxmoney").style.letterSpacing = "10.5pt"; } </script> <body oncontextmenu="return false" onselectstart="return false" ondragstart="return false"> <!--Object id='factory' viewastext style='display:none' classid='clsid:1663ed61-23eb-11d2-b92f-008048fdd814' codebase='http://www.meadroid.com/scriptx/ScriptX.cab#Version=6,1,432,1'> </Object--> <div align="center"> <? //include "../html/inc.tax.php"; ?> <? include "inc.tax.php"; ?> </div>
<table align='center' width="600" border="0" cellpadding="0" cellspacing="0" class="title"> <tr align="center" bgcolor="#FFFFFF"> <td align=left> (ÁÖ)¹ÌÁø¼ÒÇÁÆ®</td> <td align=right>ÀüÀÚ°è»ê¼ ¹ßÇ๮ÀÇ : 1566-8680 </td> </tr> </table> <table align='center' width="600" border="0" cellpadding="2" cellspacing="1" bgcolor="#D2D2D2" class="title"> <tr align="center" bgcolor="#FFFFFF"> <td align=center>º» ¼¼±Ý°è»ê¼´Â ºÎ°¡°¡Ä¡¼¼¹ý ½ÃÇà·É Á¦ 53Á¶¿¡ ÀǰÅÇÏ¿©, Á¾À̼¼±Ý°è»ê¼¸¦ ´ëüÇÏ´Â ¼¼±Ý°è»ê¼ÀÔ´Ï´Ù.</td> </tr> </table> <br> <!--<div id="Layer2" style="position:absolute; left:50px; top:15px; z-index:1"><img src="../manage/billprint.gif"></div>--> <div id='output'> <table width='600' border='0' cellpadding='15' align=center cellspacing='5' bgcolor='f3f3f3' class="title"> <tr> <td align=center valign=top bgcolor=FFFFFF class="title"> <table width=100% border=0 cellpadding=0 cellspacing=0 class="title"> <tr> <td height=25> <img src=../html/millennium/img/common/bullet01.gif width=3 height=3 hspace=10 align=absmiddle><strong> <font color=red>¼¼±Ý°è»ê¼ Ãâ·Â½Ã Ç¥(¼±)°¡ ÀμâµÇÁö ¾ÊÀ» °æ¿ì ¾Æ·¡¿Í °°ÀÌ ¼³Á¤Çϼ¼¿ä.</font> </strong> </td> </tr> <tr> <td height=25> <img src=../html/millennium/img/common/bullet01.gif width=3 height=3 hspace=10 align=absmiddle> <FONT COLOR="#0066FF">µµ±¸ --> ÀÎÅÍ³Ý¿É¼Ç ---> °í±Þ ---> ¹è°æ»ö ¹× À̹ÌÁöÀμâ(üũ)</FONT> </td> </tr> <tr> <tr> <td height=25> <img src=../html/millennium/img/common/bullet01.gif width=3 height=3 hspace=10 align=absmiddle> ¼¼±Ý°è»ê¼°ü·Ã ºÒÆí½Å°í : TEL 1566-8680 </td> </tr> </table> <table align=center> <tr> <td align=center height="30"><a href='javascript:billPrint();'>ÀμâÇϱâ</a></td> </tr> </table> </td> </tr> </table> </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> <? } ?> <!---------Å×ÀÌºí ³¡------------>
|