<div id="alertTitle" class="title smallPopupTitle"> <div class="row withPadding"> <div class="medium-12 columns"> Reason / Message </div> </div> </div> <?php include '../inc/config.php'; $myaward = getNomination($_GET['id']); ?> <div id="alertBody" class="alertBody"> <div class="row withPadding"> <div class="medium-12 columns"> <h2>Reason</h2> <p><?php echo $myaward->Reason; ?> </p> </div> <div class="medium-12 columns"> <h2>Personal Message</h2> <p><?php echo $myaward->personalMessage; ?> </p> </div> <?php if ($myaward->AprStatus == 2) { ?> <div class="medium-12 columns">
<?php include '../inc/config.php'; if ($_POST['award'] != '') { // update db $ID = $_POST['ID']; $today = date("Y-m-d H:i:s", strtotime(date("Y-m-d H:i:s"))); $stmt = $db->prepare("UPDATE tblnominations SET amount = :award, AwardClaimed = :AwardClaimed, DateClaimed = :DateClaimed WHERE ID = :ID"); $stmt->bindParam(':award', $_POST['award']); $AwardClaimed = 'Yes'; $stmt->bindParam(':AwardClaimed', $AwardClaimed, PDO::PARAM_STR); $stmt->bindValue(':DateClaimed', $today, PDO::PARAM_STR); $stmt->bindParam(':ID', $ID); $stmt->execute(); // send nominee and LM emails $sendEmail = getNomination($ID); //print_r($sendEmail); switch ($sendEmail->amount) { case 'Go Home Early': $voucher = 'vouchers_ghe.jpg'; break; case 'Come in Late': $voucher = 'vouchers_cil.jpg'; break; case 'Take a Long Lunch': $voucher = 'vouchers_tall.jpg'; break; } if ($sendEmail->amount != '20') { $sendEmail->emailTo = $sendEmail->nominee()->Eaddress; $sendEmail->subject = 'Award Redemption';
<?php include '../inc/config.php'; $ecard = getNomination($_GET['id']); $ecardImage = str_replace(' ', '-', strtolower($ecard->BeliefID)); ?> <div class="ecardPadding"> <?php $ecard->Fname = getFirstName($ecard->NominatedEmpNum); 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 indEcardExtraText($ecard); } else { echo indEcardText($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
<?php include '../inc/config.php'; // upload data and create emails //if($_SESSION['alreadydone']!='yes'){ // get award details $ID = $_POST['ID']; $award = getNomination($ID); if ($_POST['dReason'] == '') { // update award if ($_SESSION['user']->EmpNum != $award->ApproverEmpNum) { $stmt = $db->prepare("UPDATE tblnominations SET AprDate = NOW(), AprStatus = :AprStatus, AprSUEmpNum = :AprSUEmpNum WHERE ID = :ID"); $stmt->bindParam(':AprSUEmpNum', $_SESSION['user']->EmpNum); } else { $stmt = $db->prepare("UPDATE tblnominations SET AprDate = NOW(), AprStatus = :AprStatus WHERE ID = :ID"); } $stmt->bindParam(':AprStatus', $a = 1); $stmt->bindParam(':ID', $ID); $stmt->execute(); // loop to add workawards foreach ($_POST as $key => $value) { if (strstr($key, 'workAward')) { //echo $value.$award->NominatedEmpNum; $stmt = $db->prepare("INSERT INTO tblworknominations(nominationID, workawardsID) VALUES (:nominationID, :workawardsID)"); $stmt->bindParam(':nominationID', $ID); $stmt->bindParam(':workawardsID', $value); $stmt->execute(); } } // set approver if approver is SU if ($_SESSION['user']->EmpNum != $award->ApproverEmpNum) {