{extends "base_full.tpl.html"} {block title}{t}Customer Lookup{/t}{/block} {block "content"} {literal}
{/literal}

{t}Customer Lookup Tool{/t}
{t}Field{/t}: * | {t}Email Address{/t} {t}Customer ID{/t}
{t}Value{/t}: * | {include file="error_icon.tpl.html" field="value"}

{if $results != ''}
{/literal} {t}Results{/t}:

{t}Customer{/t} | {t}Support Type{/t} | {t}Expiration Date{/t} | {t}Status{/t}
{section name="i" loop=$results} {cycle values=$cycle assign="row_color"}
{$results[i].customer_name|escape:"html"} | {$results[i].support_level} | {$results[i].expiration_date} | {if $results[i].contract_status == 'expired'}{/if}{$results[i].contract_status}{if $results[i].contract_status == 'expired'}{/if}
{section name="y" loop=$results[i].contacts} {$results[i].contacts[y].first_name} {$results[i].contacts[y].last_name} - {$results[i].contacts[y].email} {/section}
{sectionelse}
{t}No results could be found{/t}
{/section}

{/if} {/block}