Mercurial > hg > documentViewer
view zpt/toc_text.zpt @ 493:79d414cead6d elementtree
first button for digilib
author | casties |
---|---|
date | Mon, 05 Sep 2011 11:10:36 +0200 |
parents | 55e3398e395e |
children | 29c6d09a506c |
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <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-text" metal:define-macro="main" tal:define="start pageinfo/start; tocsize docinfo/tocSize_text; grpsize pageinfo/tocPageSize; batch python:here.getBatch(start=start,size=grpsize,end=tocsize);"> <ul class="switcher"> <li><a tal:attributes="href python:here.getLink('tocMode','thumbs')">Thumbnails</a> </li> <li class="sel" tal:condition="python:docpath and docinfo.get('numTocEntries', None)"> <a tal:attributes="href python:here.getLink('tocMode','text')">Content</a> </li> <li tal:condition="python:docpath and 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="ruler"> <form class="autosubmit" tal:attributes="action viewerUrl"> <input type="hidden" tal:define="params python:here.getParams('start', None)" tal:repeat="param params" tal:attributes="name param; value python:params[param]" /> <a tal:condition="batch/prevStart" tal:attributes="href python:here.getLink('start',batch['prevStart'])"><</a> <span tal:condition="not:batch/prevStart"><</span> <select class="autosubmit" name="start"> <option tal:repeat="grp batch/batches" tal:attributes="selected python:(start==grp['start']); value grp/start" tal:content="string:${grp/start} - ${grp/end}" /> </select> <input type="submit" value="Go" /> <a tal:condition="batch/nextStart" tal:attributes="href python:here.getLink('start',batch['nextStart'])">></a> <span tal:condition="not:batch/nextStart">></span> </form> </div> <div class="content" tal:content="structure python:here.getTocPage(mode='text',start=start,pageinfo=pageinfo,docinfo=docinfo)" /> </div> <!-- toc --> </body> </html>