Edit file File name : insta-order-holiday-specials.php Content :<?php session_start(); include("../include/config.php"); include("../include/functions.php"); //ini_set('display_errors', 1); //error_reporting(E_ALL); ini_set('memory_limit','2048M'); require_once("../include/insta.class.php"); validate_admin(); $useragent = $_SERVER['HTTP_USER_AGENT']; $instaObj = new Instacart($obj); if (preg_match('/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i', $useragent) || preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i', substr($useragent, 0, 4))) { header('Location: order-list-responsive.php'); exit; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title><?php echo SITE_TITLE; ?></title> <script type="text/javascript"> if (screen.width <= 768) { document.location = "<?php echo SITE_URL; ?>admin/order-list-responsive.php"; } </script> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="css/admin.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js/jquery-1.7.2.min.js"> </script> <script> function checkall(objForm) { len = objForm.elements.length; var i = 0; for (i = 0; i < len; i++) { if (objForm.elements[i].type == 'checkbox') objForm.elements[i].checked = objForm.check_all.checked; } } function del_prompt(frmobj, comb) { //alert(comb); if (comb == 'Delete') { if (confirm("Are you sure you want to delete record(s)")) { frmobj.action = "insta-order-del.php"; frmobj.what.value = "Delete"; frmobj.submit(); } else { return false; } } else if (comb == 'Deactivate') { frmobj.action = "insta-order-del.php"; frmobj.what.value = "Deactivate"; frmobj.submit(); } else if (comb == 'Activate') { frmobj.action = "insta-order-del.php"; frmobj.what.value = "Activate"; frmobj.submit(); } } </script> <style> .order-cta { border: 1px solid; background: #eaeaea; padding: 4px 4px; color: #000; cursor: pointer; margin-top: 10PX; display: block; text-align: center; } </style> </head> <body> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <?php include("header.php"); $userlocationWhere = ''; $user_type = getFieldWhere('user_type', 'tbl_admin', 'id', $_SESSION['sess_admin_id']); $user_location = getFieldWhere('location', 'tbl_admin', 'id', $_SESSION['sess_admin_id']); $user_location = implode("','", explode(",", $user_location)); //echo "select group_concat(distinct zip) as zip from tbl_store_zip where state in ('$user_location') and zip!=''"; $userziparr = array(); $userzip = $obj->query("select distinct(zip) as zip from tbl_store_zip where state in ('$user_location') and zip!=''"); while ($resuserZip = $obj->fetchNextObject($userzip)) { array_push($userziparr, $resuserZip->zip); } $userLocationZip = implode(',', $userziparr); if ($user_location != '') { $userlocationWhere = 'and insta_order_itmes.ship_pincode in(' . $userLocationZip . ')'; } ?> <link rel="stylesheet" href="../css/colorbox.css" /> <script src="../js/jquery.colorbox.js"></script> <link rel="stylesheet" href="calender/css/jquery-ui.css"> <script src="calender/js/jquery-ui.js"></script> <script> $(function() { $("#search_from_date").datepicker({ changeMonth: true, changeYear: true, dateFormat: 'yy-mm-dd', yearRange: '2020:<?php echo date('Y'); ?>', onClose: function(selectedDate) { $("#search_to_date").val(selectedDate); $("#search_to_date").datepicker("option", "minDate", selectedDate); } }); $("#search_to_date").datepicker({ changeMonth: true, changeYear: true, numberOfMonths: 2, dateFormat: 'yy-mm-dd', yearRange: '2020:<?php echo date('Y'); ?>', }) $("#search_from_date").datepicker({ changeMonth: true, changeYear: true, dateFormat: 'yy-mm-dd', yearRange: '2020:<?php echo date('Y'); ?>', onClose: function(selectedDate) { $("#visit_date_to").val(selectedDate); $("#visit_date_to").datepicker("option", "minDate", selectedDate); } }); $("#search_to_date").datepicker({ changeMonth: true, changeYear: true, numberOfMonths: 2, dateFormat: 'yy-mm-dd', yearRange: '2020:<?php echo date('Y'); ?>', }) }); </script> <tr> <td align="right" class="paddRtLt70" valign="top"> <table width="99%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <!------------ Search Section -----------------> <tr> <td align="left" valign="middle" class="bodr" style="padding-bottom:20px;"> <table width="100%" border="0" cellspacing="0" cellpadding="3"> <tr> <td class="headingbg bodr text14" style="padding-left:20px;">Search<span style="float:right; padding-right:10px;"></span></td> </tr> <tr> <td height="10"></td> </tr> <tr> <td> <form name="searchForm" method="post" action="insta-order-mithaas.php"> <table width="100%" border="0" cellspacing="4" cellpadding="4"> <tr> <td width="10%" align="right"><strong>Order ID:</strong></td> <td width="15%"><input type="text" name="search_order_id" value="<?php echo $_REQUEST['search_order_id']; ?>" /></td> <!--<td width="10%" align="right"><strong>User ID:</strong></td> <td width="15%"><input type="text" name="search_user_id" value="<?php echo $_REQUEST['search_user_id']; ?>" /></td>--> <!-- <td width="10%" align="right"><strong>Store Name:</strong></td> <td width="15%"><select name="search_storename" style="width:150px;"> <option value="">All</option> <?php $storenum = $obj->query("select storeid,storename from insta_stores order by storename"); while ($storenumrec = $obj->fetchNextObject($storenum)) { ?> <option value="<?php echo $storenumrec->storeid; ?>" <?php if ($storenumrec->storeid == $_REQUEST['search_storename']) { ?>selected<?php } ?>><?php echo ucwords($storenumrec->storename); ?></option> <?php } ?> </select></td>--> <td width="10%" align="right"><strong>Order Status:</strong></td> <td width="15%"><select name="search_orderstatus" style="width:150px;"> <option value="" selected="selected">All</option> <?php $sorderstatus = $obj->query("select * from insta_order_status where status=1 order by id"); while ($resultorderstatus = $obj->fetchNextObject($sorderstatus)) { ?> <option value="<?php echo $resultorderstatus->id; ?>" <?php if ($resultorderstatus->id == $_REQUEST['search_orderstatus']) { ?>selected<?php } ?>><?php echo ucwords($resultorderstatus->order_status); ?></option> <?php } ?> </select></td> </select> </td> </tr> <tr> <td width="10%" align="right"><strong>From Date:</strong></td> <td width="15%"><input type="text" name="search_from_date" id="search_from_date" value="<?php echo $_REQUEST['search_from_date']; ?>" /></td> <td width="10%" align="right"><strong>To Date:</strong></td> <td width="15%"><input type="text" name="search_to_date" id="search_to_date" value="<?php echo $_REQUEST['search_to_date']; ?>" /></td> <td width="7%" align="right"><input type="submit" name="search" value="Search" style="background:#0099CC; border:5px solid #0099CC; color:#fff" /></td> </tr> </table> </form> </td> </tr> </table> </td> </tr> <tr> <td align="left" valign="middle" class="bodr" style="padding-bottom:20px;"> <table width="100%" border="0" cellspacing="0" cellpadding="3"> <tr> <?php $where = ''; if ($_REQUEST['search_order_id'] != '') { $orderPram = $_REQUEST['search_order_id']; $where .= " and io.order_id like '%$orderPram%'"; } if ($_REQUEST['search_user_id'] != '') { $uid = $_REQUEST['search_user_id']; $where .= " and io.user_id='" . $uid . "'"; } if ($_REQUEST['search_orderstatus'] != '') { $oStatus = $_REQUEST['search_orderstatus']; $where .= " and io.order_status='" . $oStatus . "'"; } if ($_REQUEST['search_storename'] != '') { $sName = $_REQUEST['search_storename']; $where .= " and io.storeid='$sName'"; } if ($_REQUEST['search_device'] != '') { $deviceType = $_REQUEST['search_device']; $where .= " and io.order_via='" . $deviceType . "'"; } if ($_REQUEST['search_section'] != '') { $section = $_REQUEST['search_section']; $where .= " and io.section='" . $section . "'"; } if ($_REQUEST['search_from_date'] != '' && $_REQUEST['search_to_date'] != '') { $where .= " and DATE(io.order_date) >='" . $_REQUEST['search_from_date'] . "' and DATE(io.order_date) <='" . $_REQUEST['search_to_date'] . "' "; } $where .= " AND io.storeid='122'"; $start = 0; if (isset($_GET['start'])) $start = $_GET['start']; $pagesize = 50; if (isset($_GET['pagesize'])) $pagesize = $_GET['pagesize']; $orderList = $instaObj->getAllorders($where, $userlocationWhere, $start, $pagesize, 'TOTAL'); $orderListPage = $instaObj->getAllorders($where, $userlocationWhere, '', '', 'TOTAL'); $reccnt = count($orderListPage); $reccnttoT = count($orderList); $currentDate = date("Y-m-d"); $todayOrder = $instaObj->orderMetric($currentDate); //echo "<pre>==";print_r($orderList);die; ?> <td><?php if ($user_type == 'admin') { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr align="center"> <td width="17%" class="text14">Today : <strong>Total Order : <?php echo $todaytotal=count($todayOrder); ?> </strong></td> <td width="14%" class="text14"><strong>Delivered : <?php echo $todayDelivered=count($instaObj->orderMetric($currentDate,$delivered=5)); ?></strong></td> <td width="11%" class="text14"><strong>Declined : <?php echo $todayDeclined=count($instaObj->orderMetric($currentDate,$delivered=5,$cancelled=7)); ?></strong></td> <td width="23%" class="text14"><strong>Pending : <?php echo $todaytotal-$todayDelivered-$todayDeclined; ?></strong></td> </tr> <tr> <td> </td> </tr> <tr align="center" style="font-weight:bold;"> <td width="17%"><strong>Orders : Total Order : <?php echo $allTotal=count($instaObj->orderMetricOrders($order_status='',$where)); ?> </strong></td> <td width="14%"><strong>Delivered : <?php echo $allDelivered=count($instaObj->orderMetricOrders($order_status='5',$where)); ?></strong></td> <td width="11%"><strong>Declined : <?php echo $allDeclined=count($instaObj->orderMetricOrders($order_status='7',$where)); ?></strong></td> <td width="23%"><strong>Pending : <?php echo $allTotal-$allDelivered-$allDeclined; ?></strong></td> </tr> <tr> <td> </td> </tr> <tr align="center"> <td width="17%" class="text15"> <strong>All</strong> : <strong>Total Amount : <?php $orderTot = $instaObj->orderMetricOrders($order_status='',$where); //echo "<pre>";print_r($orderTot); echo $website_currency_symbol . number_format(array_sum(array_column($orderTot, 'total_amt')), 2); ?></strong> </td> <td width="12%" class="text15"><strong>Average Order Value : <?php $amtTotal = array_sum(array_column($orderTot, 'total_amt')); $amtCnt = count($orderTot); echo $website_currency_symbol . number_format($amtTotal / $amtCnt, 2); ?></strong> </td> <td width="9%" class="text15"><strong>Total Tax : <?php echo $website_currency_symbol .number_format(array_sum(array_column($orderTot, 'total_tax')), 2);?></strong> </td> <td width="14%" class="text15"></td> </tr> </table> <?php } ?> </td> </tr> </table> </td> </tr> <tr> <td height="10"></td> </tr> <!----- Search End ---------> <tr> <td align="left" valign="middle" class="headingbg bodr text14"> <script> $(document).ready(function() { $(".iframerefund").colorbox({ iframe: true, width: "800px;", height: "600px;", frameborder: "0", scrolling: true }); }); </script> <em><img src="images/arrow2.gif" width="21" height="21" hspace="10" align="absmiddle" /></em>Admin: View Orders <!--<span style="float:right;"> <form name="exportfrm" action="export-instacart-orders.php"> <input type="hidden" name="exportExcel" value="yes" /> <input type="hidden" name="search_order_id" value="<?php echo $_REQUEST['search_order_id'];?>" /> <input type="hidden" name="search_user_id" value="<?php echo $_REQUEST['search_user_id'];?>" /> <input type="hidden" name="search_storename" value="<?php echo $_REQUEST['search_storename'];?>" /> <input type="hidden" name="search_orderstatus" value="<?php echo $_REQUEST['search_orderstatus'];?>" /> <input type="hidden" name="search_section" value="<?php echo $_REQUEST['search_section'];?>" /> <input type="hidden" name="search_from_date" value="<?php echo $_REQUEST['search_from_date'];?>" /> <input type="hidden" name="search_to_date" value="<?php echo $_REQUEST['search_to_date'];?>" /> <input type="submit" name="export" class="button" value="Export To Excel" /> </form> </span>--> </td> </tr> <form name="frm" method="post" id="order-form" action="order-del.php" enctype="multipart/form-data"> <tr> <td height="100" align="left" valign="top" bgcolor="#FFFFFF" class="bodr"> <table width="100%" cellpadding="0" cellspacing="0"> <?php if ($_SESSION['sess_msg']) { ?> <tr> <td align="center"> <font color="#FF0000"><strong><?php echo $_SESSION['sess_msg']; $_SESSION['sess_msg'] = ''; ?></strong></font> </td> </tr> <?php } ?> <tr> <td align="left"> <?php if ($reccnt == 0) { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" valign="middle"> <font face="Arial, Helvetica, sans-serif" color="#FF0000" size="+1">No Record</font> </td> </tr> </table> <?php } else { if ($reccnt == 0) { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" valign="middle"> <font face="Arial, Helvetica, sans-serif" color="#FF0000" size="+1">No Record</font> </td> </tr> </table> <?php } else { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" valign="middle"><strong><?php echo $reccnt; ?> Records Found.</strong></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="3%" align="left" class="padd5" bgcolor="#f3f4f6"><strong>S No.</strong></td> <td width="4%" align="left" bgcolor="#f3f4f6" class="padd5"><strong>Order Date</strong></td> <td width="4%" align="left" bgcolor="#f3f4f6" class="padd5"><strong>Order Time</strong></td> <td width="4%" align="left" bgcolor="#f3f4f6" class="padd5"><strong>Order ID</strong></td> <td width="7%" align="left" bgcolor="#f3f4f6" class="padd5"><strong>Total Amount</strong></td> <td width="4%" align="left" bgcolor="#f3f4f6" class="padd5"><strong>Order Status</strong></td> <td align="left" bgcolor="#f3f4f6" class="padd5" style="min-width: 150px;"><strong>Customer Details</strong></td> <td width="5%" align="left" bgcolor="#f3f4f6" class="padd5"><strong>Details</strong></td> <td width="9%" align="left" bgcolor="#f3f4f6" class="padd5"><strong>Print</strong></td> <td width="9%" align="left" bgcolor="#f3f4f6" class="padd5"><strong>Stores</strong></td> <td width="4%" align="left" bgcolor="#f3f4f6" class="padd5"><strong>Section/ Delivery Partner</strong></td> <td width="9%" align="left" bgcolor="#f3f4f6" class="padd5"><strong>Courier Items</strong></td> <td width="7%" align="left" bgcolor="#f3f4f6" class="padd5"><strong>Driver/Partner</strong></td> <td width="7%" align="left" bgcolor="#f3f4f6" class="padd5"><strong>Tracking No</strong></td> <td width="7%" align="left" bgcolor="#f3f4f6" class="padd5"><strong>Tracking URL</strong></td> <td width="7%" align="left" bgcolor="#f3f4f6" class="padd5"><strong>Action(s)</strong></td> </tr> <?php $i = 0; foreach ($orderList as $orders) { $orderId = $orders['order_id']; $all_store_id = $orders['all_storeid']; //if ($_REQUEST['search_customer_type'] == $usercount) { $i++; if ($orderList['delivery_day'] != '') { $bgcolor = "#66CCFF"; } else { if ($i % 2 == 0) { $bgcolor = "#f3f4f6"; } else { $bgcolor = ""; } } ?> <tr bgcolor="<?php echo $bgcolor; ?>"> <td class="padd5"><strong><?php echo $i + $start; ?>.</strong></td> <td class="padd5"> <?php //echo date('d M Y H:i', strtotime($orders['order_date'])); echo date("F j, Y, g:i a", strtotime($orders['order_date'])); ?> </td> <td class="padd5"> <?php echo CalculateOrderTime($orders['order_date']); ?> </td> <td class="padd5"> <?php echo stripslashes($orders['order_id']); ?> </td> <td class="padd5"> <?php echo $website_currency_symbol . " " . number_format($orders['GMV'], 2); ?> </td> <td class="padd5"> <?php echo getField('order_status', 'insta_order_status', $orders['order_status']); ?> </td> <td class="padd5"> <strong>Name:</strong> <?php echo $orders['customer_fname'].' '.$orders['customer_lname']; ?> <br/> <strong>Add:</strong> <?php echo $orders['delivery_street_1'].' '.$orders['delivery_street_2']; ?> <br/> <strong>City:</strong> <?php echo $orders['delivery_city']; ?> <br/> <strong>State:</strong> <?php echo $orders['delivery_state']; ?> <br/> <strong>Ship Pincode:</strong> <?php echo $orders['ship_pincode']; ?> <br/> <strong>Country:</strong> <?php echo $orders['country']; ?> </td> <script> $(document).ready(function() { $(".iframeOrder<?php echo $orders['order_id']; ?>").colorbox({ iframe: true, width: "900px;", height: "700px;", frameborder: "0", scrolling: true }); $(".iframeAddc<?php echo $orders['order_id']; ?>").colorbox({ iframe: true, width: "800px;", height: "600px;", frameborder: "0", scrolling: true }); $(".iframeViewc<?php echo $orders['order_id']; ?>").colorbox({ iframe: true, width: "800px;", height: "600px;", frameborder: "0", scrolling: true }); }); </script> <td class="padd5"> <a href="insta-vieworder-detail.php?order_id=<?php echo $orders['order_id']; ?>&sid=<?php echo $orders['storeid']; ?>" class="iframeOrder<?php echo $orders['order_id']; ?>">View Detail</a> </td> <td class="padd5"> <input type="button" name="print" value="Print Invoice" onclick="window.open('insta-printInvoice.php?order_id=<?php echo $orders['order_id']; ?>&sid=<?php echo $orders['storeid']; ?>')" /> <!--<br> <a class="order-cta" href="insta-shopper-order-view-detail.php?order_id=<?php echo stripslashes($orders['order_id']); ?>"> Make Order </a>--> </td> <td class="padd5"> <?php echo $instaObj->getOrdersStore($all_store_id); ?> </td> <td align="center" class="padd5"> <?php echo $instaObj->sectionDeliveryPartner($all_store_id,$orders['section'],$orders['ship_pincode']);?> </td> <td class="padd5"> </td> <td class="padd5"> </td> <td class="padd5"> <?php echo $orders['tracking_no']; ?> </td> <td class="padd5"> <?php echo $orders['tracking_urls']; ?> </td> <td class="padd5"> <a href="insta-update-store-order-status.php?order_id=<?php echo $orders['order_id']; ?>&partner_order_id=<?php echo $orders['partner_order_id']; ?>&rdid=<?php echo $orders['storeid']; ?>" class="iframeAddc<?php echo $orders['order_id']; ?>"><img src="images/add.png" border="0" title="Update Status" width="20" height="20" /></a> <a href="insta-viewcommets.php?order_id=<?php echo $orders['order_id']; ?>" class="iframeViewc<?php echo $orders['order_id']; ?>"> <img src="images/comments.png" border="0" title="View Status" width="20" height="20" /></a> <!--<a href="adddriver.php?order_id=<?php echo $orders['order_id']; ?>" class="iframeAddc<?php echo $orders['order_id']; ?>"> <img src="images/delivery.png" border="0" title="Add Delivery" width="20" height="20" /> </a>--> </td> </tr> <?php //} } ?> <tr> <td valign="top" colspan="14" align="right"> </td> <td colspan="6"></td> </tr> <tr> <td valign="top" colspan="14" align="right" class="dark_red" style="padding-right:150px;"> </td> <td colspan="6"></td> </tr> <tr> <td valign="top" colspan="14" align="right" class="dark_red" style="padding-right:150px;"><?php include("../include/paging.inc.php"); ?> </td> <td colspan="6"></td> </tr> <tr> <td valign="top" colspan="14" align="right" class="dark_red" style="padding-right:150px;"> </td> </tr> </table><?php } } ?> </td> </tr> </table> </td> </tr> </form> </table> </td> </tr> </table> </td> </tr> <tr> <td height="100"></td> </tr> <?php include('footer.php'); ?> <script> function addBulkComments() { var checkedVals = $('.order-checkbox:checkbox:checked').map(function() { return this.value; }).get(); ///alert(checkedVals.join(",")); if (checkedVals != '') { $.colorbox({ href: "addcommetsBulk.php?order_id=" + checkedVals, iframe: true, width: "700px;", height: "500px;", frameborder: "0", scrolling: true }); } else { alert("Please select checkbox for bulk action"); } } </script> </table> </body> </html> Save