Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Moving Search.php into the header?


itbejared

Recommended Posts

Posted

I am atempting to get search.php to show up in the header instead of the columns. I have been going at it for some time now, yet I can't seem to get it right... is there anyone that could shed some light on this topic for me?

 

Thanks! :D

Posted

I am close to getting this right.. although, I think I might be doing it the hard way.. :lol: but hey, I am learning here...

 

I have got the search.php box to show up in the header and is working properly.. I am just having a problem with the alignment. I want it in the bottom right-hand corner and its not agreeing with me.. here is the code that i have as of yet:

 

          <tr>

           <td>

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

 <tr>

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

   <td height="14" class="infoBoxHeading">

   <img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td>

   <td width="100%" height="14" class="infoBoxHeading">Quick Find</td>

   <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>

 </tr>

</table>

<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">

 <tr>

   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>

 </tr>

 <tr>

   <td align="center" class="boxText"><form name="quick_find" action="/catalog/advanced_search_result.php" method="get"><input type="text" name="keywords" size="10" maxlength="30" style="width: 95px"> <input type="image" src="includes/languages/english/images/buttons/button_quick_find.gif" border="0" alt="Quick Find" title=" Quick Find " width="16" height="17"><br>Use keywords to find the product you are looking for.<br><a href="/catalog/advanced_search.php"><b>Advanced Search</b></a></form></td>

 </tr>

 <tr>

   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>

 </tr>

</table>

 </tr>

</table>

</td>

           </td>

         </tr>

 

Now I know its around line 5 in there somewhere... I'm just not entirely sure how to get it in that bottom right hand corner...

Posted

Did you change your mind? Because I'm seeing your search in your column_right.

Posted

well I tried it up top and just couldn't get it to look right... Honestly, I have no idea what I am doing... so i stuck with what i know. lol

Posted

I think there is a simple form search that you can add to the header.php....

 

I found it at one point in these forums.

 

I'll see if I can find it. You then just use plain old HTML tags to put it into a table or cell in your header (or above/below the header)

Posted

Why not add a jump box at the same time?

 

Look into these threads.

 

Useful threads for a jump box.

 

http://www.oscommerce.com/forums/viewtopic.php?t=40549

http://www.oscommerce.com/forums/viewtopic.php...&highlight=jump

http://www.oscommerce.com/forums/viewtopic.php...&highlight=jump

 

And a Thread that goes well with the drop down box is

http://www.oscommerce.com/forums/viewtopic.php?t=31021

Mr. Ree

How to find answers to OSC Common Questions

1. Look at http://wiki.oscommerce.com

2. Search http://www.oscommerce.com/forums/

3. Post a request in http://www.oscommerce.com/forums/

Posted

// just cut and past below into where you want the search button...//



            QUICK SEARCH:   



<form name="quick_find" method="get" action="<?php echo tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false);?>"><input type="text" name="keywords" size="20" maxlength="40" value="<?php echo htmlspecialchars(StripSlashes(@$HTTP_GET_VARS["keywords"]));?>"> 



  

 <input type="submit" value="GO"> </form>

 

Quick serach that I got from someone here, off the forum.

  • 1 month later...
Posted

Hi All.

 

I like the idea of having search.php in the header, but how can I also include a checkbox to search title & description, like in the advanced search? I tried cutting & pasting some code that I found from Linda's SEC, but I can't get it to work. Here is the code:

 

  $info_box_contents[] = array('align' => 'right', 'text' => tep_draw_checkbox_field('search_in_description', '1', true) . ' ' . TEXT_SEARCH_IN_DESCRIPTION);

 

Thanks for any suggestions.

 

Mark

Dayton

Archived

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

×
×
  • Create New...