<?php

// Check to ensure this file is included in Freeway!
defined('_FEXEC') or die();
 echo tep_draw_form('subscription_checkout', tep_href_link(FILENAME_SUBSCRIPTION_TRIAL, tep_get_all_get_params(), 'SSL'), 'post'); ?><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_payment.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, TABLE_HEADING_BILLING_ADDRESS);
}else{
?>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td class="main"><b><?php echo TABLE_HEADING_BILLING_ADDRESS; ?></b></td>
          </tr>
        </table></td>
      </tr>
<?php
}
// BOF: Lango Added for template MOD
?>
      <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="left" valign="top"><table border="0" cellspacing="0" cellpadding="2">
                  <tr>
                    <td class="main" align="center" valign="top"><b><?php echo TITLE_BILLING_ADDRESS; ?></b><br><?php echo tep_image(DIR_WS_IMAGES . 'arrow_south_east.gif'); ?></td>
                    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 
                    <td class="main" valign="top"><?php echo tep_address_label($customer_id, $billto, true, ' ', '<br>'); ?></td>
                    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
<?php
// BOF: Lango Added for template MOD
if (MAIN_TABLE_BORDER == 'yes'){
table_image_border_bottom();
}
// 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, TABLE_HEADING_FREE_TRIAL);
}else{
?>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td class="main"><b><?php echo TABLE_HEADING_FREE_TRIAL; ?></b></td>
          </tr>
        </table></td>
      </tr>
<?php
}
// BOF: Lango Added for template MOD
?>
      <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 if ($take_free) { ?>
					  <tr>
						<td class="main" width="50%" valign="top">
							<?php echo sprintf(TEXT_TRIAL_INFO,$subscription["subscription_name"],$subscription["subscription_free_days"]); ?>
						</td>
					   </tr>
					   <tr>
						<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
					  </tr>
					   <tr>
						<td class="main"><?php echo TEXT_TRIAL_COST; ?></td>
					  </tr>


			<?php } else { ?>
					   <tr>
						<td class="main"><?php echo TEXT_TRIAL_TAKEN; ?></td>
					  </tr>
			<?php }?>
					  <tr>
						<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
					  </tr>
			  <tr>
			  	<td>
				<table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td align="left"><?php echo '<a href="' . tep_href_link(FILENAME_SUBSCRIPTION_INFO,tep_get_all_get_params()) . '">' . tep_template_image_button('button_back.gif',IMAGE_BACK) . '</a>';?></td>
						<td align="right" class="main"><?php if ($take_free) echo tep_template_image_submit('button_confirm.gif',IMAGE_CONFIRM_TRIAL);?></td>
					</tr>
				</table>
				</td>
			  </tr>
			  </table></td>
      </tr>
        </table></td>
		
<?php
// BOF: Lango Added for template MOD
if (MAIN_TABLE_BORDER == 'yes'){
table_image_border_bottom();
}
// EOF: Lango Added for template MOD
?>
        </table></td>
      </tr>

    </table>
	
	</form>
