issue27, beginning implementation
[phpfspot.git] / templates / photo_index.tpl
index 6c7af4ab2375379768cd3cd426f7d03d779d44a6..cb079e2d09c4b753373d12ef4cb61048ac80c7c7 100644 (file)
@@ -4,7 +4,7 @@
   <td colspan="3">
    <table style="width: 100%;">
     <tr>
-     <td class="index_header"style="width: 80%;">
+     <td class="index_header">
       <b>Photo Index,</b>
       {if ! $searchfor }
        {if $count == 1}
        {/if}
       {/if}
      </td>
-     <td class="index_header" style="text-align: right;">
+     <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="Copy this link to get directly into the current view"><img src="resources/link.png" /></a>
+       <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>
@@ -31,6 +39,7 @@
  </tr>
  <tr>
   <td colspan="3">
+   <div id="adinfo"></div>
    <div id="matrix">
    <table>
    {section name="row" loop=$rows step=1}