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
207
208
209
210
211
212
213
214
215
216
217
218
|
<? $dir = "."; include_once($dir."/_common.php"); ?> <? include("./include/header.php"); ?>
<? //*************µô·¯½ÂÀο©ºÎ È®ÀÎ*************** $SelectQry = "select Com_num, Mcode from member where Mid = '$_SESSION[USERID]' "; $sSQL_result = mysql_query($SelectQry,$connect_web); $row = mysql_fetch_array($sSQL_result); if ($row['Com_num'] == 0) { ?>
<script> alert("Çù·ÂÁ¡ ½ÂÀÎ ÈÄ ÁÖ¹®³»¿ªÀ» È®ÀÎ ÇÒ ¼ö ÀÖ½À´Ï´Ù. \n\nÇù·ÂÁ¡ °¡ÀÔ¹®ÀÇ:02-401-5121 / 011-522-0911"); //location.href = "deallist.php"; </script>
<? } if(!isset($total_sql)) $total_sql = ""; if(!isset($pg)) $pg = ""; if(!isset($retValue)) $retValue = ""; $MCODE = $row['Mcode']; //·Î±×ÀÎÇÑ À¯ÀúÀÇ Mcode¸¦ ±¸Çؼ º¯¼ö¿¡ ´ãÀ½
$string = substr(strtolower(md5(uniqid(rand(),1))),0,5); $string = str_replace('1','a',$string);
$cm_nCount = 30; $cm_item_nCount = 30;
function pageListing($cur_page, $total_page, $n, $url) {
$retValue .= "<table width=600 border=0 cellspacing=0 cellpadding=0 height=40 align=center><tr><td align=center valign=middle>"; if ($cur_page > 1) {
$retValue .= "<span style=font-size:9pt;><font face=Verdana><a href='" . $url . ($cur_page-1) ."'>ÀÌÀü</a></font></span>"; } else { $retValue .= " "; $retValue .= " "; } $retValue .= " "; $start_page = ( ( (int)( ($cur_page - 1 ) / 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 style=font-size:9pt;><font face=Verdana><a href='" . $url . ($start_page-1) . "'>...</a></font></span> "; if ($total_page > 1) for ($k=$start_page;$k<=$end_page;$k++) if ($cur_page != $k) $retValue .= " <span style=font-size:9pt;><font face=Verdana><a href='$url$k'>$k</a> </font></span>"; else $retValue .= " <b>$k</b> "; if ($total_page > $end_page) $retValue .= "<span style=font-size:9pt;><font face=Verdana><a href='" . $url . ($end_page+1) . "'>...</a></font></span> "; $retValue .= " "; if ($cur_page < $total_page) { $retValue .= "<span style=font-size:9pt;><font face=Verdana><a href='$url" . ($cur_page+1) ."'>´ÙÀ½</a></font></span>";
} else { $retValue .= " "; $retValue .= " "; } $retValue .= "</td></tr></table>"; return $retValue; }
$total_sql .= " select * from dealerorder where ocode = $MCODE";
$result = mysql_query($total_sql,$connect_web) 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 code DESC limit $nFrom, $cm_nCount ";
$total_result = mysql_query($sql,$connect_web) or die (mysql_error());
?>
<div class="wrap">
<div class="contents"> <div class="asideMenu"> <? include("./include/leftNavi_customer.html"); ?> </div><!-- //leftNavi -->
<div class="subContents"> <h1> <img src="./img/titlebar/dealdetail.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"> <h2><img src="./img/customer/dealdetaill_top.jpg" alt="¹®ÀÇÀüÈ : 02-501-5121"></h2>
<div class="dealMenu"> <h3><img src="./img/customer/dealmenu_title.jpg" alt="Çù·ÂÁ¡¸Þ´º"></h3> <div><? include("show_top_deal.php"); ?></div> <p class="text">¿¥Á¦À̼ÒÇÁÆ®´Â Çù·ÂÁ¡°ú ÇÔ²² ³ª³¯ÀÌ ¼ºÀåÇϰí ÀÖ½À´Ï´Ù.</p> <div class="info"> <p>- <font color="#ff7400"><b>ÇØ´ç¶óÀÎÀ» Ŭ¸¯</b></font>Çϸé ÇöÀç±îÁö ±¸¸Åµî·ÏÇÑ ³»¿ëÀ» º¼ ¼ö ÀÖ½À´Ï´Ù.</p> <p>- <font color="#ff7400"><b>󸮿©ºÎ¸¦ È®ÀÎÇÏ½Ã¸é ¹è¼Û°á°ú</b></font>¸¦ ¾Ë ¼ö ÀÖ½À´Ï´Ù.</p> <p>- ¹è¼Û»óȲÀÇ º¯°æÀ̳ª ¹®Á¦°¡ ÀÖÀ» °æ¿ì ´ç»ç·Î ÀüÈ ¹Ù¶ø´Ï´Ù.</p> </div> </div><!-- dealList -->
<div class="dealList"> <h3><img src="./img/customer/deal_order_info.jpg" alt="ÁÖ¹®ÀÚÁ¤º¸"></h3> <div><b>ÃÑ <?=$nTotalCount;?> °Ç</b></div> </div><!-- dealList -->
<!-- ±¸¸ÅÀÚÁ¤º¸ --> <form name='F2'> <table class="faqTable"> <tr> <th width="90">NO</th> <th width="130">ÁÖ¹®ÀÏÀÚ</th> <th width="150">±¸¸ÅÀÚ»óÈ£</th> <th width="110">±¸¸ÅÀÚ¸í</th> <th width="130">±¸¸ÅÀÚ¿¬¶ôó</th> <th width="100">󸮿©ºÎ</th> </tr> <?
if( mysql_num_rows($total_result) > 0 ){
$i = 1;
while($m_row = mysql_fetch_array($total_result)) {
if($pg == "") $num = $i; else $num = ( ( $pg * $cm_nCount ) -30 ) + $i ;
if($m_row['btell']=="--") $tel = " "; else $tel = $m_row['btell'];
if($m_row['bhp']=="--") $hp = " "; else $hp = $m_row['bhp'];
if ($m_row['bsend'] == 0) { $SendEnd = "ÁÖ¹®Á¢¼ö"; } elseif ($m_row['bsend'] == 1) { $SendEnd = "¹è¼ÛÁغñÁß"; } elseif ($m_row['bsend'] == 2) { $SendEnd = "¹è¼Û¿Ï·á"; } $info="<b>[ »ó ǰ ÁÖ ¹® ³» ¿ª ]</b><br>"; $info.="±¸¸Å»óÈ£ : ".$m_row['bcomp']."<br>"; $info.="±¸¸ÅÀÚ¸í : ".$m_row['bname']."<br>"; $info.="Àü È : ".$tel."<br>"; $info.="ÇÚ µå Æù : ".$hp."<br>"; $info.="ÁÖ ¼Ò : ".$m_row['badd']."<br>"; $info.="Á¦Ç°³»¿ª : ".$m_row['bproduct']."<br>"; $info.="Ãß°¡¿É¼Ç : ".$m_row['boption']."<br>"; $info.="ƯÀÌ»çÇ× : ".$m_row['bigo']."<br>"; $info.="¹è¼Û¿äû : ".$m_row['sdate']."<br><br>"; $info.="<b>[ ó ¸® ³» ¿ª ]</b><br>"; $info.="󸮿©ºÎ : ".$SendEnd."<br>"; $info.="ÇÕ°è±Ý¾× : ".$m_row['bmoney']."<br>"; $info.="¹è¼ÛÀÏÀÚ : ".$m_row['bdate']."<br>"; $info.="¼ÛÀå¹øÈ£ : ".$m_row['bnum']."<br>"; $info.="Åùèȸ»ç : ".$m_row['bdeliver']."<br>";
$info = stripslashes($info);
echo " <tr onclick=\"if(document.all('tr_$i').style.display==''){document.all('tr_$i').style.display='none';}else{document.all('tr_$i').style.display=''}\" onmouseover=\"this.style.background='#ecf0f9'\" onmouseout=\"this.style.background='#ffffff'\">
<td width=90 class=orderList>$num</td> <td width=130 class=orderList>$m_row[odate]</td> <td width=150 class=orderList>$m_row[bcomp]</td> <td width=110 class=orderList>$m_row[bname]</td> <td width=130 class=orderList>$tel</td> <td width=100 class=orderList>$SendEnd</td> </tr>
<tr id='tr_$i' style='display:none;'> <td colspan='7' class='orderDetail' style='text-align:left;'>$info</td> </tr> ";
$i++;
} ?> </table><!-- dealTable --> <div><?= pageListing($pg, $nPage, $cm_nCount, "dealdetail.php?pg=" );?></div> <? } else { echo " <tr> <td colspan='7'>ÁÖ¹®³»¿ªÀÌ ¾ø½À´Ï´Ù.</td> </tr> </table>"; } ?>
</form><!-- name='F2' -->
</div><!-- //section -->
</div><!-- //subContents --> </div><!-- //contents --> </div><!-- //wrap -->
<? include("./include/footer.php"); ?>
|