Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Posts
    13
    Plugin Contributions
    0

    application error different layout in IE & FirFox

    Dear all
    I got a problem when I add two <div> in tpl_main_page.php
    here is the code:
    Code:
    /**
      * prepares and displays header output
      *
      */
      if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_HEADER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) {
        $flag_disable_header = true;
      }
      require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?>
    <div id="mainWrapper">
    <?php
      if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
        if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerOne" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <div id="topLinks">
    <div id="qsearch">
    <form name="quick_find_header" action="http://www.lixiaoya.com/index.php?main_page=advanced_search_result" method="get"><input type="hidden" name="main_page" value="advanced_search_result" /><input type="hidden" name="search_in_description" value="1" /><input type="text" name="keyword" size="6" maxlength="30" style="width: 100px" value="输入关键词"  (this.value == '输入关键词') this.value = '';"  (this.value == '') this.value = '输入关键词';" />&nbsp;<input type="submit" value="搜索" style="width: 45px" /></form></div>
    <div
            <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) {
              require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php');
             } ?></div></div>
    <?php
        }
      }
    ?>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper" summary="content">
      <tr>
    <?php
    if (COLUMN_LEFT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_LEFT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == ''))) {
      // global disable of column_left
      $flag_disable_left = true;
    }
    if (!isset($flag_disable_left) || !$flag_disable_left) {
    ?>
    the screenshots are as following:
    1. In firefox


    2. In IE


    Website: www.lixiaoya.com

    Thank you all in advance

    Regards
    Bruce
    Last edited by roooot; 22 Jun 2009 at 03:20 PM.

  2. #2
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: different layout in IE & FirFox

    I don't know why you're adding DIV tags to your tpl_main_page.php.... Whatever it is, I'm sure there's a better way to achieve the same thing using CSS.

 

 

Similar Threads

  1. Different layout / theme for different pages
    By illusionest in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 20 Oct 2010, 05:18 PM
  2. Display difference in IE and Firfox
    By cdhi2002 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 Nov 2009, 06:01 PM
  3. Payment & Shipping Module - need different options for different parts of store
    By obkb in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 21 Jan 2009, 12:04 PM
  4. Layout different in IE than FF, Safari, & Netscape
    By maperr55 in forum General Questions
    Replies: 2
    Last Post: 22 Sep 2008, 03:28 AM
  5. URGENT alignment issue Firfox/IE PLEASE!!
    By jill8026 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 25 Apr 2008, 05:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg