def do_login():
	username = request.forms.get('username')
	#print '/do_login => username:'******'password')
	#print '/do_login => password:'******''
	r += """<!DOCTYPE html>\n"""
	r += """\n"""
	r += """<html>\n"""
	r += """\t<head>\n""" 
	r += """\t\t<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\n"""
	r += css()
	r += """\t</head>\n""" 
	r += """\t<body>\n"""
	if u:
		response.set_cookie('username', str(username), secret=secret)
		#domain='http://localhost:8081/'
		#domain='janbannister.com'
		r += menu()
		r +=  "<p>Welcome " + str(username) + "! You are now logged in.</p>"
		#print 'username <',username,'>'
	else:
		r += menu()
		r +=  "<p>Un-Welcome!</p>"
	r += """\t</body>\n"""
	r += """</html>\n"""
	return r
Exemple #2
0
def index():
    r = ''
    r += """<!DOCTYPE html>\n"""
    r += """\n"""
    r += """<html>\n"""
    r += """\t<head>\n"""
    r += """\t\t<meta http-equiv='Content-Type' """
    r += """content='text/html; charset=utf-8' />\n"""
    r += """<meta name='apple-itunes-app' content='app-id=735957158'>"""
    r += """\t\t<title>Jan Bannister</title>\n"""
    r += """\t\t<script>\n"""
    r += """\t\t\tvar un = '""" + request.get_cookie('username','', secret='the sercet') + """';  \n"""
    r += """\t\t</script>\n"""
    r += """\t\t<script src='/js/google.js'></script>\n"""
    r += """\t</head>\n"""
    r += """\t<body>\n"""
    # r += github_fork()
    r += """\t\t<b>Jan Bannister</b>!\n"""
    r += """\t\t<!-- <p>""" + __author__ + ":" + __version__ + """</p>-->\n"""
    r += """\t\t<!-- <p>Username: """
    r += request.cookies.get('username', '')
    r += """</p>--> \n"""
    r += menu()
    r += """\t</body>\n"""
    r += """</html>\n"""
    return r
def do_register():
	first = request.forms.get('first')
	#print '/do_register => first:',first
	secord = request.forms.get('secord')
	#print '/do_register => secord:',secord
	email = request.forms.get('email')
	#print '/do_register => email:',email
	password = request.forms.get('password')
	#print '/do_register => password:'******'repassword')
	#print '/do_register => repassword:'******''
	r += """<!DOCTYPE html>\n"""
	r += """\n"""
	r += """<html>\n"""
	r += """\t<head>\n""" 
	r += """\t\t<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\n"""
	r += css()
	r += """\t</head>\n""" 
	r += """\t<body>\n"""
	if email == e:
		response.set_cookie('username', str(email), secret=secret)

	r += menu()
	r += """Re-Register"""
	r += '<p>' + e + '</p>\n'
	r += """\t</body>\n"""
	r += """</html>\n"""
	return r
def do_new_password():
	u = request.get_cookie('username', '', secret=secret)

	password    = request.forms.get('password')
	#print '/do_register => password:'******'repassword')
	#print '/do_register => repassword:'******'repassword2')
	#print '/do_register => repassword:'******'/')
	
	r = ''
	r += """<!DOCTYPE html>\n"""
	r += """\n"""
	r += """<html>\n"""
	r += """\t<head>\n""" 
	r += """\t\t<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\n"""
	r += css()
	r += """\t</head>\n""" 
	r += """\t<body>\n"""
	r += menu()
	r += """do_new_password"""
	r += """\t</body>\n"""
	r += """</html>\n"""
	return r
def cookie():
	r  = """<html>\n"""
	r += """\t<head>\n"""
	r += '<script>\n'
	r += """var un = '""" + request.get_cookie('username','', secret='the sercet') + """';\n"""
	r += '</script>\n'
	r += """\t<script src='/js/google.js'></script>\n"""
	r += css()
	r += """\t</head>\n"""
	r += """\t<body>\n"""
	r += menu()
	r += '<a href="/counter_plaintext" >Counter Plain Text</a> | '
	r += '<a href="/delete_plaintext" >Delete Plain Text</a> | '
	counter_plaintext = request.get_cookie('counter_plaintext', '0')
	r += counter_plaintext + '<br>'
	r += '<a href="/counter_sercet" >Counter Sercet</a> | '
	r += '<a href="/delete_sercet" >Delete Sercet</a> | '
	counter_sercet = request.get_cookie('counter_sercet', '0', secret=secret)
	r += counter_sercet + '<br>'
	r += """ <p>[email protected]</p>\n """
	r += """ Log In """
	r += """<form action='http://""" + wwwport + """/do_login' method='post' >\n"""
	r += """Name:     <input type='text' name='username' value=""><br>\n"""
	r += """Password: <input type='password' name='password' value=""><br>\n"""
	r += """<input type='submit' value='Submit'>\n"""
	r += """</form>\n"""

	
	r += '<a href="/username" >Counter Username</a> | '
	r += '<a href="/delete_username" >Delete Username</a> |'
	u = request.get_cookie('username', '0', secret=secret)
	r += u + '<br>'
	r +=	'\t</body>\n'
	r += '</html>'
	return r
def logoff():
	response.delete_cookie('username') # <== Buggy
	r = ''
	r += """<!DOCTYPE html>\n"""
	r += """<html>\n"""
	r += """\t<head>\n""" 
	r += """\t\t<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\n"""
	r += css()
	r += """\t</head>\n""" 
	r += """\t<body>\n"""
	r += menu()
	r += """ Log off """
	r += """\t</body>\n"""
	r += """</html>\n"""
	return r
def delete():
	r = ''
	r += """<!DOCTYPE html>\n"""
	r += """\n"""
	r += """<html>\n"""
	r += """\t<head>\n""" 
	r += """\t\t<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\n"""
	r += css()
	r += """\t</head>\n""" 
	r += """\t<body>\n"""
	r += menu()
	r += """Delete"""
	r += """<button onclick=\"location.href='http://""" + wwwport + """/do_delete/ /> """
	r += """\t</body>\n"""
	r += """</html>\n"""
	return r
def delete_sercet():
	response.delete_cookie('counter_sercet')
	r  = """<html>\n"""
	r += """\t<head>\n"""
	r += '<script>\n'
	r += """var un = '""" + request.get_cookie('username','', secret='the sercet') + """';\n"""
	r += '</script>\n'
	r += """\t<script src='/js/google.js'></script>\n"""
	r += css()
	r += """\t</head>\n"""
	r += """\t<body>\n"""
	r += menu()
	r += 'delete_sercet<br>'
	r += '<a href="/counter_sercet" >Counter Sercet</a><br>'
	r +=	'\t</body>\n'
	r += '</html>'
	return r
def username():
	u = request.get_cookie('username', '0', secret=secret)
	r  = """<html>\n"""
	r += """\t<head>\n"""
	r += '<script>\n'
	r += """var un = '""" + request.get_cookie('username','', secret='the sercet') + """';\n"""
	r += '</script>\n'
	r += """\t<script src='/js/google.js'></script>\n"""
	r += css()
	r += """\t</head>\n"""
	r += """\t<body>\n"""
	r += menu()
	r += u
	r += '<a href="/counter_sercet" >Counter Sercet</a><br>'
	r += '<a href="/delete_username" >Delete Username</a><br>'
	r +=	'\t</body>\n'
	r += '</html>'
	return r
def poker():
	r = ''
	r += """<!DOCTYPE html>\n"""
	r += """\n"""
	r += """<html>\n"""
	r += """\t<head>\n""" 
	r += """\t\t<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\n"""
	r += """\t\t<title>Jan Bannister</title>\n"""
	r += css()
	r += """\t</head>\n""" 
	r += """\t<body>\n"""
	r += menu()
	r += str(p.cards_random(5))
	r += """ <img height='75' width='60' src='/poker/images/spade_A.png' /> """
	r += """ <img height='75' width='60' src='/poker/images/club_A.png' /> """
	r += """\t</body>\n"""
	r += """</html>\n"""
	return r
Exemple #11
0
def about():
    r = ''
    r += """<!DOCTYPE html>\n"""
    r += """\n"""
    r += """<html>\n"""
    r += """\t<head>\n"""
    r += """\t\t<title>Jan Bannister</title>\n"""
    r += """\t\t<script>\n"""
    r += """\t\t\tvar un = '""" + request.get_cookie('username','', secret='the sercet') + """';  \n"""
    r += """\t\t</script>\n"""
    r += """\t\t<script src='/js/google.js'></script> \n """
    r += """\t</head>\n"""
    r += """\t<body>\n"""
    r += menu()
    r += """So I'm Jan Bannister the presumptuous chap writing this blog."""
    r += """\t</body>\n"""
    r += """</html>\n"""
    return r
def feynman():
    r = ""
    r += """<!DOCTYPE html>\n"""
    r += """\n"""
    r += """<html>\n"""
    r += """\t<head>\n"""
    r += "<script>\n"
    r += """var un = '""" + request.get_cookie("username", "", secret="the sercet") + """';\n"""
    r += "</script>\n"
    r += """\t\t<script src='/js/google.js'></script> \n """
    r += """\t\t<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\n"""
    r += css()
    r += """\t</head>\n"""
    r += """\t<body>\n"""
    r += menu()
    r += """ Richard Feynman """
    r += """\t</body>\n"""
    r += """</html>\n"""
    return r
def do_delete():
	#response.cookie.set('username','', secret=secret)
	u = request.get_cookie('username', '0', secret=secret)
	response.delete_cookie('username')
	print('Delete ',u)
	r = ''
	r += """<!DOCTYPE html>\n"""
	r += """\n"""
	r += """<html>\n"""
	r += """\t<head>\n""" 
	r += """\t\t<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\n"""
	r += css()
	r += """\t</head>\n""" 
	r += """\t<body>\n"""
	r += menu()
	r += """Do_Delete"""
	r += """\t</body>\n"""
	r += """</html>\n"""
	return r
def delete_username():
	print('delete_username ->', response.delete_cookie('username'))
	for x in response.__iter__():
		print('x ->',x)
	response.delete_cookie('username')
	r  = """<html>\n"""
	r += """\t<head>\n"""
	r += '<script>\n'
	r += """var un = '""" + request.get_cookie('username','', secret='the sercet') + """';\n"""
	r += '</script>\n'
	r += """\t<script src='/js/google.js'></script>\n"""
	r += css()
	r += """\t</head>\n"""
	r += """\t<body>\n"""
	r += menu()
	r += 'delete_username<br>'
	r += '<a href="/username" >Counter Username</a><br>'
	r +=	'\t</body>\n'
	r += '</html>'
	return r
def counter_plaintext():
	counter_plaintext = int( request.get_cookie('counter_plaintext', '0') )
	counter_plaintext += 1
	response.set_cookie('counter_plaintext', str(counter_plaintext))
	r  = """<html>\n"""
	r += """\t<head>\n"""
	r += '<script>\n'
	r += """var un = '""" + request.get_cookie('username','', secret='the sercet') + """';\n"""
	r += '</script>\n'
	r += """\t<script src='/js/google.js'></script>\n"""
	r += css()
	r += """\t</head>\n"""
	r += """\t<body>\n"""
	r += menu()
	r += 'You visited this page %d times<br>' % counter_plaintext 
	r += '<a href="/username" >Counter Username</a><br>'
	r += '<a href="/delete_plaintext" >Delete Plain Text</a><br>'
	r +=	'\t</body>\n'
	r += '</html>'
	return r
def new_password():
	r = ''
	r += """<!DOCTYPE html>\n"""
	r += """\n"""
	r += """<html>\n"""
	r += """\t<head>\n""" 
	r += """\t\t<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\n"""
	r += css()
	r += """\t</head>\n""" 
	r += """\t<body>\n"""
	r += menu()
	r += """new_password"""
	r += """<form action='http://""" + wwwport + """/do_new_password' method='post' >\n"""
	r += """Password: <input type='password' name='password' value=""><br>\n"""
	r += """Re-Password: <input type='password' name='repassword' value=""><br>\n"""
	r += """Re-Password2: <input type='password' name='repassword2' value=""><br>\n"""
	r += """<input type="submit" value="Submit">\n"""
	r += """\t</body>\n"""
	r += """</html>\n"""
	return r
def loginEx():
	r = ''
	r += """<!DOCTYPE html>\n"""
	r += """\n"""
	r += """<html>\n"""
	r += """\t<head>\n""" 
	r += """\t\t<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\n"""
	r += css()
	r += """\t</head>\n""" 
	r += """\t<body>\n"""
	r += menu()
	r += """ <p>[email protected]</p>\n """
	r += """ Log In """
	r += """<form action='http://""" + wwwport + """/do_login' method='post' >\n"""
	r += """Name:     <input type='text' name='username' value=""><br>\n"""
	r += """Password: <input type='password' name='password' value=""><br>\n"""
	r += """<input type='submit' value='Submit'>\n"""
	r += """</form>\n"""
	r += """\t</body>\n"""
	r += """</html>\n"""
	return r
def register():
	r = ''
	r += """<!DOCTYPE html>\n"""
	r += """\n"""
	r += """<html>\n"""
	r += """\t<head>\n""" 
	r += """\t\t<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\n"""
	r += css()
	r += """\t</head>\n""" 
	r += """\t<body>\n"""
	r += menu()
	r += """ Register """
	r += """<form action='http://""" + wwwport + """/do_register' method='post' >\n"""
	r += """First:    <input type='text' name='first' value=""><br>\n"""
	r += """Secord:   <input type='text' name='secord' value=""><br>\n"""
	r += """Email:    <input type='text' name='email' value=""><br>\n"""
	r += """Password: <input type='password' name='password' value=""><br>\n"""
	r += """Re-Password: <input type='password' name='repassword' value=""><br>\n"""
	r += """<input type="submit" value="Submit">\n"""
	r += """\t</body>\n"""
	r += """</html>\n"""
	return r
def index(move=0):
	u = request.get_cookie('username','', secret=secret)
	
	if(c.PlayerYellow() != u):
		if(c.PlayerRed() != u):
			return error()
			
	#x = c.PlayerSplit()
	
	#print('connect4: ')
	#print('username: '******'PlayerSplit: ',x)
	print('PlayerYellow: ', c.PlayerYellow())
	print('PlayerRed:    ', c.PlayerRed())
	print('connect4web : move:',move)
	if move == 'reset':         print(c.Reset())
	elif move == 'favicon.ico': 
		print('favicon.ico')
	elif(move != 0):
		m = int(move)
		print('connect4web : c.Turn()',c.Turn())
		if(c.Turn()): 
			print('connect4web : c.CanTake(',move,')',c.CanTake(move))
			if c.CanTake(move):
				print('connect4web : c.MoveTake()')
				c.MoveTake(u, m, 'R')
		else:
			print('connect4web : c.CanTake(',move,')',c.CanTake(move)) 
			if c.CanTake(move):
				print('connect4web : c.MoveTake()')      
				c.MoveTake(u, m, 'Y')
			
	r  = """<html>\n\t<head>\n"""
	r += Script()
	r += """\t\t<script type='text/javascript' src='/connect4/js/xhr.js' ></script>\n """
	r += '<script>\n'
	r += """var un = '""" + request.get_cookie('username','', secret='the sercet') + """';\n"""
	r += '</script>\n'
	r += '<script src="/js/google.js"></script>\n'
	r += """\t\t<script src='/js/google.js' ></script>\n """
	r += css()
	r += """\t</head>\n """
	r += """\t\t<body>\n"""
	r += menu()
	#r += """\t\t<body bgcolor='#000080' >\n"""
	r += """<p>""" + u + """</p>"""

	r += '\t<table border=0 >\n'

	r += '\t\t<tr>\n'
	print(u)
	print(c.TurnPlayer())
	r += Button(1)
	r += Button(2)
	r += Button(3)
	r += Button(4)
	r += Button(5)
	r += Button(6)
	r += Button(7)
	r += '\t\t</tr>\n'
	
	for x in range(6):
		r += '\t\t<tr>\n'
		for y in range(7):
			r += '\t\t\t<td height="60" width="60">\n'
			xo = c.Piece(y,x)
			if(xo == '.'):
				#r += '.'
				r += '\t\t\t\t <img height="76" width="76" src="/connect4/images/white.png" />'
			elif(xo == 'Y'):
				#r += 'O'
				r += '\t\t\t\t <img height="76" width="76" src="/connect4/images/yellow.png" />'
			elif(xo == 'R'):
				#r += 'X'
				r += '\t\t\t\t <img height="76" width="76" src="/connect4/images/red.png" />'
			else:
				r += 'ERROR'
			
			r += '\n\t\t\t</td>\n'
		r += '\t\t</tr>\n'
	r += '\t</table>\n'
	r += Reset()
	r += """ <p id='demo1'></p> """
	r +=	"""</body>
</html>
	"""

	return r	
def monopoly():
	r  = """<html>\n"""
	r += """\t<head>\n"""
	r += """<link rel='stylesheet' type='text/css' href='/css/monopoly.css'>"""
	r += css()
	r += """\t</head>\n"""
	r += """\t<body>\n"""
	r += menu()
	r += 'Monopoly'
	r += """
	<table border="3" cellspacing="0" cellpadding="3" style="text-align:center;font:normal 8pt/9pt arial;width:400px;border-collapse:separate; background-color:#F0FFF0;">
	<tr>
	<td style="height:60px;">Free Parking
	<div style="width:60px;height:0px;"></div>
	</td>
	<td style="border-bottom:solid 12px Red">Kentucky Avenue<br />
	$220</td>
	<td style="">Chance</td>
	<td style="border-bottom:solid 12px Red">Indiana Avenue<br />
	$220</td>
	<td style="border-bottom:solid 12px Red">Illinois Avenue<br />
	$240</td>
	<td style="">B&amp;O Railroad<br />
	$200</td>
	<td style="border-bottom:solid 12px Yellow">Atlantic Avenue<br />
	$260</td>
	<td style="border-bottom:solid 12px Yellow">Ventnor Avenue<br />
	$260</td>
	<td style="">Water Works<br />
	$150</td>
	<td style="border-bottom:solid 12px Yellow">Marvin Gardens<br />
	$280</td>
	<td>Go To Jail
	<div style="width:60px;height:0px;"></div>
	</td>
	</tr>
	<tr>
	<td style="height:34px;border-right:solid 12px Orange">New York Avenue<br />
	$200</td>
	<td rowspan="9" colspan="9" align="center">
	<table cellpadding="0" cellspacing="2" style="border:solid 2px #ff0000;">
	<tr>
	<td>
	<div style="background-color:#ff0000;color:#ffffff;font:normal 22px verdana,arial;letter-spacing:+5px;padding:1px 12px 1px 12px;">MONOPOLY</div>
	</td>
	</tr>
	</table>
	</td>
	<td style="border-left:solid 12px Green">Pacific Avenue<br />
	$300</td>
	</tr>
	<tr>
	<td style="height:34px;border-right:solid 12px Orange">Tennessee Avenue<br />
	$180</td>
	<td style="border-left:solid 12px Green">North Carolina Avenue<br />
	$300</td>
	</tr>
	<tr>
	<td style="height:34px;">Community Chest</td>
	<td style="">Community Chest</td>
	</tr>
	<tr>
	<td style="height:34px;border-right:solid 12px Orange">St. James Place<br />
	$180</td>
	<td style="border-left:solid 12px Green">Pennsylvania Avenue<br />
	$320</td>
	</tr>
	<tr>
	<td style="height:34px;">Pennsylvania Railroad<br />
	$200</td>
	<td style="">Short Line<br />
	$200</td>
	</tr>
	<tr>
	<td style="height:34px;border-right:solid 12px DarkOrchid">Virginia Avenue<br />
	$160</td>
	<td style="">Chance</td>
	</tr>
	<tr>
	<td style="height:34px;border-right:solid 12px DarkOrchid">States Avenue<br />
	$140</td>
	<td style="border-left:solid 12px Blue">Park Place<br />
	$350</td>
	</tr>
	<tr>
	<td style="height:34px;">Electric Company<br />
	$150</td>
	<td style="">Luxury Tax<br />
	(pay $100)</td>
	</tr>
	<tr>
	<td style="height:34px;border-right:solid 12px DarkOrchid">St. Charles Place<br />
	$140</td>
	<td style="border-left:solid 12px Blue">Boardwalk<br />
	$400</td>
	</tr>
	<tr>
	<td style="height:60px;">In Jail/Just Visiting</td>
	<td style="border-top:solid 12px SkyBlue">Connecticut Avenue<br />
	$120</td>
	<td style="border-top:solid 12px SkyBlue">Vermont Avenue<br />
	$100</td>
	<td style="">Chance</td>
	<td style="border-top:solid 12px SkyBlue">Oriental Avenue<br />
	$100</td>
	<td style="">Reading Railroad<br />
	$200</td>
	<td style="">Income Tax<br />
	(pay $200)</td>
	<td style="border-top:solid 12px SaddleBrown">Baltic Avenue<br />
	$60</td>
	<td style="">Community Chest</td>
	<td style="border-top:solid 12px SaddleBrown">Mediter-ranean Avenue<br />
	$60</td>
	<td><b>Go</b><br />
	(collect $200)<br />
	<a href="/wiki/File:Monopoly_Go_Arrow.png" class="image"><img alt="Monopoly Go Arrow.png" src="//upload.wikimedia.org/wikipedia/commons/thumb/9/96/Monopoly_Go_Arrow.png/44px-Monopoly_Go_Arrow.png" width="44" height="8" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/9/96/Monopoly_Go_Arrow.png/66px-Monopoly_Go_Arrow.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/9/96/Monopoly_Go_Arrow.png/88px-Monopoly_Go_Arrow.png 2x" /></a></td>
	</tr>
	</table>"""
	r +=	"""</body>\n
	</html>
	"""
	return r
def scrabble():
	r  = """<html>\n"""
	r += """\t<head>\n"""
	r += """<link rel='stylesheet' type='text/css' href='/css/monopoly.css'>"""
	r += css()
	r += """\t</head>\n"""
	r += """\t<body>\n"""
	r += menu()
	r += 'Scrabble'
	r += '<table border="3" >'
	r += '<tr>'
	r += '<td width="20" height="20" bgcolor="red" >3W</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">2L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="red" >3W</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">2L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="red" >3W</td>'
	r += '</tr>'
	
	r += '<tr>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="purple" >2W</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">3L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">3L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="purple" >2W</td>'
	r += '<td width="20" height="20" ></td>'
	r += '</tr>'
	
	r += '<tr>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="purple" >2W</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="light blue">2L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="light blue">2L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="purple" >2W</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '</tr>'
	
	r += '<tr>'
	r += '<td width="20" height="20" bgcolor="light blue">2L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="purple" >2W</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="light blue">2L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="purple" >2W</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="light blue">2L</td>'
	r += '</tr>'
	
	r += '<tr>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="purple" >2W</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="purple" >2W</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '</tr>'
	
	r += '<tr>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">3L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">3L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">3L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">3L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '</tr>'
	
	r += '<tr>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">2L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">2L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">2L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">2L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '</tr>'

	r += '<tr>'
	r += '<td width="20" height="20" bgcolor="red">3W</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">2L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="gold">ST</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">2L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="red">3W</td>'
	r += '</tr>'
	
	r += '<tr>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">2L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">2L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">2L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">2L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '</tr>'	
	
	r += '<tr>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">3L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">3L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">3L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">3L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '</tr>'
	
	r += '<tr>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="purple" >2W</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="purple" >2W</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '</tr>'
	
	r += '<tr>'
	r += '<td width="20" height="20" bgcolor="light blue">2L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="purple" >2W</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="light blue">2L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="purple" >2W</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="light blue">2L</td>'
	r += '</tr>'
	
	r += '<tr>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="purple" >2W</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="light blue">2L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="light blue">2L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="purple" >2W</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '</tr>'
	
	r += '<tr>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="purple" >2W</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">3L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">3L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="purple" >2W</td>'
	r += '<td width="20" height="20" ></td>'
	r += '</tr>'
	
	r += '<tr>'
	r += '<td width="20" height="20" bgcolor="red" >3W</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">2L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="red" >3W</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="blue">2L</td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" bgcolor="red" >3W</td>'
	r += '</tr>'
	r += '</table>'
	
	r += '<table border="3" >'
	r += '<tr>'
	r += '<td width="120" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '<td width="20" height="20" ></td>'
	r += '</tr>'
	r += '</table>'
	

	
	r += """\t</body>\n"""
	r += """</html>\n"""
	return r