- <td class="index_header">
- <b>Photo Index</b><br />
- {if $count == 1}
- {$count} image has been found for the selected tags
- {else}
- {$count} images have been found for the selected tags
- {/if}
+ <td colspan="3">
+ <table style="width: 100%;">
+ <tr>
+ <td class="index_header">
+ <b>Photo Index,</b>
+ {if ! $searchfor }
+ {if $count == 1}
+ {$count} image has been found for the selected tags
+ {else}
+ {$count} images have been found for the selected tags
+ {/if}
+ {else}
+ {if $count == 1}
+ {$count} image is the result for your search about "{$searchfor}"
+ {else}
+ {$count} images are the result for your search about "{$searchfor}"
+ {/if}
+ {/if}
+ </td>
+ <td class="index_header" style="text-align: right">
+ <form action="" onsubmit="setViewMode(document.getElementsByName('view')[0].options[document.getElementsByName('view')[0].selectedIndex].value); return false;">
+ {if $extern_link }
+ <a href="{$extern_link}" title="Use this link to return to the current view"><img src="resources/link.png" /></a>
+ {/if}
+ <select name="view">
+ <option value="photos" selected="selected">Photos</option>
+ <option value="html">HTML source</option>
+ <option value="moinmoin">MoinMoin markup</option>
+ </select>
+ <input type="image" src="resources/doit.png" alt="Switch View" />
+ </form>
+ </td>
+ </tr>
+ </table>