/box/conoutput.tmpl

https://bitbucket.org/magpie/concordance · Go Template · 53 lines · 51 code · 2 blank · 0 comment · 0 complexity · 4df10ac1ac8eb247a246fb7379b189a2 MD5 · raw file

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