'; $view->setCharset(get_lang('lang_charset')); } $user_id = $_SESSION['user_id']; $cart_id = $_POST['cart_id']; $cart_id = $db->realEscapeSingle($cart_id); $isAdmin = $db->isAdmin( $_SESSION['user_id'] ); if ( $isAdmin ) $orders = $db->resultQuery( "SELECT * FROM OGP_DB_PREFIXbilling_orders WHERE cart_id=".$db->realEscapeSingle($cart_id) ); else $orders = $db->resultQuery( "SELECT * FROM OGP_DB_PREFIXbilling_orders WHERE cart_id=".$db->realEscapeSingle($cart_id)." AND user_id=".$db->realEscapeSingle($user_id) ); $cart = $db->resultQuery( "SELECT * FROM OGP_DB_PREFIXbilling_carts WHERE cart_id=".$db->realEscapeSingle($cart_id) ); $tempdate = date_create( $cart[0]['date']); $paid_date = date_format($tempdate,"d M Y H:m"); if( !empty($orders) ) { ?>


realEscapeSingle($service_id); $result_service = $db->resultQuery($qry_service); $row_service = $result_service[0]; //Calculating Costs if ($invoice_duration == "day") { $price_slot=$row_service['price_daily']; } elseif ($invoice_duration == "month") { $price_slot=$row_service['price_monthly']; } elseif ($invoice_duration == "year") { $price_slot=$row_service['price_year']*12; } $duration = $invoice_duration > 1 ? $invoice_duration."s":$invoice_duration; ?> 0) { $result = $db->resultquery("SELECT discount from OGP_DB_PREFIXbilling_coupons WHERE id = '". $cart[0]['coupon_id'] . "'"); foreach($result as $coupon){ $coupon_savings = $subtotal2 * ($coupon['discount'] / 100); } } //$subtotal2 += $order['price'] * $max_players * $qty; //$total = $subtotal2+($cart[0]['tax_amount']/100*$subtotal2); $total = ($subtotal2 - $coupon_savings) * ($cart[0]['tax_amount'] / 100 + 1); ?> 0) { echo ' '; } ?>

Paid:
Xp Game Host
3400 Laurel Rd
Brunswick, OH 44212 "; ?>
 
Email: ".$settings['panel_email_address'].""; ?>
 
Server ID
 
 
:
Discount :
'. "$" . number_format(floatval(round((($subtotal2-$coupon_savings)-$subtotal2),2 )),2) . " ".$settings['currency'] .'
:
:


'/>