GOOGLE
<?php include("../includes/connection.php");
date_default_timezone_set('Asia/Calcutta');
$dates = date("Y-m-d H:i:s"); // time in India
if(isset($_POST['home'])!=''){
extract($_POST);
echo "emkim";
if($heading!="")
{
$update = mysql_query("UPDATE `home` SET `heading`='".addslashes($heading)."', `details`='".addslashes($content)."' WHERE `id`='".$_POST['id']."'");
header("Location:../manage_about.php");
}else{
echo '<span style=color:red;>Please Enter Heading Name</span>';
}
}
if(isset($_POST['genesis'])){
extract($_POST);
//echo $id =$_POST['id'];
// echo $res['heading'];
$images = $_FILES["image"]["name"];
if($images!=""){
$target_dir = "../../uploadedImage/genesis/";
$target_file = $target_dir . basename($_FILES["image"]["name"]);
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}else
{
$images = $_POST['imagID'];
}
if($heading!="")
{
$update = mysql_query("UPDATE `static_pages` SET `heading`='".addslashes($heading)."', `content`='".addslashes($content)."', `image`='".addslashes($images)."' WHERE `id`='".$_POST['id']."'");
header("Location:../manage_genesis.php");
}else
{
echo '<span style=color:red;>Please Enter Heading Name</span>';
}
}
if(isset($_POST['governing'])){
extract($_POST);
//echo $id =$_POST['id'];
// echo $res['heading'];
$images = $_FILES["image"]["name"];
if($images!=""){
$target_dir = "../../uploadedImage/body/";
$ext = pathinfo($images, PATHINFO_EXTENSION);
$time = time($images).'.'.$ext;
$target_file = $target_dir . $time;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}else
{
echo $time = $_POST['imagID'];
}
if($name!="")
{
$insert = mysql_query("INSERT INTO `management`(`name`,`body`,`designation`,`image`,`content`)VALUES('".$name."','".$body."','".$designation."','$time','".addslashes($content)."')");
header("Location:../manage_managment.php");
}else
{
echo '<span style=color:red;>Please Enter Name</span>';
}
}
if(isset($_POST['add_student'])){
extract($_POST);
//echo $id =$_POST['id'];
// echo $res['heading'];
$images = $_FILES["image"]["name"];
if($images!=""){
$target_dir = "../../uploadedImage/student/";
$ext = pathinfo($images, PATHINFO_EXTENSION);
$time = time($images).'.'.$ext;
$target_file = $target_dir . $time;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}else
{
echo $time = $_POST['imagID'];
}
if($heading!="")
{
$insert = mysql_query("INSERT INTO `student_section`(`section`,`heading`,`content`,`image`,`date_time`)VALUES('".$category."','".$heading."','".$content."','".$time."','".date("Y-m-d")."')");
header("Location:../manage_student_section.php");
}else
{
echo "<script>
alert('Please Enter Proper Data');
window.lcation.href='../manage_student_section.php';
</script>";
// echo '<span style=color:red;>Please Enter Name</span>';
}
}
if(isset($_POST['edit_student'])){
extract($_POST);
$id =$_GET['id'];
// echo $res['heading'];
$images = $_FILES["image"]["name"];
if($images!=""){
$target_dir = "../../uploadedImage/student/";
$ext = pathinfo($images, PATHINFO_EXTENSION);
$time = time($images).'.'.$ext;
$target_file = $target_dir . $time;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}else
{
$time = $_POST['imagID'];
}
if($heading!="")
{
$update = mysql_query("UPDATE `student_section` SET `section`='".$category."',`heading`='".$heading."',`content`='".$content."',`image`='".$time."' WHERE `id`='".$id."'");
header("Location:../manage_student_section.php");
}else
{
echo "<script>
alert('Please Enter Proper Data');
window.lcation.href='../manage_student_section.php';
</script>";
// echo '<span style=color:red;>Please Enter Name</span>';
}
}
if(isset($_POST['add_syllabus'])){
extract($_POST);
//echo $id =$_POST['id'];
// echo $res['heading'];
$images = $_FILES["image"]["name"];
if($images!=""){
$target_dir = "../../uploadedImage/syllabus/";
$ext = pathinfo($images, PATHINFO_EXTENSION);
$time = time($images).'.'.$ext;
$target_file = $target_dir . $time;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}else
{
echo $time = $_POST['imagID'];
}
if($heading!="")
{
$insert = mysql_query("INSERT INTO `syllabus`(`heading`,`content`,`image_pdf`,`date_time`,`department`)VALUES('".$heading."','".$content."','".$time."','".date("Y-m-d")."','".$department."')");
header("Location:../manage_syllabus.php");
}else
{
echo "<script>
alert('Please Enter Proper Data');
window.lcation.href='../manage_syllabus.php';
</script>";
// echo '<span style=color:red;>Please Enter Name</span>';
}
}
if(isset($_POST['edit_syllabus'])){
extract($_POST);
//echo $id =$_POST['id'];
// echo $res['heading'];
$images = $_FILES["image"]["name"];
if($images!=""){
$target_dir = "../../uploadedImage/syllabus/";
$ext = pathinfo($images, PATHINFO_EXTENSION);
$time = time($images).'.'.$ext;
$target_file = $target_dir . $time;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}else
{
echo $time = $_POST['imagID'];
}
if($heading!="")
{
$update = mysql_query("UPDATE `syllabus` SET `heading`='".$heading."',`department`='".$department."',`content`='".$content."',`image_pdf`='".$time."',`status`='".$status."' WHERE `id`='".$id."'");
// $insert = mysql_query("INSERT INTO `syllabus`(`heading`,`content`,`image_pdf`,`date_time`)VALUES('".$heading."','".$content."','".$time."','".date("Y-m-d")."')");
header("Location:../manage_syllabus.php");
}else
{
echo "<script>
alert('Please Enter Proper Data');
window.lcation.href='../manage_syllabus.php';
</script>";
// echo '<span style=color:red;>Please Enter Name</span>';
}
}
if(isset($_POST['add_training'])){
extract($_POST);
//echo $id =$_POST['id'];
// echo $res['heading'];
$images = $_FILES["image"]["name"];
if($images!=""){
$target_dir = "../../uploadedImage/training/";
$ext = pathinfo($images, PATHINFO_EXTENSION);
$time = time($images).'.'.$ext;
$target_file = $target_dir . $time;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}else
{
$time = $_POST['imagID'];
}
if($heading!="")
{
$insert = mysql_query("INSERT INTO `training`(`heading`,`content`,`image`,`date_time`)VALUES('".$heading."','".$content."','".$time."','".date("Y-m-d")."')");
header("Location:../manage_training.php");
}else
{
echo "<script>
alert('Please Enter Proper Data');
window.lcation.href='../manage_training.php';
</script>";
// echo '<span style=color:red;>Please Enter Name</span>';
}
}
if(isset($_POST['edit_training'])){
extract($_POST);
//echo $id =$_POST['id'];
// echo $res['heading'];
$images = $_FILES["image"]["name"];
if($images!=""){
$target_dir = "../../uploadedImage/training/";
$ext = pathinfo($images, PATHINFO_EXTENSION);
$time = time($images).'.'.$ext;
$target_file = $target_dir . $time;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}else
{
echo $time = $_POST['imagID'];
}
if($heading!="")
{
$update = mysql_query("UPDATE `training` SET `heading`='".$heading."',`content`='".$content."',`image`='".$time."' WHERE `id`='".$id."'");
// $insert = mysql_query("INSERT INTO `syllabus`(`heading`,`content`,`image_pdf`,`date_time`)VALUES('".$heading."','".$content."','".$time."','".date("Y-m-d")."')");
header("Location:../manage_training.php");
}else
{
echo "<script>
alert('Please Enter Proper Data');
window.lcation.href='../manage_training.php';
</script>";
// echo '<span style=color:red;>Please Enter Name</span>';
}
}
if(isset($_POST['edit_governing'])){
extract($_POST);
$images = $_FILES["image"]["name"];
$id = $_GET['id'];
if($images!=""){
$target_dir = "../../uploadedImage/body/";
$ext = pathinfo($images, PATHINFO_EXTENSION);
$time = time($images).'.'.$ext;
$target_file = $target_dir . $time;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}else
{
$time = $imagID;
}
if($body!="")
{
$update = mysql_query("UPDATE `management` SET `name`='$name',`designation`='$designation',`qualification`='$qualification',`specialization`='$specialization',`mobile`='$mobile',`body`='$body',`email`='$email',`sort`='$sort',`content`='".addslashes($content)."',`image`='$time' WHERE `id`='".$_GET['id']."'");
header("Location:../manage_managment.php");
}else
{
echo '<span style=color:red;>Please Enter Heading Name</span>';
}
}
if(isset($_POST['add_department'])){
extract($_POST);
//echo $id =$_POST['id'];
// echo $res['heading'];
$image1 = $_FILES["image1"]["name"];
$image2 = $_FILES["image2"]["name"];
$image3 = $_FILES["image3"]["name"];
$image4 = $_FILES["image4"]["name"];
if($image1!=""){
$target_dir = "../../uploadedImage/department/";
$ext = pathinfo($image1, PATHINFO_EXTENSION);
//$time = time($image1).'.'.$ext;
$target_file = $target_dir . $image1;
$up = move_uploaded_file($_FILES["image1"]["tmp_name"], $target_file);
}
if($image2!=""){
$target_dir = "../../uploadedImage/department/";
$ext = pathinfo($image2, PATHINFO_EXTENSION);
$time = time($image2).'.'.$ext;
$target_file = $target_dir . $image2;
$up = move_uploaded_file($_FILES["image2"]["tmp_name"], $target_file);
}
if($image3!=""){
$target_dir = "../../uploadedImage/department/";
$ext = pathinfo($image3, PATHINFO_EXTENSION);
$time = time($image3).'.'.$ext;
$target_file = $target_dir . $image3;
$up = move_uploaded_file($_FILES["image3"]["tmp_name"], $target_file);
}
if($image4!=""){
$target_dir = "../../uploadedImage/department/";
$ext = pathinfo($image4, PATHINFO_EXTENSION);
$time = time($image4).'.'.$ext;
$target_file = $target_dir . $image4;
$up = move_uploaded_file($_FILES["image4"]["tmp_name"], $target_file);
}
if($dept!="")
{
$insert = mysql_query("INSERT INTO `department`(`department`,`heading`,`content`,`image1`,`image2`,`image3`,`image4`,`date_time`)VALUES('".addslashes($dept)."','".addslashes($heading)."','".addslashes($content)."','".addslashes($image1)."','".addslashes($image2)."','".addslashes($image3)."','".addslashes($image4)."','$dates')");
header("Location:../manage_department.php");
}else{
?>
<script>
alert("Please Fill Data");
window.location.href='../manage_department.php';
</script>
<?php
//echo '<span style=color:red;>Please Enter Heading Name</span>';
}
}
if(isset($_POST['add_laboratories'])){
extract($_POST);
//echo $id =$_POST['id'];
// echo $res['heading'];
$image1 = $_FILES["image1"]["name"];
if($image1!=""){
$target_dir = "../../uploadedImage/laboratories/";
$ext = pathinfo($image1, PATHINFO_EXTENSION);
//$time = time($image1).'.'.$ext;
$target_file = $target_dir . $image1;
$up = move_uploaded_file($_FILES["image1"]["tmp_name"], $target_file);
}
if($dept!="")
{
$insert = mysql_query("INSERT INTO `laboratories`(`department`,`heading`,`content`,`image`,`date_time`)VALUES('".addslashes($dept)."','".addslashes($heading)."','".addslashes($content)."','".addslashes($image1)."','$dates')");
header("Location:../manage_Laboratories.php");
}else{
?>
<script>
alert("Please Fill Data");
window.location.href='../manage_Laboratories.php';
</script>
<?php
//echo '<span style=color:red;>Please Enter Heading Name</span>';
}
}
if(isset($_POST['edit_laboratories'])){
extract($_POST);
//echo $id =$_POST['id'];
// echo $res['heading'];
$image1 = $_FILES["image"]["name"];
if($image1!=""){
$target_dir = "../../uploadedImage/laboratories/";
$ext = pathinfo($image1, PATHINFO_EXTENSION);
//$time = time($image1).'.'.$ext;
$target_file = $target_dir . $image1;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}else{
$image1 = $_POST['ach_image1a'];
}
if($dept!="")
{
$updae = mysql_query("UPDATE `laboratories` SET `department`='".addslashes($dept)."',`heading`='".addslashes($heading)."',`content`='".addslashes($content)."',`image`='".addslashes($image1)."' WHERE `id`='".$_GET['id']."'");
header("Location:../manage_Laboratories.php");
}else{
?>
<script>
alert("Please Fill Data");
window.location.href='../manage_Laboratories.php';
</script>
<?php
//echo '<span style=color:red;>Please Enter Heading Name</span>';
}
}
if(isset($_POST['edit_department'])){
extract($_POST);
//echo $id =$_POST['id'];
// echo $res['heading'];
$image1 = $_FILES["image1"]["name"];
$image2 = $_FILES["image2"]["name"];
$image3 = $_FILES["image3"]["name"];
$image4 = $_FILES["image4"]["name"];
if($image1!=""){
$target_dir = "../../uploadedImage/department/";
$ext = pathinfo($image1, PATHINFO_EXTENSION);
//$time = time($image1).'.'.$ext;
$target_file = $target_dir . $image1;
$up = move_uploaded_file($_FILES["image1"]["tmp_name"], $target_file);
}else
{
$image1 = $_POST['ach_image1a'];
}
if($image2!=""){
$target_dir = "../../uploadedImage/department/";
$ext = pathinfo($image2, PATHINFO_EXTENSION);
$time = time($image2).'.'.$ext;
$target_file = $target_dir . $image2;
$up = move_uploaded_file($_FILES["image2"]["tmp_name"], $target_file);
}else
{
$image2 = $_POST['ach_image2b'];
}
if($image3!=""){
$target_dir = "../../uploadedImage/department/";
$ext = pathinfo($image3, PATHINFO_EXTENSION);
$time = time($image3).'.'.$ext;
$target_file = $target_dir . $image3;
$up = move_uploaded_file($_FILES["image3"]["tmp_name"], $target_file);
}else
{
$image3 = $_POST['ach_image3b'];
}
if($image4!=""){
$target_dir = "../../uploadedImage/department/";
$ext = pathinfo($image4, PATHINFO_EXTENSION);
$time = time($image4).'.'.$ext;
$target_file = $target_dir . $image4;
$up = move_uploaded_file($_FILES["image4"]["tmp_name"], $target_file);
}else
{
$image4 = $_POST['ach_image4b'];
}
if($dept!="")
{
$update = mysql_query("UPDATE `department` SET `department`='".addslashes($dept)."',`heading`='".addslashes($heading)."',`content`='".addslashes($content)."',`image1`='".addslashes($image1)."',`image2`='".addslashes($image2)."',`image3`='".addslashes($image3)."',`image4`='".addslashes($image4)."' WHERE `id`='".$_GET['id']."'");
header("Location:../manage_department.php");
}else{
?>
<script>
alert("Please Fill Data");
window.location.href='../manage_department.php';
</script>
<?php
//echo '<span style=color:red;>Please Enter Heading Name</span>';
}
}
if(isset($_POST['objective'])){
extract($_POST);
//echo $id =$_POST['id'];
// echo $res['heading'];
$ob_imge1 = $_FILES["ob_imge1"]["name"];
$ob_imge2 = $_FILES["ob_imge2"]["name"];
$ob_imge3 = $_FILES["ob_imge3"]["name"];
$ob_imge4 = $_FILES["ob_imge4"]["name"];
$ach_image1 = $_FILES["ach_image1"]["name"];
$ach_image2 = $_FILES["ach_image2"]["name"];
$ach_image3 = $_FILES["ach_image3"]["name"];
$ach_image4 = $_FILES["ach_image4"]["name"];
if($ob_imge1!=""){
$target_dir = "../../uploadedImage/objective/";
$ext = pathinfo($ob_imge1, PATHINFO_EXTENSION);
$time1 = $ob_imge1;
$target_file = $target_dir . $time1;
$up = move_uploaded_file($_FILES["ob_imge1"]["tmp_name"], $target_file);
}else
{
$time = $_POST['ob_imge1a'];
}
if($ob_imge2!=""){
$target_dir = "../../uploadedImage/objective/";
$ext = pathinfo($ob_imge2, PATHINFO_EXTENSION);
$time2 = $ob_imge2;
$target_file = $target_dir . $time2;
$up = move_uploaded_file($_FILES["ob_imge2"]["tmp_name"], $target_file);
}else
{
$time = $_POST['ob_imge2b'];
}
if($ob_imge3!=""){
$target_dir = "../../uploadedImage/objective/";
$ext = pathinfo($ob_imge3, PATHINFO_EXTENSION);
$time3 = $ob_imge3;
$target_file = $target_dir . $time3;
$up = move_uploaded_file($_FILES["ob_imge3"]["tmp_name"], $target_file);
}else
{
$time = $_POST['ob_imge3c'];
}
if($ob_imge4!=""){
$target_dir = "../../uploadedImage/objective/";
$ext = pathinfo($ob_imge4, PATHINFO_EXTENSION);
$time4 = $ob_imge4;
$target_file = $target_dir . $time4;
$up = move_uploaded_file($_FILES["ob_imge4"]["tmp_name"], $target_file);
}else
{
$time = $_POST['ob_imge4d'];
}
if($ach_image1!=""){
$target_dir = "../../uploadedImage/achivment/";
$ext = pathinfo($ach_image1, PATHINFO_EXTENSION);
$time5 = $ach_image1;
$target_file = $target_dir . $time6;
$up = move_uploaded_file($_FILES["ach_image1"]["tmp_name"], $target_file);
}else
{
$time = $_POST['ach_image1a'];
}
if($ach_image2!=""){
$target_dir = "../../uploadedImage/achivment/";
$ext = pathinfo($ach_image2, PATHINFO_EXTENSION);
$time6 = $ach_image2;
$target_file = $target_dir . $time6;
$up = move_uploaded_file($_FILES["ach_image2"]["tmp_name"], $target_file);
}else
{
$time = $_POST['ach_image2b'];
}
if($ach_image3!=""){
$target_dir = "../../uploadedImage/achivment/";
$ext = pathinfo($ach_image3, PATHINFO_EXTENSION);
$time7 = $ach_image3;
$target_file = $target_dir . $time7;
$up = move_uploaded_file($_FILES["ach_image3"]["tmp_name"], $target_file);
}else
{
$time = $_POST['ach_image3c'];
}
if($ach_image4!=""){
$target_dir = "../../uploadedImage/achivment/";
$ext = pathinfo($ach_image4, PATHINFO_EXTENSION);
$time8 = $ach_image4;
$target_file = $target_dir . $time8;
$up = move_uploaded_file($_FILES["ach_image4"]["tmp_name"], $target_file);
}else
{
$time = $_POST['ach_image4d'];
}
if($department!="")
{
$insert = mysql_query("INSERT INTO `objective_achivment`(`department`,`objective`,`achivment`,`ob_imge1`,`ob_image2`,`ob_image3`,`ob_image4`,`ach_image1`,`ach_image2`,`ach_image3`,`ach_image4`,`date_time`)VALUES('".addslashes($department)."','".stripcslashes($objectives)."','".stripcslashes($achivment)."','$time1','$time2','$time3','$time4','$time5','$time6','".$time7."','".$time8."','".$dates."')");
header("Location:../manage_department.php");
}else{
echo '<span style=color:red;>Please Enter Heading Name</span>';
}
}
if(isset($_POST['faculty_edit'])){
extract($_POST);
$images = $_FILES["image"]["name"];
$id = $_GET['id'];
if($images!=""){
$target_dir = "../../uploadedImage/faculty/";
$ext = pathinfo($images, PATHINFO_EXTENSION);
$time = time($images).'.'.$ext;
$target_file = $target_dir . $time;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}else{
$time= $_POST['imagID'];
}
if($body!="")
{
$update = mysql_query("UPDATE `staff` SET `name`='".addslashes($name)."',`designation`='".addslashes($designation)."',`education`='".addslashes($qualification)."',`specialization`='".addslashes($specialization)."',`faculty`='".addslashes($faculty)."',`mobile`='".addslashes($mobile)."',`teacher_status`='".addslashes($body)."',`email`='".addslashes($email)."',`sort`='$sort',`content`='".addslashes($content)."',`image`='$time' WHERE `id`='".$_GET['id']."'");
header("Location:../manage_faculty.php");
}else
{
?>
<script>
alert("Please Add Content");
window.location.href='../manage_faculty.php';
</script>
<?php
}
}
if(isset($_POST['faculty_add'])){
extract($_POST);
$images = $_FILES["image"]["name"];
$id = $_GET['id'];
if($images!=""){
$target_dir = "../../uploadedImage/faculty/";
$ext = pathinfo($images, PATHINFO_EXTENSION);
$time = time($images).'.'.$ext;
$target_file = $target_dir . $time;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}else{
$time= $_POST['IMG'];
}
if($body!="")
{
$update = mysql_query("INSERT INTO `staff` SET `name`='".addslashes($name)."',`department`='".addslashes($department)."',`designation`='".addslashes($designation)."',`education`='".addslashes($qualification)."',`specialization`='".addslashes($specialization)."',`faculty`='".addslashes($faculty)."',`mobile`='".addslashes($mobile)."',`teacher_status`='".addslashes($body)."',`email`='".addslashes($email)."',`sort`='$sort',`content`='".addslashes($content)."',`image`='$time'");
header("Location:../manage_faculty.php");
}else
{ ?>
<script>
alert("Please Add Content");
window.location.href='../manage_faculty.php';
</script>
<?php
// echo '<span style=color:red;>Please Enter Heading Name</span>';
}
}
if(isset($_POST['add_activities'])){
extract($_POST);
$images = $_FILES["image"]["name"];
$id = $_GET['id'];
if($images!=""){
$target_dir = "../../uploadedImage/activities/";
$ext = pathinfo($images, PATHINFO_EXTENSION);
$time = time($images).'.'.$ext;
$target_file = $target_dir . $time;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}else{
$time= $_POST['IMG'];
}
if($heading!="")
{
$insert = mysql_query("INSERT INTO `activity`(`heading`,`department`,`content`,`image`,`date_time`)VALUES('".$heading."','".$department."','".$content."','".$time."','".date("Y-m-d")."')");
header("Location:../manage_activities.php");
}else
{
?>
<script>
alert("Please Add Content");
window.location.href='../manage_activities.php';
</script>
<?php
}
}
if(isset($_POST['edit_activities'])){
extract($_POST);
$images = $_FILES["image"]["name"];
$id = $_GET['id'];
if($images!=""){
$target_dir = "../../uploadedImage/activities/";
$ext = pathinfo($images, PATHINFO_EXTENSION);
$time = time($images).'.'.$ext;
$target_file = $target_dir . $time;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}else{
$time= $_POST['imagID'];
}
if($heading!="")
{
$update = mysql_query("UPDATE `activity` SET `heading`='".addslashes($heading)."',`department`='".addslashes($department)."',`content`='".addslashes($content)."',`image`='".$time."' WHERE `id`='".$_GET['id']."'");
// $update = mysql_query("INSERT INTO `staff` SET `name`='".addslashes($name)."',`department`='".addslashes($department)."',`designation`='".addslashes($designation)."',`education`='".addslashes($qualification)."',`specialization`='".addslashes($specialization)."',`faculty`='".addslashes($faculty)."',`mobile`='".addslashes($mobile)."',`teacher_status`='".addslashes($body)."',`email`='".addslashes($email)."',`sort`='$sort',`content`='".addslashes($content)."',`image`='$time'");
header("Location:../manage_activities.php");
}else
{ ?>
<script>
alert("Please Add Content");
window.location.href='../manage_activities.php';
</script>
<?php
// echo '<span style=color:red;>Please Enter Heading Name</span>';
}
}
if(isset($_POST['add_conference'])){
extract($_POST);
$image1 = $_FILES["image1"]["name"];
$image2 = $_FILES["image2"]["name"];
$image3 = $_FILES["image3"]["name"];
$image4 = $_FILES["image4"]["name"];
if($image1!=""){
$target_dir = "../../uploadedImage/event/";
$ext = pathinfo($image1, PATHINFO_EXTENSION);
$time1 = $image1;
$target_file = $target_dir . $time1;
$up = move_uploaded_file($_FILES["image1"]["tmp_name"], $target_file);
}
if($image2!=""){
$target_dir = "../../uploadedImage/event/";
$ext = pathinfo($image2, PATHINFO_EXTENSION);
$time2 = $image2;
$target_file = $target_dir . $time2;
$up = move_uploaded_file($_FILES["image2"]["tmp_name"], $target_file);
}
if($image3!=""){
$target_dir = "../../uploadedImage/event/";
$ext = pathinfo($image3, PATHINFO_EXTENSION);
$time2 = $image3;
$target_file = $target_dir . $time2;
$up = move_uploaded_file($_FILES["image3"]["tmp_name"], $target_file);
}
if($image4!=""){
$target_dir = "../../uploadedImage/event/";
$ext = pathinfo($image4, PATHINFO_EXTENSION);
$time2 = $image4;
$target_file = $target_dir . $time2;
$up = move_uploaded_file($_FILES["image4"]["tmp_name"], $target_file);
}
if($heading!="")
{
$insert = mysql_query("INSERT INTO `event`(`heading`,`department`,`content`,`date`,`image1`,`image2`,`image3`,`image4`,`date_time`)VALUES('$heading','$department','".addslashes($content)."','".addslashes($date)."','$image1','$image2','$image3','$image4','$date')");
header("Location:../manage_confarance.php");
}else
{
echo '<script>
alert("Please Fill Heading!");
window.location.href="manage_confarance.php";
</script>';
}
}
if(isset($_POST['add_placement'])){
extract($_POST);
$image = $_FILES["image"]["name"];
if($image!=""){
$target_dir = "../../uploadedImage/placement/";
$ext = pathinfo($image, PATHINFO_EXTENSION);
$time1 = $image;
$target_file = $target_dir . $time1;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}
if($company!="")
{
$insert = mysql_query("INSERT INTO `placement`(`department`,`company`,`student_name`,`placement_date`,`iamge`,`content`,`date_time`)VALUES('".addslashes($department)."','".addslashes($company)."','".addslashes($student_name)."','".addslashes($placment_date)."','".addslashes($image)."','".addslashes($content)."','$dates')");
header("Location:../manage_annual_activities.php");
}else
{
?>
<script>
alert("Please Fill Heading!");
window.location.href="../manage_annual_activities.php";
</script>
<?php
}
}
if(isset($_POST['add_research'])){
extract($_POST);
$image = $_FILES["image"]["name"];
if($image!=""){
$target_dir = "../../uploadedImage/research/";
$ext = pathinfo($image, PATHINFO_EXTENSION);
$time1 = $image;
$target_file = $target_dir . $time1;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}
if($department!="")
{
$insert = mysql_query("INSERT INTO `research`(`department`,`heading`,`research`,`image`,`content`,`date_time`)VALUES('".addslashes($department)."','".addslashes($heading)."','".addslashes($research)."','".addslashes($image)."','".addslashes($content)."','$dates')");
header("Location:../manage_research.php");
}else
{
?>
<script>
alert("Please Fill Heading!");
window.location.href="../manage_research.php";
</script>
<?php
}
}
if(isset($_POST['add_result'])){
extract($_POST);
$image = $_FILES["image"]["name"];
if($image!=""){
$target_dir = "../../uploadedImage/result/";
$ext = pathinfo($image, PATHINFO_EXTENSION);
$time1 = $image;
$target_file = $target_dir . $time1;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}
if($department!="")
{
$insert = mysql_query("INSERT INTO `result`(`department`,`date`,`session`,`image`,`content`,`date_time`)VALUES('".addslashes($department)."','".addslashes($result)."','".addslashes($session)."','".addslashes($image)."','".addslashes($content)."','$dates')");
header("Location:../manage_result.php");
}else
{
?>
<script>
alert("Please Fill Heading!");
window.location.href="../manage_result.php";
</script>
<?php
}
}
if(isset($_POST['edit_conference'])){
extract($_POST);
$image1 = $_FILES["image1"]["name"];
$image2 = $_FILES["image2"]["name"];
$image3 = $_FILES["image3"]["name"];
$image4 = $_FILES["image4"]["name"];
if($image1!=""){
$target_dir = "../../uploadedImage/event/";
$ext = pathinfo($image1, PATHINFO_EXTENSION);
$time1 = $image1;
$target_file = $target_dir . $time1;
$up = move_uploaded_file($_FILES["image1"]["tmp_name"], $target_file);
}
if($image2!=""){
$target_dir = "../../uploadedImage/event/";
$ext = pathinfo($image2, PATHINFO_EXTENSION);
$time2 = $image2;
$target_file = $target_dir . $time2;
$up = move_uploaded_file($_FILES["image2"]["tmp_name"], $target_file);
}
if($image3!=""){
$target_dir = "../../uploadedImage/event/";
$ext = pathinfo($image3, PATHINFO_EXTENSION);
$time2 = $image3;
$target_file = $target_dir . $time2;
$up = move_uploaded_file($_FILES["image3"]["tmp_name"], $target_file);
}
if($image4!=""){
$target_dir = "../../uploadedImage/event/";
$ext = pathinfo($image4, PATHINFO_EXTENSION);
$time2 = $image4;
$target_file = $target_dir . $time2;
$up = move_uploaded_file($_FILES["image4"]["tmp_name"], $target_file);
}
if($heading!="")
{
$update = mysql_query("UPDATE `event` SET `heading`='".$heading."',`heading`='".$department."',`content`='".addslashes($content)."',`date`='".addslashes($date)."',`image1`='".addslashes($image1)."',`image2`='".addslashes($image2)."',`image3`='".addslashes($image3)."',`image4`='".addslashes($image4)."' WHERE `id`='".$_GET['id']."");
//$insert = mysql_query("INSERT INTO `event`(`heading`,`department`,`content`,`date`,`image1`,`image2`,`image3`,`image4`,`date_time`)VALUES('$heading','$department','".addslashes($content)."','".addslashes($date)."','$image1','$image2','$image3','$image4','$date')");
header("Location:../manage_confarance.php");
}else
{
echo '<script>
alert("Please Fill Heading!");
window.location.href="manage_confarance.php";
</script>';
}
}
if(isset($_POST['add_annualactivities'])){
extract($_POST);
$images = $_FILES["image"]["name"];
$id = $_GET['id'];
if($images!=""){
$target_dir = "../../uploadedImage/annual_activities/";
$ext = pathinfo($images, PATHINFO_EXTENSION);
$time = time($images).'.'.$ext;
$target_file = $target_dir . $time;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}
if($heading!="")
{
$insert = mysql_query("INSERT INTO `annual_activities`(`heading`,`image`,`sort`,`content`)VALUES('$heading','$time','$sort','".addslashes($content)."')");
header("Location:../manage_annual_activities.php");
}else
{
echo '<span style=color:red;>Please Enter Heading Name</span>';
}
}
if(isset($_POST['edit_annual_activities'])){
extract($_POST);
$images = $_FILES["image"]["name"];
$id = $_GET['id'];
if($images!=""){
$target_dir = "../../uploadedImage/annual_activities/";
$ext = pathinfo($images, PATHINFO_EXTENSION);
$time = time($images).'.'.$ext;
$target_file = $target_dir . $time;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}else{
$time= $_POST['imagID'];
}
if($heading!="")
{
$update = mysql_query("UPDATE `annual_activities` SET `heading`='$heading',`sort`='$sort',`content`='".addslashes($content)."',`image`='$time' WHERE `id`='".$id."'");
header("Location:../manage_annual_activities.php");
}else
{
echo '<span style=color:red;>Please Enter Heading Name</span>';
}
}
if(isset($_POST['add_calendar'])){
extract($_POST);
$images = $_FILES["image"]["name"];
$id = $_GET['id'];
if($images!=""){
$target_dir = "../../uploadedImage/academic_calendar/";
$ext = pathinfo($images, PATHINFO_EXTENSION);
$time = time($images).'.'.$ext;
$target_file = $target_dir . $time;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}
if($heading!="")
{
$insert = mysql_query("INSERT INTO `academic_calendar`(`heading`,`image`,`sort`,`content`,`year`)VALUES('$heading','$time','$sort','".addslashes($content)."','".addslashes($year)."')");
header("Location:../manage_academic_calendar.php");
}else
{
echo '<span style=color:red;>Please Enter Heading Name</span>';
}
}
if(isset($_POST['edit_calendar'])){
extract($_POST);
$images = $_FILES["image"]["name"];
$id = $_GET['id'];
if($images!=""){
$target_dir = "../../uploadedImage/academic_calendar/";
$ext = pathinfo($images, PATHINFO_EXTENSION);
$time = time($images).'.'.$ext;
$target_file = $target_dir . $time;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}else{
$time= $_POST['imagID'];
}
if($heading!="")
{
$update = mysql_query("UPDATE `academic_calendar` SET `heading`='$heading',`sort`='$sort',`content`='".addslashes($content)."',`image`='$time',`year`='".$year."' WHERE `id`='".$id."'");
header("Location:../manage_academic_calendar.php");
}else
{
echo '<span style=color:red;>Please Enter Heading Name</span>';
}
}
if(isset($_POST['add_acdemic_plan'])){
extract($_POST);
$images = $_FILES["image"]["name"];
$id = $_GET['id'];
if($images!=""){
$target_dir = "../../uploadedImage/academic_plan/";
$ext = pathinfo($images, PATHINFO_EXTENSION);
$time = time($images).'.'.$ext;
$target_file = $target_dir . $time;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}
if($heading!="")
{
$insert = mysql_query("INSERT INTO `academic_plan`(`heading`,`image`,`sort`,`content`)VALUES('$heading','$time','$sort','".addslashes($content)."')");
header("Location:../manage_academic_plan.php");
}else
{
echo '<span style=color:red;>Please Enter Heading Name</span>';
}
}
if(isset($_POST['edit_academic_plan'])){
//echo "Done";
extract($_POST);
$images = $_FILES["image"]["name"];
$id = $_GET['id'];
if($images!=""){
$target_dir = "../../uploadedImage/academic_plan/";
$ext = pathinfo($images, PATHINFO_EXTENSION);
$time = time($images).'.'.$ext;
$target_file = $target_dir . $time;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}else{
$time= $_POST['imagID'];
}
if($heading!="")
{
$update = mysql_query("UPDATE `academic_plan` SET `heading`='$heading',`sort`='$sort',`content`='".addslashes($content)."',`image`='$time' WHERE `id`='".$id."'");
header("Location:../manage_academic_plan.php");
}else
{
echo '<span style=color:red;>Please Enter Heading Name</span>';
}
}
if(isset($_POST['add_gallery'])){
extract($_POST);
$images = $_FILES["image"]["name"];
$id = $_GET['id'];
if($images!=""){
$target_dir = "../../uploadedImage/gallery/";
$ext = pathinfo($images, PATHINFO_EXTENSION);
$time = time($images).'.'.$ext;
$target_file = $target_dir . $time;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}
if($heading!="")
{
$insert = mysql_query("INSERT INTO `album`(`title`,`thumb`)VALUES('$heading','$time')");
header("Location:../manage_gallery.php");
}else
{
?>
<script>
alert("Please Fill Data");
window,location.href='../manage_gallery.php';
</script>
<?php
}
}
if(isset($_POST['add_facilities'])){
extract($_POST);
$image = $_FILES["image"]["name"];
$id = $_GET['id'];
if($image!=""){
$target_dir = "../../uploadedImage/facilities/";
$ext = pathinfo($image, PATHINFO_EXTENSION);
$time = time($image).'.'.$ext;
$target_file = $target_dir . $time;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}
if($heading!="")
{
$insert = mysql_query("INSERT INTO `facilities`(`heading`,`image`,`content`,`categry_name`,`date_time`)VALUES('".addslashes($heading)."','".addslashes($time)."','".addslashes($content)."','".addslashes($category)."','$dates')");
header("Location:../manage_facilities.php");
}else
{
echo '<span style=color:red;>Please Enter Heading Name</span>';
}
}
if(isset($_POST['edit_facilities'])){
extract($_POST);
$image = $_FILES["image"]["name"];
$id = $_GET['id'];
if($image!=""){
$target_dir = "../../uploadedImage/facilities/";
$ext = pathinfo($image, PATHINFO_EXTENSION);
$time = time($image).'.'.$ext;
$target_file = $target_dir . $time;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}else{
$time = $_POST['imagID'];
}
if($heading!="")
{
echo $update = ("UPDATE `facilities` SET `heading`='".addslashes($heading)."',`image`='".addslashes($time)."',`content`='".addslashes($content)."',`categry_name`='".addslashes($category)."' WHERE `id`='".$_GET['id']."'");
// $insert = mysql_query("INSERT INTO `facilities`(`heading`,`image`,`content`,`categry_name`,`date_time`)VALUES('".addslashes($heading)."','".addslashes($time)."','".addslashes($content)."','".addslashes($category)."','$dates')");
header("Location:../manage_facilities.php");
}else
{
echo '<span style=color:red;>Please Enter Heading Name</span>';
}
}
if(isset($_POST['edit_gallery'])){
extract($_POST);
$images = $_FILES["image"]["name"];
$id = $_GET['id'];
if($images!=""){
$target_dir = "../../uploadedImage/gallery/";
$ext = pathinfo($images, PATHINFO_EXTENSION);
$time = time($images).'.'.$ext;
$target_file = $target_dir . $time;
$up = move_uploaded_file($_FILES["image"]["tmp_name"], $target_file);
}else{
$time= $_POST['imagID'];
}
if($heading!="")
{
$update = mysql_query("UPDATE `album` SET `title`='$heading',`thumb`='$time' WHERE `id`='".$id."'");
header("Location:../manage_gallery.php");
}else
{
echo '<span style=color:red;>Please Enter Heading Name</span>';
}
}
Copyright © 1945 -