/box/conoutput.tmpl
https://bitbucket.org/magpie/concordance · Go Template · 53 lines · 51 code · 2 blank · 0 comment · 0 complexity · 4df10ac1ac8eb247a246fb7379b189a2 MD5 · raw file
- #encoding cp1251
- #errorCatcher Echo
-
- <html>
- <head>
- <style>
- A.menu:link{font-family:Arial; font-size:11pt; text-decoration:none; color:gray}
- A.menu:visited{font-family:Arial; font-size:11pt; text-decoration:none; color:gray}
- A.menu:hover{color:black}
- </style>
- <title>Concordance</title>
- </head>
- <body style="margin-top:15px;">
- <a href="http://localhost:9090/" class=menu>?? ??????? ????????</a>
- <h2 style="font-family:Arial">?????????? ??? ????? $title</h2>
- <div style="margin-left=10px; margin-right=10px; margin-bottom=20px">
- #for $key, $lines in $dict
- #if len($lines)>=5
- <font size='6pt'>
- #else
- <font size="$(len($lines)+1)">
- #end if
- <a href="#$key">$key</a>
- </font>
- #end for
- </div>
- <table>
- #for $key, $lines in $dict
- <tr>
- <td align="left" valign="top">
- <div id="$key"><b>$key</b> </div>
- </td>
- <td>
- #for $tlinenumber, $twordposition in $lines
- <a href="#linenumber$tlinenumber">$tlinenumber</a> $text[0][1][:$wordposition] <b>$text[0][1][$wordposition:$wordposition+len($key)]</b> $text[0][1][$wordposition+len($key):] <br>
- #end for
- </td>
- </tr>
- #end for
- </table>
-
- #if $ramka == 0
- <table border=0>
- <tr><td width="100">????? ??????</td><td> ???????? ?????</td></tr>
- #for $linenumber, $line in $text
- <tr><td><font color="gray" id="linenumber$linenumber">$linenumber</font></td><td> $line</td></tr>
- #end for
- </table>
- #else
- $text
- #end if
- </body>
- </html>