<div class="ecardPadding"> <?php // get first team member $ecard->full_name = $firstPersonEmpNum->Fname . ' ' . $firstPersonEmpNum->Sname; $ecard->Fname = $ecard->Team; if ($ecard->Volunteer != '') { $ecard->NomFull_name = $ecard->Volunteer; } else { $ecard->NomFull_name = getName($ecard->NominatorEmpNum); } $ecard->NomFname = getFirstName($ecard->NominatorEmpNum); if ($ecard->littleExtra == 'Yes') { echo indEcardTeamExtraText($ecard); } else { echo indEcardTeamText($ecard); } ?> <p>Thank you and well done!</p> <p><b>Our Heroes Team</b></p> <p class="small">Xexec ref: <?php echo $ecard->ID; ?> </p> </div> <div class="ourheroes"> <img class="emailCruklogo" src="<?php echo HTTP_PATH; ?> images/emails/Cancer-Research-UK.png" alt="Cancer Research UK"> <img src="<?php
} } // 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; $_SESSION['teamnominee']->Fname = getFirstName($list->EmpNum); $_SESSION['teamnominee']->full_name = getName($list->EmpNum); $_SESSION['teamnominee']->content = indEcardTeamText($_SESSION['teamnominee']); // need to add to tblnominations $stmt = $db->prepare("INSERT INTO tblnominations(\n\t\t\t\t\t\t\t\tawardType, NominatorEmpNum, NominatedEmpNum, nomination_teamID, Volunteer, ApproverEmpNum,\n\t\t\t\t\t\t\t\tlittleExtra, amount, personalMessage, NomDate, AprDate, AprStatus, awardPrivate) \n\t\t\t\t\t\t\t\tVALUES (:awardType, :NominatorEmpNum, :NominatedEmpNum, :nomination_teamID, :Volunteer, :ApproverEmpNum, \n\t\t\t\t\t\t\t\t:littleExtra, :amount, :personalMessage, NOW(), NOW(), :AprStatus, :awardPrivate)"); $stmt->bindParam(':awardType', $a = 2); $stmt->bindParam(':NominatorEmpNum', $_SESSION['user']->EmpNum); $stmt->bindParam(':NominatedEmpNum', $list->EmpNum); $stmt->bindParam(':nomination_teamID', $id); $stmt->bindParam(':Volunteer', $_SESSION['teamnominee']->Volunteer); $stmt->bindParam(':ApproverEmpNum', $AppEmpNum->AppEmpNum); $stmt->bindParam(':littleExtra', $a = 'No', PDO::PARAM_STR); $stmt->bindParam(':amount', $a = 0); $stmt->bindParam(':personalMessage', $_SESSION['teamnominee']->personalMessage); $stmt->bindParam(':AprStatus', $a = 1); $stmt->bindParam(':awardPrivate', $_SESSION['teamnominee']->awardPrivate); $stmt->execute(); //echo $_SESSION['teamnominee']->content;