Diff for /documentViewer/zpt/Attic/thumbs_main.zpt between versions 1.1 and 1.2

version 1.1, 2006/04/06 17:13:43 version 1.2, 2006/04/07 18:45:48
Line 1 Line 1
 <div tal:define="cols python:2; rows python:10; docinfo python:options['docinfo']; pageinfo python:options['pageinfo']; start python:pageinfo['start']; end python:min(start+cols*rows,int(docinfo['numberOfPages'])); current pageinfo/current; rowsCorrected python:divmod(end-start,cols);">  <div tal:define="docinfo options/docinfo; pageinfo options/pageinfo;  
 <span tal:replace="structure python:here.thumbruler(cols,rows,start,int(docinfo['numberOfPages']))"/>    start pageinfo/start; end pageinfo/end; rows pageinfo/rows; cols pageinfo/cols;
     current pageinfo/current; grpsize pageinfo/groupsize">
   <div class="thumbruler">
     <span tal:condition="python:(start>1)">
       <a tal:attributes="href python:here.getLink(param='start',val=max(start-grpsize,1))">&lt;</a>
     </span>
     <select tal:attributes="onChange python:'location.href=\'%s&start=\'+this.options[this.selectedIndex].value'%here.getLink(param='start',val=None)">
       <option tal:repeat="grp python:range(pageinfo['numgroups'])" 
         tal:attributes="selected python:(start==grp*grpsize+1); value python:(grp*grpsize+1)"
         tal:content="python:(grp*grpsize+1)"/>
     </select>
     <span tal:condition="python:(start+grpsize<docinfo['numPages'])">
       <a tal:attributes="href python:here.getLink(param='start',val=start+grpsize)">&gt;</a>
     </span>
   </div>
 <table>  <table>
     <tr tal:repeat="i python:range(rowsCorrected[0])">    <tr tal:repeat="row python:range(rows)">
         <td align="center" tal:repeat="j python:range(start+i*cols,start+(i+1)*cols)"       <tal:block tal:repeat="idx python:range(start+row*cols,start+(row+1)*cols)">
             tal:attributes="class python:here.getStyle(str(j+1),current,'thumb')">        <td align="center" tal:condition="python:(idx <= end)"
         <a tal:attributes="href python:here.imageLink(j+1)">              tal:attributes="class python:here.getStyle(idx,current,'thumb')">
          <img class="thumbimg" border="0" tal:attributes="src python:docinfo['imageURL']+'&pn=%i&dw=100&dh=100'%(j+1)"/>          <a tal:attributes="href python:here.getLink(param='pn',val=idx)">
          <div class="thumbcap" tal:content="python:(j+1)"/>            <img class="thumbimg" border="0" tal:attributes="src python:'%s&pn=%d&dw=100&dh=100'%(docinfo['imageURL'],idx)"/>
         </a>            <div class="thumbcap" tal:content="idx"/>
         </td>  
     </tr>  
     <tr tal:condition="python:rowsCorrected[1]>0">  
         <td align="center" tal:repeat="j python:range(start+cols*rowsCorrected[0],int(docinfo['numberOfPages']))"   
             tal:attributes="class python:here.getStyle(str(j+1),current,'thumb')">  
         <a tal:attributes="href python:here.imageLink(j+1)">  
          <img class="thumbimg" border="0" tal:attributes="src python:docinfo['imageURL']+'&pn=%i&dw=100&dh=100'%(j+1)"/>  
          <div class="thumbcap" tal:content="python:(j+1)"/>  
          </a>           </a>
         </td>          </td>
       </tal:block>
     </tr>      </tr>
 </table>  </table>
 </div>  </div>

Removed from v.1.1  
changed lines
  Added in v.1.2


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