Full source code website bán hàng thương mại điện tử gần giống shopee
475.183 lượt xem;
- quanlydonhang.php
- views /
- system /
- mobile_home /
- project /
1 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
2 <script type="text/javascript" src="mobile_home/template/js/load_tem.js"></script>
3 <div id="wrapper">
4 <script type="text/javascript">
5 $(function () {
6 $($(".skins-by-category")[0]).removeClass("hidden1").addClass("show");
7
8 addSwiperWidget();
9 });
10
11 function addSwiperWidget() {
12 var mySwiper = new Swiper('.swiper-container', {
13 loop: true,
14 grabCursor: true,
15 onSlideChangeEnd: (function (swiper, direction) {
16 var currentIconChoosePos = $(".icon-container").find(".swiper-slide-active").attr("pos");
17
18 showSkinByPosition(currentIconChoosePos);
19 })
20 })
21
22 $('.arrow-left').on('click', function (e) {
23 e.preventDefault()
24 mySwiper.swipePrev()
25 });
26
27 $('.arrow-right').on('click', function (e) {
28 e.preventDefault()
29 mySwiper.swipeNext()
30 });
31 }
32
33 function showSkinByPosition(position) {
34 hideCurrentTitle();
35
36 shownTitleByPosition(position);
37
38 hideCurrentSkinCategory();
39
40 shownSkinCategoryByPosition(position);
41
42 return false;
43 }
44
45 function hideCurrentTitle() {
46 var currentDesc = $("#title-container div.show");
47 $(currentDesc).fadeOut(150);
48 $(currentDesc).removeClass("show").addClass("hidden1");
49 }
50
51 function hideCurrentSkinCategory() {
52 var currentCategory = $("#category-container div.show");
53 $(currentCategory).fadeOut(150);
54 $(currentCategory).removeClass("show").addClass("hidden1");
55 }
56
57 function shownTitleByPosition(position) {
58 var nextDesc = $("#title_" + position);
59 $(nextDesc).fadeIn(300);
60 $(nextDesc).removeClass("hidden1").addClass("show");
61 }
62
63 function shownSkinCategoryByPosition(position) {
64 var nextCategory = $("#skincategory_" + position);
65 $(nextCategory).fadeIn(300);
66 $(nextCategory).removeClass("hidden1").addClass("show");
67 }
68 </script>
69
70 <?
71 $uri=$_SERVER['REQUEST_URI'];
72 $url = explode("&", $uri);
73 $row=24;
74 $MAXPAGE=10;
75 $name=$_GET['name'];
76 $p=0;
77 if ($_REQUEST['p']!='') $p=$_REQUEST['p'];
78 $sql = "select * from orders where user_mem='".$_SESSION['mem']."' and kichhoat = '1' order by orders_id desc limit ".$row*$p.",".$row;
79 $result = @mysql_query($sql,$con);
80 $total=CountRecord("orders");
81 ?>
82
83
84 <div id="index-skins">
85 <div class="div-title">
86 <h1 class="h3-tittle-uppercase"><b>Tổng đơn hàng: <b style="color: red;"><?php echo $total;?></b></b></h1>
87 </div>
88 <div class="skins-home-items">
89 <div class="icon-container">
90 <a class="arrow-left">
91 <img src="mobile_home/template/images/left_arrow_dark.png" alt="">
92 </a>
93 <a class="arrow-right">
94 <img src="mobile_home/template/images/right_arrow_dark.png" alt="">
95 </a>
96 <div class="swiper-container" style="cursor: -webkit-grab;">
97 <div class="swiper-wrapper" style="width: 13170px; height: 55px; transform: translate3d(-2634px, 0px, 0px); -webkit-transform: translate3d(-2634px, 0px, 0px); transition-duration: 0.3s; -webkit-transition-duration: 0.3s;">
98 <?php
99 $sql_t1=mysql_query("SELECT * FROM orders where user_mem='".$_SESSION['mem']."' and kichhoat = '1' order by orders_id DESC");
100 $toalt1=mysql_num_rows($sql_t1);
101 $tong1=$toalt1/6;
102 for($i=0;$i<=$tong1&&$row_t1=mysql_fetch_array($sql_t1);$i++)
103 {?>
104 <div class="swiper-slide" pos="<?php echo $i;?>" style="width: 1317px; height: 55px;">
105 <div class="group-content">
106 <div class="group-icon">
107 <img src="mobile_home/template/images/next_tem.png" alt="">
108 </div>
109 </div>
110 </div>
111 <?}?>
112 </div>
113 </div>
114 </div>
115 <div id="title-container" class="group">
116 <div class="group-content">
117 <div class="group-desc">
118 <?php
119 $sql_t2=mysql_query("SELECT * FROM orders where user_mem='".$_SESSION['mem']."' and kichhoat = '1' order by orders_id DESC");
120 $toalt2=mysql_num_rows($sql_t2);
121 $tong2=$toalt2/6;
122 for($j=0;$j<=$tong2&&$row_t2=mysql_fetch_array($sql_t2);$j++)
123 {?>
124 <div id="title_<?php echo $j;?>" class="desc-item hidden" style="display: none;">
125 <div class="tittle">
126 Trang <?php echo $j;?>
127 </div>
128 </div>
129 <?}?>
130 </div>
131 </div>
132 </div>
133 <div class="clear"></div>
134 <div id="category-container">
135 <?php
136 $sql_t3=mysql_query("SELECT * FROM orders where user_mem='".$_SESSION['mem']."' and kichhoat = '1' order by orders_id DESC");
137 $toalt3=mysql_num_rows($sql_t3);
138 $tong3=$toalt3/6;
139 for($k=0;$k<=$tong3;$k++)
140 {?>
141 <div id="skincategory_<?php echo $k;?>" class="skins-by-category hidden1">
142 <?php
143 for($l=0;$l<=5&&$row_t3=mysql_fetch_array($sql_t3);$l++)
144 {?>
145 <?php
146 $timid=mysql_query("SELECT * FROM orderdetail where user_mem='".$_SESSION['mem']."' and ordersdetail_ordersid='".$row_t3['orders_id']."' ");
147 $timid_in=mysql_fetch_assoc($timid);
148
149 $timid_sp=mysql_query("SELECT * FROM products where id='".$timid_in['ordersdetail_product_id']."' ");
150 $timid_in_sp=mysql_fetch_assoc($timid_sp);
151 ?>
152 <form method="POST">
153 <div class="skins-item">
154 <div class="skins-item-thumbnail" style=" padding: 5px; ">
155
156
157 <div style=" float: left; ">
158
159 <img src="<?php echo $timid_in_sp['image'];?>" width="80px" height="80px" >
160 </div>
161 <b style=" float: left; font-size: 10px; color: red;"> <?php echo substr($timid_in_sp['name'],0,46);?>...</b>
162 <br>
163 <b style=" float: left;font-size: 10px; text-align: left; ">
164 Ngày:<?php echo $row_t3['orders_date'];?>
165 <b style=" float: right;font-size: 10px; color: red; ">Mã:<?php echo $row_t3['orders_id'];?></b>
166 <br>
167 Shop:<b style=" color: blue; "><?php echo $timid_in_sp['user'];?></b>
168 <br>
169 Màu sắc: <span style="background-color: #<?php echo $row_t3['mausac'];?>; outline: 1px solid #ccc;"><a href="java:"> </a> </span>
170 <?if($row_t3['kichthuoc']==""){?>
171 <?}else{?>
172 Kích thước:<?php echo $row_t3['kichthuoc'];?>
173 <?}?>
174
175 <br>
176 Status:
177
178
179 <?if($row_t3['active']=='0'){?>
180 <?
181 // xóa ảnh 1 baner
182 if (isset($_POST['huydonhang'])) {
183 $active = $_POST['active'];
184 $thongbao= 'Đơn hàng số '.$row_t3['orders_id'].' đã bị Hủy bởi người mua';
185 date_default_timezone_set("Asia/Ho_Chi_Minh");
186 $date = date("d-m-Y H:i:s");
187
188
189
190
191 $sql1111 = "update orders set active='5', active_shop='5' where orders_id='".$active."' and user_mem='".$_SESSION['mem']."' ";
192
193 if (mysql_query($sql1111)) {
194
195 //$active = $_SESSION['active_id'];
196 echo "<SCRIPT LANGUAGE='JavaScript'>
197
198 window.location.href='http://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]."';
199 </SCRIPT>";
200 }
201 else {
202 echo "<SCRIPT LANGUAGE='JavaScript'>
203 window.alert('Thao tác không thành công')
204 window.location.href='http://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]."';
205 </SCRIPT>";
206 }
207
208 if($row_t3['orders_id']== $active){
209
210 $sql_huy = "insert into thongbao (thongbao,date,user) values ('".$thongbao."' ,'".$date."','".$_SESSION['mem']."' ) ";
211 $sql_huy_shop = "insert into thongbao_shop (thongbao,date,user) values ('".$thongbao."' ,'".$date."','".$row_t3['orders_user']."' ) ";
212 if (mysql_query($sql_huy) && mysql_query($sql_huy_shop)) {
213
214 //$active = $_SESSION['active_id'];
215 echo "<SCRIPT LANGUAGE='JavaScript'>
216
217 window.location.href='http://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]."';
218 </SCRIPT>";
219 }
220 else {
221 echo "<SCRIPT LANGUAGE='JavaScript'>
222 window.alert('Thao tác không thành công')
223 window.location.href='http://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]."';
224 </SCRIPT>";
225 }
226 }else{
227 }
228
229
230
231
232
233 }
234 ?>
235
236 <span style="background: #04a89f; padding: 1px; color: #fff; display: inline-block;">Chờ duyệt</span>
237 <input type="hidden" name="active" value="<?php echo $row_t3['orders_id'];?>">
238 <button type="submit" name="huydonhang" onclick="return confirm('Bạn chắc chắn hủy bỏ đơn hàng này');" style="font-size: 10px;background: #999999; padding: 1px; color: #fff; display: inline-block;">Hủy</button>
239 </form>
240 <?}else{?>
241 <?}?>
242
243 <?if($row_t3['active']=='1'){?>
244 <span style="background: #0e04a8; padding: 1px; color: #fff; display: inline-block; ">Đang giao hàng</span>
245 <?}else{?>
246 <?}?>
247 <?if( ($row_t3['active']=='2') ) {?>
248
249 <span style="background: #0f8800; padding: 1px; color: #fff; display: inline-block; ">Đã giao</span>
250
251 <?}else{?>
252 <?}?>
253
254 <?if($row_t3['active']=='20'){?>
255 <span style="background: #0f8800; padding: 1px; color: #fff; display: inline-block; ">Khách đã nhận hàng và đánh giá</span>
256 <?}else{?>
257 <?}?>
258
259 <?if($row_t3['active']=='3'){?>
260 <span style="background: #d020a2; padding: 1px; color: #fff; display: inline-block; ">Khách không nhận hàng</span>
261 <?}else{?>
262 <?}?>
263
264 <?if($row_t3['active']=='4'){?>
265 <span style="background: #000000; padding: 1px; color: #fff; display: inline-block; ">Chuyển về cho Shop</span>
266 <?}else{?>
267 <?}?>
268
269 <?if($row_t3['active']=='5'){?>
270 <span style="background: #999999; padding: 1px; color: #fff; display: inline-block; ">Đã hủy đơn hàng</span>
271 <?}else{?>
272 <?}?>
273
274 <?if($row_t3['active']=='6'){?>
275 <span style="background: #F44336; padding: 1px; color: #fff; display: inline-block; ">Hết hàng</span>
276 <?}else{?>
277 <?}?>
278
279 <?if($row_t3['active']=='2'){?>
280 <a onclick="return confirm('Không hỗ trợ đánh giá trên điện thoại.Khách hàng vui lòng truy cập bằng Máy vi tính hoặc Laptop để đánh giá sản phẩm này');" style="background: #F44336; padding: 1px; color: #fff; display: inline-block; ">Đánh giá</a>
281 <?}else{?>
282 <?}?>
283 <?if($row_t3['active']=='2'){?>
284 <a onclick="return confirm('Không hỗ trợ khiếu nại trên điện thoại.Khách hàng vui lòng truy cập bằng Máy vi tính hoặc Laptop để khiếu nại đơn hàng này');" style="background: blue; padding: 1px; color: #fff; display: inline-block; ">Khiếu nại</a>
285 <?}else{?>
286 <?}?>
287
288 <br>
289 <?
290 $thanhtoan = ($timid_in['ordersdetail_price']*$timid_in['ordersdetail_quantity'] + $timid_in['phivanchuyen'] - $timid_in['trudiemlua'])
291
292 ?>
293 Giá:<b style=" color: blue; "><?php echo number_format($thanhtoan);?>đ </b>
294
295 (SL:<?php echo $timid_in['ordersdetail_quantity'];?>,PVC: <?php echo number_format($timid_in['phivanchuyen']);?>đ)
296 </b>
297
298
299
300
301
302 </div>
303
304
305 </div>
306 <?}?>
307 </div>
308 <?}?>
309 </div>
310 <div class="clear"></div>
311 </div>
312 </div>
313
314 </div>
2 <script type="text/javascript" src="mobile_home/template/js/load_tem.js"></script>
3 <div id="wrapper">
4 <script type="text/javascript">
5 $(function () {
6 $($(".skins-by-category")[0]).removeClass("hidden1").addClass("show");
7
8 addSwiperWidget();
9 });
10
11 function addSwiperWidget() {
12 var mySwiper = new Swiper('.swiper-container', {
13 loop: true,
14 grabCursor: true,
15 onSlideChangeEnd: (function (swiper, direction) {
16 var currentIconChoosePos = $(".icon-container").find(".swiper-slide-active").attr("pos");
17
18 showSkinByPosition(currentIconChoosePos);
19 })
20 })
21
22 $('.arrow-left').on('click', function (e) {
23 e.preventDefault()
24 mySwiper.swipePrev()
25 });
26
27 $('.arrow-right').on('click', function (e) {
28 e.preventDefault()
29 mySwiper.swipeNext()
30 });
31 }
32
33 function showSkinByPosition(position) {
34 hideCurrentTitle();
35
36 shownTitleByPosition(position);
37
38 hideCurrentSkinCategory();
39
40 shownSkinCategoryByPosition(position);
41
42 return false;
43 }
44
45 function hideCurrentTitle() {
46 var currentDesc = $("#title-container div.show");
47 $(currentDesc).fadeOut(150);
48 $(currentDesc).removeClass("show").addClass("hidden1");
49 }
50
51 function hideCurrentSkinCategory() {
52 var currentCategory = $("#category-container div.show");
53 $(currentCategory).fadeOut(150);
54 $(currentCategory).removeClass("show").addClass("hidden1");
55 }
56
57 function shownTitleByPosition(position) {
58 var nextDesc = $("#title_" + position);
59 $(nextDesc).fadeIn(300);
60 $(nextDesc).removeClass("hidden1").addClass("show");
61 }
62
63 function shownSkinCategoryByPosition(position) {
64 var nextCategory = $("#skincategory_" + position);
65 $(nextCategory).fadeIn(300);
66 $(nextCategory).removeClass("hidden1").addClass("show");
67 }
68 </script>
69
70 <?
71 $uri=$_SERVER['REQUEST_URI'];
72 $url = explode("&", $uri);
73 $row=24;
74 $MAXPAGE=10;
75 $name=$_GET['name'];
76 $p=0;
77 if ($_REQUEST['p']!='') $p=$_REQUEST['p'];
78 $sql = "select * from orders where user_mem='".$_SESSION['mem']."' and kichhoat = '1' order by orders_id desc limit ".$row*$p.",".$row;
79 $result = @mysql_query($sql,$con);
80 $total=CountRecord("orders");
81 ?>
82
83
84 <div id="index-skins">
85 <div class="div-title">
86 <h1 class="h3-tittle-uppercase"><b>Tổng đơn hàng: <b style="color: red;"><?php echo $total;?></b></b></h1>
87 </div>
88 <div class="skins-home-items">
89 <div class="icon-container">
90 <a class="arrow-left">
91 <img src="mobile_home/template/images/left_arrow_dark.png" alt="">
92 </a>
93 <a class="arrow-right">
94 <img src="mobile_home/template/images/right_arrow_dark.png" alt="">
95 </a>
96 <div class="swiper-container" style="cursor: -webkit-grab;">
97 <div class="swiper-wrapper" style="width: 13170px; height: 55px; transform: translate3d(-2634px, 0px, 0px); -webkit-transform: translate3d(-2634px, 0px, 0px); transition-duration: 0.3s; -webkit-transition-duration: 0.3s;">
98 <?php
99 $sql_t1=mysql_query("SELECT * FROM orders where user_mem='".$_SESSION['mem']."' and kichhoat = '1' order by orders_id DESC");
100 $toalt1=mysql_num_rows($sql_t1);
101 $tong1=$toalt1/6;
102 for($i=0;$i<=$tong1&&$row_t1=mysql_fetch_array($sql_t1);$i++)
103 {?>
104 <div class="swiper-slide" pos="<?php echo $i;?>" style="width: 1317px; height: 55px;">
105 <div class="group-content">
106 <div class="group-icon">
107 <img src="mobile_home/template/images/next_tem.png" alt="">
108 </div>
109 </div>
110 </div>
111 <?}?>
112 </div>
113 </div>
114 </div>
115 <div id="title-container" class="group">
116 <div class="group-content">
117 <div class="group-desc">
118 <?php
119 $sql_t2=mysql_query("SELECT * FROM orders where user_mem='".$_SESSION['mem']."' and kichhoat = '1' order by orders_id DESC");
120 $toalt2=mysql_num_rows($sql_t2);
121 $tong2=$toalt2/6;
122 for($j=0;$j<=$tong2&&$row_t2=mysql_fetch_array($sql_t2);$j++)
123 {?>
124 <div id="title_<?php echo $j;?>" class="desc-item hidden" style="display: none;">
125 <div class="tittle">
126 Trang <?php echo $j;?>
127 </div>
128 </div>
129 <?}?>
130 </div>
131 </div>
132 </div>
133 <div class="clear"></div>
134 <div id="category-container">
135 <?php
136 $sql_t3=mysql_query("SELECT * FROM orders where user_mem='".$_SESSION['mem']."' and kichhoat = '1' order by orders_id DESC");
137 $toalt3=mysql_num_rows($sql_t3);
138 $tong3=$toalt3/6;
139 for($k=0;$k<=$tong3;$k++)
140 {?>
141 <div id="skincategory_<?php echo $k;?>" class="skins-by-category hidden1">
142 <?php
143 for($l=0;$l<=5&&$row_t3=mysql_fetch_array($sql_t3);$l++)
144 {?>
145 <?php
146 $timid=mysql_query("SELECT * FROM orderdetail where user_mem='".$_SESSION['mem']."' and ordersdetail_ordersid='".$row_t3['orders_id']."' ");
147 $timid_in=mysql_fetch_assoc($timid);
148
149 $timid_sp=mysql_query("SELECT * FROM products where id='".$timid_in['ordersdetail_product_id']."' ");
150 $timid_in_sp=mysql_fetch_assoc($timid_sp);
151 ?>
152 <form method="POST">
153 <div class="skins-item">
154 <div class="skins-item-thumbnail" style=" padding: 5px; ">
155
156
157 <div style=" float: left; ">
158
159 <img src="<?php echo $timid_in_sp['image'];?>" width="80px" height="80px" >
160 </div>
161 <b style=" float: left; font-size: 10px; color: red;"> <?php echo substr($timid_in_sp['name'],0,46);?>...</b>
162 <br>
163 <b style=" float: left;font-size: 10px; text-align: left; ">
164 Ngày:<?php echo $row_t3['orders_date'];?>
165 <b style=" float: right;font-size: 10px; color: red; ">Mã:<?php echo $row_t3['orders_id'];?></b>
166 <br>
167 Shop:<b style=" color: blue; "><?php echo $timid_in_sp['user'];?></b>
168 <br>
169 Màu sắc: <span style="background-color: #<?php echo $row_t3['mausac'];?>; outline: 1px solid #ccc;"><a href="java:"> </a> </span>
170 <?if($row_t3['kichthuoc']==""){?>
171 <?}else{?>
172 Kích thước:<?php echo $row_t3['kichthuoc'];?>
173 <?}?>
174
175 <br>
176 Status:
177
178
179 <?if($row_t3['active']=='0'){?>
180 <?
181 // xóa ảnh 1 baner
182 if (isset($_POST['huydonhang'])) {
183 $active = $_POST['active'];
184 $thongbao= 'Đơn hàng số '.$row_t3['orders_id'].' đã bị Hủy bởi người mua';
185 date_default_timezone_set("Asia/Ho_Chi_Minh");
186 $date = date("d-m-Y H:i:s");
187
188
189
190
191 $sql1111 = "update orders set active='5', active_shop='5' where orders_id='".$active."' and user_mem='".$_SESSION['mem']."' ";
192
193 if (mysql_query($sql1111)) {
194
195 //$active = $_SESSION['active_id'];
196 echo "<SCRIPT LANGUAGE='JavaScript'>
197
198 window.location.href='http://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]."';
199 </SCRIPT>";
200 }
201 else {
202 echo "<SCRIPT LANGUAGE='JavaScript'>
203 window.alert('Thao tác không thành công')
204 window.location.href='http://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]."';
205 </SCRIPT>";
206 }
207
208 if($row_t3['orders_id']== $active){
209
210 $sql_huy = "insert into thongbao (thongbao,date,user) values ('".$thongbao."' ,'".$date."','".$_SESSION['mem']."' ) ";
211 $sql_huy_shop = "insert into thongbao_shop (thongbao,date,user) values ('".$thongbao."' ,'".$date."','".$row_t3['orders_user']."' ) ";
212 if (mysql_query($sql_huy) && mysql_query($sql_huy_shop)) {
213
214 //$active = $_SESSION['active_id'];
215 echo "<SCRIPT LANGUAGE='JavaScript'>
216
217 window.location.href='http://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]."';
218 </SCRIPT>";
219 }
220 else {
221 echo "<SCRIPT LANGUAGE='JavaScript'>
222 window.alert('Thao tác không thành công')
223 window.location.href='http://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]."';
224 </SCRIPT>";
225 }
226 }else{
227 }
228
229
230
231
232
233 }
234 ?>
235
236 <span style="background: #04a89f; padding: 1px; color: #fff; display: inline-block;">Chờ duyệt</span>
237 <input type="hidden" name="active" value="<?php echo $row_t3['orders_id'];?>">
238 <button type="submit" name="huydonhang" onclick="return confirm('Bạn chắc chắn hủy bỏ đơn hàng này');" style="font-size: 10px;background: #999999; padding: 1px; color: #fff; display: inline-block;">Hủy</button>
239 </form>
240 <?}else{?>
241 <?}?>
242
243 <?if($row_t3['active']=='1'){?>
244 <span style="background: #0e04a8; padding: 1px; color: #fff; display: inline-block; ">Đang giao hàng</span>
245 <?}else{?>
246 <?}?>
247 <?if( ($row_t3['active']=='2') ) {?>
248
249 <span style="background: #0f8800; padding: 1px; color: #fff; display: inline-block; ">Đã giao</span>
250
251 <?}else{?>
252 <?}?>
253
254 <?if($row_t3['active']=='20'){?>
255 <span style="background: #0f8800; padding: 1px; color: #fff; display: inline-block; ">Khách đã nhận hàng và đánh giá</span>
256 <?}else{?>
257 <?}?>
258
259 <?if($row_t3['active']=='3'){?>
260 <span style="background: #d020a2; padding: 1px; color: #fff; display: inline-block; ">Khách không nhận hàng</span>
261 <?}else{?>
262 <?}?>
263
264 <?if($row_t3['active']=='4'){?>
265 <span style="background: #000000; padding: 1px; color: #fff; display: inline-block; ">Chuyển về cho Shop</span>
266 <?}else{?>
267 <?}?>
268
269 <?if($row_t3['active']=='5'){?>
270 <span style="background: #999999; padding: 1px; color: #fff; display: inline-block; ">Đã hủy đơn hàng</span>
271 <?}else{?>
272 <?}?>
273
274 <?if($row_t3['active']=='6'){?>
275 <span style="background: #F44336; padding: 1px; color: #fff; display: inline-block; ">Hết hàng</span>
276 <?}else{?>
277 <?}?>
278
279 <?if($row_t3['active']=='2'){?>
280 <a onclick="return confirm('Không hỗ trợ đánh giá trên điện thoại.Khách hàng vui lòng truy cập bằng Máy vi tính hoặc Laptop để đánh giá sản phẩm này');" style="background: #F44336; padding: 1px; color: #fff; display: inline-block; ">Đánh giá</a>
281 <?}else{?>
282 <?}?>
283 <?if($row_t3['active']=='2'){?>
284 <a onclick="return confirm('Không hỗ trợ khiếu nại trên điện thoại.Khách hàng vui lòng truy cập bằng Máy vi tính hoặc Laptop để khiếu nại đơn hàng này');" style="background: blue; padding: 1px; color: #fff; display: inline-block; ">Khiếu nại</a>
285 <?}else{?>
286 <?}?>
287
288 <br>
289 <?
290 $thanhtoan = ($timid_in['ordersdetail_price']*$timid_in['ordersdetail_quantity'] + $timid_in['phivanchuyen'] - $timid_in['trudiemlua'])
291
292 ?>
293 Giá:<b style=" color: blue; "><?php echo number_format($thanhtoan);?>đ </b>
294
295 (SL:<?php echo $timid_in['ordersdetail_quantity'];?>,PVC: <?php echo number_format($timid_in['phivanchuyen']);?>đ)
296 </b>
297
298
299
300
301
302 </div>
303
304
305 </div>
306 <?}?>
307 </div>
308 <?}?>
309 </div>
310 <div class="clear"></div>
311 </div>
312 </div>
313
314 </div>