issue27, beginning implementation
authorAndreas Unterkircher <unki@netshadow.at>
Fri, 6 Jul 2007 18:03:49 +0000 (18:03 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Fri, 6 Jul 2007 18:03:49 +0000 (18:03 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@168 fa6a889d-dae6-447d-9e79-4ba9a3039384

phpfspot.js
templates/photo_index.tpl

index 2132ea511617c52842823f0609e511840e598dc9..4b6a640eaf2d86bb45e73a4be199d1c8a8c05e73 100644 (file)
@@ -115,6 +115,11 @@ function startTagSearch(searchfor)
 
 }
 
 
 }
 
+function setViewMode(mode)
+{
+   window.alert(mode);
+}
+
 function clearSearch()
 {
    document.getElementsByName('searchfor')[0].value = '';
 function clearSearch()
 {
    document.getElementsByName('searchfor')[0].value = '';
index 6c7af4ab2375379768cd3cd426f7d03d779d44a6..cb079e2d09c4b753373d12ef4cb61048ac80c7c7 100644 (file)
@@ -4,7 +4,7 @@
   <td colspan="3">
    <table style="width: 100%;">
     <tr>
   <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}
       <b>Photo Index,</b>
       {if ! $searchfor }
        {if $count == 1}
        {/if}
       {/if}
      </td>
        {/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 }
       {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} 
       {/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>
      </td>
     </tr>
    </table>
@@ -31,6 +39,7 @@
  </tr>
  <tr>
   <td colspan="3">
  </tr>
  <tr>
   <td colspan="3">
+   <div id="adinfo"></div>
    <div id="matrix">
    <table>
    {section name="row" loop=$rows step=1}
    <div id="matrix">
    <table>
    {section name="row" loop=$rows step=1}