Пример #1
0
unset($_SESSION['alreadydone']);
unset($_SESSION['nominee']);
$teamid = $_POST['myTeamName'];
$_SESSION['TeamMembers'] = getAllTeamsMembers($teamid);
$_SESSION['teamnominee'] = new stdClass();
$_SESSION['teamnominee']->teamID = $teamid;
?>

<div id="content" class="large-8 large-push-2 columns">
	<form action="nominate-team-submit.php" method="post" name="nominateColleague2" id="nominateColleague2">
		<input type="hidden" name="formName" value="nominateColleague2">
		<div class="title">
			<div class="inlineDiv clickAble" data-type="gourl" data-url="index.php">Nominate</div> <i class="icon-icons_thickrightarrow smalli"></i>
			<span class="subTitle clickAble" data-type="goback">Team</span>
			<i class="icon-icons_thickrightarrow smalli"></i> <span class="subSubTitle"><?php 
echo getmyTeamName($_SESSION['teamnominee']->teamID);
?>
</span>
		</div>
		<div class="row selectBelief">
			Please select a Belief <span class="required">*</span>
			<i class="icon-icons_i clickAble" data-type="alert" data-url="alert-belief.php"></i>
		</div>
		<div id="beliefs" class="row">
			<div class="medium-4 columns leftnp">
				<div class="callout panel white textCenter clickAble <?php 
if ($_SESSION['teamnominee']->BeliefID == 'Be Brave') {
    echo "selectedecard";
}
?>
" id="Be Brave" data-type="select" data-id="beliefs">
Пример #2
0
             $sendEmail->Content = "<p>Dear " . $AppEmpNum->AppFname . "</p>\n\t\t\t\t\t\t\t\t\t\t\t<p>" . $_SESSION['user']->Fname . " has nominated the following colleagues to receive 'A Little Extra' as part of an Our Heroes Extraordinary People, Extraordinary Effort Team Award.</p>\n\t\t\t\t\t\t\t\t\t\t\t<p>Team Name: " . getmyTeamName($_SESSION['teamnominee']->teamID) . "<br>\n\t\t\t\t\t\t\t\t\t\t\t" . $teamEmailList . ".</p>\n\t\t\t\t\t\t\t\t\t\t\t<p>" . $_SESSION['user']->Fname . " has given the following reason for the nomination:</p>\n\t\t\t\t\t\t\t\t\t\t\t<p>" . $_SESSION['teamnominee']->Reason . "</p>\n\t\t\t\t\t\t\t\t\t\t\t<p>As the approver for the first-named colleague in this team, you are asked to review the nomination and either approve or decline the award for all nominated colleagues. \n\t\t\t\t\t\t\t\t\t\t\tYou may wish to discuss the award with the senior managers of the other colleagues nominated before you make your decision.</p>\n\t\t\t\t\t\t\t\t\t\t\t<p>To view the details of the proposed nomination and to approve or decline the award, please login to the  <a href='" . HTTP_PATH . "'>Our Heroes Portal</a>.</p>\n\t\t\t\t\t\t\t\t\t\t\t<p>If no decision is made within the next 30 days, the nomination will automatically be approved.</p>\n\t\t\t\t\t\t\t\t\t\t\t<p>If you need a hand to access the Our Heroes Portal or approve the award, our recognition partners, Xexec, are happy to help 0845 230 9393</p>\n\t\t\t\t\t\t\t\t\t\t\t<p>Thank you</p>";
             $email = sendEmail($sendEmail, 'T' . $id);
             //echo $sendEmail->Content;
         } else {
             $email = "fail";
         }
     }
     $_SESSION['alreadydone'] = 'yes';
 } else {
     if ($AppEmpNum->AppEmpNum == $_SESSION['user']->EmpNum) {
         // email to approver
         if (filter_var($_SESSION['user']->Eaddress, FILTER_VALIDATE_EMAIL)) {
             $sendEmail = new StdClass();
             $sendEmail->emailTo = $_SESSION['user']->Eaddress;
             $sendEmail->subject = 'Award Notification';
             $sendEmail->Content = "<p>Dear " . $_SESSION['user']->Fname . "</p>\n\t\t\t\t\t\t\t\t\t\t\t<p>Thank you for approving 'A Little Extra' award for " . getmyTeamName($_SESSION['teamnominee']->teamID) . ". The details of this award are as follows:<p>\n\t\t\t\t\t\t\t\t\t\t\t<p>Nominator: " . $_SESSION['user']->full_name . "<br>\n\t\t\t\t\t\t\t\t\t\t\tTeam Award: " . cleanWorkAward($_SESSION['teamnominee']->workAward) . "<br>Award category: " . $_SESSION['teamnominee']->BeliefID . "</p>\n\t\t\t\t\t\t\t\t\t\t\t<p>Any other nominations awaiting your approval can be found in the <a href='" . HTTP_PATH . "'>My Approvals</a> section of the Our Heroes Portal. \n\t\t\t\t\t\t\t\t\t\t\tYou can also find a history of nominations in the <a href='" . HTTP_PATH . "'>Reports</a> section.</p>";
             $email = sendEmail($sendEmail, 'T' . $id);
             $_SESSION['alreadydone'] = 'yes';
         }
     }
     // send email to teamnominee
     if ($_SESSION['teamnominee']->Volunteer != '') {
         $_SESSION['teamnominee']->NomFull_name = $_SESSION['teamnominee']->Volunteer;
     } else {
         $_SESSION['teamnominee']->NomFull_name = $_SESSION['user']->full_name();
     }
     // get team ecard
     if ($searchList) {
         foreach ($searchList as $list) {
             $_SESSION['teamnominee']->teamEmailList = $teamEmailList;
             $_SESSION['teamnominee']->Eaddress = $list->Eaddress;
Пример #3
0
		</div>
	</div>
	<div class="medium-12 columns">
		<div class="TeamInputName">
			<form action="edit-team.php" method="POST" name="confirmTeam" id="confirmTeam">
				<input type="hidden" name="teamNO" id="teamNO" value="<?php 
echo $count;
?>
" />
				<input type="hidden" name="teamid" id="teamid" value="<?php 
echo $_SESSION['teamid'];
?>
" class="" />
				<?php 
if ($_SESSION['teamid'] != 'myteam') {
    $myTeamName = getmyTeamName($_SESSION['teamid']);
}
?>
				<input type="text" name="myTeamName" id="myTeamName" value="<?php 
echo $myTeamName;
?>
" class="" />
			</form>
		</div>
	</div>
</div>
<div id="buttonRow" class="row buttonRow">
	<div class="row searchResult noBorder valign-middle">
		<div class="medium-12 columns textRight ">
			<a href="#" class="blueButton clickAble" data-type="close" data-id="1" data-url="confirmTeam">Cancel</a>
			<a href="#" class="pinkButton clickAble" data-type="submit" data-url="confirmTeam">Next</a>
Пример #4
0
function indEcardTeamExtraText($ecard)
{
    $ecard->teamEmailList = str_replace($ecard->full_name . ", ", "", $ecard->teamEmailList);
    $ecard->teamEmailList = str_replace("and " . $ecard->full_name, "", $ecard->teamEmailList);
    if (strpos($ecard->teamEmailList, 'and') !== false) {
    } else {
        $ecard->teamEmailList = strrev(implode(strrev(' and'), explode(',', strrev($ecard->teamEmailList), 2)));
    }
    $ecardText = ecardTopBar($ecard);
    $ecardText .= "<p>Dear " . $ecard->Fname . "</p>\n\t\t\t\t<p>Congratulations!</p>\n\t\t\t\t<p>" . $ecard->NomFull_name . " says you've done something really special and deserve an Our Heroes Extraordinary People, \n\t\t\t\tExtraordinary Effort award in the " . $ecard->BeliefID . " category.</p>\n\t\t\t\t<p>" . $ecard->personalMessage . "</p>";
    if (substr_count($ecard->teamEmailList, ",") > 3) {
        $ecardText .= "<p>The award has been given to " . getmyTeamName($ecard->teamID) . " as a team award.</p>";
    } else {
        $ecardText .= "<p>The award has been given to you as part of a team award that also includes " . $ecard->teamEmailList . ".</p>";
    }
    if ($ecard->workAward == '20pound') {
        $ecardText .= "Each member of the team has been awarded a &pound;20 voucher. You can use your voucher to choose from a great selection of awards on the <a href='" . HTTP_PATH . "'>Our Heroes Portal</a>.";
    } else {
        $ecardText .= "You and your team are invited to celebrate the award together at an event of your choice. Entertainment to the value of &pound;20 per team member can be expensed to the\n\t\t \t\t\t\t\"Our Heroes\" project code (HRP2000). Whether it's a few drinks, a meal out or a team experience, it's up to your team to decide and make arrangements to suit you all.  \n\t\t \t\t\t\t" . $ecard->NomFname . " has nominated " . $ecard->firstPerson . " as the team's contact in the first instance.</p>";
    }
    $ecardText .= "<p>Through your dedication and commitment we can beat cancer sooner. The success of Cancer Research UK depends on people like you and we want you to know how much we appreciate your efforts.</p>";
    return $ecardText;
}