Şuanki Dizin: /home/wwwdreamtechnolo/public_html/uesmahilamahavidyalaya.org/old/admin/row data/ |
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/uesmahilamahavidyalaya.org/old/admin/row data/f.php |
<?php session_start(); //date_default_timezone_set('Asia/Kolkata'); class login_function { private $con; function __construct() { $this->con = new mysqli("localhost","root","","bmit_db"); } function get_password_from_user_name($email) { if($stmt_select = $this->con->prepare("Select `password` from `admin` where `admin_name` = ? ")) { $stmt_select->bind_param("s",$email); $stmt_select->bind_result($result_password); if($stmt_select->execute()) { if($stmt_select->fetch()) { return $result_password; } } return false; } } function change_user_password($email,$password) { $date = date("Y-m-d"); $time = date("H:i:s A"); if($stmt_select = $this->con->prepare("update `admin` set `password`='".$password."' where `admin_name` = ?")) { $stmt_select->bind_param("s",$email); if($stmt_select->execute()) { return true; } return false; } } function new_videos($actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `videos`(`images`, `date`, `time`) VALUES (?,?,?)")) { $stmt_insert->bind_param("sss",$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function new_slider_images($actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `slider_images`(`images`, `date`, `time`) VALUES (?,?,?)")) { $stmt_insert->bind_param("sss",$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function new_mous_attachment($actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `mous_recruiters`(`images`, `date`, `time`) VALUES (?,?,?)")) { $stmt_insert->bind_param("sss",$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function get_all_gallery_videos() { if($stmt_insert = $this->con->prepare("SELECT `id`,`images` FROM `videos`")) { $stmt_insert->bind_result($id,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_all_slider_images() { if($stmt_insert = $this->con->prepare("SELECT `id`,`images` FROM `slider_images`")) { $stmt_insert->bind_result($id,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_all_mous_images() { if($stmt_insert = $this->con->prepare("SELECT `id`,`images` FROM `mous_recruiters`")) { $stmt_insert->bind_result($id,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function delete_gallery_video($del_id) { if($stmt_select = $this->con->prepare("Delete from `videos` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function delete_slider_images($del_id) { if($stmt_select = $this->con->prepare("Delete from `slider_images` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function delete_mous_images($del_id) { if($stmt_select = $this->con->prepare("Delete from `mous_recruiters` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function new_downloads_images($department,$type,$title,$actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `downloads`(`department`,`type`,`title`,`images`, `date`, `time`) VALUES (?,?,?,?,?,?)")) { $stmt_insert->bind_param("ssssss",$department,$type,$title,$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function get_all_downloads_images() { if($stmt_insert = $this->con->prepare("SELECT `id`,`department`,`type`,`title`,`images` FROM `downloads` ORDER BY `id` DESC")) { $stmt_insert->bind_result($id,$department,$type,$title,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $type; $details[$counter][3] = $title; $details[$counter][4] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function delete_downloads_images($del_id) { if($stmt_select = $this->con->prepare("Delete from `downloads` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function new_achievements_images($title,$actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `student_staff_achievements`(`title`,`attachment`, `date`, `time`) VALUES (?,?,?,?)")) { $stmt_insert->bind_param("ssss",$title,$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function delete_achievements_images($del_id) { if($stmt_select = $this->con->prepare("Delete from `student_staff_achievements` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function get_all_achievement_images() { if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment` FROM `student_staff_achievements` ORDER BY `id` DESC")) { $stmt_insert->bind_result($id,$title,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $title; $details[$counter][2] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_all_achievement_images_by_id($up_id) { if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment` FROM `student_staff_achievements` Where `id` = ?")) { $stmt_insert->bind_param("i",$up_id); $stmt_insert->bind_result($id,$title,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $title; $details[$counter][2] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function update_attachments($up_id) { $actual_image_name=""; if($stmt_insert = $this->con->prepare("UPDATE `student_staff_achievements` set `attachment` = ? Where `id`=?")) { $stmt_insert->bind_param("si",$actual_image_name,$up_id); if($stmt_insert->execute()) { return true; } return false; } } function get_image_name_by_id($id) { if($stmt_select = $this->con->prepare("Select `attachment` from `student_staff_achievements` where `id` = ? ")) { $stmt_select->bind_param("i",$id); $stmt_select->bind_result($result_password); if($stmt_select->execute()) { if($stmt_select->fetch()) { return $result_password; } } return false; } } function update_image_info($up_id,$image) { if($stmt_insert = $this->con->prepare("UPDATE `student_staff_achievements` set `attachment` = ? Where `id`=?")) { $stmt_insert->bind_param("si",$image,$up_id); if($stmt_insert->execute()) { return true; } return false; } } function update_achievements_images($up_id,$title) { if($stmt_insert = $this->con->prepare("UPDATE `student_staff_achievements` set `title` = ? Where `id` = ?")) { $stmt_insert->bind_param("si",$title,$up_id); if($stmt_insert->execute()) { return true; } return false; } } function new_focus_highlights($description,$link_option) { if($stmt_insert = $this->con->prepare("INSERT INTO `focus_highlights`(`description`,`link_option`) VALUES (?,?)")) { $stmt_insert->bind_param("ss",$description,$link_option); if($stmt_insert->execute()) { return true; } return false; } } function new_focus_highlights_update($description,$link_option) { if($stmt_insert = $this->con->prepare("UPDATE `focus_highlights` set `description` = '".$description."',`link_option` = '".$link_option."'")) { if($stmt_insert->execute()) { return true; } return false; } } function get_focus_decsription_data() { if($stmt_insert = $this->con->prepare("SELECT `description`,`link_option` FROM `focus_highlights`")) { $stmt_insert->bind_result($description,$link_option); if($stmt_insert->execute()) { $details = array(); if($stmt_insert->fetch()) { $details[0] = $description; $details[1] = $link_option; return $details; } return false; } } } function get_all_notice_by_id($up_id) { if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment` FROM `circulars_notices` Where `id` =?")) { $stmt_insert->bind_param("i",$up_id); $stmt_insert->bind_result($id,$title,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $title; $details[$counter][2] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function update_notices($up_id) { $actual_image_name=""; if($stmt_insert = $this->con->prepare("UPDATE `circulars_notices` set `attachment` = ? Where `id`=?")) { $stmt_insert->bind_param("si",$actual_image_name,$up_id); if($stmt_insert->execute()) { return true; } return false; } } function update_circular_notice($up_id,$title) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("UPDATE `circulars_notices` set `title`=? Where `id` =?")) { $stmt_insert->bind_param("si",$title,$up_id); if($stmt_insert->execute()) { return true; } return false; } } function get_circular_image_by_id($id) { if($stmt_select = $this->con->prepare("Select `attachment` from `circulars_notices` where `id` = ? ")) { $stmt_select->bind_param("i",$id); $stmt_select->bind_result($result_password); if($stmt_select->execute()) { if($stmt_select->fetch()) { return $result_password; } } return false; } } function update_circular_image($up_id,$image) { if($stmt_insert = $this->con->prepare("UPDATE `circulars_notices` set `attachment` = ? Where `id`=?")) { $stmt_insert->bind_param("si",$image,$up_id); if($stmt_insert->execute()) { return true; } return false; } } function delete_library_info($del_id) { if($stmt_select = $this->con->prepare("Delete from `library_info` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function update_library_info($up_id) { $actual_image_name=""; if($stmt_insert = $this->con->prepare("UPDATE `library_info` set `attachment` = ? Where `id`=?")) { $stmt_insert->bind_param("si",$actual_image_name,$up_id); if($stmt_insert->execute()) { return true; } return false; } } function update_library_title($up_id,$title,$qty) { if($stmt_insert = $this->con->prepare("UPDATE `library_info` set `title`=?,`quantity` = ? Where `id` =?")) { $stmt_insert->bind_param("ssi",$title,$qty,$up_id); if($stmt_insert->execute()) { return true; } return false; } } function get_all_library_info_by_id($up_id) { if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`quantity`,`attachment` FROM `library_info` Where `id` =?")) { $stmt_insert->bind_param("i",$up_id); $stmt_insert->bind_result($id,$title,$qty,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $title; $details[$counter][2] = $qty; $details[$counter][3] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_library_info_by_id($id) { if($stmt_select = $this->con->prepare("Select `attachment` from `library_info` where `id` = ? ")) { $stmt_select->bind_param("i",$id); $stmt_select->bind_result($result_password); if($stmt_select->execute()) { if($stmt_select->fetch()) { return $result_password; } } return false; } } function update_library_image($up_id,$image) { if($stmt_insert = $this->con->prepare("UPDATE `library_info` set `attachment` = ? Where `id`=?")) { $stmt_insert->bind_param("si",$image,$up_id); if($stmt_insert->execute()) { return true; } return false; } } function new_iqac_info($title,$actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `iqac_info`(`title`,`attachment`, `date`, `time`) VALUES (?,?,?,?)")) { $stmt_insert->bind_param("ssss",$title,$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function delete_iqac_info($del_id) { if($stmt_select = $this->con->prepare("Delete from `iqac_info` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function get_all_iqac_info() { if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment` FROM `iqac_info` ORDER BY `id` DESC")) { $stmt_insert->bind_result($id,$title,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $title; $details[$counter][2] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_all_iqac_info_by_id($up_id) { if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment` FROM `iqac_info` Where `id` = ?")) { $stmt_insert->bind_param("i",$up_id); $stmt_insert->bind_result($id,$title,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $title; $details[$counter][2] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function update_iqac_info($up_id,$title) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("UPDATE `iqac_info` set `title` =? Where `id` =?")) { $stmt_insert->bind_param("si",$title,$up_id); if($stmt_insert->execute()) { return true; } return false; } } function update_iqac_attachement($up_id) { $actual_image_name=""; if($stmt_insert = $this->con->prepare("UPDATE `iqac_info` set `attachment` = ? Where `id`=?")) { $stmt_insert->bind_param("si",$actual_image_name,$up_id); if($stmt_insert->execute()) { return true; } return false; } } function get_iqac_info_by_id($id) { if($stmt_select = $this->con->prepare("Select `attachment` from `iqac_info` where `id` = ? ")) { $stmt_select->bind_param("i",$id); $stmt_select->bind_result($result_password); if($stmt_select->execute()) { if($stmt_select->fetch()) { return $result_password; } } return false; } } function update_iqac_image($up_id,$image) { if($stmt_insert = $this->con->prepare("UPDATE `iqac_info` set `attachment` = ? Where `id`=?")) { $stmt_insert->bind_param("si",$image,$up_id); if($stmt_insert->execute()) { return true; } return false; } } function add_feedback($name,$email,$phone,$feedback) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `feedback`(`name`,`email`,`contact`,`feedback`, `date`, `time`) VALUES (?,?,?,?,?,?)")) { $stmt_insert->bind_param("ssssss",$name,$email,$phone,$feedback,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function get_all_feedback() { if($stmt_insert = $this->con->prepare("SELECT `id`,`name`,`email`,`contact`,`feedback` FROM `feedback`")) { $stmt_insert->bind_result($id,$name,$email,$contact,$feedback); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $name; $details[$counter][2] = $email; $details[$counter][3] = $contact; $details[$counter][4] = $feedback; $counter++; } if(!empty($details)) { return $details; } return false; } } } function delete_feedback($del_id) { if($stmt_select = $this->con->prepare("Delete from `feedback` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function get_all_feedback_for_show() { if($stmt_insert = $this->con->prepare("SELECT `id`,`name`,`email`,`contact`,`feedback`,`date`,`time` FROM `feedback`")) { $stmt_insert->bind_result($id,$name,$email,$contact,$feedback,$date,$time); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $name; $details[$counter][2] = $email; $details[$counter][3] = $contact; $details[$counter][4] = $feedback; $details[$counter][5] = $date; $details[$counter][6] = $time; $counter++; } if(!empty($details)) { return $details; } return false; } } } function new_research($title,$actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `research_info`(`title`,`attachment`, `date`, `time`) VALUES (?,?,?,?)")) { $stmt_insert->bind_param("ssss",$title,$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function delete_research_images($del_id) { if($stmt_select = $this->con->prepare("Delete from `research_info` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function get_all_research_images() { if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment` FROM `research_info` ORDER BY `id` DESC")) { $stmt_insert->bind_result($id,$title,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $title; $details[$counter][2] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function update_research_attachement($up_id) { $actual_image_name=""; if($stmt_insert = $this->con->prepare("UPDATE `research_info` set `attachment` = ? Where `id`=?")) { $stmt_insert->bind_param("si",$actual_image_name,$up_id); if($stmt_insert->execute()) { return true; } return false; } } function update_research($up_id,$title) { if($stmt_insert = $this->con->prepare("UPDATE `research_info` set `title`=? Where `id` = ?")) { $stmt_insert->bind_param("si",$title,$up_id); if($stmt_insert->execute()) { return true; } return false; } } function get_all_research_images_by_id($up_id) { if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment` FROM `research_info` Where `id` =?")) { $stmt_insert->bind_param("i",$up_id); $stmt_insert->bind_result($id,$title,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $title; $details[$counter][2] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_research_info_by_id($id) { if($stmt_select = $this->con->prepare("Select `attachment` from `research_info` where `id` = ? ")) { $stmt_select->bind_param("i",$id); $stmt_select->bind_result($result_password); if($stmt_select->execute()) { if($stmt_select->fetch()) { return $result_password; } } return false; } } function update_research_image($up_id,$image) { if($stmt_insert = $this->con->prepare("UPDATE `research_info` set `attachment` = ? Where `id`=?")) { $stmt_insert->bind_param("si",$image,$up_id); if($stmt_insert->execute()) { return true; } return false; } } function add_admission_dates($title,$actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `admission_procedure_first_year`(`title`,`attachment`, `date`, `time`) VALUES (?,?,?,?)")) { $stmt_insert->bind_param("ssss",$title,$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function get_all_admission_procedure() { if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment` FROM `admission_procedure_first_year`")) { $stmt_insert->bind_result($id,$title,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $title; $details[$counter][2] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function delete_admission_procedure($del_id) { if($stmt_select = $this->con->prepare("Delete from `admission_procedure_first_year` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function add_anti_ragging($title,$actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `anti_ragging`(`title`,`attachment`, `date`, `time`) VALUES (?,?,?,?)")) { $stmt_insert->bind_param("ssss",$title,$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function get_all_anti_ragging() { if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment` FROM `anti_ragging`")) { $stmt_insert->bind_result($id,$title,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $title; $details[$counter][2] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function delete_anti_ragging($del_id) { if($stmt_select = $this->con->prepare("Delete from `anti_ragging` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function add_training_placement($title,$actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `training_placement`(`title`,`attachment`, `date`, `time`) VALUES (?,?,?,?)")) { $stmt_insert->bind_param("ssss",$title,$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function get_all_training_placement() { if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment` FROM `training_placement`")) { $stmt_insert->bind_result($id,$title,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $title; $details[$counter][2] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function delete_training_placement($del_id) { if($stmt_select = $this->con->prepare("Delete from `training_placement` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function add_results($title,$actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `results`(`title`,`attachment`, `date`, `time`) VALUES (?,?,?,?)")) { $stmt_insert->bind_param("ssss",$title,$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function get_all_results() { if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment` FROM `results`")) { $stmt_insert->bind_result($id,$title,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $title; $details[$counter][2] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function delete_results($del_id) { if($stmt_select = $this->con->prepare("Delete from `results` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function add_faculty($full_name,$designation,$qualification,$subject,$experience,$email,$department,$staff,$actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `faculty_information`(`full_name`,`designation`,`qualification`,`subject`,`experience`,`email`,`department`,`staff`,`profile`, `date`, `time`) VALUES (?,?,?,?,?,?,?,?,?,?,?)")) { $stmt_insert->bind_param("sssssssssss",$full_name,$designation,$qualification,$subject,$experience,$email,$department,$staff,$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function get_all_faculty_info() { if($stmt_insert = $this->con->prepare("SELECT `id`,`full_name`,`designation`,`qualification`,`subject`,`experience`,`email`,`department`,`staff`,`profile` FROM `faculty_information`")) { $stmt_insert->bind_result($id,$full_name,$designation,$qualification,$subject,$experience,$email,$department,$staff,$profile); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $full_name; $details[$counter][2] = $designation; $details[$counter][3] = $qualification; $details[$counter][4] = $subject; $details[$counter][5] = $experience; $details[$counter][6] = $email; $details[$counter][7] = $department; $details[$counter][8] = $staff; $details[$counter][9] = $profile; $counter++; } if(!empty($details)) { return $details; } return false; } } } function delete_faculty_info($del_id) { if($stmt_select = $this->con->prepare("Delete from `faculty_information` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function get_all_faculty_info_by_id($up_id) { if($stmt_insert = $this->con->prepare("SELECT `id`,`full_name`,`designation`,`qualification`,`subject`,`experience`,`email`,`department`,`staff`,`profile` FROM `faculty_information` Where `id` = ?")) { $stmt_insert->bind_param("i",$up_id); $stmt_insert->bind_result($id,$full_name,$designation,$qualification,$subject,$experience,$email,$department,$staff,$profile); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $full_name; $details[$counter][2] = $designation; $details[$counter][3] = $qualification; $details[$counter][4] = $subject; $details[$counter][5] = $experience; $details[$counter][6] = $email; $details[$counter][7] = $department; $details[$counter][8] = $staff; $details[$counter][9] = $profile; $counter++; } if(!empty($details)) { return $details; } return false; } } } function update_faculty_profile($up_id) { $actual_image_name=""; if($stmt_insert = $this->con->prepare("UPDATE `faculty_information` set `profile` = ? Where `id`=?")) { $stmt_insert->bind_param("si",$actual_image_name,$up_id); if($stmt_insert->execute()) { return true; } return false; } } function get_faculty_image_name_by_id($id) { if($stmt_select = $this->con->prepare("Select `profile` from `faculty_information` where `id` = ? ")) { $stmt_select->bind_param("i",$id); $stmt_select->bind_result($result_password); if($stmt_select->execute()) { if($stmt_select->fetch()) { return $result_password; } } return false; } } function update_faculty_image_info($up_id,$image) { if($stmt_insert = $this->con->prepare("UPDATE `faculty_information` set `profile` = ? Where `id`=?")) { $stmt_insert->bind_param("si",$image,$up_id); if($stmt_insert->execute()) { return true; } return false; } } function update_faculty($up_id,$full_name,$designation,$qualification,$subject,$experience,$email,$department,$staff) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("UPDATE `faculty_information` set `full_name`=?,`designation`=?,`qualification`=?,`subject`=?,`experience`=?,`email`=?,`department`=?,`staff`=? Where `id`=?")) { $stmt_insert->bind_param("ssssssssi",$full_name,$designation,$qualification,$subject,$experience,$email,$department,$staff,$up_id); if($stmt_insert->execute()) { return true; } return false; } } function get_all_computer_field_teaching() { if($stmt_insert = $this->con->prepare("SELECT `id`,`full_name`,`designation`,`qualification`,`subject`,`experience`,`email`,`department`,`staff`,`profile` FROM `faculty_information` Where `department` ='computer' And `staff` ='teaching'")) { $stmt_insert->bind_result($id,$full_name,$designation,$qualification,$subject,$experience,$email,$department,$staff,$profile); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $full_name; $details[$counter][2] = $designation; $details[$counter][3] = $qualification; $details[$counter][4] = $subject; $details[$counter][5] = $experience; $details[$counter][6] = $email; $details[$counter][7] = $department; $details[$counter][8] = $staff; $details[$counter][9] = $profile; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_all_computer_field_nonteaching() { if($stmt_insert = $this->con->prepare("SELECT `id`,`full_name`,`designation`,`qualification`,`subject`,`experience`,`email`,`department`,`staff`,`profile` FROM `faculty_information` Where `department` ='computer' And `staff` ='non-teaching'")) { $stmt_insert->bind_result($id,$full_name,$designation,$qualification,$subject,$experience,$email,$department,$staff,$profile); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $full_name; $details[$counter][2] = $designation; $details[$counter][3] = $qualification; $details[$counter][4] = $subject; $details[$counter][5] = $experience; $details[$counter][6] = $email; $details[$counter][7] = $department; $details[$counter][8] = $staff; $details[$counter][9] = $profile; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_all_civil_field_teaching() { if($stmt_insert = $this->con->prepare("SELECT `id`,`full_name`,`designation`,`qualification`,`subject`,`experience`,`email`,`department`,`staff`,`profile` FROM `faculty_information` Where `department` ='civil' And `staff` ='teaching'")) { $stmt_insert->bind_result($id,$full_name,$designation,$qualification,$subject,$experience,$email,$department,$staff,$profile); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $full_name; $details[$counter][2] = $designation; $details[$counter][3] = $qualification; $details[$counter][4] = $subject; $details[$counter][5] = $experience; $details[$counter][6] = $email; $details[$counter][7] = $department; $details[$counter][8] = $staff; $details[$counter][9] = $profile; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_all_civil_field_nonteaching() { if($stmt_insert = $this->con->prepare("SELECT `id`,`full_name`,`designation`,`qualification`,`subject`,`experience`,`email`,`department`,`staff`,`profile` FROM `faculty_information` Where `department` ='civil' And `staff` ='non-teaching'")) { $stmt_insert->bind_result($id,$full_name,$designation,$qualification,$subject,$experience,$email,$department,$staff,$profile); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $full_name; $details[$counter][2] = $designation; $details[$counter][3] = $qualification; $details[$counter][4] = $subject; $details[$counter][5] = $experience; $details[$counter][6] = $email; $details[$counter][7] = $department; $details[$counter][8] = $staff; $details[$counter][9] = $profile; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_all_mechanical_field_teaching() { if($stmt_insert = $this->con->prepare("SELECT `id`,`full_name`,`designation`,`qualification`,`subject`,`experience`,`email`,`department`,`staff`,`profile` FROM `faculty_information` Where `department` ='mechanical' And `staff` ='teaching'")) { $stmt_insert->bind_result($id,$full_name,$designation,$qualification,$subject,$experience,$email,$department,$staff,$profile); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $full_name; $details[$counter][2] = $designation; $details[$counter][3] = $qualification; $details[$counter][4] = $subject; $details[$counter][5] = $experience; $details[$counter][6] = $email; $details[$counter][7] = $department; $details[$counter][8] = $staff; $details[$counter][9] = $profile; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_all_mechanical_field_nonteaching() { if($stmt_insert = $this->con->prepare("SELECT `id`,`full_name`,`designation`,`qualification`,`subject`,`experience`,`email`,`department`,`staff`,`profile` FROM `faculty_information` Where `department` ='mechanical' And `staff` ='non-teaching'")) { $stmt_insert->bind_result($id,$full_name,$designation,$qualification,$subject,$experience,$email,$department,$staff,$profile); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $full_name; $details[$counter][2] = $designation; $details[$counter][3] = $qualification; $details[$counter][4] = $subject; $details[$counter][5] = $experience; $details[$counter][6] = $email; $details[$counter][7] = $department; $details[$counter][8] = $staff; $details[$counter][9] = $profile; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_all_e_and_tc_field_teaching() { if($stmt_insert = $this->con->prepare("SELECT `id`,`full_name`,`designation`,`qualification`,`subject`,`experience`,`email`,`department`,`staff`,`profile` FROM `faculty_information` Where `department` ='e&tc' And `staff` ='teaching'")) { $stmt_insert->bind_result($id,$full_name,$designation,$qualification,$subject,$experience,$email,$department,$staff,$profile); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $full_name; $details[$counter][2] = $designation; $details[$counter][3] = $qualification; $details[$counter][4] = $subject; $details[$counter][5] = $experience; $details[$counter][6] = $email; $details[$counter][7] = $department; $details[$counter][8] = $staff; $details[$counter][9] = $profile; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_all_e_and_tc_field_nonteaching() { if($stmt_insert = $this->con->prepare("SELECT `id`,`full_name`,`designation`,`qualification`,`subject`,`experience`,`email`,`department`,`staff`,`profile` FROM `faculty_information` Where `department` ='e&tc' And `staff` ='non-teaching'")) { $stmt_insert->bind_result($id,$full_name,$designation,$qualification,$subject,$experience,$email,$department,$staff,$profile); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $full_name; $details[$counter][2] = $designation; $details[$counter][3] = $qualification; $details[$counter][4] = $subject; $details[$counter][5] = $experience; $details[$counter][6] = $email; $details[$counter][7] = $department; $details[$counter][8] = $staff; $details[$counter][9] = $profile; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_all_science_field_teaching() { if($stmt_insert = $this->con->prepare("SELECT `id`,`full_name`,`designation`,`qualification`,`subject`,`experience`,`email`,`department`,`staff`,`profile` FROM `faculty_information` Where `department` ='science' And `staff` ='teaching'")) { $stmt_insert->bind_result($id,$full_name,$designation,$qualification,$subject,$experience,$email,$department,$staff,$profile); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $full_name; $details[$counter][2] = $designation; $details[$counter][3] = $qualification; $details[$counter][4] = $subject; $details[$counter][5] = $experience; $details[$counter][6] = $email; $details[$counter][7] = $department; $details[$counter][8] = $staff; $details[$counter][9] = $profile; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_all_science_field_nonteaching() { if($stmt_insert = $this->con->prepare("SELECT `id`,`full_name`,`designation`,`qualification`,`subject`,`experience`,`email`,`department`,`staff`,`profile` FROM `faculty_information` Where `department` ='science' And `staff` ='non-teaching'")) { $stmt_insert->bind_result($id,$full_name,$designation,$qualification,$subject,$experience,$email,$department,$staff,$profile); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $full_name; $details[$counter][2] = $designation; $details[$counter][3] = $qualification; $details[$counter][4] = $subject; $details[$counter][5] = $experience; $details[$counter][6] = $email; $details[$counter][7] = $department; $details[$counter][8] = $staff; $details[$counter][9] = $profile; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_all_administrative_field_teaching() { if($stmt_insert = $this->con->prepare("SELECT `id`,`full_name`,`designation`,`qualification`,`subject`,`experience`,`email`,`department`,`staff`,`profile` FROM `faculty_information` Where `department` ='administrative' And `staff` ='teaching'")) { $stmt_insert->bind_result($id,$full_name,$designation,$qualification,$subject,$experience,$email,$department,$staff,$profile); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $full_name; $details[$counter][2] = $designation; $details[$counter][3] = $qualification; $details[$counter][4] = $subject; $details[$counter][5] = $experience; $details[$counter][6] = $email; $details[$counter][7] = $department; $details[$counter][8] = $staff; $details[$counter][9] = $profile; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_all_administrative_field_nonteaching() { if($stmt_insert = $this->con->prepare("SELECT `id`,`full_name`,`designation`,`qualification`,`subject`,`experience`,`email`,`department`,`staff`,`profile` FROM `faculty_information` Where `department` ='administrative' And `staff` ='non-teaching'")) { $stmt_insert->bind_result($id,$full_name,$designation,$qualification,$subject,$experience,$email,$department,$staff,$profile); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $full_name; $details[$counter][2] = $designation; $details[$counter][3] = $qualification; $details[$counter][4] = $subject; $details[$counter][5] = $experience; $details[$counter][6] = $email; $details[$counter][7] = $department; $details[$counter][8] = $staff; $details[$counter][9] = $profile; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_facebook_link() { if($stmt_select = $this->con->prepare("Select `link` from `social_media` where `name` = 'facebook' ")) { $stmt_select->bind_result($result_link); if($stmt_select->execute()) { if($stmt_select->fetch()) { return $result_link; } } return false; } } function get_twitter_link() { if($stmt_select = $this->con->prepare("Select `link` from `social_media` where `name` = 'twitter' ")) { $stmt_select->bind_result($result_link); if($stmt_select->execute()) { if($stmt_select->fetch()) { return $result_link; } } return false; } } function get_linked_link() { if($stmt_select = $this->con->prepare("Select `link` from `social_media` where `name` = 'linked in' ")) { $stmt_select->bind_result($result_link); if($stmt_select->execute()) { if($stmt_select->fetch()) { return $result_link; } } return false; } } function get_google_link() { if($stmt_select = $this->con->prepare("Select `link` from `social_media` where `name` = 'google+' ")) { $stmt_select->bind_result($result_link); if($stmt_select->execute()) { if($stmt_select->fetch()) { return $result_link; } } return false; } } function update_social_media($facebook) { if($stmt_insert = $this->con->prepare("UPDATE `social_media` set `link` = ? Where `name` = 'facebook' ")) { $stmt_insert->bind_param("s",$facebook); if($stmt_insert->execute()) { return true; } return false; } } function update_social_media1($twitter) { if($stmt_insert = $this->con->prepare("UPDATE `social_media` set `link` = ? Where `name` = 'twitter' ")) { $stmt_insert->bind_param("s",$twitter); if($stmt_insert->execute()) { return true; } return false; } } function update_social_media2($facebook) { if($stmt_insert = $this->con->prepare("UPDATE `social_media` set `link` = ? Where `name` = 'linked in' ")) { $stmt_insert->bind_param("s",$facebook); if($stmt_insert->execute()) { return true; } return false; } } function update_social_media3($twitter) { if($stmt_insert = $this->con->prepare("UPDATE `social_media` set `link` = ? Where `name` = 'google+' ")) { $stmt_insert->bind_param("s",$twitter); if($stmt_insert->execute()) { return true; } return false; } } function update_visitor($counter) { if($stmt_insert = $this->con->prepare("UPDATE `visitors` set `total_counter` = ? ")) { $stmt_insert->bind_param("s",$counter); if($stmt_insert->execute()) { return true; } return false; } } function get_counter() { if($stmt_select = $this->con->prepare("Select `total_counter` from `visitors` ")) { $stmt_select->bind_result($result); if($stmt_select->execute()) { if($stmt_select->fetch()) { return $result; } } return false; } } /*Departmental Slider*/ function departmental_slider_images($department,$actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `departmentalslider_table`(`department_name`,`depart_image`, `date`, `time`) VALUES (?,?,?,?)")) { $stmt_insert->bind_param("ssss",$department,$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } /*Departmental-slider fetch data*/ function get_all_deaprtment_info() { if($stmt_select = $this->con->prepare("SELECT `id`,`department_name`,`depart_image` FROM `departmentalslider_table`")) { $stmt_select->bind_result($id,$department,$actual_image_name); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $actual_image_name; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*computer gallery*/ function get_all_gallery_images_of_department_wise($category,$department) { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `section` = ? And `departmentt`= ?")) { $stmt_select->bind_param("ss",$category,$department); $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*Civil gallery*/ function get_all_gallery_images_of_civil_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='civil'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*Mechanical Gallery*/ function get_all_gallery_images_of_mechanical_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='mechanical'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*ENTC Gallery*/ function get_all_gallery_images_of_entc_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='e&tc'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*Applied Scirnce Gallery*/ function get_all_gallery_images_of_applied_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='science'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*Administratve Gallery*/ function get_all_gallery_images_of_administrative_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='administrative'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*computer event*/ function get_all_gallery_images_of_computer_event_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='computer' AND `section`='event'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*Computer Guest*/ function get_all_gallery_images_of_computer_guest_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='computer' AND `section`='guestlecture'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*Computer Menu1*/ function get_all_gallery_images_of_computer_menu1_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='computer' AND `section`='menu1'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*Computer Menu2*/ function get_all_gallery_images_of_computer_anyother_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='computer' AND `section`='Anyother'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*civil event*/ function get_all_gallery_images_of_civil_event_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='civil' AND `section`='event'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*civil Guest*/ function get_all_gallery_images_of_civil_guest_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='civil' AND `section`='guestlecture'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*civil Menu1*/ function get_all_gallery_images_of_civil_menu1_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='civil' AND `section`='menu1'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*civil Menu2*/ function get_all_gallery_images_of_civil_anyother_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='civil' AND `section`='Anyother'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*mechanical event*/ function get_all_gallery_images_of_mechanical_event_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='mechanical' AND `section`='event'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*mechanical Guest*/ function get_all_gallery_images_of_mechanical_guest_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='mechanical' AND `section`='guestlecture'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*mechanical Menu1*/ function get_all_gallery_images_of_mechanical_menu1_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='mechanical' AND `section`='menu1'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*mechanical Menu2*/ function get_all_gallery_images_of_mechanical_anyother_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='mechanical' AND `section`='Anyother'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*entc event*/ function get_all_gallery_images_of_entc_event_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='e&tc' AND `section`='event'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*entc Guest*/ function get_all_gallery_images_of_entc_guest_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='e&tc' AND `section`='guestlecture'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*entc Menu1*/ function get_all_gallery_images_of_entc_menu1_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='e&tc' AND `section`='menu1'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*entc Menu2*/ function get_all_gallery_images_of_entc_anyother_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='e&tc' AND `section`='Anyother'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*applied event*/ function get_all_gallery_images_of_applied_event_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='science' AND `section`='event'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*applied Guest*/ function get_all_gallery_images_of_applied_guest_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='science' AND `section`='guestlecture'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*applied Menu1*/ function get_all_gallery_images_of_applied_menu1_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='science' AND `section`='menu1'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*applied Menu2*/ function get_all_gallery_images_of_applied_anyother_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='science' AND `section`='Anyother'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*administrative event*/ function get_all_gallery_images_of_administrative_event_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='administrative' AND `section`='event'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*administrative Guest*/ function get_all_gallery_images_of_administrative_guest_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='administrative' AND `section`='guestlecture'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*administrative Menu1*/ function get_all_gallery_images_of_administrative_menu1_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='administrative' AND `section`='menu1'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*administrative Menu2*/ function get_all_gallery_images_of_administrative_anyother_from_departmentt() { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`='administrative' AND `section`='Anyother'")) { $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_all_academic_calender_department($department) { if($stmt_insert = $this->con->prepare("SELECT `id`,`department`,`title`,`attachment` FROM `academic_calender` Where `department` = ?")) { $stmt_insert->bind_param("s",$department); $stmt_insert->bind_result($id,$department,$title,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $title; $details[$counter][3] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function add_time_table($department,$title,$actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `time_table`(`department`, `title`,`attachment`, `date`, `time`) VALUES (?,?,?,?,?)")) { $stmt_insert->bind_param("sssss",$department,$title,$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function get_all_time_table() { if($stmt_insert = $this->con->prepare("SELECT `id`,`department`,`title`,`attachment` FROM `time_table`")) { $stmt_insert->bind_result($id,$department,$title,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $title; $details[$counter][3] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function delete_time_table($del_id) { if($stmt_select = $this->con->prepare("Delete from `time_table` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function fetch_time_table_departmentwise($department) { if($stmt_insert = $this->con->prepare("SELECT `id`,`department`,`title`,`attachment` FROM `time_table` Where `department` = ?")) { $stmt_insert->bind_param("s",$department); $stmt_insert->bind_result($id,$department,$title,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $title; $details[$counter][3] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_all_gallery_images_of_department_wise_and_section($department,$section) { if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery` where `departmentt`= ? And `section` = ?")) { $stmt_select->bind_param("ss",$department,$section); $stmt_select->bind_result($id,$department,$section,$images,$description); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $images; $details[$counter][4] = $description; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_all_departmentwise_slider_images($department) { if($stmt_insert = $this->con->prepare("SELECT `id`,`depart_image` FROM `departmentalslider_table` Where `department_name` = ?")) { $stmt_insert->bind_param("s",$department); $stmt_insert->bind_result($id,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function delete_department_slider_images($del_id) { if($stmt_select = $this->con->prepare("Delete from `departmentalslider_table` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } /*------------------------------------------------------*/ /*admin - select faculty*/ function get_faculty() { if($stmt_select = $this->con->prepare("SELECT `id`,`full_name` FROM `faculty_information`")) { $stmt_select->bind_result($id,$fullname); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $fullname; $counter++; } if(!empty($details)) { return $details; } return false; } } } function insert_faculty_id($faculty) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `exclusive_committee`(`faculty_id`, `date`, `time`) VALUES (?,?,?)")) { $stmt_insert->bind_param("sss",$faculty,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } /*Select faculty_id in report*/ function get_faculty_id() { if($stmt_select = $this->con->prepare("SELECT `id`,`faculty_id` FROM `exclusive_committee`")) { $stmt_select->bind_result($id,$faculty_id); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $faculty_id; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*select faculty name from faculty_information*/ function get_faculty_namee_from_id() { if($stmt_select = $this->con->prepare("SELECT `id`,`faculty_id` FROM `exclusive_committee` ")) { $stmt_select->bind_result($id,$faculty_name); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $faculty_name; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*faculty designation*/ function get_faculty_designation_from_id($id) { if($stmt_select = $this->con->prepare("SELECT `designation` FROM `faculty_information` where `id` = ? ")) { $stmt_select->bind_result($faculty_designation); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $faculty_designation; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_faculty_name($id) { if($stmt_select = $this->con->prepare("SELECT `full_name` FROM `faculty_information` Where `id` =? ")) { $stmt_select->bind_param("i",$id); $stmt_select->bind_result($faculty_name); if($stmt_select->execute()) { if($stmt_select->fetch()) { return $faculty_name; } } return false; } } function get_faculty_desig($id) { if($stmt_select = $this->con->prepare("SELECT `designation` FROM `faculty_information` Where `id` =? ")) { $stmt_select->bind_param("i",$id); $stmt_select->bind_result($faculty_desig); if($stmt_select->execute()) { if($stmt_select->fetch()) { return $faculty_desig; } } return false; } } function get_faculty_depart($id) { if($stmt_select = $this->con->prepare("SELECT `department` FROM `faculty_information` Where `id` =? ")) { $stmt_select->bind_param("i",$id); $stmt_select->bind_result($faculty_depart); if($stmt_select->execute()) { if($stmt_select->fetch()) { return $faculty_depart; } } return false; } } /*Delete faculty_id from exclusive_committee */ function delete_faculty_id($del_id) { if($stmt_select = $this->con->prepare("Delete from `exclusive_committee` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } /*TPO - Pdf */ function pdf_downloads($title,$actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `tpo_table`(`title`,`pdf`, `date`, `time`) VALUES (?,?,?,?)")) { $stmt_insert->bind_param("ssss",$title,$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } /*fetch tpo report from tpo_table*/ function get_all_downloads_pdf() { if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`pdf` FROM `tpo_table` ORDER BY `id` DESC")) { $stmt_insert->bind_result($id,$title,$pdf); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $title; $details[$counter][2] = $pdf; $counter++; } if(!empty($details)) { return $details; } return false; } } } function delete_downloads_pdf($del_id) { if($stmt_delete = $this->con->prepare("Delete from `tpo_table` where `id`=?")) { $stmt_delete->bind_param("i",$del_id); if($stmt_delete->execute()) { return true; } return false; } } function get_all_curriculum_of_department_wise_and_section($department,$section) { if($stmt_select = $this->con->prepare("SELECT `id`,`department`,`type`,`title`,`images` FROM `downloads` where `department`= ? And `type` = ?")) { $stmt_select->bind_param("ss",$department,$section); $stmt_select->bind_result($id,$department,$section,$title,$images); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $title; $details[$counter][4] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_all_exam_section_of_department_wise_and_section($department,$section) { if($stmt_select = $this->con->prepare("SELECT `id`,`department`,`type`,`title`,`images`,`date` FROM `downloads` where `department`= ? And `type` = ?")) { $stmt_select->bind_param("ss",$department,$section); $stmt_select->bind_result($id,$department,$section,$title,$images,$date); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $section; $details[$counter][3] = $title; $details[$counter][4] = $images; $details[$counter][5] = $date; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*library information*/ /*insert*/ function new_library_info($title,$quantity,$actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `library_info`(`title`,`quantity`,`attachment`, `date`, `time`) VALUES (?,?,?,?,?)")) { $stmt_insert->bind_param("sssss",$title,$quantity,$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } /*fetch*/ function get_all_library_info() { if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`quantity`,`attachment` FROM `library_info` ORDER BY `id` DESC")) { $stmt_insert->bind_result($id,$title,$quantity,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $title; $details[$counter][2] = $quantity; $details[$counter][3] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } /* Library E-learning*/ function insert_library_e_learning($department,$title,$actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `library-e-learning`(`department`,`title`,`image`, `date`, `time`) VALUES (?,?,?,?,?)")) { $stmt_insert->bind_param("sssss",$department,$title,$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } /*fetch library E-learning data*/ function get_all_library_e_learning_info() { if($stmt_select = $this->con->prepare("SELECT `id`,`department`,`title`,`image` FROM `library-e-learning`")) { $stmt_select->bind_result($id,$department,$title,$actual_image_name); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $title; $details[$counter][3] = $actual_image_name; $counter++; } if(!empty($details)) { return $details; } return false; } } } /*Delete from library e-learning*/ function delete_library_e_learning_images($del_id) { if($stmt_delete = $this->con->prepare("Delete from `library-e-learning` where `id`=?")) { $stmt_delete->bind_param("i",$del_id); if($stmt_delete->execute()) { return true; } return false; } } function get_all_library_e_learning_info_departmentwise($department) { if($stmt_select = $this->con->prepare("SELECT `id`,`department`,`title`,`image` FROM `library-e-learning` Where `department` = ?")) { $stmt_select->bind_param("s",$department); $stmt_select->bind_result($id,$department,$title,$actual_image_name); if($stmt_select->execute()) { $counter = 0; $details = array(); while($stmt_select->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $title; $details[$counter][3] = $actual_image_name; $counter++; } if(!empty($details)) { return $details; } return false; } } } function new_alumni_images($title,$actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `alumni_gallery`(`title`,`attachment`, `date`, `time`) VALUES (?,?,?,?)")) { $stmt_insert->bind_param("ssss",$title,$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function delete_alumni_images($del_id) { if($stmt_select = $this->con->prepare("Delete from `alumni_gallery` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function get_all_alumni_gallery() { if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment` FROM `alumni_gallery` ORDER BY `id` DESC")) { $stmt_insert->bind_result($id,$title,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $title; $details[$counter][2] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function new_governing_body($title,$actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `governing_body`(`name`,`designation`, `date`, `time`) VALUES (?,?,?,?)")) { $stmt_insert->bind_param("ssss",$title,$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function delete_governing_body($del_id) { if($stmt_select = $this->con->prepare("Delete from `governing_body` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function get_all_governing_body() { if($stmt_insert = $this->con->prepare("SELECT `id`,`name`,`designation` FROM `governing_body` ORDER BY `id` DESC")) { $stmt_insert->bind_result($id,$title,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $title; $details[$counter][2] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function new_examination_section($title,$actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `examination_section`(`title`,`attachment`, `date`, `time`) VALUES (?,?,?,?)")) { $stmt_insert->bind_param("ssss",$title,$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function delete_examination_section($del_id) { if($stmt_select = $this->con->prepare("Delete from `examination_section` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function get_all_examination_section() { if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment` FROM `examination_section` ORDER BY `id` DESC")) { $stmt_insert->bind_result($id,$title,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $title; $details[$counter][2] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function new_board_of_studies($title,$actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `board_of_studies`(`name`,`designation`, `date`, `time`) VALUES (?,?,?,?)")) { $stmt_insert->bind_param("ssss",$title,$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function delete_board_of_studies($del_id) { if($stmt_select = $this->con->prepare("Delete from `board_of_studies` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function get_all_board_of_studies() { if($stmt_insert = $this->con->prepare("SELECT `id`,`name`,`designation` FROM `board_of_studies` ORDER BY `id` DESC")) { $stmt_insert->bind_result($id,$title,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $title; $details[$counter][2] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function add_library_slider($actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `library_slider`(`images`, `date`, `time`) VALUES (?,?,?)")) { $stmt_insert->bind_param("sss",$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function delete_library_slider($del_id) { if($stmt_select = $this->con->prepare("Delete from `library_slider` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function get_all_library_slider() { if($stmt_insert = $this->con->prepare("SELECT `id`,`images` FROM `library_slider` ORDER BY `id` DESC")) { $stmt_insert->bind_result($id,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } function new_msbte_staff($name,$designation,$qualification,$remark,$status) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `msbte_staff`(`name`,`designation`,`qualification`,`remark`, `status`, `date`, `time`) VALUES (?,?,?,?,?,?,?)")) { $stmt_insert->bind_param("sssssss",$name,$designation,$qualification,$remark,$status,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function get_all_msbte_staff() { if($stmt_insert = $this->con->prepare("SELECT `id`,`name`,`designation`,`qualification`,`remark`,`status` FROM `msbte_staff` ORDER BY `id` DESC")) { $stmt_insert->bind_result($id,$name,$designation,$qualification,$remark,$status); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $name; $details[$counter][2] = $designation; $details[$counter][3] = $qualification; $details[$counter][4] = $remark; $details[$counter][5] = $status; $counter++; } if(!empty($details)) { return $details; } return false; } } } function delete_msbte_staff($del_id) { if($stmt_select = $this->con->prepare("Delete from `msbte_staff` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function new_advisory_board($department,$name,$designation) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `advisory_board`(`department`,`name`, `designation`, `date`, `time`) VALUES (?,?,?,?,?)")) { $stmt_insert->bind_param("sssss",$department,$name,$designation,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function get_advisory_board() { if($stmt_insert = $this->con->prepare("SELECT `id`,`department`,`name`,`designation` FROM `advisory_board` ORDER BY `id` DESC")) { $stmt_insert->bind_result($id,$department,$name,$designation); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $name; $details[$counter][3] = $designation; $counter++; } if(!empty($details)) { return $details; } return false; } } } function delete_advisory_board($del_id) { if($stmt_select = $this->con->prepare("Delete from `advisory_board` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function get_advisory_board_info_departmentwise($department) { if($stmt_insert = $this->con->prepare("SELECT `id`,`department`,`name`,`designation` FROM `advisory_board` Where `department` = ?")) { $stmt_insert->bind_param("s",$department); $stmt_insert->bind_result($id,$department,$name,$designation); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $name; $details[$counter][3] = $designation; $counter++; } if(!empty($details)) { return $details; } return false; } } } function new_laboratory_info($department,$title,$attachment) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `laboratory_info`(`department`,`title`,`attachment`, `date`, `time`) VALUES (?,?,?,?,?)")) { $stmt_insert->bind_param("sssss",$department,$title,$attachment,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function get_all_laboratory_info() { if($stmt_insert = $this->con->prepare("SELECT `id`,`department`,`title`,`attachment` FROM `laboratory_info` ORDER BY `id` DESC")) { $stmt_insert->bind_result($id,$department,$title,$attachment); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $title; $details[$counter][3] = $attachment; $counter++; } if(!empty($details)) { return $details; } return false; } } } function delete_laboratory_info($del_id) { if($stmt_select = $this->con->prepare("Delete from `laboratory_info` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function get_all_laboratory_info_departmentwise($department) { if($stmt_insert = $this->con->prepare("SELECT `id`,`department`,`title`,`attachment` FROM `laboratory_info` Where `department` = ?")) { $stmt_insert->bind_param("s",$department); $stmt_insert->bind_result($id,$department,$title,$attachment); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $department; $details[$counter][2] = $title; $details[$counter][3] = $attachment; $counter++; } if(!empty($details)) { return $details; } return false; } } } function get_all_faculty_info_deptwise($department,$staffwise) { if($stmt_insert = $this->con->prepare("SELECT `id`,`full_name`,`designation`,`qualification`,`subject`,`experience`,`email`,`department`,`staff`,`profile` FROM `faculty_information` Where `department` = ? AND `staff` = ?")) { $stmt_insert->bind_param("ss",$department,$staffwise); $stmt_insert->bind_result($id,$full_name,$designation,$qualification,$subject,$experience,$email,$department,$staff,$profile); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $full_name; $details[$counter][2] = $designation; $details[$counter][3] = $qualification; $details[$counter][4] = $subject; $details[$counter][5] = $experience; $details[$counter][6] = $email; $details[$counter][7] = $department; $details[$counter][8] = $staff; $details[$counter][9] = $profile; $counter++; } if(!empty($details)) { return $details; } return false; } } } function new_scholarship($actual_image_name) { $date = date("Y-m-d"); $time = date("H-i-s A"); if($stmt_insert = $this->con->prepare("INSERT INTO `scholarships`(`images`, `date`, `time`) VALUES (?,?,?)")) { $stmt_insert->bind_param("sss",$actual_image_name,$date,$time); if($stmt_insert->execute()) { return true; } return false; } } function delete_scholarship($del_id) { if($stmt_select = $this->con->prepare("Delete from `scholarships` where `id`=?")) { $stmt_select->bind_param("i",$del_id); if($stmt_select->execute()) { return true; } return false; } } function get_all_scholarship() { if($stmt_insert = $this->con->prepare("SELECT `id`,`images` FROM `scholarships`")) { $stmt_insert->bind_result($id,$images); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $images; $counter++; } if(!empty($details)) { return $details; } return false; } } } } ?>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4