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
|
<?php include_once("./_common2.php"); ?> <? //if($_SERVER['REMOTE_ADDR']=='58.151.27.172'){ if($_SERVER['HTTP_HOST'] == "www.mijinsoft.co.kr"){ $redirect = "https://mjsoft.co".$_SERVER['REQUEST_URI']; header("Location: $redirect"); } //}
include("./Page/common/header_tax_paper.php"); ?>
<div id="content" class="wrap">
<div class="contents"> <div class="asideMenu"> <? include("./Page/customer/leftNavi.html"); ?> </div><!-- //asideMenu--> <div class="subContents"> <h1> <img src="./img/titlebar/easycustomeretax.jpg" alt="¼¼±Ý°è»ê¼¹ßÇà"> <p> <span class="home"><a href="intro.php">Home</a></span> <span class="depth">></span> <span class="depth1">°í°´¼¾ÅÍ</span> <span class="depth">></span> <span class="depth2">Á¾À̰è»ê¼ ¹ßÇà</span> </p> </h1>
<!-- ¸ÞÀÎ ³»¿ë ½ÃÀÛ --> <div class="section"> <div class="tax_ad" style="margin:0 0 20px"> <p><img src="./img/customer/tax_top.jpg" alt="°è»ê¼ Ãâ·Â ÄÚ³ÊÀÔ´Ï´Ù."></p> <ul> <li><a href="./productinfo.php?cate2_code=06&category_code=56"><img src="./img/customer/banner_easy2.jpg" alt="ÀÌÁöÅØ½º"></a></li> <li class="floatR"><a href="./millennium_main.php"><img src="./img/customer/banner_pda.jpg" alt="õ³â°æ¿µ+PDA"></a></li> </ul> </div>
<? if( isset($detail) && $detail == "y" ) {
$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,
admission, bigo, bbookno FROM bill_mijin m INNER JOIN bill_publish p ON m.companyNum = p.from_companynum WHERE p.idx = $idx "; //print_r($queryTax);
$resultTax = mysql_query($queryTax); $rowTax = mysql_fetch_array($resultTax);
if($sid=='mjtest'){ //print_r($queryTax); }
?>
<form name="exCodeFrm" method="post" target='' action='billProcess.php'> <input type=hidden name='mode' value='detail'> <input type=hidden name='detail' value='y'> <input type=hidden name='idx' value='<?=$idx;?>'> <input type=hidden name='KeyCode' value='<?=$KeyCode;?>'> <input type=hidden name='stat'> </form> <!-- Á¾À̰è»ê¼ ½ÂÀÎ/¹Ý¼Û--> <script> function admissionChk1(idx,stat){
if(!confirm("½ÂÀÎ ÇϽðڽÀ´Ï±î?")){ return } else { exCodeFrm.stat.value = stat ; exCodeFrm.submit(); } }
function admissionChk2(idx,stat){
if(!confirm("¹Ý¼Û ÇϽðڽÀ´Ï±î?")){ return } else { exCodeFrm.stat.value = stat ; exCodeFrm.submit(); } }
function printChk( num ,code){ window.open("billPrint.php?num=" +num + "&code=" + code,"","width=700,height=675,scrollbars=yes" ); } </script> <div class="tax_ad_txt"> <? if($rowTax['admission'] == "1"){ ?> <img src='./img/customer/approve_bt.jpg' alt='Àü¼Û' name='admission_img' onClick="admissionChk1('<?=$idx;?>','2');" style="cursor:pointer;" > <img src='./img/customer/return_bt.jpg' alt='¹Ý¼Û' name='admission_img2' onClick="admissionChk2('<?=$idx;?>','3');" style="cursor:pointer;"> <? } else { ?> <img src='./img/customer/approve_bt_off.jpg' alt='Àü¼Û' name='admission_img' style="cursor:pointer;" onclick="alert('ÀÌ¹Ì Ã³¸®µÈ ³»¿ªÀº ½ÂÀÎ ºÒ°¡ÇÕ´Ï´Ù.')"> <img src='./img/customer/return_bt_off.jpg' alt='¹Ý¼Û' name='admission_img2' style="cursor:pointer;" onClick="alert('ÀÌ¹Ì Ã³¸®µÈ ³»¿ªÀº ¹Ý¼Û ºÒ°¡ÇÕ´Ï´Ù.')"> <? } ?> </div><!--//tax_ad_txt-->
<div class="taxWarp"> <? include("inc.tax.php"); //Á¾À̰è»ê¼¾ç½Ä ?>
</div><!--//taxWarp-->
<? if($rowTax['admission'] == "2"){ ?> <p class="taxComment">º» ¼¼±Ý°è»ê¼´Â ºÎ°¡°¡Ä¡¼¼¹ý ½ÃÇà·É Á¦ 53Á¶¿¡ ÀǰÅÇÏ¿©, Á¾À̼¼±Ý°è»ê¼¸¦ ´ëüÇÏ´Â ¼¼±Ý°è»ê¼ÀÔ´Ï´Ù.</p> <p class="taxComment"><img src='./img/customer/taxsend_bt.jpg' alt="¼¼±Ý°è»ê¼ ¹ßÇà" onClick="printChk('<?=$KeyCode;?>','<?=$idx;?>');" style="cursor:pointer;"></p> <? } } ?>
<table class="etaxList"> <colgroup> <col style="width:100px;"><col style="width:210px;"><col style="width:100px;"> <col style="width:130px;"><col style="width:80px;"><col style="width:90px;"> </colgroup> <tr> <th>¹ßÇàÀÏÀÚ</th> <th>¹ßÇàó</th> <th>»ç¾÷ÀÚ¹øÈ£</th> <th>±Ý¾×</th> <th>½ÂÀλóÅÂ</th> <th>ÀÚ¼¼È÷º¸±â</th> </tr>
<? $vv = preg_replace("/[^0-9]/", "", $fmtCompanyNum); $vx = substr($vv,0,3)."-".substr($vv,3,2)."-".substr($vv,5,6); $vx2 = substr($vv,0,6)."-".substr($vv,6,7);
$tableQry = " select p.admission, p.idx, p.year, p.MONTH, p.DAY, p.from_companynum, p.totalprice, p.tax_visible, m.companyName, m.chiefName from bill_publish p inner join bill_mijin m on m.companyNum = p.from_companynum WHERE (p.companyNum = '$vv' or p.companyNum = '$vx' or p.companyNum = '$vx2')"; //echo $tableQry; $result = mysql_query($tableQry) or die (mysql_error()); $nTotalCount = mysql_num_rows($result); $nPage = ceil($nTotalCount / $cm_nCount); if ($pg == "") $pg = 1; $nFrom = ($pg - 1) * $cm_nCount; $sql = $tableQry . " order by p.idx desc limit $nFrom, $cm_nCount "; $result = mysql_query($sql) or die (mysql_error()); if( mysql_num_rows($result) > 0 ){ while ($tableRow = mysql_fetch_array($result)){ $regdate = $tableRow['year']."-" .$tableRow['MONTH']."-". $tableRow['DAY']; if($tableRow['admission'] == "1" ) $statu = "ºñ½ÂÀÎ"; else if ($tableRow['admission'] == "3" ) $statu = "<FONT COLOR='#FF0000'>¹Ý¼Û</FONT>"; else $statu = "<FONT COLOR='#0066FF'>½ÂÀÎ</FONT>"; if($idx == $tableRow['idx']) $bgcolor = "lightyellow"; else $bgcolor = "#ffffff"; ?>
<tr bgcolor=<?=$bgcolor?>> <td><?=$regdate;?> <!-- ¹ßÇàÀÏÀÚ --> <td><?=$tableRow['companyName'];?><!-- ¹ßÇàó --> <td><?=$tableRow['from_companynum'];?> <!-- »ç¾÷ÀÚ¹øÈ£ --> <td><?=number_format($tableRow['totalprice']);?> <!-- ±Ý¾× --> <td><?=$statu;?></td> <!-- ½ÂÀλóÅ --> <? if($tableRow['tax_visible'] == "0") { ?> <td><a href="customeretax_01.php?pg=<?=$pg;?>&KeyCode=<?=$KeyCode;?>&detail=y&idx=<?=$tableRow['idx'];?>"><strong><font color="#ff6400">³»¿ëº¸±â</font></strong></a></td> <!-- ÀÚ¼¼È÷ º¸±â --> <? } else { ?> <td>Ãâ·Â ±â°£ ¸¶°¨</a></td> <? } ?> <tr> <? } } ?> </table><!--//etaxList-->
<?=pageListing($pg, $nPage, $cm_nCount, "customeretax_01.php?pg=" , $KeyCode )?> </div><!-- //section -->
</div><!-- //subContents --> </div><!-- //contents --> </div><!-- //wrap --> <?//print_r($_SESSION);?> <? include("./Page/common/footer.php");?>
|