ladivito Posted December 25, 2009 Share Posted December 25, 2009 请问如何将搜索与登陆放到同一个线上 ?如图 : Link to comment Share on other sites More sharing options...
ladivito Posted December 25, 2009 Author Share Posted December 25, 2009 我是在/themes/prestashop/header.tpl 上做更改直到这里便不知道要怎样做下去了。。。。麻烦各位的指导。。。谢谢 Link to comment Share on other sites More sharing options...
ladivito Posted December 25, 2009 Author Share Posted December 25, 2009 > {if isset($meta_description) AND $meta_description} <meta name="description" content="{$meta_description|escape:htmlall:'UTF-8'}" /> {/if} {if isset($meta_keywords) AND $meta_keywords} <meta name="keywords" content="{$meta_keywords|escape:htmlall:'UTF-8'}" /> {/if} <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <meta name="generator" content="PrestaShop" /> <meta name="robots" content="{if isset($nobots)}no{/if}index,follow" /> <link rel="icon" type="image/vnd.microsoft.icon" href="{$img_ps_dir}favicon.ico" /> <link rel="shortcut icon" type="image/x-icon" href="{$img_ps_dir}favicon.ico" /> {if isset($css_files)} {foreach from=$css_files key=css_uri item=media} <link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" /> {/foreach} {/if} [removed][removed] [removed] var baseDir = '{$content_dir}'; var static_token = '{$static_token}'; var token = '{$token}'; var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals}; [removed] [removed][removed] [removed][removed] [removed][removed] {if isset($js_files)} {foreach from=$js_files item=js_uri} [removed][removed] {/foreach} {/if} {$HOOK_HEADER} </head> <body {if $page_name}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if}> {if !$content_only} </pre> <ul>{l s='This shop requires JavaScript to run correctly. Please activate JavaScript in your browser.'}</ul> <br><div> <!-- Header --> <!-- Block user information module HEADER --> <!-- Block search module TOP --> <form method="get" action="{$base_dir}search.php" id="searchbox"> <!-- image on background --> <input type="hidden" name="orderby" value="position" /> <input type="hidden" name="orderway" value="desc" /> <input type="text" id="search_query" name="search_query" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query|htmlentities:$ENT_QUOTES:'utf-8'|stripslashes}{/if}" /> <input type="submit" name="submit_search" value="{l s='Search' mod='blocksearch'}" class="button" /> </form> {if $ajaxsearch} [removed] {literal} function formatSearch(row) { return row[2] + ' > ' + row[1]; } function redirectSearch(event, data, formatted) { $('#search_query').val(data[1]); document.location.href = data[3]; } $('document').ready( function() { $("#search_query").autocomplete( '{/literal}{$base_dir}{literal}search.php', { minChars: 3, max:10, width:500, scroll: false, formatItem:formatSearch, extraParams:{ajaxSearch:1,id_lang:{/literal}{$cookie->id_lang}{literal[spam-filter] }).result(redirectSearch) }); {/literal} [removed] {/if} <!-- /Block search module TOP --> {if $logged} {l s='Welcome back' mod='blockuserinfo'}, {$customerName}({l s='Log me out' mod='blockuserinfo'}) {else} {l s='Welcome' mod='blockuserinfo'}, {l s='Log in here' mod='blockuserinfo'} {/if} {l s='Cart:'} {if $cart_qties > 0}{$cart_qties}{/if}{l s=' package' mod='blockuserinfo'}{l s=' packages' mod='blockuserinfo'} {if $cart_qties > 0}{if $priceDisplay == 1}{convertPrice price=$cart->getOrderTotal(false, 4)}{else}{convertPrice price=$cart->getOrderTotal(true, 4)}{/if}{/if} {l s='(empty)' mod='blockuserinfo'} <!-- /Block user information module HEADER --> <!-- --> {$HOOK_TOP} <!-- Left --> {$HOOK_LEFT_COLUMN} <!-- Center --> {/if}< Link to comment Share on other sites More sharing options...
21846657 Posted January 25, 2010 Share Posted January 25, 2010 We resolved it, didn't we? ;-) Link to comment Share on other sites More sharing options...
ladivito Posted January 25, 2010 Author Share Posted January 25, 2010 yes........lol Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now