// BO Bootstrap Search result page
This commit is contained in:
@@ -34,43 +34,54 @@ $(function() {
|
|||||||
<div class="leadin">{block name="leadin"}{/block}</div>
|
<div class="leadin">{block name="leadin"}{/block}</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
|
||||||
{if isset($features)}
|
{if isset($features)}
|
||||||
|
<div class="panel">
|
||||||
{if !$features}
|
{if !$features}
|
||||||
<h3>{l s='No features matching your query'} : {$query}</h3>
|
<h3>{l s='No features matching your query'} : {$query}</h3>
|
||||||
{else}
|
{else}
|
||||||
<h3>{l s='Features matching your query'} : {$query}</h3>
|
<h3>{l s='Features matching your query'} : {$query}</h3>
|
||||||
<table class="table" cellpadding="0" cellspacing="0">
|
<table class="table">
|
||||||
|
<tbody>
|
||||||
{foreach $features key=key item=feature}
|
{foreach $features key=key item=feature}
|
||||||
{foreach $feature key=k item=val name=feature_list}
|
{foreach $feature key=k item=val name=feature_list}
|
||||||
<tr>
|
<tr>
|
||||||
<th>{if $smarty.foreach.feature_list.first}{$key}{/if}</th>
|
<td><strong>{if $smarty.foreach.feature_list.first}{$key}{/if}</strong></td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<a href="{$val.link}">{$val.value}</a>
|
<a href="{$val.link}">{$val.value}</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="clear"> </div>
|
|
||||||
{/if}
|
{/if}
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{if isset($modules)}
|
{if isset($modules)}
|
||||||
|
<div class="panel">
|
||||||
{if !$modules}
|
{if !$modules}
|
||||||
<h3>{l s='No modules matching your query'} : {$query}</h3>
|
<h3>{l s='No modules matching your query'} : {$query}</h3>
|
||||||
{else}
|
{else}
|
||||||
<h3>{l s='Modules matching your query'} : {$query}</h3>
|
<h3>{l s='Modules matching your query'} : {$query}</h3>
|
||||||
<table class="table" cellpadding="0" cellspacing="0">
|
<table class="table">
|
||||||
|
<tbody>
|
||||||
{foreach $modules key=key item=module}
|
{foreach $modules key=key item=module}
|
||||||
<tr>
|
<tr>
|
||||||
<th><a href="{$module->linkto|escape:'htmlall':'UTF-8'}">{$module->displayName}</a></th>
|
<td><strong><a href="{$module->linkto|escape:'htmlall':'UTF-8'}">{$module->displayName}</a></strong></td>
|
||||||
<td><a href="{$module->linkto|escape:'htmlall':'UTF-8'}">{$module->description}</a></td>
|
<td><a href="{$module->linkto|escape:'htmlall':'UTF-8'}">{$module->description}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="clear"> </div>
|
|
||||||
{/if}
|
{/if}
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{if isset($categories)}
|
{if isset($categories)}
|
||||||
|
<div class="panel">
|
||||||
{if !$categories}
|
{if !$categories}
|
||||||
<h3>{l s='No categories matching your query'} : {$query}</h3>
|
<h3>{l s='No categories matching your query'} : {$query}</h3>
|
||||||
{else}
|
{else}
|
||||||
@@ -82,30 +93,39 @@ $(function() {
|
|||||||
</tr>
|
</tr>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</table>
|
</table>
|
||||||
<div class="clear"> </div>
|
|
||||||
{/if}
|
{/if}
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{if isset($products)}
|
{if isset($products)}
|
||||||
|
<div class="panel">
|
||||||
{if !$products}
|
{if !$products}
|
||||||
<h3>{l s='There are no products matching your query'} : {$query}</h3>
|
<h3>{l s='There are no products matching your query'} : {$query}</h3>
|
||||||
{else}
|
{else}
|
||||||
<h3>{l s='Products matching your query'} : {$query}</h3>
|
<h3>{l s='Products matching your query'} : {$query}</h3>
|
||||||
{$products}
|
{$products}
|
||||||
{/if}
|
{/if}
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{if isset($customers)}
|
{if isset($customers)}
|
||||||
|
<div class="panel">
|
||||||
{if !$customers}
|
{if !$customers}
|
||||||
<h3>{l s='There are no customers matching your query'} : {$query}</h3>
|
<h3>{l s='There are no customers matching your query'} : {$query}</h3>
|
||||||
{else}
|
{else}
|
||||||
<h3>{l s='Customers matching your query'} : {$query}</h3>
|
<h3>{l s='Customers matching your query'} : {$query}</h3>
|
||||||
{$customers}
|
{$customers}
|
||||||
{/if}
|
{/if}
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{if isset($orders)}
|
{if isset($orders)}
|
||||||
|
<div class="panel">
|
||||||
{if !$orders}
|
{if !$orders}
|
||||||
<h3>{l s='There are no orders matching your query'} : {$query}</h3>
|
<h3>{l s='There are no orders matching your query'} : {$query}</h3>
|
||||||
{else}
|
{else}
|
||||||
<h3>{l s='Orders matching your query'} : {$query}</h3>
|
<h3>{l s='Orders matching your query'} : {$query}</h3>
|
||||||
{$orders}
|
{$orders}
|
||||||
{/if}
|
{/if}
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
@@ -26,6 +26,13 @@
|
|||||||
|
|
||||||
class AdminSearchControllerCore extends AdminController
|
class AdminSearchControllerCore extends AdminController
|
||||||
{
|
{
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->bootstrap = true;
|
||||||
|
parent::__construct();
|
||||||
|
}
|
||||||
|
|
||||||
public function postProcess()
|
public function postProcess()
|
||||||
{
|
{
|
||||||
$this->context = Context::getContext();
|
$this->context = Context::getContext();
|
||||||
|
|||||||
Reference in New Issue
Block a user