File:  [Repository] / documentViewer / zpt / viewer_main.zpt
Revision 1.4: download - view: text, annotated - select for diffs - revision graph
Tue Apr 11 17:27:57 2006 UTC (18 years, 2 months ago) by casties
Branches: MAIN
CVS tags: HEAD
version 0.2.3 - first version with access control!
* defaults to open when no access info
* uses any logged in user for local access

    1: <html tal:define="docinfo options/docinfo; pageinfo options/pageinfo">
    2: <head>
    3: <link rel="stylesheet" href="template/docuviewer_css" type="text/css">
    4: </head>
    5: <body tal:condition="docinfo/numPages">
    6: <div tal:replace="structure python:here.template.head_main(docinfo=docinfo)"/>
    7: <tal:block tal:condition="python:here.accessOK(docinfo)">
    8: <table border="0" width="100%" height="100%">
    9:   <tr>
   10:     <td width="300px" valign="top">
   11: 		<tal:block replace="structure python:here.template.thumbs_main(docinfo=docinfo,pageinfo=pageinfo)" /> 
   12:     </td>
   13:     <td width="100%" valign="top">
   14:       <tal:block tal:content="structure python:here.template.image_main(docinfo=docinfo,pageinfo=pageinfo)" />
   15:     </td>
   16:   </tr>
   17: </table>
   18: </tal:block>
   19: <tal:block tal:condition="not:python:here.accessOK(docinfo)">
   20: <div class="errortext">Sorry, access to this document is restricted.</div>
   21: </tal:block>
   22: </body>
   23: <body tal:condition="not:docinfo/numPages">
   24: <div class="errortext">Sorry, document doesn't exist.</div>
   25: </body>
   26: </html>

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