Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

quick question on header.php


rkoechel2004

Recommended Posts

With the code below I can't get the first image (header_search.gif) to vertically align in the middle of the cell like the input box and second image do, any ideas on what I'm doing wrong?

 

Thanks Ryan

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr class="headerNavigation"> 
 <td align="left" valign="middle">
 <?php echo tep_image_submit('header_search.gif', BOX_SEARCH_ADVANCED_SEARCH) . tep_draw_form('search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '', 'size="14" maxlength="30" style="height:30px; font-size: 18px; width: ' . (BOX_WIDTH+14) . 'px"') . ' ' . tep_hide_session_id() .tep_image_submit('go.gif', BOX_SEARCH_ADVANCED_SEARCH, 'align="middle"')  . '</form>'; ?></td>
  <td align="right" class="headerNavigation">?? 

  <a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CATALOG; ?></a> 
  ?|? 

  <?php if ((tep_session_is_registered('customer_id')) && (!tep_session_is_registered('noaccount'))) // DDB - PWA - 040622 - no display of logoff for PWA customers
  { ?>
	  <a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?> 
  </a> ?|? 
  <?php } ?>

  <?php if (!tep_session_is_registered('noaccount')) // DDB - PWA - 040622 - no display of account for PWA customers
  { ?>
	  <a href="<?php echo tep_href_link(FILENAME_ACCOUNT, 'my_account_f=1', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?>
	</a> ?|? 
  <?php } ?>

	<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>

rkoechel2004

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...