[+] BO : Back-office search use now AdminController.php
This commit is contained in:
@@ -210,8 +210,10 @@ $(document).ready(function()
|
||||
<select name="bo_search_type" id="bo_search_type">
|
||||
<option value="0">{l s='everywhere'}</option>
|
||||
<option value="1" {if {$search_type} == 1} selected="selected" {/if}>{l s='catalog'}</option>
|
||||
<option value="2" {if {$search_type} == 2} selected="selected" {/if}>{l s='customers'}</option>
|
||||
<option value="6" {if {$search_type} == 6} selected="selected" {/if}>{l s='ip address'}</option>
|
||||
<optgroup label="{l s='customers'}:">
|
||||
<option value="2" {if {$search_type} == 2} selected="selected" {/if}>{l s='by name'}</option>
|
||||
<option value="6" {if {$search_type} == 6} selected="selected" {/if}>{l s='by ip address'}</option>
|
||||
</optgroup>
|
||||
<option value="3" {if {$search_type} == 3} selected="selected" {/if}>{l s='orders'}</option>
|
||||
<option value="4" {if {$search_type} == 4} selected="selected" {/if}>{l s='invoices'}</option>
|
||||
<option value="5" {if {$search_type} == 5} selected="selected" {/if}>{l s='carts'}</option>
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
{*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 9596 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$('body').highlight('{$query}');
|
||||
});
|
||||
</script>
|
||||
|
||||
{if isset($features) || isset($categories) || isset($products) || isset($customers)}
|
||||
<h2>{l s='Search results'} :</h2>
|
||||
{/if}
|
||||
{if isset($features)}
|
||||
{if !$features}
|
||||
<h3>{l s='No features matching your query'} : {$query}</h3>
|
||||
{else}
|
||||
<h3>{l s='Features matching your query'} : {$query}</h3>
|
||||
<table class="table" cellpadding="0" cellspacing="0">
|
||||
{foreach $features key=key item=feature }
|
||||
{foreach $feature key=k item=val name=feature_list}
|
||||
<tr>
|
||||
<th>{if $smarty.foreach.feature_list.first}{$key}{/if}</th>
|
||||
<td>
|
||||
<a href="{$val.link}">{$val.value}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</table>
|
||||
<div class="clear"> </div>
|
||||
{/if}
|
||||
{/if}
|
||||
{if isset($categories)}
|
||||
{if !$categories}
|
||||
<h3>{l s='No categories matching your query'} : {$query}</h3>
|
||||
{else}
|
||||
<h3>{l s='Categories matching your query'} : {$query}</h3>
|
||||
<table cellspacing="0" cellpadding="0" class="table">
|
||||
{foreach $categories key=key item=category }
|
||||
<tr class="alt_row">
|
||||
<td>{$category}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<div class="clear"> </div>
|
||||
{/if}
|
||||
{/if}
|
||||
{if isset($products)}
|
||||
{if !$products}
|
||||
<h3>{l s='No products matching your query'} : {$query}</h3>
|
||||
{else}
|
||||
<h3>{l s='Products matching your query'} : {$query}</h3>
|
||||
{$products}
|
||||
{/if}
|
||||
{/if}
|
||||
{if isset($customers)}
|
||||
{if !$customers}
|
||||
<h3>{l s='No customer matching your query'} : {$query}</h3>
|
||||
{else}
|
||||
<h3>{l s='Customer matching your query'} : {$query}</h3>
|
||||
{$customers}
|
||||
{/if}
|
||||
{/if}
|
||||
Reference in New Issue
Block a user