Example #1
0
 *  (at your option) any later version.
 *
 ******************************************************************************/
// Include the function library
require "Include/Config.php";
require "Include/Functions.php";
// Get the person ID from the querystring
$iPersonID = FilterInput($_GET["PersonID"], 'int');
$iRemoveVO = FilterInput($_GET["RemoveVO"], 'int');
if (isset($_POST["GroupAssign"]) && $_SESSION['bManageGroups']) {
    $iGroupID = FilterInput($_POST["GroupAssignID"], 'int');
    AddToGroup($iPersonID, $iGroupID, 0);
}
if (isset($_POST["VolunteerOpportunityAssign"]) && $_SESSION['bEditRecords']) {
    $iVolunteerOpportunityID = FilterInput($_POST["VolunteerOpportunityID"], 'int');
    AddVolunteerOpportunity($iPersonID, $iVolunteerOpportunityID);
}
// Service remove-volunteer-opportunity (these links set RemoveVO)
if ($iRemoveVO > 0 && $_SESSION['bEditRecords']) {
    RemoveVolunteerOpportunity($iPersonID, $iRemoveVO);
}
$dSQL = "SELECT per_ID FROM person_per order by per_LastName, per_FirstName";
$dResults = RunQuery($dSQL);
$last_id = 0;
$next_id = 0;
$capture_next = 0;
while ($myrow = mysql_fetch_row($dResults)) {
    $pid = $myrow[0];
    if ($capture_next == 1) {
        $next_id = $pid;
        break;
Example #2
0
require "Include/Functions.php";
// Get the person ID from the querystring
$iPersonID = FilterInput($_GET["PersonID"], 'int');
$iRemoveVO = 0;
if (array_key_exists("RemoveVO", $_GET)) {
    $iRemoveVO = FilterInput($_GET["RemoveVO"], 'int');
}
if (isset($_POST["GroupAssign"]) && $_SESSION['bManageGroups']) {
    $iGroupID = FilterInput($_POST["GroupAssignID"], 'int');
    AddToGroup($iPersonID, $iGroupID, 0);
}
if (isset($_POST["VolunteerOpportunityAssign"]) && $_SESSION['bEditRecords']) {
    $volIDs = $_POST["VolunteerOpportunityIDs"];
    if ($volIDs) {
        foreach ($volIDs as $volID) {
            AddVolunteerOpportunity($iPersonID, $volID);
        }
    }
}
// Service remove-volunteer-opportunity (these links set RemoveVO)
if ($iRemoveVO > 0 && $_SESSION['bEditRecords']) {
    RemoveVolunteerOpportunity($iPersonID, $iRemoveVO);
}
$dSQL = "SELECT per_ID FROM person_per order by per_LastName, per_FirstName";
$dResults = RunQuery($dSQL);
$last_id = 0;
$next_id = 0;
$capture_next = 0;
while ($myrow = mysql_fetch_row($dResults)) {
    $pid = $myrow[0];
    if ($capture_next == 1) {