session_start();
header("Cache-control: private"); //IE 6 Fix
error_reporting(E_ALL ^ E_NOTICE);
$GCID = $_GET['GCID'];
$_SESSION['McMember_GCID'] = "";
$_SESSION['McMember_GCID'] = $GCID;
$theSelectedSort = $_GET['GSO'];
$_SESSION['McMember_GSO'] = "";
// echo $theSelectedSort;
function GetSortOrder($theSelectedColumn){
switch ( $theSelectedColumn )
{
case "1":
// echo "test case 1";
$GSO = " ORDER BY Name";
// echo $MSO;
break;
case "2":
$GSO = " ORDER BY Category";
break;
case "3":
$GSO = " ORDER BY Function";
break;
case "4A":
$GSO = " ORDER BY Status";
break;
case "4B":
$GSO = " ORDER BY Status DESC";
break;
default:
$GSO = " ORDER BY Name";
break;
}
return $GSO;
}
if ($theSelectedSort){
$GSOFinal = GetSortOrder($theSelectedSort);
$_SESSION['McMember_GSO'] = $GSOFinal;
}
else{
$GSOFinal = " ORDER BY Name";
$_SESSION['McMember_GSO'] = $GSOFinal;
}
if($_SESSION['McMember_OrgId']){
// everything is alright
}else{
// something has gone wrong, the org id cant be located
$_SESSION['McMember_FailureReason'] = "UnableToLocateOrgId";
header("location: ../Login.php");
}
?>
if (!empty($_SESSION['ValidateMessage'])){
$theDisplayMessage = $_SESSION['ValidateMessage'];
$_SESSION['ValidateMessage'] = "";
print "
";
print "
";
print "";
print"";
print "".$theDisplayMessage."";
print " | ";
print "
";
print "
";
}
Else{
switch($GCID){
case 2 :
include "EditGroups.php";
break;
case 22 :
include "GroupMembers.php";
break;
case 3 :
include "SearchGroups.php";
break;
default:
include "EditGroups.php";
break;
} // END SWITCH
} // END ELSE
?>
$_SESSION['ValidateProblem'] = ""; ?>