<?php
/*
  www.oscGold.com (C) Kamelia-Net Jacek Krysiak
  modul oscGold wer 4.0
*/
?>

<table border="0" width="100%" cellspacing="0" cellpadding="0">
   <!-- Naglowek BOF -->
   <tr>
   <td>
   <?php
   $info_box_contents = array();
   $info_box_contents[] = array('text' => sprintf( HEADING_TITLE));
   new contentBoxHeading($info_box_contents);
   ?>
  </td>
  </tr>
   <!-- Naglowek EOF -->  
  <tr><td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '4'); ?></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">  
		<?php // Success
		if(isset($transStatus) && $transStatus == "Y") {
			$url = tep_href_link(FILENAME_CHECKOUT_PROCESS, $cartId, 'NONSSL', false);
			?>
			<tr>
				<td class="pageHeading" width="100%" colspan="2" align="center"><?php echo WP_TEXT_SUCCESS; ?></td>
			</tr>
			<tr>
				<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '50'); ?></td>
			</tr>
			<tr>
				<td align="center" colspan="2">
					<table border="2" bordercolor="#FF0000" width="80%" cellspacing="0" cellpadding="2">
						<tr>
							<td class="main" align="center"><p><?php echo WP_TEXT_HEADING; ?></p><p><?php echo '<WPDISPLAY ITEM=banner>'; ?></p></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '50'); ?></td>
			</tr>
			<tr>
				<td class="pageHeading" width="100%" colspan="2" align="center"><h3><?php echo WP_TEXT_SUCCESS_WAIT; ?></h3></td>
			</tr>
			<tr align="right">
				<td><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', false) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
			</tr>
			<tr>
				<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '50'); ?></td>
			</tr>
			<?php // Failure
		} else {
			$url = tep_href_link(FILENAME_CHECKOUT, $cartId, 'NONSSL', false);
		?>
			<tr>
				<td class="main" width="100%" colspan="2" align="center"><?php echo WP_TEXT_FAILURE; ?></td>
	    </tr>
			<tr>
				<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '50'); ?></td>
			</tr>
			<tr>
				<td align="center" colspan="2">
					<table border="2" bordercolor="#FF0000" width="80%" cellspacing="0" cellpadding="2">
						<tr>
							<td class="main" align="center"><p><?php echo WP_TEXT_HEADING; ?></p><p><?php echo '<WPDISPLAY ITEM=banner>'; ?></p></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '50'); ?></td>
			</tr>
			<tr>
				<td class="main" width="100%" colspan="2" align="center"><h5><?php echo WP_TEXT_FAILURE_WAIT; ?></h5></td>
			</tr>
			<tr align="right">
				<td><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT, '', 'SSL', false) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
			</tr>
		<?php
		}
		?>
	  </table>
	 </td>
	</tr>
   </table>
  </td>
 </tr>
</table>