version 1.2, 2010/04/09 18:33:53
|
version 1.3.2.4, 2011/08/25 15:05:22
|
Line 2
|
Line 2
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head> |
<head> |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
</head> |
</head> |
<body> |
<body> |
<!-- block used for main content area --> |
<!-- block used for main content area --> |
<metal:block metal:define-macro="main"> |
<div class="toc-text" metal:define-macro="main" |
<tal:block tal:define="pn python:int(pageinfo['tocPN']); tocsize python:int(docinfo['tocSize_text']); grpsize python:int(pageinfo['tocPageSize']); |
tal:define="start pageinfo/start; tocsize docinfo/tocSize_text; grpsize pageinfo/tocPageSize; |
maxpn python:int(tocsize/grpsize);"> |
batch python:here.getBatch(start=start,size=grpsize,end=tocsize);"> |
<div class="thumbruler"> |
<ul class="switcher"> |
<span tal:condition="python:(pn>1)"> |
<li><a |
<a tal:attributes="href python:here.getLink(param='tocPN',val=pn-1)"><</a> |
tal:attributes="href python:here.getLink('tocMode','thumbs')">Thumbnails</a> |
</span> |
</li> |
<span tal:content="string:$pn of $maxpn"/> |
<li class="sel" |
<span> |
tal:condition="python:docpath and docinfo.get('numTocEntries', None)"> |
<a tal:attributes="href python:here.getLink(param='tocPN',val=pn+1)">></a> |
<a tal:attributes="href python:here.getLink('tocMode','text')">Content</a> |
</span> |
</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> |
<div tal:content="structure python:here.getTocPage(mode='text',pageinfo=pageinfo,docinfo=docinfo)"/> |
<div class="content" |
</tal:block> |
tal:content="structure python:here.getTocPage(mode='text',start=start,pageinfo=pageinfo,docinfo=docinfo)" /> |
</metal:block> |
</div> |
|
<!-- toc --> |
</body> |
</body> |
</html> |
</html> |
|
|