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

<?
    
if (!isset($total_sql)) $total_sql "";
    if (!isset(
$pg)) $pg "";
    if (!isset(
$mode)) $mode "";

 
$string substr(strtolower(md5(uniqid(rand(),1))),0,5);
 
$string str_replace('1','a',$string);

    if( isset(
$_COOKIE["gd-image"]) && $_COOKIE["gd-image"] !== "" ){
        
setcookie"gd-image" $string ) ;
    }
    else{
        
setcookie"gd-image" $string ) ;
    }

    
$cm_nCount          =      30;
    
$cm_item_nCount     =      30;

    function 
pageListing($cur_page$total_page$n$url) {

        
$retValue "<table  border=0 cellspacing=0 cellpadding=0 height=19 align=center valign=top><tr><td>";
        if (
$cur_page 1) {

            
$retValue .= "<span width='80'><a href='" $url . ($cur_page-1) ."'><img src=./img/customer/prev_bt.jpg border=0  align='absmiddle'></a></span>";
        } else {
            
$retValue .= "&nbsp;";
            
$retValue .= "&nbsp;";
        }
        
$retValue .= "&nbsp;";
        
$start_page = ( ( (int)( ($cur_page ) / 10 ) ) * 10 ) + 1;
        
//echo (int)(($cur_page - 1) / 10);
        
$end_page $start_page 9;


        if (
$end_page >= $total_page$end_page $total_page;
        if (
$start_page 1$retValue .= " <span width=80 align=left ><a href='" $url . ($start_page-1) . "'><img src=./img/customer/prev10_bt.jpg border=0  align='absmiddle'></a></span> ";
        if (
$total_page 1)
            for (
$k=$start_page;$k<=$end_page;$k++)
                if (
$cur_page != $k$retValue .= "&nbsp;<span style=font-size:10pt;><font face=Verdana><a href='$url$k'>$k</a>&nbsp;</font></span>";
        
                else 
$retValue .= "<span style=font-size:10pt;><font face=Verdana color=f6822f>&nbsp;[$k]</font></span>";

        if (
$total_page $end_page$retValue .= "<span width='80' align='right'><a href='" $url . ($end_page+1) . "'><img src=./img/customer/next10_bt.jpg border=0 align='absmiddle'></a></span> ";
        
$retValue .= "&nbsp;&nbsp;";
        if (
$cur_page $total_page) {
            
$retValue .= "<span width=80 align=right><a href='$url. ($cur_page+1) ."'><img src=./img/customer/next_bt.jpg border=0 align='absmiddle'></a></span>";

        } else {
            
$retValue .= "&nbsp;";
            
$retValue .= "&nbsp;";
        }
        
$retValue .= "</td></tr></table>";
        return 
$retValue;
    }

    function 
star_str($v,$left_len){
        
$v_len strlen($v);
        if(
$v_len<=$left_len){
            
$v_half substr($v,0,1);
            
$vv str_pad($v_half,$v_len,"*");
        } else {
            
$v_half cut_str($v,3,"");
            
$vv str_pad($v_half,$v_len,"*");
        }

        return 
$vv;
    }


    
$total_sql  .=   " select a.*, b.Mid from dealerorder a left join member b on a.ocode = b.Mcode ";

    
$result      mysql_query($total_sql) or die (mysql_error());
    
$nTotalCount mysql_num_rows($result);
    
$nPage       ceil($nTotalCount $cm_nCount);
    if (
$pg == ""$pg 1;
    
$nFrom = ($pg 1) * $cm_nCount;

    
$sql    $total_sql "  order by odate DESC limit $nFrom$cm_nCount ";

    
$total_result mysql_query($sql) or die (mysql_error());

?>

<script>

</script>

<!-- µô·¯½ÂÀÎüũ ÈÄ ¾È³»¹® ´Ù¿î¹Þ±â
<script>
    function DownloadAnne(){

        location.replace('dealdownload.php'); 

}
</script>-->

    <div class="wrap">

        <div class="contents">
            <div class="asideMenu">
                <? include("./Page/customer/leftNavi.html"); ?>
            </div><!-- //leftNavi -->

            <div class="subContents">
                <h1>
                    <img src="./img/customer/board_title/deallist_order.png" 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">
                    <!--<h2><img src="./img/customer/dealdetaill_top.jpg" alt="±âÁ¸ÁÖ¹®ÇöȲŸÀÌÆ²"></h2>-->
                    <h2><img src="./img/customer/board_title/dealdetaill_top.png" alt="±âÁ¸ÁÖ¹®ÇöȲŸÀÌÆ²"></h2>


                    <div class="dealMenu">
                        <h3><img src="./img/customer/dealmenu_title.jpg" alt="ÁÖ¹®ÇöȲ¸Þ´º"></h3>
                        <div><? include("show_top_deal.php"); ?></div>
                    </div><!-- dealList -->

                    <div class="dealList">
                        <h3><img src="./img/customer/board_title/deallist_order_title.png" alt="ÁÖ¹®ÇöȲ¸ñ·Ï"></h3>
                        <div><b>* ÁÖ¹® ÃÑ ÇöȲ : <?=$nTotalCount?></b></div>
                    </div><!-- dealList -->

                    <table class="faqTable">
                        <tr>
                            <th width="40">NO</th>
                            <th width="160">ÀÏÀÚ</th>
                            <th width="80">ID</th>
                            <th width="80">µô·¯¸í</th>
                            <th width="180">ÁÖ¹®Á¦Ç°</th>
                            <th width="80">󸮻óÅÂ</th>
                        </tr>
                        
                        <form>
<?php
if(  mysql_num_rows($total_result) > ){
    
$i 1;

    while(
$m_row  mysql_fetch_array($total_result)) {
        if(
$pg == "")  $num  =  $i;
        else           
$num  = ( ( $pg $cm_nCount ) -30 ) + $i ;
        
        
$id cut_str(star_str($m_row['Mid'],3),6,"");
        
$bcomp cut_str(star_str($m_row['bcomp'],3),6,"");
        
$m_row['bproduct'] = str_replace(chr(32),"",$m_row['bproduct']);
        
$bproduct cut_str(trim($m_row['bproduct']),7);

        if(
$m_row['bsend'] == "0")      {  $rSuccYn =  "°áÁ¦";   $_bg "ffffff";}
        else if(
$m_row['bsend'] == "1")  {  $rSuccYn =  "¹Ì°áÁ¦"$_bg "#c0f2f2";}
        else if(
$m_row['bsend'] == "2")  {  $rSuccYn =  "¹è¼Û¿Ï·á"$_bg "#FEE2FC";}
?>
                        <tr height='30' onmouseout=\"this.style.background='#ffffff'\">
                            <td><?php echo $num;?></td>
                            <td><?php echo $m_row['odate'];?></td>
                            <td><?php echo $id;?></td>
                            <td><?php echo $bcomp;?></td>
                            <td><?php echo $bproduct;?></td>
                            <td><?php echo $rSuccYn;?></td>
                        </tr>
<?php
        $i
++;
    }
}    else {

        echo 
"
        <tr>
            <td colspan='7'>Çù·ÂÁ¡ Á¤º¸°¡ ¾ø½À´Ï´Ù.</td>
        </tr>
    </table>"
;

    }
?>
                        </form>
                    </table><!-- faqTable -->

                    <div><?= pageListing($pg$nPage$cm_nCount"deallist_order.php?pg=" );?></div>

                </div><!-- //section -->

            </div><!-- //subContents -->
        </div><!-- //contents -->
    </div><!-- //wrap -->

<iframe name='save_iframe' width='0' height='0'></iframe>

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