Parteiboerse

This commit is contained in:
Enno Rehling 2002-03-04 10:34:05 +00:00
parent f872b2f950
commit 5bba58f875
2 changed files with 11 additions and 9 deletions

View File

@ -48,20 +48,20 @@ def ShowPage():
lastturn, game = cursor.fetchone()
maxturn[game] = lastturn
output='<p>Um eine der folgenden Parteien zu übernehmen, musst du zuerst ein <a href="register.php">Spielerkonto anlegen</a>. Wenn Du eines hast, markiere die Partei, die Du übernehmen willst, und trage Kundennummer und Kundenpasswort ein.'
query = "SELECT g.id, g.name, s.faction, s.lastturn, s.id, s.race, s.info from games g, subscriptions s where s.game=g.id and s.status='CANCELLED'"
query = "SELECT g.id, g.name, s.faction, s.lastturn, s.id, r.name, s.info from games g, subscriptions s, races r where s.game=g.id and s.race=r.race and s.status='CANCELLED'"
results = cursor.execute(query)
output=output+'<form action="'+scripturl+'" method=post><div align=center><table bgcolor="#e0e0e0" width=80% border>\n'
output=output+'<div align=center><form action="'+scripturl+'" method=post><table bgcolor="#e0e0e0" width="80%" border>\n'
output=output+'<tr><th>Rasse</th><th>Spiel</th><th>NMRs</th><th>Informationen</th><th>Markieren</th></tr>'
while results>0:
results=results-1
gid, game, faction, lastturn, sid, race, info = cursor.fetchone()
if info==None:
info='Keine Informationen'
output=output+'<tr><td>'+ race + '</td><td><nobr>'+ game + '</nobr></td><td>' + str(int(maxturn[gid]-lastturn)) + '</td><td>' + info + '</td>'
output=output+'<tr><td>'+ race + '</td><td>'+ game + '</td><td>' + str(int(maxturn[gid]-lastturn)) + '</td><td>' + info + '</td>'
output=output+'<td><input type="checkbox" name="accept_' + str(int(sid)) + '"> übernehmen</td></tr>\n'
output=output+'</table>'
output=output+'<p><table><tr><td>Kundennummer:</td><td><input name="user" size="4"></tr><tr><td>Passwort:</td><td><input name="pass" type="password" width="40"></td>'
output=output+'<p><table><tr><td>Kundennummer:</td><td><input name="user" size="4"></tr><tr><td>Passwort:</td><td><input name="pass" type="password" size="40"></td>'
output=output+'<tr><td><input name="save" type="submit" value="Abschicken"></td></tr></table>'
output=output+'</form></div>'
Display(output)

View File

@ -1,6 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<base href="http://www.vinyambar.de">
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
@ -15,7 +16,7 @@ content="text/html; charset=iso-8859-1">
<body>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr width="100%">
<tr>
<td bgcolor="#404080" align="left" valign="top">
<img src="images/logo.png" alt="ERESSEA - Weltreiche und Legenden" width="500" height="91">
</td>
@ -28,13 +29,14 @@ content="text/html; charset=iso-8859-1">
<h1 align="center"><!-- INSERT TITLE HERE --></h1>
<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="150" valign="top">
<div class="navheader">Vinyambar</div>
<div class="navindex"><a href="http://www.vinyambar.de/">Home</a></div>
<div class="navindex"><a href="http://www.vinyambar.de/register.php">Anmeldung</a></div>
<div class="navindex"><a href="http://www.vinyambar.de/accounts.shtml">Mein Account</a></div>
<div class="navindex"><a href="standin.html">Parteibörse</a></div>
<div class="navindex"><a href="http://eressea.upb.de/rules/">Regeln</a></div>
<div class="navindex"><a href="">Downloads</a></div>
<div class="navindex"><a href="http://eressea.upb.de/magellan/"><img src="images/extlink.gif" border="0" alt=""> Magellan GUI</a></div>
@ -50,8 +52,8 @@ content="text/html; charset=iso-8859-1">
</td>
<td width="150" valign="top">
<div align="center">--AO Partnerprogramm--<br>
<a href="https://register.funcom.com/?partner=1000138917"><img src="images/athrox.png" align="center" border="0" alt="Download Anarchy Online"></a>
<div align="center">
<a href="https://register.funcom.com/?partner=1000138917"><img src="images/athrox.png" align="top" border="0" alt="Download Anarchy Online"></a>
<br clear=all>
<a href="http://www.anarchy-online.com/content/downloads/tryout/"></a><br>
--AO Partnerprogramm--</div>