</td> </tr> """) if not page.id is None: page.write(""" <tr> <th colspan=3 bgcolor=yellow class=bodycopy><font color=red> <font size=3>%s</font><br> Player #%d Status: %s Time Zone: %s </th> </tr> <tr> <td colspan=3 height=5><!--SPACER--></td> </tr> """ % ( player.get('name') or '???', page.id, player.get('status') or 'ACTIVE', player.get('zone') or '???' )) if centerTitle or rightTitle: page.write(""" <tr valign=top bgcolor="#CCCCCC"> <td width=20% align=center class="grey"><b>DPjudge Resources</b></td> """) width = (centerTitle and rightTitle) and '40%' or '80%' for title in (centerTitle, rightTitle): if title: page.write(""" <td width=%s align=center class="grey"%s><b>%s</b></td> """ % (width, colspan and (' colspan=%d' % colspan) or '', title)) page.write(""" <tr valign=top bgcolor="#CCCCCC"> </tr> <tr valign=top> <td align=center valign=top class=bodycopy%s> """ % (rowspan and (' rowspan=%d' % rowspan) or '')) leftside() page.write(""" </td> <td align=center class=bodycopy> """) # -------------------------------------------------------------------------- def leftside(): dpjudgeURL = getDPjudgeURL() page.write(""" <table border=0 cellpadding=10 cellspacing=0> """) if page.password: page.write(""" <script> function setPage(x) { document.dppdPage.page.value = x; document.dppdPage.submit(); } </script> <form name=dppdPage method=post> """) page.apprise('page', '') page.reprise(['dppd', 'dpjudge', 'id', 'password']) page.write(""" <tr nowrap> <td> """) if page.id is None: page.write(""" <input type="button" value="All Games" onclick=setPage('Game') class="inputSubmit2"><br> <img src="http://uk.diplom.org/images/spacer.gif" height=2><br> <input type="button" value="All Results" onclick=setPage('Result') class="inputSubmit2"><br> <img src="http://uk.diplom.org/images/spacer.gif" height=2><br> <hr> <img src="http://uk.diplom.org/images/spacer.gif" height=2><br> <input type="button" value="Find Any Game" onclick=setPage('Search') class="inputSubmit2"><br> <img src="http://uk.diplom.org/images/spacer.gif" height=2><br> <input type="button" value="Find Any Player" onclick=setPage('Player') class="inputSubmit2"><br> """) else: page.write(""" <input type="button" value="My Games" onclick=setPage('Game') class="inputSubmit2"><br> <img src="http://uk.diplom.org/images/spacer.gif" height=2><br> <input type="button" value="My Results" onclick=setPage('Result') class="inputSubmit2"><br> <img src="http://uk.diplom.org/images/spacer.gif" height=2><br> <input type="button" value="My Addresses" onclick=setPage('Email') class="inputSubmit2"><br> <img src="http://uk.diplom.org/images/spacer.gif" height=2><br> <input type="button" value="My Password" onclick=setPage('Password') class="inputSubmit2"><br> <img src="http://uk.diplom.org/images/spacer.gif" height=2><br> <input type="button" value="My Time Zone" onclick=setPage('Timezone') class="inputSubmit2"><br> <img src="http://uk.diplom.org/images/spacer.gif" height=2><br> <input type="button" value="Start New Game" onclick=setPage('Create') class="inputSubmit2"><br> """) # -------------------------------------- # Removing, since there's no Groups page # and I have no clue what the purpose is # -------------------------------------- if 0: page.dppd.db.execute(""" SELECT Count(*) group_count FROM Groups t1 INNER JOIN Members t2 ON t1.id = t2.group_id INNER JOIN GroupStatus t3 ON t1.curr_status = t3.id INNER JOIN MemberStatus t4 ON t2.curr_status = t4.id WHERE t3.status_id <> 2 AND t4.status_id <> 2 AND t2.user_id = %s """, [page.id]) groups = page.dppd.db.fetchone()['group_count'] if groups: page.write(""" <P><HR><input type=button value="My Groups" onclick=setPage('Groups') class=inputSubmit2> """) page.write(""" <!-- <P class=bodycopy align=center> Someday, a couple of buttons called<br>"Search Games"<br>and<br>"Search Players"<br> will be here. <img src="http://uk.diplom.org/images/spacer.gif" height=2><br> <input type="button" value="Search Games" onclick=setPage('Search') class="inputSubmit2"> <img src="http://uk.diplom.org/images/spacer.gif" height=2><br> <input type="button" value="Search Players" onclick=setPage('Player') class="inputSubmit2"> --> <P> <HR> </td> </tr> </form> """) page.write(""" <tr> <td nowrap align=center> """) page.include('documents') page.write(""" </td> </tr> </table> """) # -------------------------------------------------------------------------- -->
Please e-mail the judgekeeper and report how you got this error. Thank you.