Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/public_html/swamipolytechnic.org/78enc22_main7sqww_8d9/lib/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/swamipolytechnic.org/78enc22_main7sqww_8d9/lib/functions.php

<?php
	session_start();
	
		//date_default_timezone_set('Asia/Kolkata');
		
		class login_function
		{
			private $con;
			
			function __construct()
			{
			    //$this->con	=	new mysqli("localhost","root","","swamipolytechnic_db_2");
				$this->con	=	new mysqli("localhost","wwwdreamtechnolo_admin_swami","zy1sgi280qfe","wwwdreamtechnolo_swami_polytechnic");
			}
			
			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_images($depart,$section,$actual_image_name,$description)
			{						
				$date = date("Y-m-d");
				$time = date("H-i-s A");
				if($stmt_insert = $this->con->prepare("INSERT INTO `gallery`(`departmentt`,`section`,`images`,`description`, `date`, `time`) VALUES (?,?,?,?,?,?)"))
				{ 	
					$stmt_insert->bind_param("ssssss",$depart,$section,$actual_image_name,$description,$date,$time);
					
					if($stmt_insert->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_images()
			{
				if($stmt_insert = $this->con->prepare("SELECT `id`,`department`,`category`,`icons` FROM `category` where `department` = 'College Gallery'"))
				{
					$stmt_insert->bind_result($id,$department,$section,$images);
					
					if($stmt_insert->execute())
					{
							$counter	=	0;
							$details	=	array();
						while($stmt_insert->fetch())
						{
							$details[$counter][0]	=	$id;
							$details[$counter][1]	=	$department;
							$details[$counter][2]	=	$section;
							$details[$counter][3]	=	$images;
						
							$counter++;
						}
						if(!empty($details))	
						{
							return $details;
						}
						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_images($del_id)
			{
				if($stmt_select = $this->con->prepare("Delete from `gallery` where `id`=?"))
				{
					$stmt_select->bind_param("i",$del_id);
				
					if($stmt_select->execute())
					{					
							return true;
					}
						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_news_and_events_images($title,$actual_image_name)
			{							
				$date = date("Y-m-d");
				$time = date("H-i-s A");
				if($stmt_insert = $this->con->prepare("INSERT INTO `news_events`(`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_new_and_events_images($del_id)
			{
				if($stmt_select = $this->con->prepare("Delete from `news_events` where `id`=?"))
				{
					$stmt_select->bind_param("i",$del_id);
				
					if($stmt_select->execute())
					{					
							return true;
					}
						return false;
				}
			}
			function get_all_new_and_events_images()
			{	
				if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment` FROM `news_events` 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_news_and_events_images($up_id,$title)
			{	
				if($stmt_insert = $this->con->prepare("update `news_events` set `title` = ? Where `id`=?"))
				{
					$stmt_insert->bind_param("si",$title,$up_id);
					
					if($stmt_insert->execute())
					{
						return true;
					}
						return false;
				} 	
			}
			function get_all_new_and_events_images_by_id($up_id)
			{	
				if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment` FROM `news_events` 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_news_attachments($up_id)
			{	
				$actual_image_name="";
				
				if($stmt_insert = $this->con->prepare("UPDATE `news_events` set `attachment` = ? Where `id`=?"))
				{
					$stmt_insert->bind_param("si",$actual_image_name,$up_id);
					
					if($stmt_insert->execute())
					{
						return true;
					}
						return false;
				} 	
			}
			function get_news_image_name_by_id($id)
			{
				if($stmt_select = $this->con->prepare("Select `attachment` from `news_events` 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_news_image_info($up_id,$image)
			{	
				if($stmt_insert = $this->con->prepare("UPDATE `news_events` set `attachment` = ? Where `id`=?"))
				{
					$stmt_insert->bind_param("si",$image,$up_id);
					
					if($stmt_insert->execute())
					{
						return true;
					}
						return false;
				} 	
			}
			function new_circular_notice($title,$actual_image_name)
			{							
				$date = date("Y-m-d");
				$time = date("H-i-s A");
				if($stmt_insert = $this->con->prepare("INSERT INTO `circulars_notices`(`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 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 delete_notice($del_id)
			{
				if($stmt_select = $this->con->prepare("Delete from `circulars_notices` where `id`=?"))
				{
					$stmt_select->bind_param("i",$del_id);
				
					if($stmt_select->execute())
					{					
							return true;
					}
						return false;
				}
			}
			
			function get_all_notice()
			{	
				if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment` FROM `circulars_notices` 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_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_academic_calender($department,$title,$actual_image_name)
			{							
				$date = date("Y-m-d");
				$time = date("H-i-s A");
				if($stmt_insert = $this->con->prepare("INSERT INTO `academic_calender`(`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 add_course_contents($department,$title,$actual_image_name)
			{							
				$date = date("Y-m-d");
				$time = date("H-i-s A");
				if($stmt_insert = $this->con->prepare("INSERT INTO `course_contents`(`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_academic_calender()
			{	
				if($stmt_insert = $this->con->prepare("SELECT `id`,`department`,`title`,`attachment` FROM `academic_calender`"))
				{	
					$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_course_contents()
			{	
				if($stmt_insert = $this->con->prepare("SELECT `id`,`department`,`title`,`attachment` FROM `course_contents`"))
				{	
					$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_academic_calender($del_id)
			{
				if($stmt_select = $this->con->prepare("Delete from `academic_calender` where `id`=?"))
				{
					$stmt_select->bind_param("i",$del_id);
				
					if($stmt_select->execute())
					{					
							return true;
					}
						return false;
				}
			}
			function delete_course_contents($del_id)
			{
				if($stmt_select = $this->con->prepare("Delete from `course_contents` 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;
				}
			}
			
			function delete_important_links($del_id)
			{
				if($stmt_select = $this->con->prepare("Delete from `important_links` where `id`=?"))
				{
					$stmt_select->bind_param("i",$del_id);
				
					if($stmt_select->execute())
					{					
							return true;
					}
						return false;
				}
			}
			
			function new_activity($title,$actual_image_name,$d_picker)
			{							
				$date = date("Y-m-d");
				$time = date("H-i-s A");
				if($stmt_insert = $this->con->prepare("INSERT INTO `activities`(`title`,`attachment`,`date_picker`, `date`, `time`) VALUES (?,?,?,?,?)"))
				{
					$stmt_insert->bind_param("sssss",$title,$actual_image_name,$d_picker,$date,$time);
					
					if($stmt_insert->execute())
					{
						return true;
					}
						return false;
				} 	
			}
			function delete_activity($del_id)
			{
				if($stmt_select = $this->con->prepare("Delete from `activities` where `id`=?"))
				{
					$stmt_select->bind_param("i",$del_id);
				
					if($stmt_select->execute())
					{					
							return true;
					}
						return false;
				}
			}
			function get_all_activity()
			{	
				if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment`,`date_picker` FROM `activities` ORDER BY `id` DESC"))
				{	
					$stmt_insert->bind_result($id,$title,$images,$date_picker);
					
					if($stmt_insert->execute())
					{
							$counter	=	0;
							$details	=	array();
						while($stmt_insert->fetch())
						{
							$details[$counter][0]	=	$id;
							$details[$counter][1]	=	$title;
							$details[$counter][2]	=	$images;
							$details[$counter][3]	=	$date_picker;
						
							$counter++;
						}
						if(!empty($details))	
						{
							return $details;
						}
						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;
					}	
				}
			}
			
			
			function get_all_gallery_images_new_1()
			{
				if($stmt_select = $this->con->prepare("SELECT `id`,`departmentt`,`section`,`images`,`description` FROM `gallery`"))
				{
					$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 get_all_course_contents_department_wise($department)
			{	
				if($stmt_insert = $this->con->prepare("SELECT `id`,`department`,`title`,`attachment` FROM `course_contents` 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_newsletters($department,$title)
			{	
				if($stmt_insert = $this->con->prepare("SELECT `id`,`department`,`title`,`attachment` FROM `newsletters` Where `department` = ? AND `title`=?"))
				{	
					$stmt_insert->bind_param("ss",$department,$title);
					
					$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;
					}	
				}
			}
			
			
			
			
			
			
			function new_important_links($title,$url,$actual_image_name)
			{							
				$date = date("Y-m-d");
				$time = date("H-i-s A");
				if($stmt_insert = $this->con->prepare("INSERT INTO `important_links`(`title`,`attachment`,`image`, `date`, `time`) VALUES (?,?,?,?,?)"))
				{
					$stmt_insert->bind_param("sssss",$title,$url,$actual_image_name,$date,$time);
					
					if($stmt_insert->execute())
					{
						return true;
					}
						return false;
				} 	
			}
/*fetch*/			
function get_all_important_links()
			{	
				if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment`,`image` FROM `important_links` ORDER BY `id` DESC"))
				{	
					$stmt_insert->bind_result($id,$title,$url,$image);
					
					if($stmt_insert->execute())
					{
							$counter	=	0;
							$details	=	array();
						while($stmt_insert->fetch())
						{
							$details[$counter][0]	=	$id;
							$details[$counter][1]	=	$title;
							$details[$counter][2]	=	$url;
							$details[$counter][3]	=	$image;
						
							$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 new_academic_calender($title,$actual_image_name)
			{
				$date = date("Y-m-d");
				$time = date("H-i-s A");
				
				if($stmt_insert = $this->con->prepare("INSERT INTO `academic_calenders_multi`(`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 new_newsletter($title,$actual_image_name,$department)
			{
				$date = date("Y-m-d");
				$time = date("H-i-s A");
				
				if($stmt_insert = $this->con->prepare("INSERT INTO `newsletters`(`title`,`attachment`, `date`, `time`,`department`) VALUES (?,?,?,?,?)"))
				{
					$stmt_insert->bind_param("sssss",$title,$actual_image_name,$date,$time,$department);
					
					if($stmt_insert->execute())
					{
						return true;
					}
						return false;
				} 	
			}
			
			
			function new_audit_report($title,$actual_image_name)
			{
				$date = date("Y-m-d");
				$time = date("H-i-s A");
				
				if($stmt_insert = $this->con->prepare("INSERT INTO `audit_reports`(`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 new_aicte_approval_file($title,$actual_image_name)
			{
				$date = date("Y-m-d");
				$time = date("H-i-s A");
				
				if($stmt_insert = $this->con->prepare("INSERT INTO `aicte_approvals`(`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 delete_academic_calenders($del_id)
			{
				if($stmt_select = $this->con->prepare("Delete from `academic_calenders_multi` where `id`=?"))
				{
					$stmt_select->bind_param("i",$del_id);
				
					if($stmt_select->execute())
					{					
							return true;
					}
						return false;
				}
			}
			
			function delete_newsletter($del_id)
			{
				if($stmt_select = $this->con->prepare("Delete from `newsletters` where `id`=?"))
				{
					$stmt_select->bind_param("i",$del_id);
				
					if($stmt_select->execute())
					{					
							return true;
					}
						return false;
				}
			}
			
			function delete_audit_report($del_id)
			{
				if($stmt_select = $this->con->prepare("Delete from `audit_reports` where `id`=?"))
				{
					$stmt_select->bind_param("i",$del_id);
				
					if($stmt_select->execute())
					{					
							return true;
					}
						return false;
				}
			}
			
			function delete_aicte_approvals($del_id)
			{
				if($stmt_select = $this->con->prepare("Delete from `aicte_approvals` 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 get_all_academic_caloendrers_report()
			{
				if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment` FROM `academic_calenders_multi` 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_newsletters()
			{
				if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment`,`department` FROM `newsletters` ORDER BY `id` DESC"))
				{	
					$stmt_insert->bind_result($id,$title,$images,$department);
					
					if($stmt_insert->execute())
					{
						$counter	=	0;
						$details	=	array();
						
						while($stmt_insert->fetch())
						{
							$details[$counter][0]	=	$id;
							$details[$counter][1]	=	$title;
							$details[$counter][2]	=	$images;
							$details[$counter][3]	=	$department;
						
							$counter++;
						}
						if(!empty($details))	
						{
							return $details;
						}
						return false;
					}	
				}
			}
			
			function get_all_newsletters_from_dept_val($dept_val)
			{
				if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment`,`department` FROM `newsletters` where `department`=? ORDER BY `id` DESC"))
				{	
					$stmt_insert->bind_param("s",$dept_val);
					
					$stmt_insert->bind_result($id,$title,$images,$department);
					
					if($stmt_insert->execute())
					{
						$counter	=	0;
						$details	=	array();
						
						while($stmt_insert->fetch())
						{
							$details[$counter][0]	=	$id;
							$details[$counter][1]	=	$title;
							$details[$counter][2]	=	$images;
							$details[$counter][3]	=	$department;
						
							$counter++;
						}
						if(!empty($details))	
						{
							return $details;
						}
						return false;
					}	
				}
			}
			
			function get_all_audit_report()
			{
				if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment` FROM `audit_reports` 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_aicte_approval_files()
			{
				if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment` FROM `aicte_approvals` 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` ASC"))
				{	
					$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_committee_info($title,$attachment)
			{							
				$date = date("Y-m-d");
				$time = date("H-i-s A");
				if($stmt_insert = $this->con->prepare("INSERT INTO `committee_info`(`title`,`attachment`, `date`, `time`) VALUES (?,?,?,?)"))
				{
					$stmt_insert->bind_param("ssss",$title,$attachment,$date,$time);
					
					if($stmt_insert->execute())
					{
						return true;
					}
						return false;
				} 	
			}
			function get_all_committee_info()
			{	
				if($stmt_insert = $this->con->prepare("SELECT `id`,`title`,`attachment` FROM `committee_info` ORDER BY `id` DESC"))
				{	
					$stmt_insert->bind_result($id,$title,$attachment);
					
					if($stmt_insert->execute())
					{
							$counter	=	0;
							$details	=	array();
						while($stmt_insert->fetch())
						{
							$details[$counter][0]	=	$id;
							$details[$counter][1]	=	$title;
							$details[$counter][2]	=	$attachment;
							
							$counter++;
						}
						if(!empty($details))	
						{
							return $details;
						}
						return false;
					}	
				}
			}
			function delete_committee_info($del_id)
			{
				if($stmt_select = $this->con->prepare("Delete from `committee_info` 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 new_department_vision_mission_info($department,$title,$attachment)
			{							
				$date = date("Y-m-d");
				$time = date("H-i-s A");
				if($stmt_insert = $this->con->prepare("INSERT INTO `department_vision_mission`(`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 new_department_info_file_add($department,$title,$attachment)
			{							
				$date = date("Y-m-d");
				$time = date("H-i-s A");
				if($stmt_insert = $this->con->prepare("INSERT INTO `dept_files`(`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 new_department_annexure_faculty_profile_info($department,$title,$attachment)
			{							
				$date = date("Y-m-d");
				$time = date("H-i-s A");
				
				if($stmt_insert = $this->con->prepare("INSERT INTO `department_annexure_faculty_profile`(`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 new_about_us_vision_mission_info($department,$title,$attachment)
			{							
				$date = date("Y-m-d");
				$time = date("H-i-s A");
				
				if($stmt_insert = $this->con->prepare("INSERT INTO `about_us_vision_mission`(`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 get_all_departmentwise_vission_mission_report()
			{
				if($stmt_insert = $this->con->prepare("SELECT `id`,`department`,`title`,`attachment` FROM `department_vision_mission` 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 get_all_result_activities_news_letters()
			{
				if($stmt_insert = $this->con->prepare("SELECT `id`,`department`,`title`,`attachment` FROM `dept_files` 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 get_all_department_annexure_faculty_profile_report()
			{
				if($stmt_insert = $this->con->prepare("SELECT `id`,`department`,`title`,`attachment` FROM `department_annexure_faculty_profile` 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 get_all_about_us_vision_mission()
			{
				if($stmt_insert = $this->con->prepare("SELECT `id`,`department`,`title`,`attachment` FROM `about_us_vision_mission` 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 delete_deptwise_vision_mission_info($del_id)
			{
				if($stmt_select = $this->con->prepare("Delete from `department_vision_mission` where `id`=?"))
				{
					$stmt_select->bind_param("i",$del_id);
				
					if($stmt_select->execute())
					{					
							return true;
					}
						return false;
				}
			}
			
			function delete_deptwise_file_info($del_id)
			{
				if($stmt_select = $this->con->prepare("Delete from `dept_files` where `id`=?"))
				{
					$stmt_select->bind_param("i",$del_id);
				
					if($stmt_select->execute())
					{					
							return true;
					}
						return false;
				}
			}
			
			function delete_department_annexure_faculty_profile_info($del_id)
			{
				if($stmt_select = $this->con->prepare("Delete from `department_annexure_faculty_profile` where `id`=?"))
				{
					$stmt_select->bind_param("i",$del_id);
				
					if($stmt_select->execute())
					{					
							return true;
					}
						return false;
				}
			}
			
			function delete_about_us_vission_mission_info($del_id)
			{
				if($stmt_select = $this->con->prepare("Delete from `about_us_vision_mission` 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 add_category($depart,$category,$actual_image_name)
			{							
				$date = date("Y-m-d");
				$time = date("H-i-s A");
				if($stmt_insert = $this->con->prepare("INSERT INTO `category`(`department`,`category`,`icons`, `date`, `time`) VALUES (?,?,?,?,?)"))
				{
					$stmt_insert->bind_param("sssss",$depart,$category,$actual_image_name,$date,$time);
					
					if($stmt_insert->execute())
					{
						return true;
					}
						return false;
				} 	
			}
			function get_all_category_info()
			{	
				if($stmt_insert = $this->con->prepare("SELECT `id`,`department`,`category`,`icons` FROM `category` ORDER BY `id` DESC"))
				{	
					$stmt_insert->bind_result($id,$department,$category,$attachment);
					
					if($stmt_insert->execute())
					{
							$counter	=	0;
							$details	=	array();
						while($stmt_insert->fetch())
						{
							$details[$counter][0]	=	$id;
							$details[$counter][1]	=	$department;
							$details[$counter][2]	=	$category;
							$details[$counter][3]	=	$attachment;
							
							$counter++;
						}
						if(!empty($details))	
						{
							return $details;
						}
						return false;
					}	
				}
			}
			function delete_category($del_id)
			{
				if($stmt_select = $this->con->prepare("Delete from `category` where `id`=?"))
				{
					$stmt_select->bind_param("i",$del_id);
				
					if($stmt_select->execute())
					{					
							return true;
					}
						return false;
				}
			}
			function get_all_category_info_by_id($up_id)
			{	
				if($stmt_insert = $this->con->prepare("SELECT `id`,`department`,`category`,`icons` FROM `category` Where `id` = ?"))
				{	
					$stmt_insert->bind_param("i",$up_id);
					
					$stmt_insert->bind_result($id,$department,$category,$attachment);
					
					if($stmt_insert->execute())
					{
							$counter	=	0;
							$details	=	array();
						while($stmt_insert->fetch())
						{
							$details[$counter][0]	=	$id;
							$details[$counter][1]	=	$department;
							$details[$counter][2]	=	$category;
							$details[$counter][3]	=	$attachment;
							
							$counter++;
						}
						if(!empty($details))	
						{
							return $details;
						}
						return false;
					}	
				}
			}
			function check_category_exist_or_not($category,$depart)
			{
				if($stmt_select = $this->con->prepare("Select `id` from `category` where `category` = ? And `department` = ? "))
				{	
					$stmt_select->bind_param("ss",$category,$depart);
				
					$stmt_select->bind_result($result_password);
				
					if($stmt_select->execute())
					{
						if($stmt_select->fetch())
						{
							return $result_password;
						}
					}
							return false;
				}
			}
			function update_category($up_id,$depart,$category)
			{	
				if($stmt_insert = $this->con->prepare("UPDATE `category` set `department` = ?,`category` = ? Where  `id` = ?"))
				{
					$stmt_insert->bind_param("ssi",$depart,$category,$up_id);
					
					if($stmt_insert->execute())
					{
						return true;
					}
						return false;
				} 	
			}
			function update_category_icons($up_id)
			{	
				$actual_image_name="";
				
				if($stmt_insert = $this->con->prepare("UPDATE `category` set `icons` = ? Where `id`=?"))
				{
					$stmt_insert->bind_param("si",$actual_image_name,$up_id);
					
					if($stmt_insert->execute())
					{
						return true;
					}
						return false;
				} 	
			}
			function get_category_icons($id)
			{
				if($stmt_select = $this->con->prepare("Select `icons` from `category` 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 get_department_vision_mission_exist($department)
			{
				if($stmt_select = $this->con->prepare("Select `attachment` from `department_vision_mission` where `department` = ? "))
				{
					$stmt_select->bind_param("s",$department);
				
					$stmt_select->bind_result($result_val);
				
					if($stmt_select->execute())
					{
						if($stmt_select->fetch())
						{
							return $result_val;
						}
					}
					return false;
				}
			}
			
			function get_dept_files_exist($department,$section)
			{
				if($stmt_select = $this->con->prepare("Select `attachment` from `dept_files` where `department` = ? AND `title`=?"))
				{
					$stmt_select->bind_param("ss",$department,$section);
				
					$stmt_select->bind_result($result_val);
				
					if($stmt_select->execute())
					{
						if($stmt_select->fetch())
						{
							return $result_val;
						}
					}
					return false;
				}
			}
			
			function get_department_annexure_faculty_profile_exist($department)
			{
				if($stmt_select = $this->con->prepare("Select `attachment` from `department_annexure_faculty_profile` where `department` = ? "))
				{
					$stmt_select->bind_param("s",$department);
				
					$stmt_select->bind_result($result_val);
				
					if($stmt_select->execute())
					{
						if($stmt_select->fetch())
						{
							return $result_val;
						}
					}
					return false;
				}
			}
			
			function get_about_us_exist($section)
			{
				if($stmt_select = $this->con->prepare("Select `attachment` from `about_us_vision_mission` where `department` = ?"))
				{
					$stmt_select->bind_param("s",$section);
					
					$stmt_select->bind_result($result_val);
				
					if($stmt_select->execute())
					{
						if($stmt_select->fetch())
						{
							return $result_val;
						}
					}
					return false;
				}
			}
			
			function update_category_icons_info($up_id,$image)
			{	
				if($stmt_insert = $this->con->prepare("UPDATE `category` set `icons` = ? Where `id`=?"))
				{
					$stmt_insert->bind_param("si",$image,$up_id);
					
					if($stmt_insert->execute())
					{
						return true;
					}
						return false;
				} 	
			}
			function get_all_department_categorywise($c_id)
			{	
				if($stmt_insert = $this->con->prepare("SELECT `id`,`department`,`category`,`icons` FROM `category` Where `id` = ?"))
				{	
					$stmt_insert->bind_param("i",$c_id);
					
					$stmt_insert->bind_result($id,$department,$category,$attachment);
					
					if($stmt_insert->execute())
					{
							$counter	=	0;
							$details	=	array();
						while($stmt_insert->fetch())
						{
							$details[$counter][0]	=	$id;
							$details[$counter][1]	=	$department;
							$details[$counter][2]	=	$category;
							$details[$counter][3]	=	$attachment;
							
							$counter++;
						}
						if(!empty($details))	
						{
							return $details;
						}
						return false;
					}	
				}
			}
			function category_name_by_id($id)
			{
				if($stmt_select = $this->con->prepare("Select `category` from `category` 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 get_all_category_department_wise($department)
			{	
				if($stmt_select = $this->con->prepare("SELECT `id`,`department`,`category`,`icons` FROM `category` where `department`= ?"))
				{	
					$stmt_select->bind_param("s",$department);
					
					$stmt_select->bind_result($id,$department,$section,$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]	=	$images;
						
							$counter++;
						}
						if(!empty($details))	
						{
							return $details;
						}
						return false;
					}	
				}
			}

			
			function save_grievance_form($firstname,$middlename,$lastname,$mobile_no,$email_id,$address,$district,$taluka,$applicant,$college_name,$grievance_category,$grievance_subj,$grievance_details,$file,$declaration,$enroll_no,$qualification_id,$occupation_id,$designation_id,$department_id)
			{							
				$date = date("Y-m-d");
				$time = date("H-i-s A");
				if($stmt_insert = $this->con->prepare("INSERT INTO `grievance_form`(`firstname`, `middlename`, `lastname`, `mobile_no`, `email_id`, `address`, `district`, `taluka`, `applicant`, `college_name`, `grievance_category`, `grievance_subj`, `grievance_details`, `file`, `declaration`, `date`, `time`,`enroll_no`, `qualification_id`, `occupation_id`, `designation_id`, `department_id`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"))
				{
					$stmt_insert->bind_param("ssssssssssssssssssssss",$firstname,$middlename,$lastname,$mobile_no,$email_id,$address,$district,$taluka,$applicant,$college_name,$grievance_category,$grievance_subj,$grievance_details,$file,$declaration,$date,$time,$enroll_no,$qualification_id,$occupation_id,$designation_id,$department_id);
					
					if($stmt_insert->execute())
					{
						return true;
					}
						return false;
				} 	
			}
			
			function get_all_grievance_report()
			{
				if($stmt_select = $this->con->prepare("SELECT `id`, `firstname`, `middlename`, `lastname`, `mobile_no`, `email_id`, `address`, `district`, `taluka`, `applicant`, `college_name`, `grievance_category`, `grievance_subj`, `grievance_details`, `file`,`date`, `time`,`enroll_no`, `qualification_id`, `occupation_id`, `designation_id`, `department_id` FROM `grievance_form`"))
				{	
					
					$stmt_select->bind_result($res_id,$firstname,$middlename,$lastname,$mobile_no,$email_id,$address,$district,$taluka,$applicant,$college_name,$grievance_category,$grievance_subj,$grievance_details,$documents,$date,$time,$enroll_no,$qualification_id,$occupation_id,$designation_id,$department_id);
					
					if($stmt_select->execute())
					{ 
							$counter	=	0;
							$details	=	array();
						while($stmt_select->fetch())
						{ 
							$details[$counter][0]	=	$res_id;
							$details[$counter][1]	=	$firstname;
							$details[$counter][2]	=	$middlename;
							$details[$counter][3]	=	$lastname;
							$details[$counter][4]	=	$mobile_no;
							$details[$counter][5]	=	$email_id;
							$details[$counter][6]	=	$address;
							$details[$counter][7]	=	$district;
							$details[$counter][8]	=	$taluka;
							$details[$counter][9]	=	$applicant;
							$details[$counter][10]	=	$college_name;
							$details[$counter][11]	=	$grievance_category;
							$details[$counter][12]	=	$grievance_subj;
							$details[$counter][13]	=	$grievance_details;
							$details[$counter][14]	=	$documents;
							$details[$counter][15]	=	$date;
							$details[$counter][16]	=	$time;
							$details[$counter][17]	=	$enroll_no;
							$details[$counter][18]	=	$qualification_id;
							$details[$counter][19]	=	$occupation_id;
							$details[$counter][20]	=	$designation_id;
							$details[$counter][21]	=	$department_id;
						
							$counter++;
						}
						if(!empty($details))	
						{
							return $details;
						}
						return false;
					}	
				}
			}

		function delete_grievance($del_id)
		{
			if($stmt_select = $this->con->prepare("Delete from `grievance_form` where `id`=?"))
				{
					$stmt_select->bind_param("i",$del_id);
				
					if($stmt_select->execute())
					{					
							return true;
					}
						return false;
				}
		}	
			//28-2
		function get_all_cos_pos_info()
			{	
				if($stmt_select = $this->con->prepare("SELECT `id`,`department_name`,`depart_image` FROM `cos_pos`"))
				{	
					$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;
					}	
				}
			}
		    function departmental_cos_pos($department,$actual_image_name)
			{							
				$date = date("Y-m-d");
				$time = date("H-i-s A");
				if($stmt_insert = $this->con->prepare("INSERT INTO `cos_pos`(`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;
				} 	
			}
			function delete_cos_pos_images($del_id)
			{
				if($stmt_select = $this->con->prepare("Delete from `cos_pos` where `id`=?"))
				{
					$stmt_select->bind_param("i",$del_id);
				
					if($stmt_select->execute())
					{					
							return true;
					}
						return false;
				}
			}
			function get_all_departmentwise_cos_pos($department)
			{	
				if($stmt_insert = $this->con->prepare("SELECT `id`,`depart_image` FROM `cos_pos` 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;
					}	
				}
			}
            //1-3-2021
            function new_slider_images_footer($actual_image_name)
			{							
				$date = date("Y-m-d");
				$time = date("H-i-s A");
				if($stmt_insert = $this->con->prepare("INSERT INTO `slider_images_footer`(`images`, `date`, `time`) VALUES (?,?,?)"))
				{
					$stmt_insert->bind_param("sss",$actual_image_name,$date,$time);
					
					if($stmt_insert->execute())
					{
						return true;
					}
						return false;
				} 	
			}
			function delete_slider_images_footer($del_id)
			{
				if($stmt_select = $this->con->prepare("Delete from `slider_images_footer` where `id`=?"))
				{
					$stmt_select->bind_param("i",$del_id);
				
					if($stmt_select->execute())
					{					
							return true;
					}
						return false;
				}
			}
			function get_all_slider_images_footer()
			{	
				
				if($stmt_insert = $this->con->prepare("SELECT `id`,`images` FROM `slider_images_footer`"))
				{	
					
					$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;
					}	
				}
			}
	}//end
?>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

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