New Zenner
- Join Date:
- Aug 2010
- Location:
- Washington, DC
- Posts:
- 66
- Plugin Contributions:
- 0
Help reinstalling store
I don't know how the two would differ, but I will include my tpl_main_page.php for my template.
<?php
/*
$Id: tpl_main_page.php, template: OS03C00282 v2.00 08/01/09 14:20:41 hpdl Exp $
This file created as a part of graphical design by AlgoZone, Inc
http://www.algozone.com for ZenCart 1.3
Copyright (c) 2002-2009 AlgoZone, Inc
*/
// the following IF statement can be duplicated/modified as needed to set additional flags
if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
$flag_disable_right = 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.'"'; ?>>
<?php
//#PR Define template image directory. Can be used to store template images in different location
define('DIR_WS_TEMPLATE_IMAGES', $template->get_template_dir('.',DIR_WS_TEMPLATE, $current_page_base,'images'));
//#PR Redefine DIR_WS_BOXES for BTS new path to template boxes
define('DIR_WS_BOXES_AZ', DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/');
?>
<!-- header //-->
<script type='text/javascript' src='js/x_core.js'></script>
<script type='text/javascript' src='js/x_dom.js'></script>
<script type='text/javascript' src='js/x_event.js'></script>
<script type='text/javascript' src='js/az_animebox.js'></script>
<?php require(DIR_WS_INCLUDES . '/browser_agent.php'); ?>
<?php require(DIR_WS_LANGUAGES . $_SESSION['language'] . '/menu.php'); ?>
<?php
$css_buttons_fix = ($agent['browser'] != 'msie') ? 'style="padding-top: 2px; padding-bottom: 4px;"' : '' ;
$browser_type = $agent['browser'];
function az_tep_image($image, $alt = '', $parameters = '') {
global $css_buttons_fix, $browser_type;
if($browser_type == 'msie'){
$button_html = '<div class="az_button_img" '. $css_buttons_fix .'>';
$button_html .= '<img src="'. DIR_WS_TEMPLATE_IMAGES . 'az_button_left.gif" border="0" alt="" align="absmiddle" />';
$button_html .= ' '.$alt.' ';
$button_html .= '<img src="'. DIR_WS_TEMPLATE_IMAGES . 'az_button_right.gif" border="0" alt="" align="absmiddle" />';
$button_html .= '</div>';
}
else {
$button_html = '<table border="0" cellspacing="0" cellpadding="0"><tr>';
$button_html .= '<td><img src="'. DIR_WS_TEMPLATE_IMAGES . 'az_button_left.gif" border="0" alt="" align="absmiddle" /></td>';
$button_html .= '<td class="az_button_submit" style="vertical-align:middle"> '.$alt.' </td>';
$button_html .= '<td><img src="'. DIR_WS_TEMPLATE_IMAGES . 'az_button_right.gif" border="0" alt="" align="absmiddle" /></td>';
$button_html .= '</tr></table>';
}
return $button_html;
}
function az_tep_image_submit($image, $alt = '', $parameters = '') {
global $css_buttons_fix;
$button_html = '<img border="0" src="'. DIR_WS_TEMPLATE_IMAGES . 'az_button_left.gif" alt="" />';
$button_html .= '<input class="az_button_submit" '. $css_buttons_fix .' type="submit" class="noborder" value="'.$alt.'" ' . $parameters. ' />';
$button_html .= '<img border="0" src="'. DIR_WS_TEMPLATE_IMAGES . 'az_button_right.gif" alt="" />';
return $button_html;
}
?>
<!-- animBoxes -->
<script type="text/javascript">
xAddEventListener(window, 'load', function() { newbox = new animBox('animBoxCart', 1, 2, 1, <?php echo ($_SESSION['cart']->count_contents() > 0) ? (sizeof($_SESSION['cart']->get_products()) * 500 - (sizeof($_SESSION['cart']->get_products()) - 1) * 250) : 250; ?>); xOpacity('animBoxCart', 0.9); newbox.reposition('btn_animBoxCart', '-', '+'); }, false);
</script>
<div id="animBoxCart" class="animBoxDropover jsContainer">
<?php
if (!defined('CART_IMAGE_WIDTH')) { define('CART_IMAGE_WIDTH', 50); }
if (!defined('CART_IMAGE_HEIGHT')) { define('CART_IMAGE_HEIGHT', NULL); }
if ($_SESSION['cart']->count_contents() > 0)
{
echo '<table width="100%" cellspacing="0" cellpadding="5">';
echo ' <tr><td class="animBoxCartLink" colspan="2"><a href="'. zen_href_link(FILENAME_SHOPPING_CART) .'">'. TEXT_CART_LINK .'</a></td></tr>';
$products = $_SESSION['cart']->get_products();
for ($i=0, $n=sizeof($products); $i<$n; $i++)
{
$products_name = ' <tr>' .
' <td class="animBoxCartImage" width="'. CART_IMAGE_WIDTH .'" align="center"><a href="'. zen_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) .'">'. zen_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], CART_IMAGE_WIDTH, CART_IMAGE_HEIGHT) .'</a></td>' .
' <td class="animBoxCartContent">' .
' <div class="animBoxCartName"><a href="'. zen_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) .'">'. $products[$i]['name'] .'</a></div>';
' '. TEXT_CART_QUANTITY .' '. $products[$i]['quantity'] .
' <div class="animBoxCartPrice">'. $currencies->display_price($products[$i]['final_price'], zen_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) .'</a></div>' .
' <a href="'. zen_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) .'">'. TEXT_CART_MORE_INFO .'</a>' .
' </td>' .
' </tr>';
echo $products_name;
}
echo ' <tr><td class="animBoxCartTotal" colspan="2">'. TEXT_CART_SUBTOTAL .' '. $currencies->format($_SESSION['cart']->show_total()) .'</td></tr>';
echo '</table>';
}
else // ($cart->count_contents() > 0)
{
echo '<div class="animBoxCartNotice">'. TEXT_CART_EMPTY .'</div>';
}
?>
</div>
<!-- animBoxes_eof -->
<!-- body -->
<table class="header_tb" width="980" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="331"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><img src="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>az_header_top.gif" class="noborder" alt="<?php echo MENU_TEXT_HOME; ?>" /></a></td>
<td>
<table class="header_boxes_tb" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="160" align="center">
<a href="http://www.boatersplanet.com/blog"><img src="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>az_arrow_1.gif" class="noborder" alt="" /><p style="text-align: center;"><span style="color: #ffff00;"><span style="font-size: small;"><span style="font-family: georgia,palatino;">CHECK OUT OUR BLOG!</span></p></a>
</td>
<td width="3"><img src="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>az_header_boxes_sep.gif" class="noborder" alt="" /></td>
<td width="150">
<table cellspacing="0" cellpadding="0" align="center">
<?php $column_location = 'Header'; ?>
<?php include(DIR_WS_BOXES_AZ . 'languages_az01.php'); ?>
<?php $column_location = ''; ?>
</table>
</td>
<td width="3"><img src="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>az_header_boxes_sep.gif" class="noborder" alt="" /></td>
<td width="160">
<table cellspacing="0" cellpadding="0" align="center">
<?php $column_location = 'Header'; ?>
<?php include(DIR_WS_BOXES_AZ . 'currencies_az01.php'); ?>
<?php $column_location = ''; ?>
</table>
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
<table width="100%" class="menubarmain_tb" cellspacing="0" cellpadding="0">
<tr>
<td class="menubarmain" width="129" onmouseover="className='menubarmain over'" onmouseout="className='menubarmain'"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><img src="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>az_menu_home.gif" class="noborder alignMiddle" alt="<?php echo MENU_TEXT_HOME; ?>" /></a></td>
<td width="1"></td>
<td class="menubarmain" width="129" onmouseover="className='menubarmain over'" onmouseout="className='menubarmain'"><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'SSL'); ?>"><img src="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>az_menu_cart.gif" class="noborder alignMiddle" alt="<?php echo MENU_TEXT_CART; ?>" /></a></td>
<td width="1"></td>
<td class="menubarmain" width="129" onmouseover="className='menubarmain over'" onmouseout="className='menubarmain'"><a class="az_menu_button" href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><img src="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>az_menu_members.gif" class="noborder alignMiddle" alt="<?php echo MENU_TEXT_MEMBERS; ?>" /></a></td>
<td width="1"></td>
<td class="menubarmain" width="129" onmouseover="className='menubarmain over'" onmouseout="className='menubarmain'"><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><img src="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>az_menu_checkout.gif" class="noborder alignMiddle" alt="<?php echo MENU_TEXT_CHECKOUT; ?>" /></a></td>
<td width="1"></td>
<td class="menubarmain" width="129" onmouseover="className='menubarmain over'" onmouseout="className='menubarmain'"><a href="<?php echo zen_href_link(FILENAME_CONTACT_US);?>"><img src="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>az_menu_contact.gif" class="noborder alignMiddle" alt="<?php echo MENU_TEXT_CONTACTUS; ?>" /></a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table class="header_tb" width="980" cellpadding="0" cellspacing="0" align="center">
<tr>
<td><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><img src="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>az_header.jpg" class="noborder" alt="" /></a></td>
</tr>
</table>
<table width="980" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="714">
<table cellspacing="0" cellpadding="0" align="center" class="az_info_bar">
<?php $column_location = 'Header'; ?>
<?php include(DIR_WS_BOXES_AZ . 'information_az01.php'); ?>
<?php $column_location = ''; ?>
</table>
</td>
<td class="az_info_bar_cart">
<div id="btn_animBoxCart" class="jsTrigger">
<table cellspacing="0" cellpadding="0" align="center">
<?php $column_location = 'Header'; ?>
<?php include(DIR_WS_BOXES_AZ . 'shopping_cart_az01.php'); ?>
<?php $column_location = ''; ?>
</table>
</div>
</td>
<td width="58"><img src="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>az_cart_box_right.gif" class="noborder" alt="" /></td>
</tr>
</table>
<table class="maincont_tb" width="980" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
<!-- header_eof //-->
<!-- body //-->
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="maincont_tb">
<tr>
<?php
if (COLUMN_LEFT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) {
// global disable of column_left
$flag_disable_left = true;
}
if (!isset($flag_disable_left) || !$flag_disable_left) {
?>
<td width="<?php echo BOX_WIDTH_LEFT; ?>" valign="top" class="maincont_left_td">
<table border="0" width="<?php echo COLUMN_WIDTH_LEFT; ?>" cellspacing="0" cellpadding="0" class="leftbar_tb">
<!-- left_navigation //-->
<?php require(DIR_WS_MODULES . zen_get_module_directory('column_left.php')); ?>
<!-- left_navigation_eof //-->
</table></td>
<?php
}
?>
<!-- content //-->
<td width="100%" valign="top" class="maincont_mid_td">
<?php
if ( file_exists($template->get_template_dir('sub_header.php',DIR_WS_TEMPLATE, $current_page_base,'common') . '/sub_header.php') ) {
require($template->get_template_dir('sub_header.php',DIR_WS_TEMPLATE, $current_page_base,'common') . '/sub_header.php');
}
require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');
?>
<?php require($body_code); ?>
<?php
if ( file_exists($template->get_template_dir('.',DIR_WS_TEMPLATE, $current_page_base,'common') . '/sub_footer.php') ) {
require($template->get_template_dir('.',DIR_WS_TEMPLATE, $current_page_base,'common') . '/sub_footer.php');
}
?>
</td>
<!-- content_eof //-->
<?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 valign="top" class="maincont_right_td">
<table border="0" width="<?php echo COLUMN_WIDTH_RIGHT; ?>" cellspacing="0" cellpadding="0" class="rightbar_tb">
<!-- right_navigation //-->
<?php require(DIR_WS_MODULES . zen_get_module_directory('column_right.php')); ?>
<!-- right_navigation_eof //-->
</table></td>
<?php
}
?>
</tr>
</table>
<!-- body_eof //-->
<!-- footer //-->
</td>
</tr>
</table>
<table class="footer_tb" width="980" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="3"><img src="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>az_footer_left.gif" class="noborder" /></td>
<td width="197" align="center"><img src="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>az_cc_icons.gif" class="noborder" /></td>
<td class="footer_menu_tb" align="center">
<a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo MENU_TEXT_HOME; ?></a> |
<a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'SSL'); ?>"><?php echo MENU_TEXT_CART; ?></a> |
<a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo MENU_TEXT_MEMBERS; ?></a> |
<a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo MENU_TEXT_CHECKOUT; ?></a> |
<a href="<?php echo zen_href_link(FILENAME_CONTACT_US);?>"><?php echo MENU_TEXT_CONTACTUS; ?></a>
</td>
<td width="247" align="center"><?php echo FOOTER_TEXT_BODY; ?></td>
<td width="5"><img src="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>az_footer_right.gif" class="noborder" /></td>
</tr>
</table>
<?php
/**
* prepares and displays footer output
*
*/
require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');?>
<!--bof- parse time display -->
<?php
if (DISPLAY_PAGE_PARSE_TIME == 'true') {
?>
<div class="smallText center">Parse Time: <?php echo $parse_time; ?> - Number of Queries: <?php echo $db->queryCount(); ?> - Query Time: <?php echo $db->queryTime(); ?></div>
<?php
}
?>
<!--eof- parse time display -->
<!--bof- banner #6 display -->
<?php
if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) {
if ($banner->RecordCount() > 0) {
?>
<?php
}
}
</script>
?>
<!--eof- banner #6 display -->
</body>
<!-- footer_eof //-->