Exemple #1
0
$type = $_POST['type'];
$data = $_POST['data'];
if ($type == "loadStates") {
    loadStates($data);
}
if ($type == "loadCounties") {
    loadCounties($data);
}
if ($type == "registerUser") {
    registerUser($data);
}
if ($type == "login") {
    login($data);
}
if ($type == "loadOrganization") {
    loadOrganization();
}
if ($type == "saveCoachOrganization") {
    saveCoachOrganization($data);
}
if ($type == "loadCoachOrganization") {
    loadCoachOrganization($data);
}
if ($type == "saveChallenge") {
    saveChallenge($data);
}
if ($type == "saveChallengeText") {
    saveChallengeText($data);
}
if ($type == "loadLeague") {
    loadLeague($data);
Exemple #2
0
     $_SESSION["currentpage"] = "Olsubjects";
     $arrScriptFiles = array("script", "Olsubjects.js", "manage_Olsubjects.js", "AutoComplete.js", "baseConnection.js", "msgPopup.js", "formPopup.js", "manage_Cookie.js");
     $arrStyleFiles = array("style", "styles.css", "Olsubjects.css");
     array_push($arrFilesForLoad, $arrStyleFiles);
     array_push($arrFilesForLoad, $arrScriptFiles);
     loadHeader($arrFilesForLoad);
     loadOlsubjects($_GET);
     break;
 case "Organization":
     $_SESSION["currentpage"] = "Organization";
     $arrScriptFiles = array("script", "Organization.js", "manage_Organization.js", "AutoComplete.js", "baseConnection.js", "msgPopup.js", "formPopup.js", "manage_Cookie.js");
     $arrStyleFiles = array("style", "styles.css", "Organization.css");
     array_push($arrFilesForLoad, $arrStyleFiles);
     array_push($arrFilesForLoad, $arrScriptFiles);
     loadHeader($arrFilesForLoad);
     loadOrganization($_GET);
     break;
 case "Organization_subtype":
     $_SESSION["currentpage"] = "Organization_subtype";
     $arrScriptFiles = array("script", "Organization_subtype.js", "manage_Organization_subtype.js", "AutoComplete.js", "baseConnection.js", "msgPopup.js", "formPopup.js", "manage_Cookie.js");
     $arrStyleFiles = array("style", "styles.css", "Organization_subtype.css");
     array_push($arrFilesForLoad, $arrStyleFiles);
     array_push($arrFilesForLoad, $arrScriptFiles);
     loadHeader($arrFilesForLoad);
     loadOrganization_subtype($_GET);
     break;
 case "Organizationtype":
     $_SESSION["currentpage"] = "Organizationtype";
     $arrScriptFiles = array("script", "Organizationtype.js", "manage_Organizationtype.js", "AutoComplete.js", "baseConnection.js", "msgPopup.js", "formPopup.js", "manage_Cookie.js");
     $arrStyleFiles = array("style", "styles.css", "Organizationtype.css");
     array_push($arrFilesForLoad, $arrStyleFiles);