Recent Challenge Matches
//hard coding courttype id for now
$challengeMatchArray = getDoublesChallengeMatches( get_siteid(), $courttypeid, 10 );
if( count($challengeMatchArray) > 0){ ?>
| Date |
Challenger |
Challengee |
Winner |
for($i=0; $i < count($challengeMatchArray); ++$i){
$challengeMatch = $challengeMatchArray[$i];
$scored = $challengeMatch['score'];
$challenger = new clubpro_obj;
$challenger->fullname = $challengeMatch['challenger_team'];
$challenger->id = $challengeMatch['challenger_team_id'];
$challengee = new clubpro_obj;
$challengee->fullname = $challengeMatch['challengee_team'];
$challengee->id = $challengeMatch['challengee_team_id'];
$userid = get_userid();
$inreservation = in_array($userid,$challengeMatch['ids']) ;
//don't include timestamp
$challengeDate = explode(" ",$challengeMatch['date']);
printLadderEventRow($challengeMatch['id'], $challenger, $challengee, $challengeDate[0], $scored, $inreservation, false);
} ?>
note:
mouse over winner's name to see the score
} else{ ?>
No challenge matches found.
} ?>