Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

trying to align the search


keithschm

Recommended Posts

ok have have moved some things around see pic

 

head.gif

 

 

 

Now I cant seem to get the submit button (this case "BROWSE") to align bottem here is all the code that is associated. I moved the search box to the header.

 

 

Header.php

<?php
 $info_box_contents = array();
//$info_box_contents[] = array('text' => BOX_HEADING_SEARCH);

 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),
                              'align' => 'center',
                              'text' =>  '<font color="gray">New Search</font> ' .tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-50) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('browse_button.jpg', BOX_HEADING_SEARCH) );

new SearchBox($info_box_contents);
?>

 

Boxes.php

/New SearchBox Class
 class SearchBox extends tableBox {
   function SearchBox($contents) {
     $info_box_contents = array();
     $info_box_contents[] = array('text' => $this->SearchBoxContents($contents));
     $this->table_cellpadding = '1';
     $this->table_parameters = 'class="SearchBox"';
     $this->tableBox($info_box_contents, true);
   }

   function SearchBoxContents($contents) {
     $this->table_cellpadding = '3';
     $this->table_parameters = 'class="SearchBoxContents"';
     $info_box_contents = array();
     $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));
     for ($i=0, $n=sizeof($contents); $i<$n; $i++) {
       $info_box_contents[] = array(array('align' => $contents[$i]['align'],
                                          'form' => $contents[$i]['form'],
                                          'params' => 'class="SearchBoxContents"',
                                          'text' => $contents[$i]['text']));
     }
     $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));
     return $this->tableBox($info_box_contents);
   }
 }

 

 

what am I missing?

Link to comment
Share on other sites

Try:

. tep_image_submit('browse_button.jpg', BOX_HEADING_SEARCH, ' align="absbottom"') );

 

In your fisst code block

 

 

sweet, that put it just hair lower then the textbox is there a valign-"center" or align"abscenter"

 

Thank you sooooooooooooooooooooooooo much

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...