View Single Post
  #1  
Old 11-07-2002, 11:02 AM
 
ArlyDude ArlyDude is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Pennsylvania
Posts: 39
 

Default How to relocate the search box?

Hello, me again! Ok, now I don't wanna try to relocate this myself and screw up my page, so I will just ask....
Ok, I will post the html code i have for my entire head.tpl I want to relocate the search box from where it is now on the left, to the right hand side of the gray bar I have under my logo....so it will still remain in the head.tpl. This doesn't seem to hard, but I'm afriad to do it on my own, because I was screwing with the header yesterday and i got an error message and i have to reinstall my cart!!

head.tpl code...

{* $Id: head.tpl,v 1.21 2002/09/05 12:43:21 zorg Exp $ *}
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 class=TableTop width=100% style="border-left-width: 0; border-right-width: 0">
<TR>
<TD colSpan=2 valign="top" width="284">
[img]{$ImagesDir}/daredlogo3.jpg[/img]</TD>
<TD align=right bgcolor="#000000">
{if $main eq "catalog" and $current_category.category eq "" and $all_languages_numba gt 1}
<FORM action="home.php" method=GET name=sl_form>
<SELECT name=sl onChange="javascript: document.sl_form.submit()">

{section name=ai loop=$all_languages}
<OPTION value="{$all_languages[ai].code}"{if $store_language eq $all_languages[ai].code} selected{/if}>{$all_languages[ai].language}</OPTION>

{/section}
</SELECT>
</FORM>
{else}

{/if}
</TD>
</TR>
<TR>
<TD colSpan=3 width="284" bgcolor="#C0C0C0" height="25" style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1; border-bottom-style: solid; border-bottom-width: 1" bordercolor="#000000">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber1" width="483">
<tr>
<td width="28">
[img]{$ImagesDir}/home.gif[/img]</td>
<td width="40"><font color="#000000">Home</font></td>
<td width="28">
[img]{$ImagesDir}/clipboard.gif[/img]</td>
<td width="83"><font color="#000000">Free Quote</font></td>
<td width="25">
[img]{$ImagesDir}/hammer.gif[/img]</td>
<td width="75"><font color="#000000">PC Repair</font></td>
<td width="25">
[img]{$ImagesDir}/tracking.gif[/img]</td>
<td width="89"><font color="#000000">Web Design</font></td>
<td width="25">
[img]{$ImagesDir}/rmabox.gif[/img]</td>
<td width="65"><font color="#000000">Reseller?</font></td>
</tr>
</table>
</TD>
</TR>
<TR>
<TD class=WhiteLine valign=center width=70></TD>
<TD class=WhiteLine valign=center></TD>
<TD rowSpan=3 width=99% valign=top class=TableTop style="background-repeat: repeat-x">




<P align=right><SPAN class=TableTopTextNumberOfArticles>{insert name="productsonline"} {$lng.lbl_products} {if $config.General.show_in_stock eq "Y"}{$lng.lbl_and} {insert name="itemsonline"} {$lng.lbl_items} {/if}{$lng.lbl_online}</SPAN></P>
</TD>
</TR>
<td>
{if $usertype eq "C"}
<form method="get" action="search.php" name=productsearchform>
<tr>
<td valign="middle" class="WhiteLine" width=34>


<span class="TableTopLabel">{$lng.lbl_search}:</span></p>
</td>
<td valign="middle" class="WhiteLine" width=250>
<p align="left">
<input type="text" name="substring" size="16" value="{$smarty.get.substring|escape}">
<span class="TableCenterProductPriceBlue">{include file="buttons/search_head.tpl"}</span>
</p>
</td>
</tr>
<tr>
<td class="WhiteLine" width=34></td>
<td class="WhiteLine">
<p align="left">{$lng.lbl_advanced_search}</p>
</td>
</tr>
</form>
{else}
<tr>
<td class="WhiteLine"> </td>
<td class="WhiteLine"> </td>
</tr>
<tr>
<td class="WhiteLine"> </td>
<td class="WhiteLine"> </td>
</tr>
{/if}
</TABLE>

Reply With Quote