Exemple #1
0
						</div>
						<?php 
}
// fix header.
echo fixMenuSpace($i);
?>
					</form>
				</div>
				<form action="nominate-team.php" method="post" name="nominateTeam" id="nominateTeam">
					<input type="hidden" name="myTeamName" id="myTeamName" value="<?php 
echo $myteam;
?>
">
					<div class="row mCustomScrollbar height480" data-mcs-theme="dark-2">
					<?php 
$searchList = getAllTeamsMembers($myteam);
//echo count($searchList);
if ($searchList) {
    foreach ($searchList as $list) {
        ?>
					<div class="row searchResult valign-middle">
						<div class="medium-2 columns">
							<img src="<?php 
        echo HTTP_PATH . $list->Photo;
        ?>
" alt="" onerror="this.src='<?php 
        echo HTTP_PATH;
        ?>
images/no-photo.png'"/>
						</div>
						<div class="medium-4 columns">
Exemple #2
0
<?php

include_once '../inc/config.php';
include_once '../inc/header.php';
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') {
Exemple #3
0
     $_SESSION['teamnominee']->littleExtra = 'No';
 }
 if ($_POST['awardPrivate']) {
     $_SESSION['teamnominee']->awardPrivate = 'Yes';
 } else {
     $_SESSION['teamnominee']->awardPrivate = 'No';
 }
 //print_r($_SESSION['teamnominee']);
 //echo "<br><br>";
 $stmt = $db->prepare("INSERT INTO tblnominations_team(\n\t\t\t\t\t\t\t\tawardType, NominatorEmpNum, Volunteer, VolunteerDepartment, ApproverEmpNum, Team, TeamID, littleExtra, amount, \n\t\t\t\t\t\t\t\tincludeMe, personalMessage, Reason, BeliefID, dReason, NomDate, AprDate, AprStatus, awardPrivate) \n\t\t\t\t\t\t\t\tVALUES (:awardType, :NominatorEmpNum, :Volunteer, :VolunteerDepartment, :ApproverEmpNum, :Team, :TeamID, :littleExtra, :amount, \n\t\t\t\t\t\t\t\t:includeMe, :personalMessage, :Reason, :BeliefID, :dReason, NOW(), :AprDate, :AprStatus, :awardPrivate)");
 $stmt->bindParam(':awardType', $a = 2);
 $stmt->bindParam(':NominatorEmpNum', $_SESSION['user']->EmpNum);
 $stmt->bindParam(':Volunteer', $_SESSION['teamnominee']->Volunteer);
 $stmt->bindParam(':VolunteerDepartment', $_SESSION['teamnominee']->VolunteerDepartment);
 // need to work out who correct approver is. get approver for first person
 $searchList = getAllTeamsMembers($_SESSION['teamnominee']->teamID);
 $totalTeamMembers = count($searchList);
 $searchList = array_to_object($searchList);
 //print_r($searchList);
 if ($searchList) {
     foreach ($searchList as $list) {
         //echo $list->AppEmpNum;
         $AppEmpNum = getTeamsApprover($list->EmpNum);
         $_SESSION['teamnominee']->AppEmpNum = $AppEmpNum->AppEmpNum;
         $_SESSION['teamnominee']->full_App_name = $AppEmpNum->Fname . ' ' . $AppEmpNum->Sname;
         if (!isset($firstPersonEmpNum)) {
             $firstPersonEmpNum = $list;
         }
         //print_r($AppEmpNum);
         //echo "<br><br>";
         if ($AppEmpNum->AppEmpNum != '') {