Diff for /documentViewer/zpt/toc_thumbs.zpt between versions 1.3 and 1.3.2.1

version 1.3, 2010/05/25 14:36:24 version 1.3.2.1, 2011/08/15 19:09:07
Line 1 Line 1
 <div tal:define="docinfo options/docinfo; pageinfo options/pageinfo;    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   start pageinfo/start; end pageinfo/end; rows pageinfo/rows; cols pageinfo/cols;            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   current pageinfo/current; grpsize pageinfo/groupsize">  <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   </head>
   <body>
     <!-- block used for main content area -->
     <div class="toc" metal:define-macro="main"
       tal:define="start pageinfo/start;
                   grpsize pageinfo/groupsize;
                   numgroups pageinfo/numgroups;
                   pageBatch pageinfo/pageBatch; pageZero pageinfo/pageZero;
                   left python:test(flowLtr,pageBatch['prevStart'],pageBatch['nextStart']);
                   right python:test(flowLtr,pageBatch['nextStart'],pageBatch['prevStart']);">
       <ul class="toctype">
         <li class="sel">
           <a tal:attributes="href python:here.getLink('tocMode','thumbs')">Thumbnails</a>
         </li>
         <li tal:condition="python:docinfo.get('numTocEntries', None)">
           <a tal:attributes="href python:here.getLink('tocMode','text')">Content</a>
         </li>
         <li tal:condition="python:docinfo.get('numFigureEntries', None)">
           <a tal:attributes="href python:here.getLink('tocMode','figures')">Figures</a>
         </li>
         <li>
           <a tal:attributes="href python:here.getLink('tocMode','none')">None</a>
         </li>
       </ul>
   
 <div class="thumbruler">      <div class="content">
   <span tal:condition="python:(start>1)">        <div class="ruler">
     <a tal:attributes="href python:here.getLink(param='start',val=max(start-grpsize,1))">&lt;</a>          <form class="autosubmit" tal:attributes="action viewerUrl">
   </span>            <input type="hidden" tal:define="params python:here.getParams('start',None)"
   <select tal:attributes="onChange python:'location.href=\''+here.getLink(param='start',val=None)+'&start=\'+this.options[this.selectedIndex].value'">              tal:repeat="param params"
     <option tal:repeat="grp python:range(pageinfo['numgroups'])"               tal:attributes="name param; value python:params[param]" /> 
       tal:attributes="selected python:(start==grp*grpsize+1); value python:(grp*grpsize+1)"            <a tal:condition="left" tal:attributes="href python:here.getLink('start',left)">&lt;</a>
       tal:content="python:(grp*grpsize+1)"/>            <span tal:condition="not:left">&lt;</span>
             <select class="autosubmit" name="start"
               tal:define="ofs python:test(pageinfo['pageZero'],0,1)">
               <tal:block tal:repeat="grp python:range(numgroups)">
                 <option tal:define="idx python:max(grp*grpsize+ofs,1)"
                   tal:attributes="selected python:start==idx; value idx;"
                   tal:content="python:'%s - %s'%(idx,min((grp+1)*grpsize+ofs-1,numPages))" />
               </tal:block>
   </select>    </select>
   <span tal:condition="python:(start+grpsize<int(docinfo['numPages']))">            <input type="submit" value="Go" /> 
     <a tal:attributes="href python:here.getLink(param='start',val=start+grpsize)">&gt;</a>            <a tal:condition="right" tal:attributes="href python:here.getLink('start',right)">&gt;</a>
   </span>            <span tal:condition="not:right">&gt;</span>
           </form>
 </div>  </div>
 <table>  
   <tr tal:repeat="row python:range(rows)">        <table class="thumbs">
     <tal:block tal:repeat="idx python:range(start+row*cols,start+(row+1)*cols)">          <tr tal:repeat="row pageBatch/pages">
       <td align="center" tal:condition="python:(idx<=end)"            <td tal:repeat="thumb row"
             tal:attributes="class python:here.getStyle(idx,current,'thumb')">              tal:attributes="class python:here.getStyle(thumb['idx'],pn,'thumb')">
         <a tal:attributes="href python:here.getLink(param='pn',val=idx)">              <a tal:define="idx thumb/idx" tal:condition="idx"
           <img class="thumbimg" border="0" tal:attributes="src string:${docinfo/imageURL}&pn=$idx&dw=100&dh=100"/>                tal:attributes="href python:here.getLink('pn',idx)">
           <div class="thumbcap" tal:content="idx"/>                <img
                   tal:attributes="src python:test(docinfo['imageURL'],here.getScalerUrl(pn=idx,dw=100,dh=100,docinfo=docinfo),'images/pic');
                                   alt idx" /><br/>
                 <span tal:content="idx" />
         </a>          </a>
       </td>        </td>
     </tal:block>  
   </tr>    </tr>
 </table>  </table>
 </div>      </div> <!-- content -->
     </div> <!-- toc -->
   </body>
   </html>
   

Removed from v.1.3  
changed lines
  Added in v.1.3.2.1


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>