?
Path : /home/admin/domains/happytokorea.com/public_html_bk/gall/admin/ |
Current File : /home/admin/domains/happytokorea.com/public_html_bk/gall/admin/order.php |
<? include("header.php");?> <div id="top-panel"> <div id="panel"> <ul> <li><a href="admin.php" class="report">Change Password</a></li> <li><a href="mail.php" class="report_seo">E-mail contact</a></li> <li><a href="order.php" class="report_seo">List Order</a></li> </ul> </div> </div> <div id="content"> <div id="box" > <h3>Order</h3> <table width="99%"> <thead> <tr> <th width="50px"><a href="#">No.</a></th> <th><a href="#">List Order</a></th> <th width="80px"><a href="#">Customer</a></th> <th width="80px"><a href="#">Date</a></th> <th width="60px"><a href="#">Action</a></th> </tr> </thead> <tbody> <? if(isset($_GET[del])){ $db->query("delete from cart where cart_order = $_GET[del]"); echo "<script>window.location.href='order.php';</script>"; } ?> <? $res = $db->query("select * from cart left join user on u_id = cart_u_id where cart_status = 1 group by cart_order order by cart_order desc");$i=0; while($line = mysql_fetch_array($res)){$i++; ?> <tr> <td align="center"> <a href="#"><? echo "#".$i;?></a> </td> <td> <a href="order_info.php?cart_order=<? echo $line[cart_order];?>">Order No.<? echo $line[cart_order];?> </a> </td> <td> <a href="order_info.php?cart_order=<? echo $line[cart_order];?>"><? echo $line[firstname];?> <? echo $line[lastname];?></a> </td> <td> <a href="#"><span style="float:right"> <? echo date("d M,Y",$line[cart_order]);?> </span></a> </td> <td align="center"> <a href="?del=<? echo $line[cart_order];?>" onclick="if(!confirm('ต้องการลบ ?')){return false;}"><img src="img/icons/page_white_delete.png" width="16" height="16" /></a> </td></tr> <? } ?> </tbody> </table> </div> </div> <? include("footer.php");?>