Graveyard666 Posted January 19, 2005 Posted January 19, 2005 I am having a layout issue in MSIE, everything looks fine in Netscape/Firefox but in Internet Exploder the 2 dropdown menus are right on top of my cart :( any ideas as to why? I had 2 tables after my cart with nothing in them cause I tried to use em as spacers to move the dropdowns under the cart but then it looks all messed up in firefox.. any ideas?? thanks much in advance.. www.graveyardrecords.com/v46 jeff
Graveyard666 Posted January 20, 2005 Author Posted January 20, 2005 Here is my header.php file, the flash is intentionally blank <?php /* $Id: header.php,v 1.36 2002/08/15 17:29:47 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2001 osCommerce Released under the GNU General Public License */ // check if the 'install' directory exists, and warn of its existence if (WARN_INSTALL_EXISTENCE == 'true') { if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) { tep_output_string(WARNING_INSTALL_DIRECTORY_EXISTS); } } // check if the configure.php file is writeable if (WARN_CONFIG_WRITEABLE == 'true') { if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) { tep_output_string(WARNING_CONFIG_FILE_WRITEABLE); } } // check if the session folder is writeable if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') { if (STORE_SESSIONS == '') { if (!is_dir(tep_session_save_path())) { tep_output_string(WARNING_SESSION_DIRECTORY_NON_EXISTENT); } elseif (!is_writeable(tep_session_save_path())) { tep_output_string(WARNING_SESSION_DIRECTORY_NOT_WRITEABLE); } } } // check session.auto_start is disabled if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) { if (ini_get('session.auto_start') == '1') { tep_output_string(WARNING_SESSION_AUTO_START); } } if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) { if (!is_dir(DIR_FS_DOWNLOAD)) { tep_output_string(WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT); } } ?> <?php // BOF: WebMakers.com Added: Center Shop // This goes before any other table of the shop if ( CENTER_SHOP_ON=='1' ) { // Is a bgroundcolor set for around the shop if ( CENTER_SHOP_BACKGROUND_ON=='1' ) { ?> <table width="100%" cellpadding="<?php echo CENTER_SHOP_PADDING; ?>" cellspacing="0" border="0" bgcolor="<?php echo CENTER_SHOP_BACKGROUND_COLOR_OUT; ?>"> <tr><td> <?php } // Center the shop to what size and what bgcolor ?> <table CELLSPACING="4" CELLPADDING="6" BORDER="0" width="<?php echo CENTER_SHOP_WIDTH; ?>" align="center" BGCOLOR="<?php echo CENTER_SHOP_BACKGROUND_COLOR; ?>"> <tr><td BGColor="000000"> <?php } // The rest of the <td> at the end of the footer // EOF: WebMakers.com Added: Center Shop ?> <div class= "centerpage" > <table border="0" width="100%" cellspacing="0" cellpadding="0"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td height="125" colspan="2" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="760" height="125"> <param name="movie" value="images/head61.swf"> <param name="quality" value="high"> <embed src="images/head61.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="760" height="125"></embed> </object><br> <table align="left" width="500" border="0" cellspacing="0" cellpadding="0"> <tr align="left"><td height="35" colspan="2" valign="top"> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="500" height="35" id="menuBar" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <?php if ((isset($HTTP_GET_VARS['osCsid']) & ($HTTP_GET_VARS['osCsid'] != '')) || (tep_session_is_registered('osCsid'))) { ?> <param name="movie" value="menuBar.swf?osCsid=<?php echo $_GET['osCsid']; ?>" /> <?php } else { ?> <param name="movie" value="menuBar.swf" /> <?php } ?> <param name="quality" value="high" /> <param name="bgcolor" value="#000000" /> <?php if ((isset($HTTP_GET_VARS['osCsid']) && ($HTTP_GET_VARS['osCsid'] != '')) || (tep_session_is_registered('osCsid'))) { ?> <embed src="menuBar.swf?osCsid=<?php echo $_GET['osCsid']; ?>" quality="high" bgcolor="#000000" width="500" height="35" name="menuBar" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> <?php } else { ?> <embed src="menuBar.swf" quality="high" bgcolor="#000000" width="500" height="35" name="menuBar" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> <?php } ?> </object> </td></tr> <tr align="left" valign="bottom"><td> <?php /* IMPORTANT NOTE: This is not part of the official osC distribution but an add-on contributed to the osC community. Please read the README document that are provided with this file for further information and installation notes. This puts a login request in a box with a login button. If already logged in, will not show anything. Modified to utilize SSL to bypass Security Alert LoginboxV5.4_header http://avzwebdesign.nl/oscommerce/ */ if ( (!strstr($_SERVER['PHP_SELF'],'login.php')) and (!strstr($_SERVER['PHP_SELF'],'create_account.php')) and !tep_session_is_registered('customer_id') ) { ?> <!-- loginbox //--> <?php if (!tep_session_is_registered('customer_id')) { ?> <table width="310"><tr> <td> <?php $loginboxcontent = tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')) . '<table width="310" border="0" cellspacing="0" cellpadding="0"><tr><td colspan="3" class="smallText">' .'<tr><td class="smallText">' . tep_draw_separator('pixel_trans.gif', '2', '1') . BOX_LOGINBOXH_EMAIL . '</td><td class="smallText" colspan="3">' . tep_draw_input_field('email_address', '', 'size="10" maxlength="100" style="width: ' . (BOX_WIDTH-30) . 'px"') .'</td></tr><tr><td class="smallText">' . tep_draw_separator('pixel_trans.gif', '2', '1') . BOX_LOGINBOXH_PASSWORD . '</td><td class="smallText">' . tep_draw_password_field('password', '', 'size="10" maxlength="40" style="width: ' . (BOX_WIDTH-30) . 'px"') . '</td><td class="smallText">' . '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . BOX_LOGINBOXH_FORGOT_PASSWORD . '</a></td></tr><tr><td class="smallText" colspan="3">' . tep_draw_separator('pixel_trans.gif', '5', '25') . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN) . '</form>' . tep_draw_separator('pixel_trans.gif', '15', '1') . BOX_LOGINBOXH_TEXT_NEW . '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . BOX_LOGINBOXH_NEW . '</a></td></tr></table>' ; $info_box_contents = array(); $info_box_contents[] = array('align' => '', 'text' => $loginboxcontent); new infoBox($info_box_contents); ?> </td> </tr></table> <?php } else { // If you want to display anything when the user IS logged in, put it // in here... Possibly a "You are logged in as :" box or something. } ?> <!-- loginbox_eof //--> <?php // WebMakers.com Added: My Account Info Box } else { if (tep_session_is_registered('customer_id')) { ?> <!-- my_account_info //--> <table width="310"><tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => '<table width="310" border="0" cellspacing="0" cellpadding="0"><tr><td class="smallText" colspan="2">' . tep_draw_separator('pixel_trans.gif', '2', '1') . '<b><center>' . tep_customer_greeting() .'</b></center></td></tr><tr><td class="smallText">' . '<tr><td class="smallText" colspan="2" align="center">' . tep_draw_separator('pixel_trans.gif', '2', '20') . '<b>' . BOX_HEADING_LOGIN_BOX_MY_ACCOUNT .'</b></td></tr><tr><td class="smallText" align="center">' . tep_draw_separator('pixel_trans.gif', '2', '15') . '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') .'">' . LOGIN_BOX_MY_ACCOUNT . '</a><td class="smallText" align="center">' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') .'">' . LOGIN_BOX_ACCOUNT_EDIT . '</a></td></tr><tr><td class="smallText" align="center">' . tep_draw_separator('pixel_trans.gif', '2', '1') . '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') .'">' . LOGIN_BOX_ACCOUNT_HISTORY . '</a><td class="smallText" align="center">' . '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') .'">' . LOGIN_BOX_ADDRESS_BOOK . '</a></td></tr><tr><td class="smallText" align="center">' . tep_draw_separator('pixel_trans.gif', '2', '1') . '<a href="' . tep_href_link(FILENAME_WISHLIST, '', 'SSL') .'">' . LOGIN_BOX_WISHLIST . '</a><td class="smallText" align="center">' . '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, '', 'SSL') .'">' . LOGIN_BOX_NEW_PROD . '</a></td></tr></table><tr><td class="smallText" align="center">' . tep_draw_separator('pixel_trans.gif', '', '1') . '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'NONSSL') .'">' . LOGIN_BOX_LOGOFF2 . '</a></td></tr>'); new infoBox($info_box_contents); ?> </td> </tr></table> <!-- my_account_info_eof //--> <?php } // END-IF SESSION REGISTERED } // END-IF ?></td> <!-- Header Cart //--> <table align="right"><tr><td> <table align="right" class="headerCart_table" width="220" border="0" cellspacing="1" cellpadding="1"> <tr align="center"> <td class="headerCart_title"><b>Cart Contents</b></td> </tr> <tr align="center"> <td><table><tr> <td class="headerCart_contents" align="center"> <?php if ($cart->count_contents() == '1') { echo $cart->count_contents() . ' Product'; } else { echo $cart->count_contents() . ' Products'; } ?> </td> <td class="headerCart_contents" align="center"> <?php echo 'SubTotal: ' . $currencies->format($cart->show_total()); ?> </td> </tr></table></td> <!-- Header Cart End //--> <!-- dropdown //--> <table align="right"> <tr align="right" valign="bottom"><td> <tr><td></td></tr><tr><td></td></tr><tr><td></td></tr> <tr class="header"><td class="headerDropdown_contents"> <?php /* $Id: allcategoriesdropdown.php,v 1.1 2002/09/06 Weirdlab Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License This is Weirdlab's mod based on osC core elements. Version 1.1 version includes 2 important fixes by Marcel van Lieshout */ ?> <!-- categories //--> <tr> <td> <?php $info_box_contents = array(); if (MAX_MANUFACTURERS_LIST < 2) { $cat_choose = array(array('id' => '', 'text' => PULL_DOWN_CATE)); } else { $cat_choose = ''; } //// // Below lines changed by Marcel $categories_array = tep_get_categories($cat_choose); for ($i=0; $i<sizeof($categories_array); $i++) { $path = ""; $parent_categories = array(); /* tep_get_parent_categories($parent_categories, $categories_array[$i]['id']); for ($j = sizeof($parent_categories) - 1; $j>=0; $j--) { $path = ($path == "") ? $parent_categories[$j] : ($path . "_" .. $parent_categories[$j]); } $categories_array[$i]['id'] = ($path == "") ? $categories_array[$i]['id'] : ($path . "_" . $categories_array[$i]['id']); */ } ?> <!-- categories_eof //--> <?php /* $Id: manufacturers.php,v 1.19 2003/06/09 22:17:13 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ $manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name"); if ($number_of_rows = tep_db_num_rows($manufacturers_query)) { ?> <!-- manufacturers //--> <?php if ($number_of_rows <= MAX_DISPLAY_MANUFACTURERS_IN_A_LIST) { // Display a list $manufacturers_list = ''; while ($manufacturers = tep_db_fetch_array($manufacturers_query)) { $manufacturers_name = ((strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name']); if (isset($HTTP_GET_VARS['manufacturers_id']) && ($HTTP_GET_VARS['manufacturers_id'] == $manufacturers['manufacturers_id'])) $manufacturers_name = '<b>' . $manufacturers_name .'</b>'; $manufacturers_list .= '<a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id']) . '">' . $manufacturers_name . '</a><br>'; } $manufacturers_list = substr($manufacturers_list, 0, -4); $info_box_contents = array(); $info_box_contents[] = array('text' => $manufacturers_list); } else { // Display a drop-down $manufacturers_array = array(); if (MAX_MANUFACTURERS_LIST < 2) { $manufacturers_array[] = array('id' => '', 'text' => PULL_DOWN_MANU); } while ($manufacturers = tep_db_fetch_array($manufacturers_query)) { $manufacturers_name = ((strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name']); $manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'], 'text' => $manufacturers_name); } ?> <table align="left"><tr><td> <table align="left" class="headerDropdown_table" width="1" border="0" cellspacing="0" cellpadding="0"> <?php $info_box_contents[] = array('form' => '<form action="' . tep_href_link(FILENAME_DEFAULT) . '" method="get">', 'align' => 'center', 'text' => tep_draw_pull_down_menu('cPath', $categories_array,'','onChange="this.form.submit();" size="' . ((sizeof($categories_array) < MAX_MANUFACTURERS_LIST) ? sizeof($categories_array) : MAX_MANUFACTURERS_LIST) . '" style="width:' . BOX_WIDTH . '"') ); new infoBox($info_box_contents); ?> </td></tr> <table align="right"><tr><td> <table align="right" class="headerDropdown_table" width="115" border="0" cellspacing="0" cellpadding="0"> <?php $info_box_contents = array(); $info_box_contents[] = array('form' => tep_draw_form('manufacturers', tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get'), 'text' => tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, (isset($HTTP_GET_VARS['manufacturers_id']) ? $HTTP_GET_VARS['manufacturers_id'] : ''), 'onChange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 100%"') . tep_hide_session_id()); } new infoBox($info_box_contents); ?> </table></td></tr> </td> </tr> <!-- manufacturers_eof //--> </td></td></tr> <!-- dropdown_end //--> <?php } ?> </tr></table></td></tr> </tr> </td> </tr> </table> </td></tr></table> <table border="0" width="770" cellspacing="0" cellpadding="1"> <tr class="headerNavigation"> <td class="headerNavigation"> <?php echo strftime(DATE_FORMAT_LONG); ?></td> <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a></td> </tr> </table> <?php if ($HTTP_GET_VARS['error_message'] != '') { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo urldecode($HTTP_GET_VARS['error_message']); ?></td> </tr> </table> <?php } if ($HTTP_GET_VARS['info_message'] != '') { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo $HTTP_GET_VARS['info_message']; ?></td> </tr> </table> <?php } ?>
snakerboy Posted January 20, 2005 Posted January 20, 2005 <div class= "centerpage" > <div class="centerpage"> Try that.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.