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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
|
<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
<title>Name Bub's Brothers</title>
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#0000EE" vlink="#000099" alink="#FF0000">
<form name="n" action="name.html" method="get">
<center>
<table CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH="95%%">
<tr>
<td width="6%%" bgcolor="#000000"> </td>
<td bgcolor="#000000" colspan="3"> </td>
<td width="6%%" bgcolor="#000000"> </td>
</tr>
<tr>
<td bgcolor="#000000"> </td>
<td bgcolor="#000000" colspan="3"> </td>
<td bgcolor="#000000"> </td>
</tr>
<tr>
<td bgcolor="#000000"> </td>
<td bgcolor="#FFFFFF" colspan="3"> </td>
<td bgcolor="#000000"> </td>
</tr>
<tr>
<td bgcolor="#000000"> </td>
<td bgcolor="#F0E0E0" colspan="3"> </td>
<td bgcolor="#000000"> </td>
</tr>
<tr>
<td bgcolor="#000000"> </td>
<td bgcolor="#E0C0C0" align="center" colspan="3"><font size=+3><strong>Player Names</strong></font></td>
<td bgcolor="#000000"> </td>
</tr>
<tr>
<td bgcolor="#000000"> </td>
<td bgcolor="#F0E0E0" colspan="3"> </td>
<td bgcolor="#000000"> </td>
</tr>
<tr>
<td bgcolor="#000000"> </td>
<td bgcolor="#FFFFFF" colspan="3"> </td>
<td bgcolor="#000000"> </td>
</tr>
<tr>
<td bgcolor="#000000"> </td>
<td bgcolor="#FFFFFF" colspan="3" align="right">
<a href="index.html?time=%(time.time())s">Back to the main page</a>
</td>
<td bgcolor="#000000"> </td>
</tr>
<tr>
<td bgcolor="#000000"> </td>
<td bgcolor="#FFFFFF" colspan="3" background="wave1.png"><font size=+3> </font></td>
<td bgcolor="#000000"> </td>
</tr>
%(
buttons = {
0: """
""",
1: """
"""}
for id, img, bgcolor in [
(0, 'bub.png', '#c0ffc0'),
(1, 'bob.png', '#c0c0ff'),
(2,'boob.png', '#ffc0c0'),
(3, 'beb.png', '#ffc000'),
(4,'biob.png', '#ffff00'),
(5, 'bab.png', '#c04040'),
(6, 'bib.png', '#c0c0c0'),
(7,'baub.png', '#fc60ff'),
(8,'beab.png', '#4fa4ff'),
(9,'biab.png', '#0ab237'),
]:
keyid = "player%d" % id
playername = options.get(keyid) or ''
playername = playername.strip()
for team in [1,2]:
if playername.endswith('(%d)' % team):
playername = playername[:-3].strip()
break
else:
team = 'off'
def nameval(value, team=team, teamid="team%d" % id):
s = 'value="%s"' % (value,)
if team == value:
s += ' selected'
return s
print """
<tr>
<td bgcolor="#000000"> </td>
<td bgcolor="%s" align="right" width="35%%"><img src="%s"></td>
<td bgcolor="%s" align="center" width="10%%"><input type=text size=16 name="%s" value="%s"></td>
<td bgcolor="%s" align="left">
<select name="team%d">
<option %s>no team<option %s>Team 1<option %s>Team 2</select>
</td>
<td bgcolor="#000000"> </td>
</tr>
""" % (bgcolor, img, bgcolor, keyid, playername,
bgcolor, id, nameval('off'), nameval(1), nameval(2))
)s
<tr>
<td bgcolor="#000000"> </td>
<td bgcolor="#FFFFFF" colspan="3"> </td>
<td bgcolor="#000000"> </td>
</tr>
<tr>
<td bgcolor="#000000"> </td>
<td colspan=3 align="center" valign="top" bgcolor="#FFFFFF">
<input type=submit name="s" value=" Save ">
<input type=submit name="f" value=" Fill in missing names ">
<input type=submit name="c" value=" Clear ">
</td>
<td bgcolor="#000000"> </td>
</tr>
<tr>
<td bgcolor="#000000"> </td>
<td bgcolor="#FFFFFF" colspan="3"> </td>
<td bgcolor="#000000"> </td>
</tr>
<tr>
<td bgcolor="#000000"> </td>
<td bgcolor="#F0E0E0" colspan="3"> </td>
<td bgcolor="#000000"> </td>
</tr>
<tr>
<td bgcolor="#000000"> </td>
<td bgcolor="#E0C0C0" colspan="3"> </td>
<td bgcolor="#000000"> </td>
</tr>
<tr>
<td bgcolor="#000000"> </td>
<td bgcolor="#F0E0E0" colspan="3"> </td>
<td bgcolor="#000000"> </td>
</tr>
<tr>
<td bgcolor="#000000"> </td>
<td bgcolor="#FFFFFF" colspan="3"> </td>
<td bgcolor="#000000"> </td>
</tr>
<tr>
<td bgcolor="#000000"> </td>
<td bgcolor="#000000" colspan="3" align="center"><img src="header.png"></td>
<td bgcolor="#000000"> </td>
</tr>
<tr>
<td bgcolor="#000000"> </td>
<td bgcolor="#000000" colspan="3"> </td>
<td bgcolor="#000000"> </td>
</tr>
</table>
</center>
</form>
</body>
</html>
|