function showChangeShipping() { $output = array(); include 'classes/Core/CRoleChecking.php'; $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { include 'classes/Core/COrderManagement.php'; include 'classes/Display/DOrderManagement.php'; $output['changeship'] = Core_COrderManagement::showChangeShipping(); Bin_Template::createTemplate('light_change_shipping.html', $output); } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }
/** * Function updates the order details into the database. * * * */ function updateOrders() { $arr = $_POST['chkorder']; $i = 0; $status = $_POST['selupdatedropdown']; $myobj = new Core_COrderManagement(); if (count($arr) > 0) { for ($i = 0; $i < count($arr); $i++) { $order_id = $arr[$i]; if ($myobj->checkOrder($status, $order_id)) { $sql = 'update orders_table set orders_status = ' . $status . ' where orders_id =' . $order_id; } $obj1 = new Bin_Query(); $obj1->updateQuery($sql); } } }