/box/conoutput.tmpl
Go Template | 53 lines | 51 code | 2 blank | 0 comment | 0 complexity | 4df10ac1ac8eb247a246fb7379b189a2 MD5 | raw file
1#encoding cp1251
2#errorCatcher Echo
3
4<html>
5 <head>
6 <style>
7 A.menu:link{font-family:Arial; font-size:11pt; text-decoration:none; color:gray}
8 A.menu:visited{font-family:Arial; font-size:11pt; text-decoration:none; color:gray}
9 A.menu:hover{color:black}
10 </style>
11 <title>Concordance</title>
12 </head>
13 <body style="margin-top:15px;">
14 <a href="http://localhost:9090/" class=menu>?? ??????? ????????</a>
15 <h2 style="font-family:Arial">?????????? ??? ????? $title</h2>
16 <div style="margin-left=10px; margin-right=10px; margin-bottom=20px">
17 #for $key, $lines in $dict
18 #if len($lines)>=5
19 <font size='6pt'>
20 #else
21 <font size="$(len($lines)+1)">
22 #end if
23 <a href="#$key">$key</a>
24 </font>
25 #end for
26 </div>
27 <table>
28 #for $key, $lines in $dict
29 <tr>
30 <td align="left" valign="top">
31 <div id="$key"><b>$key</b> </div>
32 </td>
33 <td>
34 #for $tlinenumber, $twordposition in $lines
35 <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>
36 #end for
37 </td>
38 </tr>
39 #end for
40 </table>
41
42 #if $ramka == 0
43 <table border=0>
44 <tr><td width="100">????? ??????</td><td> ???????? ?????</td></tr>
45 #for $linenumber, $line in $text
46 <tr><td><font color="gray" id="linenumber$linenumber">$linenumber</font></td><td> $line</td></tr>
47 #end for
48 </table>
49 #else
50 $text
51 #end if
52 </body>
53</html>