Re: turning off sideboxes on checkout pages
<?php
/**
* Common Template - tpl_main_page.php
*
* Governs the overall layout of an entire page<br />
* Normally consisting of a header, left side column. center column. right side column and footer<br />
* For customizing, this file can be copied to /templates/your_template_dir/pagename<br />
* example: to override the privacy page<br />
* - make a directory /templates/my_template/privacy<br />
* - copy /templates/templates_defaults/common/tpl_main_page.php to /templates/my_template/privacy/tpl_main_page.php<br />
* <br />
* to override the global settings and turn off columns un-comment the lines below for the correct column to turn off<br />
* to turn off the header and/or footer uncomment the lines below<br />
* Note: header can be disabled in the tpl_header.php<br />
* Note: footer can be disabled in the tpl_footer.php<br />
* <br />
* $flag_disable_header = true;<br />
* $flag_disable_left = true;<br />
* $flag_disable_right = true;<br />
* $flag_disable_footer = true;<br />
* <br />
* // example to not display right column on main page when Always Show Categories is OFF<br />
* <br />
* if ($current_page_base == 'index' and $cPath == '') {<br />
* $flag_disable_right = true;<br />
* }<br />
* <br />
* example to not display right column on main page when Always Show Categories is ON and set to categories_id 3<br />
* <br />
* if ($current_page_base == 'index' and $cPath == '' or $cPath == '3') {<br />
* $flag_disable_right = true;<br />
* }<br />
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_main_page.php 3856 2006-06-29 02:26:33Z drbyte $
*/
// the following IF statement can be duplicated/modified as needed to set additional flags
if (in_array($current_page_base,explode(",",'checkout_shipping,checkout_payment,che ckout_confirmation')) ) {
$flag_disable_right = true;
$flag_disable_left = true;
}
$header_template = 'tpl_header.php';
$footer_template = 'tpl_footer.php';
$left_column_file = 'column_left.php';
$right_column_file = 'column_right.php';
$body_id = str_replace('_', '', $_GET['main_page']);
?>
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
<table width="770" border="0" cellpadding="0" cellspacing="0" style="background-color:#D6D7BA " align="center">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#D6D7BA"><div align="center">
<table width="87%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="99" class="txt_content">Choose Language:</td>
<td>
<?php require(DIR_WS_TEMPLATE .('modules/languages.php')); ?>
</td>
</tr>
</table>
</div></td>
<td width="269" bgcolor="#D6D7BA"><table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="68" class="txt_content">Currencies:</td>
<td>
<?php require(DIR_WS_TEMPLATE .('modules/currencies.php')); ?>
</td>
</tr>
</table></td>
<td width="218"><div align="right"><img src="<? echo DIR_WS_TEMPLATE; ?>images/img_home1.gif" alt="Our Address" width="294" height="47"/></div></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="<? echo DIR_WS_TEMPLATE; ?>images/img_home2.gif" alt="" width="342" height="234"/></td>
<td><img src="<? echo DIR_WS_TEMPLATE; ?>images/logo.gif" alt="" width="210" height="234"/></td>
<td width="218" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="<? echo DIR_WS_TEMPLATE; ?>images/img_home3.gif" alt="" width="218" height="55"/></td>
</tr>
<tr>
<td><a href="index.php"><img src="<? echo DIR_WS_TEMPLATE; ?>images/btn_home.gif" alt="Home" width="218" height="34" border="0"/></a></td>
</tr>
<tr>
<td><a href="index.php?main_page=products_new"><img src="<? echo DIR_WS_TEMPLATE; ?>images/btn_newproducts.gif" alt="New Products" width="218" height="31" border="0"/></a></td>
</tr>
<tr>
<td><a href="index.php?main_page=login"><img src="<? echo DIR_WS_TEMPLATE; ?>images/btn_myaccount.gif" alt="My Account" width="218" height="31" border="0"/></a></td>
</tr>
<tr>
<td><a href="index.php?main_page=shopping_cart"><img src="<? echo DIR_WS_TEMPLATE; ?>images/btn_shoppingcart.gif" alt="Shopping Cart" width="218" height="29" border="0"/></a></td>
</tr>
<tr>
<td><a href="index.php?main_page=contact_us"><img src="<? echo DIR_WS_TEMPLATE; ?>images/btn_contactus.gif" alt="Contact Us" width="218" height="39" border="0"/></a></td>
</tr>
<tr>
<td height="15" bgcolor="#D6D7BA"><img src="<? echo DIR_WS_TEMPLATE; ?>images/trans.gif" alt="" width="1" height="1"/></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="189" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="<? echo DIR_WS_TEMPLATE; ?>images/img_menu1.gif" alt="" width="189" height="10"/></td>
</tr>
<tr>
<td style="background-color:#dde091; "><table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td style="width:182px; ">
<?php require(DIR_WS_TEMPLATE .('modules/column_left.php')); ?>
</td>
<td width="7" class="bg_shadow"><img src="<? echo DIR_WS_TEMPLATE; ?>images/trans.gif" alt="" width="7" height="8"/></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="<? echo DIR_WS_TEMPLATE; ?>images/img_cornerbottom1.gif" alt="" width="189" height="18"/></td>
</tr>
</table></td>
<td valign="top" bgcolor="#D6D7BA"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td ><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#B4BB5C">
<tr>
<td width="14"><img src="<? echo DIR_WS_TEMPLATE; ?>images/img_corner1.gif" alt="" width="14" height="60"/></td>
<td width="126"><table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12"><img src="<? echo DIR_WS_TEMPLATE; ?>images/arrow.gif" alt="" width="12" height="6"/></td>
<td class="txt_content"><a href="index.php?main_page=specials">Specials</a></td>
</tr>
<?php if ($_SESSION['customer_id']) { ?>
<tr>
<td><img src="<? echo DIR_WS_TEMPLATE; ?>images/arrow.gif" alt="arrow" width="12" height="6"/></td>
<td class="txt_content"><a href="index.php?main_page=create_account">Logout</a></td>
</tr>
<? } else { ?>
<tr>
<td><img src="<? echo DIR_WS_TEMPLATE; ?>images/arrow.gif" alt="arrow" width="12" height="6"/></td>
<td class="txt_content"><a href="index.php?main_page=create_account">Create
Account</a></td>
</tr>
<tr>
<td><img src="<? echo DIR_WS_TEMPLATE; ?>images/arrow.gif" alt="arrow" width="12" height="6"/></td>
<td class="txt_content"><a href="index.php?main_page=login">Customer
Login</a></td>
</tr>
<? } ?>
</table></td>
<td width="1"><img src="<? echo DIR_WS_TEMPLATE; ?>images/img_line.gif" alt="img_line" width="1" height="49"/></td>
<td width="197"><table width="78%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="44"><img src="<? echo DIR_WS_TEMPLATE; ?>images/img_icon.gif" alt="img_icon" width="34" height="34"/></td>
<td class="txt_content01">Your Shopping Cart
in your cart
<?php require(DIR_WS_TEMPLATE .('modules/shopping_cart.php')); ?>
ITEMS</td>
</tr>
</table></td>
<td width="1"><img src="<? echo DIR_WS_TEMPLATE; ?>images/img_line.gif" alt="img_line" width="1" height="49"/></td>
<td><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width:100%; ">
<?php require(DIR_WS_TEMPLATE .('modules/search.php')); ?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="7"><img src="<? echo DIR_WS_TEMPLATE; ?>images/trans.gif" alt="trans" width="1" height="1"/></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="14"><img src="<? echo DIR_WS_TEMPLATE; ?>images/img_corner2.gif" alt="img_corner" width="14" height="25"/></td>
<td bgcolor="#FF9C00" class="txt_content02"><?php echo HEADING_TITLE; ?></td>
</tr>
</table></td>
</tr>
<tr>
<td height="10"><img src="<? echo DIR_WS_TEMPLATE; ?>images/trans.gif" alt="trans" width="1" height="1"/></td>
</tr>
<tr>
<td valign="top">
<table cellpadding="0" cellspacing="0" border="0" style="width:100%; ">
<tr>
<td style="vertical-align:top; width:100%; ">
<?php if (DEFINE_BREADCRUMB_STATUS == '1') { ?>
<?php } ?>
<!-- eof breadcrumb -->
<?php
if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
<!-- bof upload alerts -->
<?php if ($messageStack->size('upload') > 0) echo $messageStack->output('upload'); ?>
<!-- eof upload alerts -->
<?php
/**
* prepares and displays center column
*
*/
require($body_code); ?>
<?php
if (SHOW_BANNERS_GROUP_SET4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerFour" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
</td>
<?php
if (COLUMN_RIGHT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) {
// global disable of column_right
$flag_disable_right = true;
}
if (!isset($flag_disable_right) || !$flag_disable_right) {
?>
<td style="vertical-align:top; width:100%; "><?php require(DIR_WS_TEMPLATE .('modules/column_right.php')); ?></td>
<?php
}
?>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#D6D7BA">
<tr>
<td> </td>
</tr>
<tr>
<td height="30" bgcolor="#B4BB5C" class="txt_content04"> <font color="#FFFFFF"><a href="index.php?main_page=shippinginfo"><font color="#FFFFFF">Shipping
& Returns</font></a> | <a href="index.php?main_page=privacy"><font color="#FFFFFF">Privacy
Notice</font></a> | <a href="index.php?main_page=conditions"><font color="#FFFFFF">Conditions of
Use</font></a> | <a href="index.php?main_page=contact_us"><font color="#FFFFFF">Contact Us</font></a>
| <a href="index.php?main_page=specials"><font color="#FFFFFF">Specials</font></a> | <a href="index.php?main_page=reviews"><font color="#FFFFFF">Reviews</font></a></font></td>
</tr>
<tr>
<td height="30" class="txt_content05"> Designed & Maintained By The Gwynedd Gadgets Team - We Hope You Enjoy Your Shopping Experience With Us - Thank You Very Much For Your Custom!<div style="float: right "><img src="images/ssllogo.gif" alt="this site is secured by equifax, giving you confidence when you shop online!" title=" This Site Is Secured By Equifax, Giving You Confidence To Shop Online " width="104" height="37" /></div> <div style="float: right"><img src="images/footer-payment-cards.gif" alt="this site is secured by equifax, giving you confidence when you shop online!" title=" Payment Method " width="473" height="37" /></div><div style="float: right"><img src="images/footergg.gif" alt="this site is secured by equifax, giving you confidence when you shop online!" title=" Gwynedd Gadgets " width="180" height="37" /></div></td>
</tr>
</table></td>
</tr>
</table></body>
The man with a million passwords.