<%@ page language="java" %> <%@ page import="com.xoomers.util.*" %> <%@ page import="com.xoomers.db.*" %> <% Boolean auth=(Boolean)request.getSession(true).getAttribute("authenticated"); if (auth==null ||!(auth.booleanValue())) { %> <% } %> <%! int pid = 0; %> <%! int togid = 0; %> <%! int fromgid = 0; %> <%! int game = 0; %> <%! boolean challenge = false; %> <%! DB db = null; %> <%! Table props = null; %> <%! Table temp = null; %> <%! String challenge_group = ""; %> <%! String challenge_game = ""; %> <% int uid = ((Integer)request.getSession(true).getAttribute("uid")).intValue(); int gid = ((Integer)request.getSession(true).getAttribute("gid")).intValue(); if( request.getParameter("pid") != null ) pid = Integer.parseInt(request.getParameter("pid")); if( request.getParameter("challenge") != null ) challenge = true; try { db = DB.openConnection(); if( challenge ) { props = db.query("select fromgid,togid,game from contests "+ "where type = 2 and id ="+pid); } else { props = db.query("select fromgid,togid,game from contests "+ "where type =1 and id ="+pid); } props.absolute(0); if( challenge ) { togid = Integer.parseInt(props.getString(0)); fromgid = Integer.parseInt(props.getString(1)); } else { fromgid = Integer.parseInt(props.getString(0)); togid = Integer.parseInt(props.getString(1)); } game = Integer.parseInt(props.getString(2)); } catch( Exception e ) { System.out.println(e); e.printStackTrace(); } try { db = DB.openConnection(); temp = db.query("select name from games where id = "+game); temp.absolute(0); challenge_game = temp.getString(0); } catch( Exception e ) { System.out.println(e); e.printStackTrace(); } try { db = DB.openConnection(); temp = db.query("select gname from groups where gid = "+togid); temp.absolute(0); challenge_group = temp.getString(0); } catch( Exception e ) { System.out.println(e); e.printStackTrace(); } %> Post Proposal

Vote on this challenge...

One of the team members wants to challenge team <%= challenge_group %> to a game of <%= challenge_game %>. How many points do you want to put into the challege? (If you are not interested in the challenge, just enter 0).

> > > > > >
Points: