<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: 			*/
// +----------------------------------------------------------------------+
// | PHP version 4/5                                                      |
// +----------------------------------------------------------------------+
// | Copyright (c) 2004-2010 ARMIA INC                                    |
// +----------------------------------------------------------------------+
// | This source file is a part of iScripts VistaCart                     |
// +----------------------------------------------------------------------+
// | Authors: Jipson<jipson.thomas@armiasystems.com>             		  |
// +----------------------------------------------------------------------+
?>

            <div align="center">
            	<h2 class="title text-center mainhd">Checkout</h2>
            </div>
            <br />
            <div align="left" id="item_details_admin">
              <!--items display area start -->
              <div align="center" id="items_display_area_admin">
                <div align="left" class="inner_content_area_admin">
				<?php $session->flash(); ?>
            <form action="<?php echo $paypalurl;?>" method="post" name="frmPayment">
                <input type="hidden" name="cmd" value="_xclick">
						<input type="hidden" name="business" value="<?php echo $txtPaypalEmail; ?>">
						<input type="hidden" name="item_name" value="Item Purchase with <?php echo $cnfg["site_name"];?>">
						
						<input type="hidden" name="amount" value="<?php echo $gtotal; ?>">
                                                <!--
                                                <input type="text" name="amount" value="<?php echo $totaltopay; ?>">
                                                <input type='text' name='shipping' value='<?php echo $shipping_cost; ?>'>
                                                <input type="text" name="discount_rate" value="<?php echo $gift_discount;?>">-->
                                                <?php
						
						/*Shipping Settings*/
						
						//echo $shipping_form;
			
                                        ?>
                                       
					<input type="hidden" name="return" value="<?php echo FULL_BASE_URL .$cnfg["sitebasefolder"]."/carts/paysuccess"; ?>">
					<input type="hidden" name="cancel_return" value="<?php echo FULL_BASE_URL .$cnfg["sitebasefolder"]."/carts/payfailure"; ?>">
					<input type="hidden" name="bn" value="armiasystems_shoppingcart_wps_us">
					<input type="hidden" name="no_note" value="1">
					<input type="hidden" name="currency_code" value="<?php echo $cnfg["currency"]; ?>">
                                        <input type="hidden" name="bn" value="<?php echo $cnfg["paypal_bn_code"]; ?>">
				   <div id="admin_heading">Pay Now</div>
				  <div id="grid_admin">
                    <div align="left" id="inner_leftcontent">
                      <p class="maintext_inner">Waiting for the secure payment interface ...</p>
                    </div>
                    <div align="right" id="inner_rightcontent">
                     <span class="toplinks">
						
                    
                        </span>
                    </div>
                    <div align="left" class="float_clear1"><?php echo $html->image('/img/clear.gif');?></div>
                  </div>
                  <div align="left" class="float_clear1"><?php echo $html->image('/img/clear.gif');?></div>
                
                 <div id="admin_bottom">
				<div align="left" id="inner_leftcontent">
				  <p class="maintext_inner">&nbsp;</p>
				</div>
				<div align="right" id="inner_rightcontent">
					<span class="toplinks">		
					
					<input type="submit" value="Pay Now" class="pay-button" >
					
					</span>
				</div>
				<div align="left" class="float_clear1"><?php echo $html->image('/img/clear.gif', array('width' => 1, 'height' => 1));?></div>
			</div>
                </div>
                <!--form area end -->
				</form>
              </div>
              <div align="left" class="float_clear1"></div>
            </div>
			</div>
            <div align="left" class="float_clear1"><?php echo $html->image('/img/clear.gif');?></div>
			<SCRIPT language="javascript" type="text/javascript">		  
				document.frmPayment.submit();		    
			</SCRIPT>	