continue; } if (!($arrier >= $this->input->post('arrier_min') && $arrier <= $this->input->post('arrier_max'))) { // echo "here1"; continue; } $privacy_settings = array("privacy_profile_pic" => $student["privacy_profile_pic"], "privacy_personal" => $student["privacy_personal"], "privacy_academic" => $student["privacy_academic"], "privacy_resume" => $student["privacy_resume"]); //print_r($privacy_settings); $relation = find_relation($student, $session); if ($relation == "superuser" || isCoordinator($student, $session) || privacy_check($relation, $privacy_settings["privacy_profile_pic"])) { $pic = "<img class='profile_pic_table' src='" . base_url() . "profile_pics/" . $student["pic"] . "'>"; } else { $pic = "protected"; } $link = "<div><a onclick='load_details(\"" . $enc_usr . "\",\"here\")'>View Profile</a></div><div><a onclick='load_details(\"" . $enc_usr . "\",\"newtab\")'>Open in a new tab</a></div>"; if ($relation == "superuser" || isCoordinator($student, $session) || privacy_check($relation, $privacy_settings["privacy_academic"])) { $name = humanize($student["name"]); } else { $name = "protected"; $link = "protected"; $name = "protected"; $pic = "protected"; } if ($relation == "superuser" || isCoordinator($student, $session)) { $temp_array = array($pic, $name, humanize(branch_name($student["branch"], $branch_details)), $student["year_pass"], $percent . " %", $cgpa, $arrier, $link, $student["perm_addr"], $student["dob"], $student["email"], $student["mobno"], $student["admnno"], $student["regno"]); } else { $temp_array = array($pic, $name, humanize(branch_name($student["branch"], $branch_details)), $student["year_pass"], $percent . " %", $cgpa, $arrier, $link); } array_push($output, $temp_array); } echo '{ "data":' . json_encode($output) . "}";
} else { ?> <h5><?php echo humanize($student["name"]); ?> has blocked you from viewing this data</h5> <?php } ?> <br> <br> <h3>Resume</h3> <br> <br> <?php if ($relation == "superuser" || privacy_check($relation, $privacy_settings["privacy_resume"])) { ?> <?php if ($student["resume"] != "") { ?> <object data="<?php echo base_url() . 'resume/' . $student['resume']; ?> " type="application/pdf" width="100%" height="1000px"> alt:<a href="<?php echo base_url() . 'resume/resume.pdf'; ?> ">Download PDF</a> </object>