
<?php

// Check to ensure this file is included in Freeway!
defined('_FEXEC') or die();
 echo tep_draw_form('order', tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); ?>
<table border="0" width="100%" cellspacing="0" cellpadding="<?php echo CELLPADDING_SUB;?>">
<?php // BOF: Lango Added for template MOD
if (SHOW_HEADING_TITLE_ORIGINAL == 'yes') {
$header_text = '&nbsp;'
//EOF: Lango Added for template MOD
?>
      <tr>
        <td>
		<table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
            <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_account.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
          </tr>
        </table>
		</td>
      </tr>
<?php
// BOF: Lango Added for template MOD
}else{
$header_text = HEADING_TITLE;
}
// EOF: Lango Added for template MOD
	if(!isset($hide_row_top)) {
?>
	<tr>
		<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
	</tr>
<?php
	}
// BOF: Lango Added for template MOD
if (MAIN_TABLE_BORDER == 'yes'){
table_image_border_top(false, false, $header_text);
}
// EOF: Lango Added for template MOD
?>
<tr>
	<td>
	
	
	<table border="0" width="100%" cellspacing="4" cellpadding="2">
		<tr>
			<td valign="top"><?php echo tep_image(DIR_WS_IMAGES . 'freeway.png', HEADING_TITLE); ?></td>
			<?php 
			$status_sql="select * from " . TABLE_WALLET_UPLOADS ." where customers_id=" . (int)$customer_id ." and wallet_id=" .(int)$insert_id;
			$status_query=tep_db_query($status_sql);
			
			$status_result=tep_db_fetch_array($status_query);
			
			 ?>
			<td>
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td valign="top" align="center" class="pageHeading"><?php echo HEADING_TITLE; ?></td>
				</tr>
				<tr>
					<td><?php echo tep_draw_separator('pixel_trans.gif',5,10);?>
				</tr>
				<tr>
					<td class="main"><?php echo TEXT_SUCCESS; ?><br><br></td>
				</tr>
				<?php  if ($status_result['payment_status']==1) { ?>
				<tr>
					<td class="smallText"><?php echo sprintf(TEXT_CREDIT,$currencies->format($status_result["amount"])); ?><br><br></td>
				</tr>
				<?php } ?>
				<tr>
					<td class="main">
						<?php 
							$balance=tep_get_wallet_balance($customer_id);
							echo sprintf(TEXT_WALLET_BALANCE,$currencies->format($balance));
						?>
					</td>
				</tr>
			</table>
			</td>
		</tr>
		</table>
		</td>
		<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
	</tr>
<?php
// BOF: Lango Added for template MOD
if (MAIN_TABLE_BORDER == 'yes'){
table_image_border_bottom();
}
// EOF: Lango Added for template MOD
?>
	<tr>
		<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
	</tr>
	  <tr>
		<td>
		<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
		  <tr class="infoBoxContents">

		  <td>
		  <table border="0" width="100%" cellspacing="0" cellpadding="2">
			<tr> 
				<td align="right" class="main"><?php echo tep_template_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
			</tr>
		</table>
		</td>
		</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
	</tr>
	<tr>
		<td>
		<table border="0" width="100%" cellspacing="0" cellpadding="0">
			<tr>
			<td width="25%">
			<table border="0" width="100%" cellspacing="0" cellpadding="0">
				<tr>
					<td width="50%" align="right"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
					<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
				</tr>
            </table>
			</td>
            <td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
            <td width="25%">
				<table border="0" width="100%" cellspacing="0" cellpadding="0">
				<tr>
					<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
					<td width="50%"><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td>
				</tr>
            	</table>
			</td>
			</tr>
			<tr>
				<td align="center" width="25%" class="checkoutBarFrom"><?php echo CHECKOUT_BAR_PAYMENT; ?></td>
				<td align="center" width="25%" class="checkoutBarFrom"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
				<td align="center" width="25%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_FINISHED; ?></td>
			</tr>
			</table>
		</td>
      </tr>
	</table>
</td>
</tr>
	</form>