Source for file new-resolve-match.php

Documentation is available at new-resolve-match.php

  1. <?php
  2. /**
  3. * Update captain's information in the event of a match.
  4. *
  5. * - Submtted to by {@link new-team-matches.php}
  6. * - Redirects to {@link new-team-contact.php}
  7. *
  8. * This file is part of CompInaBox.
  9. * @copyright Copyright 2001-2005. Eric D. Nielsen, All rights reserverd.
  10. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  11. * @author Eric D. Nielsen <nielsene@alum.mit.edu>
  12. *
  13. * @package WebPages
  14. * @subpackage Team
  15. */
  16. $authenticationRequired=TRUE;
  17. /** Load the master include */
  18. ("include_others.inc");
  19.  
  20. $selectedMatch = $_POST["personID"];
  21.  
  22. if ($selectedMatch!="-1" && !preg_match("|[1-9][0-9]*|",$selectedMatch))
  23. {
  24. localRedirect("Location: {$CIB_BASE_URL}team/new-team-matches.php");
  25. exit;
  26. }
  27.  
  28. $_SESSION["SelectedMatch"] = $selectedMatch;
  29. $captainTitle = $_SESSION["formVars"]["captainTitle"];
  30. $phoneChoice = $_SESSION["formVars"]["phoneChoice"];
  31. $emailChoice = $_SESSION["formVars"]["emailChoice"];
  32. $addressChoice = $_SESSION["formVars"]["addressChoice"];
  33.  
  34.  
  35. $details = $db->getPersonIdDetails($selectedMatch);
  36. if ($phoneChoice=="$captainTitle's")
  37. $_SESSION["formVars"]["captainPhone"]=$details["Phone"];
  38. if ($emailChoice=="$captainTitle's")
  39. $_SESSION["formVars"]["captainEmail"]=$details["Email"];
  40. if ($addressChoice=="$captainTitle's")
  41. $_SESSION["formVars"]["captainAddress"]=
  42. array("Mailing Name"=>$details["First Name"]. " " . $details["Last Name"],
  43. "Line 1"=>$details["Line 1"],
  44. "Line 2"=>$details["Line 2"],
  45. "City"=>$details["City"],
  46. "State"=>$details["State"],
  47. "Zip"=>$details["Zip"]);
  48. localRedirect("Location: {$CIB_BASE_URL}team/new-team-contact.php");
  49. exit();
  50. ?>

Documentation generated on Tue, 25 Apr 2006 13:05:33 -0400 by phpDocumentor 1.3.0RC3