shop-old/themes/admin/templates/admin_search.tpl
2026-04-20 01:03:43 +02:00

88 lines
2.0 KiB
Smarty

<div class="customers search_box" style="left:5px;">
<h3>Kunden</h3>
<div class="hits" style="margin-left:5px;">
{if $customer_hits > 0}
Hits: {$customer_hits}
{else}
Keine Hits
{/if}
</div>
<div style="margin-left:5px;">
{if $customer_search}
{foreach from=$customer_search item=customer}
<div><a href="./index.php?admin_modul=admin_customer_editor&id={$customer->id}">{$customer->number}, {if $customer->company}{$customer->company}, {/if}{$customer->firstname}, {$customer->surname}</a></div>
{/foreach}
{else}
-
{/if}
</div>
</div>
<div class="orders search_box" style="left:250px;">
<h3>Bestellungen</h3>
<div class="hits" style="margin-left:5px;">
{if $order_hits > 0}
Hits: {$order_hits}
{else}
Keine Hits
{/if}
</div>
<div style="margin-left:5px;">
{if $order_search != 0}
{foreach from=$order_search item=order}
<div><a href="./index.php?admin_modul=admin_order_editor&action=edit&id={$order->id}" >{$order->order_number}{if $order->order_revision}-{$order->order_revision}{/if}, {$order->customer_name}</a></div>
{/foreach}
{else}
-
{/if}
</div>
</div>
<div class="items search_box" style="left:495px;">
<h3>Artikel</h3>
<div class="hits" style="margin-left:5px;">
{if $item_hits > 0}
Hits: {$item_hits}
{else}
Keine Hits
{/if}
</div>
<div style="margin-left:5px;">
{if $item_search}
{foreach from=$item_search item=item}
<div><a href="./index.php?admin_modul=admin_item_editor&id={$item->id}">{$item->name|truncate:42:"..":true}</a></div>
{/foreach}
{else}
-
{/if}
</div>
</div>
<div class="manufactuters search_box" style="right:5px;">
<h3>Hersteller</h3>
<div class="hits" style="margin-left:5px;">
{if $manufacturer_hits > 0}
Hits: {$manufacturer_hits}
{else}
Keine Hits
{/if}
</div>
<div style="margin-left:5px;">
{if $manufacturer_search}
{foreach from=$manufacturer_search item=manufacturer}
<div><a href="index.php?admin_modul=admin_manufacturer_editor&id={$manufacturer->id}">{$manufacturer->name}</a></div>
{/foreach}
{else}
-
{/if}
</div>
</div>