// This page will handle both the single and multi-occurrence views as defined in the PSUF // specification. If one ixoccurrence has been passed, we will display the single view. // If more than one ixoccurrence has been passed, we will display the multi-occurrence view. define("PAGE_SIZE", 10); $color1 = "E7E7E7"; $color2 = "6DB478"; $color3 = "B4B4B4"; $color4 = "FFFFFF"; $color5 = "C3C3C3"; $color6 = "6A6A6A"; $color7 = "CECECE"; global $HTTP_POST_VARS, $INCLUDE_PATH, $PUBLIC_IMAGE_PATH, $PUBLIC_WEB_ROOT, $objPage; require_once("$INCLUDE_PATH/views/public/ProjectView.php"); $ixActivity = ($HTTP_POST_VARS['ixActivity']? $HTTP_POST_VARS['ixActivity']: $_GET['ixActivity']); $objProjectFactory = new ProjectFactory(); $objProject = $objProjectFactory->get($ixActivity); $objProjectView = new ProjectView($objProject); $objAccess = new Access(); $objCurrentUser = Access::getCurrentUser(); $isLoggedIn = is_object($objCurrentUser); $arRestrictionReasons = array(); // objSearch is populated in viewProject.php $objSearch = new SearchResults(); $iOffset = ($HTTP_POST_VARS["_Offset"] ? $HTTP_POST_VARS["_Offset"] : 0); $arPage = $objSearch->getPage($iOffset, PAGE_SIZE); $iLast = ($iOffset + PAGE_SIZE > $objSearch->length() ? $objSearch->length() : $iOffset + PAGE_SIZE); $iFirst = ($iLast == 0 ? 0 : $iOffset + 1); $sPaging = $iFirst . " - " . ($iLast) . " of " . $objSearch->length(); $sType = ($objProject->getProperty('Type') == 'C' ? 'Course' : 'Project'); $bReferral = $objProject->getProperty('referral'); $sReferralType = ($bReferral == 'Y')?$objProject->getProperty('referraltype'):''; $bFullSignup = $objProject->getProperty('fullsignup'); $objSlug = SlugManagerFactory::get('Referral Warning Text'); if(is_object($objSlug)) { $sReferralWarningText = $objSlug->printSlug(); } $objSlug = SlugManagerFactory::get('Email-Only Signup Explanation'); if(is_object($objSlug)) { $sEmailOnlySignupExplanation = $objSlug->printSlug(); } $bIsSpecialEvent = ($objProject->getProperty("specialevent")) ? $objProject->getProperty("specialevent") : false ; // $bRoleActive = true; if($bIsSpecialEvent){ $sSEQstring = '&ixSE=' . $objProject->getProperty("specialevent"); $oSpecialEvent = SpecialEventFactory::get($objProject->getProperty("specialevent")); // $bRoleActive = is_object($objCurrentUser) ? $oSpecialEvent->getRoleStatus($objCurrentUser) : false; } $colOccurrence = OccurrenceFactory::listOccurrences($arPage); $bIsMulti = ($colOccurrence->length() != 1)?true:false; ?>
| The e-mail has been sent. Please check your e-mail in a few minutes and click on the activation link. | ||
| Multiple project sessions exist on the date you selected. Please select a specific project time below. | ||
|
||
| = $sReferralWarningText ?> | ||
| = $sEmailOnlySignupExplanation ?> | ||
Agency: = $objProjectView->showField('agency'); ?> Description: $desc = $objProject->getProperty('desc'); switch($objProject->getProperty('descriptionMarkupType')) { case 'P': //plain print show_long_text(htmlentities($desc)); break; case 'R': //raw print $desc; break; case 'S': //some default: print show_long_text($desc); break; } ?> if($sRestrictions = $objProjectView->showField('restrictions')) { ?>This project is approved for volunteers with the following restrictions: = $sRestrictions ?> } ?> /* The impactarea field below shows a comma-joined list of parented impact areas (primary and secondary) */ ?>Impact Areas: = $objProjectView->showField('allimpactareas'); ?> Interests: = $objProjectView->showField('interests'); ?> Skills: = $objProjectView->showField('skills'); ?> getIterator(); while ($objIter->hasNext()) { $objOccurrence =& $objIter->getNext(); $objOccurrence->getLocation(); $occLocation = $objOccurrence->location->toString(' '); echo "Location: {$occLocation} "; } if ($objProject->getProperty('requestaccommodations') == 'Y') { echo 'Accommodations for volunteers with disabilities: '; echo 'You will have the opportunity to request accommodations after you sign up for this project. '; } } ?> = $objProjectView->showField('documents'); ?> |
||
| = $sEmailonlyText ?> |
|
|||||
|
You are selecting a project for a member of your team. Instead of selecting a
project, you may also simply return to the team management page.
| There are no upcoming dates for this project. More dates may be added soon. | '; } ?>||||