Exemplo n.º 1
0
         $sendEmail->subject = 'Congratulations, your nomination has been approved';
         $sendEmail->Content = "<p>Dear " . $award->nominator()->Fname . "</p>\n\t\t\t\t\t\t\t\t\t\t\t<p>Good news!</p>\n\t\t\t\t\t\t\t\t\t\t\t<p>Your nomination of " . $award->teamEmailList . " for an Our Heroes Extraordinary People, Extraordinary Effort Award has been approved by " . $approver_name . ".</p>\n\t\t\t\t\t\t\t\t\t\t\t<p>The Thank You certificate you prepared when nominating this award has been sent by email to " . $award->teamEmailList . " with details of the award.</p>\n\t\t\t\t\t\t\t\t\t\t\t<p>A record of all the nominations you have made and their current status can be viewed on the <a href='" . HTTP_PATH . "'>My Awards</a> section of the Our Heroes portal.</p>\n\t\t\t\t\t\t\t\t\t\t\t<p>Thank you for your nomination.</p>\n\t\t\t\t\t\t\t\t\t\t\t<p>Kind regards</p>";
         $email = sendEmail($sendEmail, 'T' . $ID);
         $_SESSION['alreadydone'] = 'yes';
         echo $sendEmail->Content;
     } else {
         $email = "fail";
     }
 }
 echo $email;
 // email to approver
 if (filter_var($approver_email, FILTER_VALIDATE_EMAIL)) {
     $sendEmail = new StdClass();
     $sendEmail->emailTo = $approver_email;
     $sendEmail->subject = "Confirmation of your approval for a 'Little Extra' award";
     $sendEmail->Content = "<p>Dear " . $approver_fname . "</p>\n\t\t\t\t\t\t\t\t\t\t<p>Thank you for approving 'A Little Extra' award for " . $award->teamEmailList . ". The details of this award are as follows:<p>\n\t\t\t\t\t\t\t\t\t\t<p>Nominator: " . $award->nominator()->full_name . "<br>\n\t\t\t\t\t\t\t\t\t\tTeam Award: " . cleanWorkAward($award->amount) . "<br>Award category: " . $award->BeliefID . "</p>\n\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.</p>\n\t\t\t\t\t\t\t\t\t\t<p>Thank you</p>";
     $email = sendEmail($sendEmail, 'T' . $ID);
     $_SESSION['alreadydone'] = 'yes';
 }
 if ($award->Volunteer != '') {
     $award->NomFull_name = $award->Volunteer;
 } else {
     $award->NomFull_name = $award->nominator()->full_name;
 }
 $award->NomFname = $award->nominator()->Fname;
 $award->firstPerson = $firstPerson;
 //print_r($award);
 // send email to nominee
 foreach ($TeamMembers as $list) {
     $award->teamEmailList = $teamEmailList;
     $award->Fname = $list->Fname;
Exemplo n.º 2
0
<?php

include '../inc/config.php';
unset($_SESSION['alreadydone']);
$myaward = getTeamNomination($_GET['id']);
?>

<div id="alertTitle" class="title">
	Approve/Decline Team Nomination
</div>
<div id="alertBody" class="alertBody">
	<div class="tableRow">
		<div class="textLeft">
			<b>Award:</b>
			<?php 
echo cleanWorkAward($myaward->amount);
?>
			<i class="icon-icons_i clickAble blueText" data-type="subPopup"></i>
		</div>
	</div>
	<div class="tableRow">
		<div class="textLeft">
			<b>Reason provided by the Nominator:</b>
			<?php 
echo $myaward->Reason;
?>
		</div>
	</div>
	<div id="teamMembers" class="greyBox">
		<div class="row mCustomScrollbar height120 scrollBar" data-mcs-theme="dark-2">
			<div class="row withSidePadding">
Exemplo n.º 3
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;