<?php include "header.php"; $registration_id = $_SESSION['registration_id']; if (!isset($_SESSION['registration_id']) || actor_type($conn, $registration_id) != "T") { header('location:index.php'); } include "menu.php"; $result = $conn->query("select * from job_training_list where registration_id='{$registration_id}'"); $num = $result->num_rows; ?> <!-- -------------------------------- container starts ------------------------------ --> <div class="page_title"><span>welcome <?php echo getUserName($conn, $registration_id); ?> </span></div> <div class="inner_conainer" > <?php include "trainer_dashboard_link.php"; ?> <div class="dashboard_right fade_anim"> <div class="dashbox_wrap"> <div class="dashbox blue_bg"> <div class="title"><img src="images/icon_profile_big.png" />profile <div class="clear"></div> </div> <p><strong>Name :</strong> <?php echo getUserName($conn, $registration_id); ?> </p> <p><strong>Email :</strong> <?php
?> </td> <td data-title="Location"><?php echo getCityName($conn, $row['city']); ?> </td> <td data-title="Area of Interest"><?php echo getUserInterest($conn, $row['id']); ?> </td> <?php if (isset($_SESSION['registration_id'])) { ?> <?php if (actor_type($conn, $registration_id) == "F") { ?> <td data-title=""> <a href="#" class="showcandidateinterest <?php echo $row['id'] . " " . $registration_id; ?> contact">Contact</a> </td> <?php } else { ?> <td data-title=""> <a href="#" onclick="return(window.confirm('Only Employer can contact..!!'));" class="contact">Contact</a> </td> <?php }
} echo json_encode(array('url' => $url, 'error_msg' => $error_msg)); } /*.........................Educational Info.............................*/ if ($regis_step == "educational_info") { $url = ""; $error_msg = "success"; echo json_encode(array('url' => $url, 'error_msg' => $error_msg)); } /*.........................Educational Info.............................*/ if ($regis_step == "employment_info") { $url = ""; $error_msg = "success"; $step = 3; $id = $_SESSION['registration_id']; $actor_type = actor_type($conn, $id); if ($actor_type == 'S') { $url = "personal_dashboard.php"; } elseif ($actor_type == 'T') { $url = "trainer_dashboard.php"; } elseif ($actor_type == 'F') { $url = "employer_dashboard.php"; } else { $url = "select_actor.php"; } echo json_encode(array('url' => $url, 'error_msg' => $error_msg, 'step' => $step)); } if ($_REQUEST['action'] == "addEducation") { $html = ""; $error_msg = ""; $registration_id = $_SESSION['registration_id'];
dataType:"JSON", success:function(data) { //console.log(data); //alert(data); window.location.href=data.url; } }); }); }); </script> <!-- -------------------------------- container starts ------------------------------ --><?php /* For redirect Gmail 14 JAN 2015*/ if (isset($_SESSION['registration_id']) && $_SESSION['registration_id'] != '') { $registration_id = $_SESSION['registration_id']; $actor_type = actor_type($conn, $registration_id); if ($actor_type == 'S') { $redirect_url = "personal_dashboard.php"; header("Location: " . $redirect_url); } elseif ($actor_type == 'T') { $redirect_url = "trainer_dashboard.php"; header("Location: " . $redirect_url); } elseif ($actor_type == 'F') { $redirect_url = "employer_dashboard.php"; header("Location: " . $redirect_url); } } ?> <div class="page_title"><span>select actor</span></div> <div class="inner_conainer"> <div class="exam_wrap">
<?php $actor_type = actor_type($conn, $_SESSION['registration_id']); if ($_SESSION['registration_type'] == "A") { $url = "employer_job.php"; } elseif ($actor_type == 'S') { $url = "personal_dashboard.php"; } elseif ($actor_type == 'T') { $url = "trainer_dashboard.php"; } elseif ($actor_type == 'F') { $url = "employer_dashboard.php"; } else { $url = "select_actor.php"; } ?> <!---------------------------------- header starts --------------------------------> <div class="header_wrap"> <div class="header fade_anim"> <div class="logo"><a href="index.php"><img src="images/logo.png" alt="" /></a></div> <div class="header_right"> <div class="menu_top"> <?php if (isset($_SESSION['registration_id'])) { ?> <a href="logout.php">logout</a> <a href="<?php echo $url; ?> ">My Account</a> <?php } else {