summaryrefslogtreecommitdiff
path: root/playoff/template.py
blob: 8648a67d844ba92e45b094400561d6f2ad6e93b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#encoding=utf-8

MATCH_TABLE = '''
<table border="0" cellspacing="0">
<tr>
<td class="s12" width="%d">&nbsp;</td>
<td class="bdcc2" width="%d">&nbsp;wynik&nbsp;</td>
</tr>
%s
</table>
'''

MATCH_TEAM_ROW = '''
<tr class="%s">
<td class="bd1">&nbsp;<a href="%s" onmouseover="Tip('%s')" onmouseout="UnTip()">%s</a>&nbsp;</td>
<td class="bdc">
<a href="%s" target="_top">
&nbsp;%.1f&nbsp;
</a>
</td>
</tr>
'''

MATCH_RUNNING = '''
<a href="%s" target="_top">
<img src="images/A.gif" />
%d
<img src="images/A.gif" />
</a>
'''

MATCH_GRID = '''
<div style="position: relative; width: %dpx; height: %dpx; margin: 10px">
<canvas width="%d" height="%d" id="playoff_canvas"></canvas>
%s
<script src="sklady/playoff.js" type="text/javascript"></script>
</div>
'''

MATCH_GRID_PHASE = '''
<a href="%s" target="_top" style="display: inline-block; width: %dpx; text-align: center; position: absolute; top: 0; left: %dpx">
<font size="4">%s</font>
</a>
'''

MATCH_GRID_PHASE_RUNNING = '''
<a href="%s" target="_top" style="display: inline-block; width: %dpx; text-align: center; position: absolute; top: 0; left: %dpx">
<img src="images/A.gif" />
<font size="4">%s</font>
<img src="images/A.gif" />
</a>
'''

MATCH_BOX = '''
<div style="text-align: center; position: absolute; left: %dpx; top: %dpx" data-id="%d" data-winner="%s" data-loser="%s" class="playoff_matchbox">
%s
</div>
'''

LEADERBOARD = '''
<table border="0" cellspacing="0">
<tr>
<td class="bdnl12" colspan="2" align="center"><b>&nbsp;KLASYFIKACJA KOŃCOWA&nbsp;</b></td>
</tr>
<tr>
<td class="e" colspan="2">&nbsp;</td>
</tr>
<tr>
<td class="bdcc12">&nbsp;miejsce&nbsp;</td>
<td class="bdcc2">&nbsp;drużyna&nbsp;</td>
</tr>
%s
</table>
'''

LEADERBOARD_ROW = '''
<tr>
<td class="bdc1">%d</td>
<td class="bd">
&nbsp;%s&nbsp;&nbsp;%s&nbsp;
</td>
</tr>
'''

LEADERBOARD_ROW_FLAG = '''
<img class="fl" src="images/%s" />
'''

PAGE_HEAD = '''
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta name="robots" content="noarchive" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="Generator" content="PlayOff" />
%s
<title>%s</title>
<link rel="stylesheet" type="text/css" href="css/kolorki.css" />
<script type="text/javascript" src="sklady/myAjax.js"></script>
'''

PAGE_HEAD_REFRESH = '''
<meta http-equiv="Refresh" content="%d" />
'''

PAGE_BODY = '''
<script type="text/javascript" src="sklady/wz_tooltip.js"></script>
%s
%s
%s
%s
'''

PAGE_BODY_FOOTER = '''
<p class="f">&nbsp;Admin&nbsp;&copy;Jan Romański&#39;2005, PlayOff&nbsp;&copyMichał Klichowicz&#39;2017, strona wygenerowana %s</p>
'''

PAGE = '''
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
%s
</head>
<body class="all">
%s
</body>
</html>
'''