1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/elo.fmt Thu Jan 07 22:34:17 2010 +0100
1.3 @@ -0,0 +1,43 @@
1.4 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1.5 +<html>
1.6 + <head>
1.7 + <title>${bundle.ELO_LIST}</title>
1.8 + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
1.9 + </head>
1.10 + <body bgcolor="white">
1.11 + <h3><a href="/">${bundle.TITLE_PLAIN}</a></h3>
1.12 + <h4>${bundle.ELO_LIST}</h4>
1.13 + <table border="1">
1.14 + <thead>
1.15 + <tr>
1.16 + <th>#</th>
1.17 + <th>${bundle.NAME}</th>
1.18 + <th>${bundle.ELO}</th>
1.19 + <th>${bundle.GAMES}</th>
1.20 + </tr>
1.21 + </thead>
1.22 + <tbody>
1.23 + <#assign cElo = 10000>
1.24 + <#assign index = 0>
1.25 + <#assign cIndex = index>
1.26 + <#list doc.eloList.elolist.* as item>
1.27 +
1.28 + <#assign index = index + 1>
1.29 + <#if cElo = item.@elo?number>
1.30 + <#else>
1.31 + <#assign cIndex = index>
1.32 + </#if>
1.33 + <#assign cElo = item.@elo?number>
1.34 +
1.35 + <tr>
1.36 + <td>${cIndex}</td>
1.37 + <td>${item.@player}</td>
1.38 + <td>${item.@elo?number}</td>
1.39 + <td>${item.@games}</td>
1.40 + </tr>
1.41 +
1.42 + </#list>
1.43 + </tbody>
1.44 + </table>
1.45 + </body>
1.46 +</html>
1.47 \ No newline at end of file