Changeset 36:0bf5aac0ff41 in documentViewer
- Timestamp:
- Apr 12, 2006, 5:47:53 PM (19 years ago)
- Branch:
- default
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
version.txt
r32 r36 1 DocumentViewer 0.2. 31 DocumentViewer 0.2.4 -
zpt/thumbs_main.zpt
r32 r36 6 6 <a tal:attributes="href python:here.getLink(param='start',val=max(start-grpsize,1))"><</a> 7 7 </span> 8 <select tal:attributes="onChange python:'location.href=\' %s&start=\'+this.options[this.selectedIndex].value'%here.getLink(param='start',val=None)">8 <select tal:attributes="onChange python:'location.href=\''+here.getLink(param='start',val=None)+'&start=\'+this.options[this.selectedIndex].value'"> 9 9 <option tal:repeat="grp python:range(pageinfo['numgroups'])" 10 10 tal:attributes="selected python:(start==grp*grpsize+1); value python:(grp*grpsize+1)" … … 18 18 <tr tal:repeat="row python:range(rows)"> 19 19 <tal:block tal:repeat="idx python:range(start+row*cols,start+(row+1)*cols)"> 20 <td align="center" tal:condition="python:(idx <=end)"20 <td align="center" tal:condition="python:(idx<=end)" 21 21 tal:attributes="class python:here.getStyle(idx,current,'thumb')"> 22 22 <a tal:attributes="href python:here.getLink(param='pn',val=idx)"> 23 <img class="thumbimg" border="0" tal:attributes="src python:'%s&pn=%d&dw=100&dh=100'%(docinfo['imageURL'],idx)"/>23 <img class="thumbimg" border="0" tal:attributes="src string:${docinfo/imageURL}&pn=$idx&dw=100&dh=100"/> 24 24 <div class="thumbcap" tal:content="idx"/> 25 25 </a> -
zpt/viewer_main.zpt
r34 r36 5 5 <body tal:condition="docinfo/numPages"> 6 6 <div tal:replace="structure python:here.template.head_main(docinfo=docinfo)"/> 7 <tal:block tal:condition="python:here. accessOK(docinfo)">7 <tal:block tal:condition="python:here.isAccessible(docinfo)"> 8 8 <table border="0" width="100%" height="100%"> 9 9 <tr> … … 17 17 </table> 18 18 </tal:block> 19 <tal:block tal:condition="not:python:here. accessOK(docinfo)">19 <tal:block tal:condition="not:python:here.isAccessible(docinfo)"> 20 20 <div class="errortext">Sorry, access to this document is restricted.</div> 21 21 </tal:block>
Note: See TracChangeset
for help on using the changeset viewer.