Guest Posted January 26, 2004 Share Posted January 26, 2004 Ok..I'm loosing my mind... http://www.adm.hr is the site..when I turn on the center shop in admin i get everything perfictly as iz ment to be ONLY the outside border and attributes are applied on the header..anything else remains the same...OK...OK..it seems the table is closed in header instead footer BUT.... I simply can't find it... Is it blindeness for long hours spend or something else..please can anybody help me??? header code is //BOF <?php /* $Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ ?><head> <script LANGUAGE="JavaScript"> <!-- // please keep these lines on when you copy the source // made by: Nicolas - http://www.javascript-page.com var x = 0 var y = 0 var z = 140 var delay = 70 var text = "<?php echo ICON_CART; ?> : <?php echo $cart->count_contents(); ?> proizvod(a) <?php echo $currencies->format($cart->show_total()); ?>" while (y ++ < z) { text = " " + text } function scroller() { window.status = text.substring(x++, text.length); if (x == text.length) { x = 0; } setTimeout("scroller()", delay); } scroller(); //--> </SCRIPT> </head> <?php // 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')) ) { $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning'); } } // check if the session folder is writeable if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') { if (STORE_SESSIONS == '') { if (!is_dir(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning'); } elseif (!is_writeable(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning'); } } } // give the visitors a message that the website will be down at ... time if ( (WARN_BEFORE_DOWN_FOR_MAINTENANCE == 'true') && (DOWN_FOR_MAINTENANCE == 'false') ) { $messageStack->add('header', TEXT_BEFORE_DOWN_FOR_MAINTENANCE . PERIOD_BEFORE_DOWN_FOR_MAINTENANCE, 'warning'); } // this will let the admin know that the website is DOWN FOR MAINTENANCE to the public if ( (DOWN_FOR_MAINTENANCE == 'true') && (EXCLUDE_ADMIN_IP_FOR_MAINTENANCE == getenv('REMOTE_ADDR')) ) { $messageStack->add('header', TEXT_ADMIN_DOWN_FOR_MAINTENANCE, 'warning'); } // check session.auto_start is disabled if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) { if (ini_get('session.auto_start') == '1') { $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning'); } } if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) { if (!is_dir(DIR_FS_DOWNLOAD)) { $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning'); } } if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . STORE_LOGO, STORE_NAME) . '</a>'; ?></td> <td align=middle"> <?php if ($banner = tep_banner_exists('dynamic', '468x50')) { ?> <table width="468" border="1" bordercolor="#6699CC" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center"><?php echo tep_display_banner('static', $banner); ?></td> </tr> </table> </td> <?php } ?> <td class="header" width="200" valign="middle" align="right"> <table class="header" border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td class="header" align="middle" valign="middle"><b>Trenutno u koąarici:</b><br> <?php echo '[ ' . $cart->count_contents() . ($cart->count_contents() == "1" ? " Proizvod" : " Proizvoda "); ?> <?php echo $currencies->format($cart->show_total()); ?> ] </td> </tr> </table> </td> </tr> <tr> <table border="0" width="100%" cellspacing="0" cellpadding="0" align="center" class="header"> <tr> <td> <table border="0" cellspacing="0" cellpadding="0" align="center" class="header"> <tr class="main" height="28"> <td class="main" align="center" valign="middle"> <form name="quick_jump" method="get" action="<?php echo tep_href_link(FILENAME_DEFAULT, 'jumpto=1', 'NONSSL'); ?>"> <?php echo tep_draw_pull_down_menu('cPath', tep_get_categories(array(array('id' => '0', 'text' => 'Grupe Proizvoda'))) , $current_category_id, 'onChange="this.form.submit();"'); echo '<input type=hidden name=quickjump value=1>'; ?> </form> </td> <td class="main" align="center" valign="middle"> <?php echo '<a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>'; ?> </td> <td class="main" align="center" valign="middle"> <form name="quick_find" method="get" action="<?php echo tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false);?>"><input type="text" name="keywords" size="24" maxlength="40" value="<?php echo htmlspecialchars(StripSlashes(@$HTTP_GET_VARS["keywords"]));?>"> <?php echo tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH);?> </form> </td> <td> </td> </tr> </table> </td></tr> </table> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="headerNavigation"> <td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></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); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> </td> </tr> </table> <?php if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td> </tr> </table> <?php } if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td> </tr> </table> <?php } ?> //EOF Quote Link to comment Share on other sites More sharing options...
gigi28 Posted January 27, 2004 Share Posted January 27, 2004 YEA... done...there was one </table></td> in the header and also one </table> in index.php to many... :D :P Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.