{* * $Revision: 15342 $ * If you want to customize this file, do not edit it directly since future upgrades * may overwrite it. Instead, copy it into a new directory called "local" and edit that * version. Gallery will look for that file first and use it if it exists. *}

{g->text text="%s Search Results for " arg1=$SearchShowAll.moduleInfo.name} '{$form.searchCriteria}'

{g->hiddenFormVars}
{if isset($form.error.searchCriteria.missing)}
{g->text text="You must enter some text to search for!"}
{/if}
{foreach from=$SearchShowAll.moduleInfo.options key=optionId item=optionInfo} {/foreach}
{g->text text="Check All"}   {g->text text="Uncheck All"}   {g->text text="Invert"}
{if !empty($SearchShowAll.results)}

{$SearchShowAll.moduleInfo.name} {if ($SearchShowAll.results.count > 0)} {g->text text="Results %d - %d of %d, Page %d of %d" arg1=$SearchShowAll.results.start arg2=$SearchShowAll.results.end arg3=$SearchShowAll.results.count arg4=$form.page arg5=$SearchShowAll.maxPages} {/if} {if ($form.page > 1)} {/if} {if ($form.page < $SearchShowAll.maxPages)} {/if}

{if (sizeof($SearchShowAll.results.results) > 0)} {assign var="childrenInColumnCount" value=0} {foreach from=$SearchShowAll.results.results item=result} {* Move to a new row *} {if ($childrenInColumnCount == 4)} {assign var="childrenInColumnCount" value=0} {/if} {assign var=childrenInColumnCount value="`$childrenInColumnCount+1`"} {assign var=itemId value=$result.itemId} {/foreach} {* flush the rest of the row with empty cells *} {section name="flush" start=$childrenInColumnCount loop=4} {/section}
{if isset($SearchShowAll.thumbnails.$itemId)} {g->image item=$SearchShowAll.items.$itemId image=$SearchShowAll.thumbnails.$itemId class="giThumbnail"} {else} {g->text text="No thumbnail"} {/if}
    {foreach from=$result.fields item=field}
  • {$field.key}: {$field.value|default:" "|markup}
  • {/foreach}
 
{else}

{g->text text="No results found for"} '{$form.searchCriteria}'

{/if}
{/if}