<th> %</th> <th> major </th> </tr> </thead> <tbody id="educationalDetails"> <?php $result = $conn->query("select * from job_education_profile where registration_id='{$registration_id}'"); while ($row = $result->fetch_assoc()) { ?> <tr> <td data-title="Education"><?php echo getEducation($conn, $row['education']); ?> </td> <td data-title="Institutions"><?php echo getCollege($conn, $row['college']); ?> </td> <td data-title="Year"><?php echo $row['year_of_completion']; ?> </td> <td data-title="%"><?php echo $row['percentage']; ?> %</td> <td data-title="Major"><?php echo $row['specialization']; ?> </td> </tr>
<?php session_start(); require_once '../core/init.php'; auth(); // protects this page against unauthenticated users $colleges = getCollege(); /** * Displays all departments with corresponding courses * * @var $departsCourses | all departments and courses * @var $userData | data of authenticated user * * Begin html page from here */ ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <title>College selection page</title> <!-- Bootstrap --> <link href="css/bootstrap.min.css" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="css/department.css"> </head>
<?php session_start(); require_once '../core/init.php'; auth(); // protects this page against unauthenticated users if (isset($_POST['college_id'])) { $_SESSION['college_id'] = $_POST['college_id']; } elseif (isset($_GET['collegeid'])) { $collegeId = numDecrypt($_GET['collegeid']); $_SESSION['college_id'] = $collegeId; } $data = getDepartmentWithCourses($_SESSION['college_id']); $college = getCollege($_SESSION['college_id'])[0]; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <title>Welcome to the departments page</title> <!-- Bootstrap --> <link href="css/bootstrap.min.css" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="css/department.css"> </head> <body>
$error_msg = "Record deleted successfully"; } else { $error_msg = "Sorry record could not be deleted"; } } else { if ($conn->query("insert into job_education_profile set registration_id='{$registration_id}',education='{$education}',college='{$college}',specialization='{$specialization}',year_of_completion='{$year_of_completion}',percentage='{$percentage}',post_date='{$post_date}',ip_address='{$ip_address}'") === TRUE) { $error_msg = "Record added successfully"; } else { $error_msg = "Sorry record could not be added"; } } $result = $conn->query("select * from job_education_profile where registration_id='{$registration_id}'"); while ($row = $result->fetch_assoc()) { $html .= '<tr> <td data-title="Education">' . getEducation($conn, $row['education']) . '</td> <td data-title="Institutions">' . getCollege($conn, $row['college']) . '</td> <td data-title="Year">' . $row['year_of_completion'] . '</td> <td data-title="%">' . $row['percentage'] . '</td> <td data-title="Major">' . $row['specialization'] . '</td> <td data-title="Remove"><a href="#"><img src="images/remove_iocn.png" class="deleteEdu ' . $row['id'] . '" /></a></td> </tr>'; } echo json_encode(array('html' => $html, 'error_msg' => $error_msg)); } if ($_REQUEST['action'] == "addEmployment") { $html = ""; $error_msg = ""; $registration_id = $_SESSION['registration_id']; $employer_name = $_REQUEST['employer_name']; $start_month = $_REQUEST['start_month']; $start_year = $_REQUEST['start_year'];
foreach ($educations as $education) { if ($education['type'] == "High School") { return $education['school']['name']; } } } function getCollege($educations) { foreach ($educations as $education) { if ($education['type'] != "High School") { return $education['school']['name']; } } } $friends = $fbfriends[1]['fql_result_set']; ?> <div class="studentlist"> <ul id="friendslist"> <?php foreach ($friends as $i => $friend) { echo '<li class="' . ($i % 2 == 0 ? 'even' : 'odd') . '">'; echo ' <div class="action"><button type="button" class="btn primary" data-loading-text="Adding…" id="add_friend_' . $friend['uid'] . '">Add</button></div>'; echo ' <div class="picture"><img src="' . $friend['pic_small'] . '" alt="' . $friend['name'] . '" /></div>'; echo ' <div class="name"><span><strong>' . he($friend['name']) . '</strong></span><br><span>' . he(getHighschool($friend['education'])) . '</span><br><span>' . he(getCollege($friend['education'])) . '</span></div>'; echo '</li>'; } ?> </ul> </div>