<?php

session_start();
include '../common-code/db.php';
addTeamMember();
function addTeamMember()
{
    $conn = dbConnect();
    $filePath = '';
    $name = '';
    $category = '';
    $title = '';
    $long_desc = '';
    $short_desc = '';
    $fb_link = '';
    $l_link = '';
    if (isset($_POST['name'])) {
        $name = $conn->real_escape_string($_POST['name']);
    }
    if (isset($_POST['category'])) {
        $category = $conn->real_escape_string($_POST['category']);
    }
    if (isset($_POST['title'])) {
        $title = $conn->real_escape_string($_POST['title']);
    }
    if (isset($_POST['long_desc'])) {
        $long_desc = $conn->real_escape_string($_POST['long_desc']);
    }
    if (isset($_POST['short_desc'])) {
        $short_desc = $conn->real_escape_string($_POST['short_desc']);
    }
Beispiel #2
0
		<div class="row withSidePadding">
			<div class="medium-12 columns noPadding">
				<div class="small">
					This team currently includes the following individuals. You can remove individuals using the <i class="icon-icons_close"></i>.
				</div>
			</div>
			<div class="medium-12 columns noPadding">
			<?php 
// add in current team members
if ($_GET['TeamID']) {
    $teamid = $_GET['TeamID'];
    $_SESSION['TeamMembers'] = addSelectedTeamMembers($teamid);
    $_SESSION['teamid'] = $teamid;
} else {
    if ($_GET['TeamMember']) {
        addTeamMember($_GET['TeamMember']);
    }
}
//print_r($_SESSION['TeamMembers']);
$x = 0;
// add in current team members
if ($_SESSION['TeamMembers']) {
    foreach ($_SESSION['TeamMembers'] as $list) {
        $x++;
        if ($x == 1) {
            ?>
				<div class="row withTopPadding">
					<div class="medium-5 columns noPadding">
						<?php 
            echo getName($list->EmpNum);
            ?>