/home/mjc1/public_html/html/millennium/customeretax_012.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
<?php include_once("./_common2.php"); ?>
<?
    
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>



<!-- ¼¼±Ý°è»ê¼­ ½ÂÀÎ-->
<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_test.php?num=" +num + "&code=" + code,"","width=700,height=675,scrollbars=yes" );
}
</script>

<?
    
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,
        
        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 = 
$idx ";
        
        
$resultTax mysql_query($queryTax);
        
$rowTax    mysql_fetch_array($resultTax);
?>


                    <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>

                    <!-- Á¾À̰è»ê¼­ ½ÂÀÎ/¹Ý¼Û-->
                    <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_test.php"); //Á¾À̰è»ê¼­¾ç½Ä 
?>
                    </div><!--//taxWarp-->
                    
                    
                    
<? if($rowTax['admission'] == "2"){ ?>
    <p class="taxComment">º» ¼¼±Ý°è»ê¼­´Â ºÎ°¡°¡Ä¡¼¼¹ý ½ÃÇà·É Á¦ 53Á¶¿¡ ÀǰÅÇÏ¿©, Á¾À̼¼±Ý°è»ê¼­¸¦ ´ëüÇϴ ¼¼±Ý°è»ê¼­ÀÔ´Ï´Ù.</p>
    <p class="taxComment"><img src='./img/customer/taxsend_bt.jpg' onClick="printChk('<?=$KeyCode;?>','<?=$idx;?>');" style="cursor:pointer;"></p>
<?
        
}
    } 
?>

                    <table class="etaxList">
                        <colgroup>
                            <col style="width:100px;"><col style="width:170px;"><col style="width:100px;"><col style="width:60px;">
                            <col style="width:90px;"><col style="width:70px;"><col style="width:80px;">
                        </colgroup>
                        <tr>
                            <th>¹ßÇàÀÏÀÚ</th>
                            <th>¹ßÇàó</th>
                            <th>»ç¾÷ÀÚ¹øÈ£</th>
                            <th>´ëÇ¥ÀÚ</th>
                            <th>±Ý¾×</th>
                            <th>½ÂÀλóÅÂ</th>
                            <th>ÀÚ¼¼È÷º¸±â</th>
                        </tr>
<?
    $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 = '$fmtCompanyNum'"

    
$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) > ){ 
    
        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><?=$tableRow['chiefName'];?>     <!-- ´ëÇ¥ÀÚ -->
                            <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'];?>"><B><font color="#ff6400">³»¿ëº¸±â</FONT></B></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 -->

<? include("./Page/common/footer.php"); ?>