X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Search "Go Button" (https://forum.x-cart.com/showthread.php?t=54532)

daron 07-12-2010 10:38 AM

Re: Search "Go Button"
 
This may be of better use.

{* $Id: search.tpl,v 1.9 2005/11/17 06:55:37 max Exp $ *}
<div class="menu-dialog menu-special">
<div class="title-bar valign-middle">
<img src="skin1/images/spacer.gif" alt="Search" />Search
</div>
<div class="content">
<form method="post" action="search.php" name="productsearchform">
<input type="hidden" name="simple_search" value="Y" />
<input type="hidden" name="mode" value="search" />
<input type="hidden" name="posted_data[by_title]" value="Y" />
<input type="hidden" name="posted_data[by_shortdescr]" value="Y" />
<input type="hidden" name="posted_data[by_fulldescr]" value="Y" />
<table cellpadding="0" cellspacing="0">
<tr>
{* <tr class="TopLabel" style="padding-left: 20px; padding-right: 5px;"><a href="javascript: document.productsearchform.submit();">{$lng.lbl_se arch}:</a></tr> *}
<td valign="middle"><input type="text" name="posted_data[substring]" size="16" value="{$search_prefilled.substring|escape}" /></td>
</tr><tr valign="middle" style="padding-left: 5px; padding-right: 20px;">{* {include file="buttons/search_head.tpl"} *}</tr>
{*<td><a href="search.php"><u>{$lng.lbl_advanced_search}</u></a></td> *}
</tr>
</table>
</form>
</div>
</div>

cflsystems 07-12-2010 10:48 AM

Re: Search "Go Button"
 
The search button is commented out. Uncomment (remove the {* *}) from this line
{* {include file="buttons/search_head.tpl"} *}

ARW VISIONS 07-12-2010 10:49 AM

Re: Search "Go Button"
 
this

{* {include file="buttons/search_head.tpl"} *}

should be

{include file="buttons/search_head.tpl"}



just un-comment button

daron 07-12-2010 11:00 AM

Re: Search "Go Button"
 
You're awesome, Ashely Thank you. Now I just need to figure how to align it correctly.

ARW VISIONS 07-12-2010 11:20 AM

Re: Search "Go Button"
 
make sure to hit the little thanks button, so I can win my visa gift card ;)

seriously your welcome

ARW VISIONS 07-12-2010 11:51 AM

Re: Search "Go Button"
 
tis whole thing

<tr>
{* <tr class="TopLabel" style="padding-left: 20px; padding-right: 5px;"><a href="javascript: document.productsearchform.submit();">{$lng.lbl_se arch}:</a></tr> *}
<td valign="middle"><input type="text" name="posted_data[substring]" size="16" value="{$search_prefilled.substring|escape}" /></td>
</tr><tr valign="middle" style="padding-left: 5px; padding-right: 20px;">{* {include file="buttons/search_head.tpl"} *}</tr>
{*<td><a href="search.php"><u>{$lng.lbl_advanced_search}</u></a></td> *}
</tr>

shoud read like this

<tr>
{* <tr class="TopLabel" style="padding-left: 20px; padding-right: 5px;"><a href="javascript: document.productsearchform.submit();">{$lng.lbl_se arch}:</a></tr> *}
<td valign="middle"><input type="text" name="posted_data[substring]" size="16" value="{$search_prefilled.substring|escape}" /></td>
<td>{include file="buttons/search_head.tpl"}</td>
</tr>
<tr valign="middle" style="padding-left: 5px; padding-right: 20px;">
<td colspan="2"><a href="search.php"><u>{$lng.lbl_advanced_search}</u></a></td>
</tr>


All times are GMT -8. The time now is 05:00 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.