Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Added search "box" to the top - border problem


Monika in Germany

Recommended Posts

Hi,

 

I successfully added the search to the header which looks great, but while all my other infoboxes don't have a border this one has one ... looking yucky!

 

http://www.casin-group.com/kristin/oscommerce

 

I have no clue where it come from. Please take a look at my stylesheet too as I obviously changed a few things ... but I can't find border attributes there myself, so I need your help :-)

 

TIA

 

Monika

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

It looks like you added the entire infobox to header.php. All you really need are the few lines in a <td> or something, like this:

          <?php 
           echo tep_draw_form('advanced_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="10" maxlength="50" style="width: ' . (BOX_WIDTH-50) . 'px"') . ' <input type="submit" value="Search" name="Search">';
           ?>
           </form>

 

NOTE: my code is modified a bit to use a stock "search" button rather than the osC button.

 

-jared

Link to comment
Share on other sites

echo tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . tep_draw_input_field('keywords', 'Quick Search', ' class="boxText" onFocus="emptyQuicksearch()" size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH));

 

-------------------------

 

Thnaks, this is what I tried, but there seems to be a ", or ;" missing, at least I get that error message ... any idea where?

 

Monika

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

found it!

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Where was it?  Just curious.

 

-jared

 

this was the original code:

 

<?php

 

$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' => 'left',

'text' => tep_draw_input_field('keywords', 'Quick Search', ' onFocus="emptyQuicksearch()" size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>');

 

new infoBox($info_box_contents);

?>

 

 

I stole the fat part of it, not noticing I did not take the first opening bracket of the array, so I had one closing bracket too much at the end. After removing that all was fine. Comes to see error messages are not always exact. Big news NOT, lol.

 

:-)

Monika

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...