Jump to content

[SOLVED] Oscommerce help with PHP code, header dissapeared


newtocoding

Recommended Posts

Hi All

 

I am a first year undergrad mature student and at the same time I am trying to set up an online shop using oscommerce.

 

I downloaded a template and created my own header and trying to tweak it to look like what I want but do not have the skills yet to start from scratch.

 

Anyway it worked fine and I was trying to get the width wider (managed with the header and buttons I created) and think I changed something and therefore managed to lose the header and tried everything but cant get it up anymore.

 

Please have a look at my header.php code and help me please and maybe tell me how I can get my template wider.

 

Many thanks

 

 

?>

<table border="0" cellpadding="0" cellspacing="0" width="100%">

  <tr>

    <td align="right" height="25" valign="bottom">

      <?php include(DIR_WS_BOXES . 'languages.php'); ?>

      <table border="0" cellspacing="0" cellpadding="0" align="center">

        <tr>

          <td class="headertext"><?php echo BOX_HEADING_LANGUAGES; ?>  </td>

          <td width="25"><?php echo $info_box_contents[0]['text'] ?></td>

        </tr>

      </table>

    </td>

  </tr>

  <tr>

    <td><?php echo tep_image(DIR_WS_IMAGES . 'header.gif'); ?></td>

  </tr>

  <tr>

    <td style="padding-bottom:4px">

      <table cellspacing="0" cellpadding="0" border="0">

        <tr>

          <td width="139"><a title="<?php echo STORE_NAME;?>" href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>" ><?php echo tep_image_button("../../../../../images/button1.gif", "home"," onMouseOver=\"button_act(this)\" onMouseOut=\"button_pas(this)\""); ?></a></td>

          <td width="136"><a title="<?php echo BOX_HEADING_WHATS_NEW;?>" href="<?php echo tep_href_link(FILENAME_PRODUCTS_NEW); ?>" ><?php echo tep_image_button("../../../../../images/button2.gif", BOX_HEADING_WHATS_NEW," onMouseOver=\"button_act(this)\" onMouseOut=\"button_pas(this)\""); ?></a></td>

          <td width="137"><a title="<?php echo BOX_HEADING_SEARCH;?>" href="<?php echo tep_href_link(FILENAME_ADVANCED_SEARCH); ?>" ><?php echo tep_image_button("../../../../../images/button3.gif", BOX_HEADING_SEARCH," onMouseOver=\"button_act(this)\" onMouseOut=\"button_pas(this)\""); ?></a></td>

          <td width="133"><a title="<?php echo BOX_HEADING_SPECIALS;?>" href="<?php echo tep_href_link(FILENAME_SPECIALS); ?>" ><?php echo tep_image_button("../../../../../images/button4.gif", BOX_HEADING_SPECIALS," onMouseOver=\"button_act(this)\" onMouseOut=\"button_pas(this)\""); ?></a></td>

          <td width="136"><a title="<?php echo HEADER_TITLE_MY_ACCOUNT;?>" href="<?php echo tep_href_link(FILENAME_ACCOUNT); ?>" ><?php echo tep_image_button("../../../../../images/button5.gif", HEADER_TITLE_MY_ACCOUNT," onMouseOver=\"button_act(this)\" onMouseOut=\"button_pas(this)\""); ?></a></td>

          <td width="135"><a title="<?php echo BOX_INFORMATION_CONTACT;?>" href="<?php echo tep_href_link(FILENAME_CONTACT_US); ?>" ><?php echo tep_image_button("../../../../../images/button6.gif", BOX_INFORMATION_CONTACT," onMouseOver=\"button_act(this)\" onMouseOut=\"button_pas(this)\""); ?></a></td>

        </tr>

      </table>

    </td>

  </tr>

  <tr>

    <td>

      <table cellspacing="0" cellpadding="0" border="0">

        <tr>

          <td class="shoppad" align="center">

            <table border="0" cellspacing="0" cellpadding="0" align="center" width="180">

              <tr valign="middle">

                <td class="headertext"><a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?> "><div style="float:left;padding-right:10px;"><?php echo tep_image(DIR_WS_IMAGES . 'cart.gif'); ?></div><?php echo BOX_HEADING_SHOPPING_CART; ?><br><b style="font-weight:normal">now in your cart <span id="shop_items"><b><?php echo $cart->count_contents(); ?></span> items</b><?php if($cart->count_contents()>1) echo "s"; ?></b></a></td>

              </tr>

            </table>

          </td>

          <td width="3"></td>

          <td class="number_up">

            <table cellspacing="0" cellpadding="0" border="0">

              <tr>

                <td style="padding-left:25px">

                <table border="0" cellspacing="0" cellpadding="0"><tr><td valign="middle">

                  <?php  if ((USE_CACHE == 'true') && empty($SID)) {

                  echo tep_cache_manufacturers_box();

                  } else {

                  include(DIR_WS_BOXES . 'search.php');

                  echo $info_box_contents[0]['form'].'<table style="margin:0 0 0 0px"><tr><td valign="middle" class="headertext"><b>'. BOX_HEADING_SEARCH.': </b>';

                  echo $info_box_contents[0]['text']."</td><td valign='middle' style='padding-left:5px'>".$info_box_contents[0]['img'].'</td></tr></table></form>';

                  } ?>

                      </td>

                    </tr>

                  </table>

                </td>

                <td width="65"> </td>

                <td class="headertext"><?php echo BOX_HEADING_CURRENCIES; ?>:  </td>

                <td><?php require DIR_WS_BOXES.'currencies.php';?></td>

              </tr>

            </table>

          </td>

        </tr>

      </table>

    </td>

  </tr>

</table>

 

Many Thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.