Documentation is available at new-resolve-match.php
- <?php
- /**
- * Update captain's information in the event of a match.
- *
- * - Submtted to by {@link new-team-matches.php}
- * - Redirects to {@link new-team-contact.php}
- *
- * This file is part of CompInaBox.
- * @copyright Copyright 2001-2005. Eric D. Nielsen, All rights reserverd.
- * @license http://opensource.org/licenses/gpl-license.php GNU Public License
- * @author Eric D. Nielsen <nielsene@alum.mit.edu>
- *
- * @package WebPages
- * @subpackage Team
- */
- $authenticationRequired=TRUE;
- /** Load the master include */
- ("include_others.inc");
- $selectedMatch = $_POST["personID"];
- if ($selectedMatch!="-1" && !preg_match("|[1-9][0-9]*|",$selectedMatch))
- {
- localRedirect("Location: {$CIB_BASE_URL}team/new-team-matches.php");
- exit;
- }
- $_SESSION["SelectedMatch"] = $selectedMatch;
- $captainTitle = $_SESSION["formVars"]["captainTitle"];
- $phoneChoice = $_SESSION["formVars"]["phoneChoice"];
- $emailChoice = $_SESSION["formVars"]["emailChoice"];
- $addressChoice = $_SESSION["formVars"]["addressChoice"];
- $details = $db->getPersonIdDetails($selectedMatch);
- if ($phoneChoice=="$captainTitle's")
- $_SESSION["formVars"]["captainPhone"]=$details["Phone"];
- if ($emailChoice=="$captainTitle's")
- $_SESSION["formVars"]["captainEmail"]=$details["Email"];
- if ($addressChoice=="$captainTitle's")
- $_SESSION["formVars"]["captainAddress"]=
- array("Mailing Name"=>$details["First Name"]. " " . $details["Last Name"],
- "Line 1"=>$details["Line 1"],
- "Line 2"=>$details["Line 2"],
- "City"=>$details["City"],
- "State"=>$details["State"],
- "Zip"=>$details["Zip"]);
- localRedirect("Location: {$CIB_BASE_URL}team/new-team-contact.php");
- exit();
- ?>
Documentation generated on Tue, 25 Apr 2006 13:05:33 -0400 by phpDocumentor 1.3.0RC3