- <td class="index_header" style="text-align: right;">
- <a href="{$extern_link}">Extern</a>
- <img src="resources/photo_index.png" alt="photo index" />
+ <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>