AnonSec Shell
Server IP : 92.204.138.22  /  Your IP : 3.16.47.65
Web Server : Apache
System : Linux ns1009439.ip-92-204-138.us 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64
User : internationaljou ( 1019)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/internationaljou/public_html/admin/js/BROKY_ADMIN/alfasymlink/root/home/internationaljou/www/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/internationaljou/public_html/admin/js/BROKY_ADMIN/alfasymlink/root/home/internationaljou/www/admin/class.php
<?php
	include('config.php');
 
if(isset($_POST['submit']) && ($_POST['submit'] == 'login'))
{
	ob_start();
	 @session_start();
 
	//$login['username'] = trim($_POST['username']);
	$user = $login['username'] = md5($_POST['username']); 
     $pass = $login['password'] =  md5($_POST['password']);
     
     $username1 = mysqli_real_escape_string($conn, $user);
     $password1 = mysqli_real_escape_string($conn, $pass);
     
    //$login['password'] =  trim($_POST['password']);
    
    
//whether ip is from share internet
/*if (!empty($_SERVER['HTTP_CLIENT_IP']))   
  {
    $ip_address = $_SERVER['HTTP_CLIENT_IP'];
  }
//whether ip is from proxy
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))  
  {
    $ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];
  }
//whether ip is from remote address
else
  {
    $ip_address = $_SERVER['REMOTE_ADDR'];
  }

$ip = $ip_address;*/

		$log_sql = "select * from `login` where `username`='".$username1."' and `password` = '".$password1."' ";  
        $log_qr = mysqli_query($conn,$log_sql);
        $log_res = mysqli_num_rows($log_qr);
        if($log_res == 1)
        {           
           $log_fet = mysqli_fetch_array($log_qr);
           $_SESSION['user_id'] = "101";
            $_SESSION['u-name'] = "Admin";
           //header('location:dashboard.php');
		echo '<script type="text/javascript">window.location.href="dashboard.php";</script>"';
        }
       else
       {
           echo '<script type="text/javascript">alert("username and password is wrong");window.location.href="index.php";</script>"';
       }
}

// Change Admin Password Start
if(isset($_POST['ch_pass']) && ($_POST['ch_pass'] == 'Update'))
{
  $login['username'] = $_POST['username'];
   $login['password'] = md5($_POST['password']);
	          
          $log_sql="update `login` set `username`='".$login['username']."',`password`='".$login['password']."' where `id`='1' ";
			$log_qr = mysqli_query($conn,$log_sql);
			if($log_qr == TRUE){
				echo '<script type="text/javascript">alert("Account Updated Successfully");window.location.href="profile.php";</script>"';
      
        }
       else
       {
           echo '<script type="text/javascript">alert("Account  Not Updated Successfully");window.location.href="profile.php";</script>"';
       }
}


// Add Special Issue Conference Info Start
if(isset($_POST['add_specialissue_conference']) && ($_POST['add_specialissue_conference'] == 'Save'))
{
		$conference = mysqli_escape_string ($conn,$_POST['conference']);
 		$shortform = mysqli_escape_string ($conn,$_POST['shortform']);
		$year = trim($_POST['year']);
		
       	$conferencesql = "insert into specialissue_conference(conference_name,shortform,year) values ('$conference','$shortform','$year')";
	  
		$conferenceqry = mysqli_query($conn,$conferencesql);        
  
			if($conferenceqry == TRUE)
			{           
			  echo '<script type="text/javascript">alert(" Special Issue Conference Information inserted successfully ");window.location.href="specialissue.php";</script>"';
			}
		    else
		    {
			   echo mysql_error();
			   echo '<script type="text/javascript">alert(" Special Issue Conference Information Not inserted");window.location.href="specialissue.php";</script>"';
		    }
}
// Add Special Issue Conference Info End


//Update update_specialissue_conference Start


if(isset($_POST['update_specialissue_conference']) && ($_POST['update_specialissue_conference'] == 'Update'))
{
		$sid = trim($_POST['sid']);
		$conference = mysqli_escape_string ($conn,$_POST['conference']);
 		$shortform = mysqli_escape_string ($conn,$_POST['shortform']);
		//$department = trim(mysqli_escape_string ($conn,$_POST['department']));
		$year = trim($_POST['year']);

			$log_sql = "update specialissue_conference set conference_name ='".$conference."', shortform ='".$shortform."',year ='".$year."' where sp_id='".$sid."'";
			$log_qr = mysqli_query($conn,$log_sql);        
  			if($log_qr == TRUE)
        	{           
          		echo '<script type="text/javascript">alert("Special Issue Conference Information Updated successfully ");window.location.href="specialissue.php";</script>"';
        	}
       		else
       		{
         		echo '<script type="text/javascript">alert("Special Issue Conference Information Not Updated");window.location.href="specialissue.php";</script>"';
       		}
}


//Update update_specialissue_conference End


if(isset($_POST['add_upcoming']) && ($_POST['add_upcoming'] == 'Save'))
{
		$conferencename = trim(mysqli_escape_string ($conn,$_POST['conferencename']));
		
		$conferencename = $conferencename."<br><br>";
		$lastdate = trim(mysqli_escape_string ($conn,$_POST['lastdate']));
		$multipleconferencedate = trim(mysqli_escape_string ($conn,$_POST['multipleconferencedate']));
		$conferencedate = trim(mysqli_escape_string ($conn,$_POST['conferencedate']));
		$papersubmitemail = trim(mysqli_escape_string ($conn,$_POST['papersubmitemail']));
		$Status = trim($_POST['status']);
		$lastdate_registration = trim(mysqli_escape_string ($conn,$_POST['lastdate_registration']));
		$venue = trim(mysqli_escape_string ($conn,$_POST['venue']));
		$contact = trim(mysqli_escape_string ($conn,$_POST['contact']));
		
		$aimofconference= trim(mysqli_escape_string ($conn,$_POST['aimofconference'])) ;
		
		$topics= trim(mysqli_escape_string ($conn,$_POST['topics'])) ;
	    $instruction= trim(mysqli_escape_string ($conn,$_POST['instruction'])) ;
	
		$instruction = str_replace('<p>', "", $instruction); 
		$instruction = str_replace('</p>', "", $instruction);
		
		$visitinglocation= trim(mysqli_escape_string ($conn,$_POST['visitinglocation'])) ;
		
		$visitinglocation = str_replace('<p>', "", $visitinglocation); 
		$visitinglocation = str_replace('</p>', "", $visitinglocation);
		
		
		/*
		$aimofconference= $_POST['aimofconference'] ;
		$aimofconference = str_replace('“', '"', $aimofconference);
		$aimofconference = str_replace('”', '"', $aimofconference);
		$aimofconference = str_replace('’', "'", $aimofconference); 
       	$aimofconference = mysqli_real_escape_string($conn,str_replace("�", "'", $aimofconference)); 
	   	$aimofconference = str_replace('�' ,"", $aimofconference);
		$aimofconference = str_replace("'�", '"', $aimofconference); 
		
		$topics= $_POST['topics'] ;
		$topics = str_replace('“', '"', $topics);
		$topics = str_replace('”', '"', $topics);
		$topics = str_replace('’', "'", $topics); 
       	$topics = mysqli_real_escape_string($conn,str_replace("�", "'", $topics)); 
	   	$topics = str_replace('�' ,"", $topics);
		$topics = str_replace("'�", '"', $topics); 
		
		$instruction= $_POST['instruction'] ;
		$instruction = str_replace('“', '"', $instruction);
		$instruction = str_replace('”', '"', $instruction);
		$instruction = str_replace('’', "'", $instruction); 
       	$instruction = mysqli_real_escape_string($conn,str_replace("�", "'", $instruction)); 
	   	$instruction = str_replace('�' ,"", $instruction);
		$instruction = str_replace("'�", '"', $instruction);
		$instruction = str_replace('<p>', "", $instruction); 
		$instruction = str_replace('</p>', "", $instruction);
		
		$visitinglocation= $_POST['visitinglocation'] ;
		$visitinglocation = str_replace('“', '"', $visitinglocation);
		$visitinglocation = str_replace('”', '"', $visitinglocation);
		$visitinglocation = str_replace('’', "'", $visitinglocation); 
       	$visitinglocation = mysqli_real_escape_string($conn,str_replace("�", "'", $visitinglocation)); 
	   	$visitinglocation = str_replace('�' ,"", $visitinglocation);
		$visitinglocation = str_replace("'�", '"', $visitinglocation);
		$visitinglocation = str_replace('<p>', "", $visitinglocation); 
		$visitinglocation = str_replace('</p>', "", $visitinglocation);
		*/
		
		$ugpg = trim(mysqli_escape_string ($conn,$_POST['ugpg']));
		$staff_researchscholar = trim(mysqli_escape_string ($conn,$_POST['staff_researchscholar']));
		$corporatepeople = trim(mysqli_escape_string ($conn,$_POST['corporatepeople']));
		$activelistener = trim(mysqli_escape_string ($conn,$_POST['activelistener']));
		$participants = trim(mysqli_escape_string ($conn,$_POST['participants']));
		$designation = $_POST['designation'];
		$name = $_POST['name'];
		$collegename = $_POST['collegename']; 
		
		$conferenceimage = trim(mysqli_escape_string ($conn,rand()."_".$_FILES["conferenceimage"]["name"]));
		$conferencetemp_image = $_FILES["conferenceimage"]["tmp_name"];
		//$path = '../uploads/conferenceimage/',$conferenceimage; 
		//$movefile = move_uploaded_file($conferencetemp_image,$path);
		$movefile = move_uploaded_file($conferencetemp_image,"../uploads/conferenceimage/".$conferenceimage);
		
		
		
		if($_FILES["conferencebrochure"]["name"]!='') {
		$conferencebrochure = trim(mysqli_escape_string ($conn,rand()."_".$_FILES["conferencebrochure"]["name"]));
		$conferencetemp_brochure = $_FILES["conferencebrochure"]["tmp_name"];
		$movebrochure = move_uploaded_file($conferencetemp_brochure,"../uploads/conferenceimage/brochures/".$conferencebrochure);
		}
		
		
		  $conferenceinsert = "insert into upcoming_conference(conferencename,lastdate,multipleconferencedate,conferencedate,papersubmitemail,lastdate_registration,venue,conferenceimage,conferencebrochure,contact,aimofconference,topics,instruction,visitinglocation,ugpg,staff_researchscholar,corporatepeople,activelistener,participants,CRDateTime,LUDateTime,Status)values ('".$conferencename."','".$lastdate."','".$multipleconferencedate."','".$conferencedate."','".$papersubmitemail."','".$lastdate_registration."','".$venue."','".$conferenceimage."', '".$conferencebrochure."','".$contact."','".$aimofconference."','".$topics."','".$instruction."','".$visitinglocation."','".$ugpg."','".$staff_researchscholar."','".$corporatepeople."','".$activelistener."','".$participants."',Now(),Now(),'".$Status."')";
	 
		$insert_conference = mysqli_query($conn,$conferenceinsert);  
		
		$lastid = mysqli_insert_id($conn);       
		
		
		for($i=0;$i<count($name);$i++)
		{
		   $implodedesig = implode("^",$designation);
		   $explodedesig = explode("^",$implodedesig);
		   
		   $implodename = implode("^",$name);
		   $explodename = explode("^",$implodename);
		   
		   $implodecollegename = implode("^",$collegename);
		  	$explodecollege = explode("^",$implodecollegename);
		 
		$committeeinsert = "insert into committee_member(conferenceid,designation,name,collegename,CRDateTime,LUDateTime,Status)values ('".$lastid."','".$explodedesig[$i]."','".$explodename[$i]."','".$explodecollege[$i]."',Now(),Now(),'C')";
		$insert_committee = mysqli_query($conn,$committeeinsert);
  }
			if(($insert_conference == TRUE)&& ($insert_committee == TRUE))
			{           
			  echo '<script type="text/javascript">alert("Conference inserted successfully ");window.location.href="upcomingconference.php";</script>"';
			}
		    else
		    {
			   echo mysql_error();
			   echo '<script type="text/javascript">alert(" Conference Information Not inserted");window.location.href="add_upcoming_conference.php";</script>"'; 
			   //window.location.href="add_upcoming_conference.php";
		    }
}

if(isset($_POST['edit_upcoming']) && ($_POST['edit_upcoming'] == 'Update'))
{
		$conferenceid = $_POST['conferenceid'];
		$conferencename = trim(mysqli_escape_string ($conn,$_POST['conferencename']));
		$lastdate = trim(mysqli_escape_string ($conn,$_POST['lastdate']));
		$multipleconferencedate = trim(mysqli_escape_string ($conn,$_POST['multipleconferencedate']));
		$conferencedate = trim(mysqli_escape_string ($conn,$_POST['conferencedate']));
		$papersubmitemail = trim(mysqli_escape_string ($conn,$_POST['papersubmitemail']));
		$Status = trim($_POST['status']);
		$lastdate_registration = trim(mysqli_escape_string ($conn,$_POST['lastdate_registration']));
		$venue = trim(mysqli_escape_string ($conn,$_POST['venue']));
		$contact = trim(mysqli_escape_string ($conn,$_POST['contact']));
		
		$aimofconference= $_POST['aimofconference'] ;
		$findsymbols_aimofconference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$aimofconference = str_replace($findsymbols_aimofconference, '"', $aimofconference);
		
		$topics= trim(mysqli_escape_string ($conn,$_POST['topics'])) ;
	
		$instruction= trim(mysqli_escape_string ($conn,$_POST['instruction'])) ;
		
		$instruction = str_replace('<p>', "", $instruction); 
		$instruction = str_replace('</p>', "", $instruction);
		
		$visitinglocation= trim(mysqli_escape_string ($conn,$_POST['visitinglocation'])) ;
		
		$visitinglocation = str_replace('<p>', "", $visitinglocation); 
		$visitinglocation = str_replace('</p>', "", $visitinglocation);
		
		$ugpg = trim(mysqli_escape_string ($conn,$_POST['ugpg']));
		$staff_researchscholar = trim(mysqli_escape_string ($conn,$_POST['staff_researchscholar']));
		$corporatepeople = trim(mysqli_escape_string ($conn,$_POST['corporatepeople']));
		$activelistener = trim(mysqli_escape_string ($conn,$_POST['activelistener']));
		$participants = trim(mysqli_escape_string ($conn,$_POST['participants']));
		$designation = $_POST['designation'];
		$name = $_POST['name'];
		$collegename = $_POST['collegename']; 
		$conferenceimage = trim(mysqli_escape_string ($conn,$_FILES["conferenceimage"]["name"]));
		$conferencebrochure = trim(mysqli_escape_string ($conn,$_FILES["conferencebrochure"]["name"]));
		
		if($conferenceimage!='')
		{
		
		$conferenceimage = rand()."_".$_FILES["conferenceimage"]["name"];
		$conferencetemp_image = $_FILES["conferenceimage"]["tmp_name"];
		//$path = '../uploads/conferenceimage/',$conferenceimage; 
		//$movefile = move_uploaded_file($conferencetemp_image,$path);
		$movefile = move_uploaded_file($conferencetemp_image,"../uploads/conferenceimage/".$conferenceimage);
		}
			
		if($conferencebrochure!='')
		{

		$conferencebrochure = rand()."_".$_FILES["conferencebrochure"]["name"];
		$conferencetemp_brochure = $_FILES["conferencebrochure"]["tmp_name"];
		$movebrochure = move_uploaded_file($conferencetemp_brochure,"../uploads/conferenceimage/brochures/".$conferencebrochure);
   		}
		if($conferenceimage!='' && $conferencebrochure!='')
		{
			$conferenceupdate = "Update upcoming_conference set conferencename='".$conferencename."',lastdate='".$lastdate."',multipleconferencedate='".$multipleconferencedate."',conferencedate='".$conferencedate."',papersubmitemail='".$papersubmitemail."',lastdate_registration='".$lastdate_registration."',venue='".$venue."',conferenceimage='".$conferenceimage."',conferencebrochure='".$conferencebrochure."',contact='".$contact."',aimofconference='".$aimofconference."',topics='".$topics."',instruction='".$instruction."',visitinglocation='".$visitinglocation."',ugpg='".$ugpg."',staff_researchscholar='".$staff_researchscholar."',corporatepeople='".$corporatepeople."',activelistener='".$activelistener."',participants='".$participants."',LUDateTime=Now(),Status='".$Status."' where conference_id ='".$conferenceid."' ";
	  		$update_conference = mysqli_query($conn,$conferenceupdate);  
		}
		elseif($conferenceimage=='' && $conferencebrochure!='')
		{
			$conferenceupdate = "Update upcoming_conference set conferencename='".$conferencename."',lastdate='".$lastdate."',multipleconferencedate='".$multipleconferencedate."',conferencedate='".$conferencedate."',papersubmitemail='".$papersubmitemail."',lastdate_registration='".$lastdate_registration."',venue='".$venue."',conferencebrochure='".$conferencebrochure."',contact='".$contact."',aimofconference='".$aimofconference."',topics='".$topics."',instruction='".$instruction."',visitinglocation='".$visitinglocation."',ugpg='".$ugpg."',staff_researchscholar='".$staff_researchscholar."',corporatepeople='".$corporatepeople."',activelistener='".$activelistener."',participants='".$participants."',LUDateTime=Now(),Status='".$Status."' where conference_id ='".$conferenceid."' ";
	  		$update_conference = mysqli_query($conn,$conferenceupdate);  
		}
		elseif($conferenceimage!='' && $conferencebrochure=='')
		{
			$conferenceupdate = "Update upcoming_conference set conferencename='".$conferencename."',lastdate='".$lastdate."',multipleconferencedate='".$multipleconferencedate."',conferencedate='".$conferencedate."',papersubmitemail='".$papersubmitemail."',lastdate_registration='".$lastdate_registration."',venue='".$venue."',conferenceimage='".$conferenceimage."',contact='".$contact."',aimofconference='".$aimofconference."',topics='".$topics."',instruction='".$instruction."',visitinglocation='".$visitinglocation."',ugpg='".$ugpg."',staff_researchscholar='".$staff_researchscholar."',corporatepeople='".$corporatepeople."',activelistener='".$activelistener."',participants='".$participants."',LUDateTime=Now(),Status='".$Status."' where conference_id ='".$conferenceid."' ";
			
	  		$update_conference = mysqli_query($conn,$conferenceupdate);  
		}
		else
		{
			 $conferenceupdate = "Update upcoming_conference set conferencename='".$conferencename."',lastdate='".$lastdate."',multipleconferencedate='".$multipleconferencedate."',conferencedate='".$conferencedate."',papersubmitemail='".$papersubmitemail."',lastdate_registration='".$lastdate_registration."',venue='".$venue."',contact='".$contact."',aimofconference='".$aimofconference."',topics='".$topics."',instruction='".$instruction."',visitinglocation='".$visitinglocation."',ugpg='".$ugpg."',staff_researchscholar='".$staff_researchscholar."',corporatepeople='".$corporatepeople."',activelistener='".$activelistener."',participants='".$participants."',LUDateTime=Now(),Status='".$Status."' where conference_id ='".$conferenceid."' ";
			
	  		$update_conference = mysqli_query($conn,$conferenceupdate);  
		}
		
		/*$selectcommittee =  mysqli_query($conn,"select * from committee_member where conferenceid='".$conferenceid."'");
		$numrowscommittee = mysqli_num_rows($selectcommittee); */
		$deletepreviousrecord = mysqli_query($conn,"delete from committee_member where conferenceid='".$conferenceid."'");
		for($i=0;$i<count($name);$i++)
		{
		   $implodedesig = implode("^",$designation);
		   $explodedesig = explode("^",$implodedesig);
		   
		   $implodename = implode("^",$name);
		   $explodename = explode("^",$implodename);
		   
		   $implodecollegename = implode("^",$collegename);
		  	$explodecollege = explode("^",$implodecollegename);
		 
		$committeeinsert = "insert into committee_member(conferenceid,designation,name,collegename,CRDateTime,LUDateTime,Status)values ('".$conferenceid."','".$explodedesig[$i]."','".$explodename[$i]."','".$explodecollege[$i]."',Now(),Now(),'C')";
		$insert_committee = mysqli_query($conn,$committeeinsert);
  		}
		
		
		if($insert_committee == TRUE)
        	{           
          		echo '<script type="text/javascript">alert(" Conference Information Updated successfully ");window.location.href="upcomingconference.php";</script>"';
        	}
       		else
       		{
         		echo '<script type="text/javascript">alert("Conference Information Not Updated");window.location.href="upcomingconference.php";</script>"';
       		}
}

if(isset($_POST['add_specialissue_articles']) && ($_POST['add_specialissue_articles'] == 'Save'))
{
		$shortname = trim(mysqli_escape_string ($conn,$_POST['shortname']));
		$department = trim(mysqli_escape_string ($conn,$_POST['department']));
		$part = trim(mysqli_escape_string ($conn,$_POST['part']));
		$partno = str_replace("Part","",$part);
		$year = trim(mysqli_escape_string ($conn,$_POST['year']));
		$title = $_POST['title'];
		$author = $_POST['author'];
		$pdf = $_FILES["pdf"]["name"];
		//echo count($title); exit;
		for($i=0;$i<count($title);$i++)
		{
		  $implodetitle = implode("#",$title);
		  $explodetitle = explode("#",$implodetitle);
		  $implodeauthor = implode("#",$author);
		  $explodeauthor = explode("#",$implodeauthor);
		
		/*  
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../uploads/IJMCA/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../uploads/IJMCA/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		} */
		 
		 $selectshortname = mysqli_query($conn,"select * from specialissue_conference where sp_id='$shortname'");
		 $fetchshortname = mysqli_fetch_array($selectshortname);
		 $shortform = $fetchshortname['shortform'];
		 
		 $selectdeptname = mysqli_query($conn,"select * from article_department where dp_id='$department'");
		 $fetchdeptname = mysqli_fetch_array($selectdeptname);
		 $department_short = $fetchdeptname['department_short'];
		 
	
		if(!empty($_FILES['pdf']['tmp_name'][$i]))
		{
			$path = '../uploads/specialissuepdf/'.$shortform.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_year = '../uploads/specialissuepdf/'.$shortform.'/'.$year.'/'; 
			if (!file_exists($target_year)){mkdir($target_year);} 
			$target_depart = '../uploads/specialissuepdf/'.$shortform.'/'.$year.'/'.$department_short.'/'; 
			if (!file_exists($target_depart)){mkdir($target_depart);} 
		
			//$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			
			$pdfname = $_FILES['pdf']['name'][$i];
			
			//$ext = explode('.', basename($_FILES['pdf']['name'][$i]));
			//$file_extension = end($pdfname); //store extensions in the variable
			//$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_depart.$pdfname;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'][$i], $target);
		
		
					$articelinsert = "insert into specialissue_article(sc_id,department,part,partno,year,title,author,pdf,CRDateTime,LUDateTime,Status)values ('".$shortname."','".$department."','".$part."','".$partno."','".$year."','".$explodetitle[$i]."','".$explodeauthor[$i]."','".$target."',Now(),Now(),'C')";
		$insert_article = mysqli_query($conn,$articelinsert);
  	} }
			if($insert_article == TRUE)
			{           
			  echo '<script type="text/javascript">alert("Special issue Article inserted successfully ");window.location.href="specialissue.php";</script>"';
			
			}
		    else
		    {
			   echo mysql_error();
			  
			   echo '<script type="text/javascript">alert("Special issue Article Information Not inserted"); window.location.href="add_specialissue_articles.php";</script>"';
			  
		    }
		
          }



if(isset($_POST['update_specialissue_articles']) && ($_POST['update_specialissue_articles'] == 'Update'))
{
		
		$said = trim(mysqli_escape_string ($conn,$_POST['said']));	
		$shortname = mysqli_escape_string ($conn,$_POST['shortname']);	
		$department =mysqli_escape_string ($conn,$_POST['department']);
		$part = mysqli_escape_string ($conn,$_POST['part']);
		$partno = str_replace("Part","",$part);
		$year = mysqli_escape_string ($conn,$_POST['year']);				
		$title = mysqli_escape_string ($conn,$_POST['title']);
		$author = mysqli_escape_string ($conn,$_POST['author']);
		$pdf = mysqli_escape_string ($conn,$_FILES["pdf"]["name"]); 
		
	
//echo $_FILES["pdf"]["tmp_name"];exit;
		
		$selectshortname = mysqli_query($conn,"select * from specialissue_conference where sp_id='$shortname'");
		 $fetchshortname = mysqli_fetch_array($selectshortname);
		 $shortform = $fetchshortname['shortform'];
		 
		 $selectdeptname = mysqli_query($conn,"select * from article_department where dp_id='$department'");
		 $fetchdeptname = mysqli_fetch_array($selectdeptname);
		 $department_short = $fetchdeptname['department_short'];
		 
	
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../uploads/specialissuepdf/'.$shortform.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_year = '../uploads/specialissuepdf/'.$shortform.'/'.$year.'/'; 
			if (!file_exists($target_year)){mkdir($target_year);} 
			$target_depart = '../uploads/specialissuepdf/'.$shortform.'/'.$year.'/'.$department_short.'/'; 
			if (!file_exists($target_depart)){mkdir($target_depart);} 
		
			//$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			
			$pdfname = $_FILES['pdf']['name'];
			
			//$ext = explode('.', basename($_FILES['pdf']['name'][$i]));
			//$file_extension = end($pdfname); //store extensions in the variable
			//$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_depart.$pdfname;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		/*
		
		$tmpFilePath = $_FILES['pdf']['tmp_name'];
		//Make sure we have a filepath
		if($tmpFilePath != ""){
		//save the filename
		$pdfname = rand()."_".$_FILES['pdf']['name'];
		//save the url and the file
		$filePath = "../uploads/specialissuepdf/".$pdfname;
		//Upload the file into the temp dir
		$move = move_uploaded_file($tmpFilePath, $filePath);
		*/
		
		 $log_sql = "update `specialissue_article` set sc_id='".$shortname."',department='".$department."',part='".$part."',partno='".$partno."',year='".$year."',title='".$title."',author='".$author."',pdf='".$target."',LUDatetime=Now() where sa_id='".$said."'";
		
		$log_qr = mysqli_query($conn,$log_sql);
		
		}
        else { 
			 $log_sql = "update `specialissue_article` set sc_id='".$shortname."',department='".$department."',part='".$part."',partno='".$partno."',year='".$year."',title='".$title."',author='".$author."',LUDatetime=Now() where sa_id='".$said."'";
			$log_qr = mysqli_query($conn,$log_sql);      
        }

		if($log_qr == TRUE)
        {           
           echo '<script type="text/javascript">alert(" Special Issue Article Information Updated successfully ");window.location.href="specialissue.php";</script>"'; 
        /*  
          echo '<script type="text/javascript">alert(" Special Issue Article Information Updated successfully ");window.location.href="specialissue.php?name=4&department=1&part=Part2&year=2017&title=&author=";</script>"';
         */ 
        }
       else
       {
        echo '<script type="text/javascript">alert("Not Updated");window.location.href="specialissue.php";</script>"';
       }
}

// Add IJCSE Info Start
if(isset($_POST['add_ijcse']) && ($_POST['add_ijcse'] == 'Save'))
{
		$jname = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
		$month = $_POST['month'];
		$year = trim($_POST['year']);
		$path = '../IJCSE/'.$year.'/'; 
		
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJCSE/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath =$paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
		
		$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
		$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
        $keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
		
		/*
		
		$abstract = str_replace('‖', '"', $abstract);
		$abstract = str_replace('―', '"', $abstract);
		$abstract = str_replace('“', '"', $abstract);
		$abstract = str_replace('”', '"', $abstract);
		$abstract = str_replace('’', "'", $abstract); 
	    $abstract = str_replace('‖', '"', $abstract);
		$abstract = str_replace('―', '"', $abstract);
       	$abstract = mysqli_real_escape_string($conn,str_replace("�", "'", $abstract)); 
	   	$abstract = str_replace('�' ,"", $abstract);
		$abstract = str_replace("'�" , '"', $abstract);
		
		$keywords = str_replace('“', '"', $keywords);
		$keywords = str_replace('”', '"', $keywords);
		$keywords = str_replace('’', "'", $keywords); 
       	$keywords = mysqli_real_escape_string($conn,str_replace("�", "'", $keywords)); 
	   	$keywords = str_replace('�' ,"", $keywords);
		$keywords = str_replace("'�" , '"', $keywords);
		
		
		$references = str_replace('‖', '"', $references);
		$references = str_replace('―', '"', $references);
		$references = str_replace('“', '"', $references);
		$references = str_replace('”', '"', $references);
		$references = str_replace('’', "'", $references); 
	    $references = str_replace('‖', '"', $references);
		$references = str_replace('―', '"', $references);
       	$references = mysqli_real_escape_string($conn,str_replace("�", "'", $references)); 
	   	$references = str_replace('�' ,"", $references);
		$references = str_replace("'�" , '"', $references);
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references); */   
		    
		
	   	$log_sql = "insert into `ijcse`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())";
	  
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  echo '<script type="text/javascript">alert(" IJCSE Information inserted successfully ");window.location.href="ijcse.php";</script>"';
			}
		    else
		    {
			   echo mysql_error();
			   echo '<script type="text/javascript">alert(" IJCSE Information Not inserted");window.location.href="add_ijcse.php";</script>"';
		    } 
}
// Add IJCSE Info End


// Update IJCSE Info Start

if(isset($_POST['edit_ijcse']) && ($_POST['edit_ijcse'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJCSE/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJCSE/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath = $paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    
	    $abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
	    $abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
		
	   	$sno= trim($_POST['sno']);

			$log_sql = "update `ijcse` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";
			$log_qr = mysqli_query($conn,$log_sql);        
  			if($log_qr == TRUE)
        	{           
          		echo '<script type="text/javascript">alert(" IJCSE Information Updated successfully ");window.location.href="ijcse.php";</script>"';
        	}
       		else
       		{
         		echo '<script type="text/javascript">alert("IJCSE Information Not Updated");window.location.href="ijcse.php";</script>"';
       		}
}
 // Update IJCSE Info End
 
// Add IJEEE Info Start

if(isset($_POST['add_ijeee']) && ($_POST['add_ijeee'] == 'Save'))
{
		$jname = $_POST['jname'];
 
		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
   		$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		$path = '../IJEEE/'.$year.'/'; 
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJEEE/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath =$paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
		$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		$status= trim($_POST['status']);

	   $log_sql = "insert into `ijeee`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())"; 
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  echo '<script type="text/javascript">alert(" IJEEE Information inserted successfully ");window.location.href="ijeee.php";</script>"';
			}
		    else
		    {
			   echo mysql_error();
			   echo '<script type="text/javascript">alert(" IJEEE Information Not inserted");window.location.href="add_ijeee.php";</script>"';
		    }
}
// Add IJEEE Info End

 // Update IJEEE Info Start

if(isset($_POST['edit_ijeee']) && ($_POST['edit_ijeee'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 
		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJEEE/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJEEE/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    
	   	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
	   	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
	   	$sno= trim($_POST['sno']);

			$log_sql = "update `ijeee` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";        
  			$log_qr = mysqli_query($conn,$log_sql); 

		if($log_qr == TRUE)
        {           
          echo '<script type="text/javascript">alert(" IJEEE Information Updated successfully ");window.location.href="ijeee.php";</script>"';
        }
       else
       {
        echo '<script type="text/javascript">alert("IJEEE Information Not Updated");window.location.href="ijeee.php";</script>"';
       }
}
 // Update IJEEE Info End
 
// Add IJME Info Start

if(isset($_POST['add_ijme']) && ($_POST['add_ijme'] == 'Save'))
{
		$jname = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		$path = '../IJME/'.$year.'/'; 
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJME/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath =$paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
		
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
		$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		$status= trim($_POST['status']);
		
	   $log_sql = "insert into `ijme`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())";
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  echo '<script type="text/javascript">alert(" IJME Information inserted successfully ");window.location.href="ijme.php";</script>"';
			}
		    else
		    {
			   echo mysql_error();
			   echo '<script type="text/javascript">alert(" IJME Information Not inserted");window.location.href="add_ijme.php";</script>"';
		    }
}
// Add IJME Info End

 // Update IJME Info Start

if(isset($_POST['edit_ijme']) && ($_POST['edit_ijme'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 
		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJME/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJME/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    
	    $abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
	    $abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
	   		$sno= trim($_POST['sno']);
	
			$log_sql = "update `ijme` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";
		$log_qr = mysqli_query($conn,$log_sql);        
  

		if($log_qr == TRUE)
        {           
          echo '<script type="text/javascript">alert(" IJME Information Updated successfully ");window.location.href="ijme.php";</script>"';
        }
       else
       {
        
		 echo '<script type="text/javascript">alert("IJME Information Not Updated");window.location.href="ijme.php";</script>"';
       }
}
 // Update IJME Info End

// Add IJMS Info Start

if(isset($_POST['add_ijms']) && ($_POST['add_ijms'] == 'Save'))
{
		$jname = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		$path = '../IJMS/'.$year.'/'; 
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJMS/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath =$paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']) ;
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/*$findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
		$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		$status= trim($_POST['status']);
		
	   $log_sql = "insert into `ijms`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())";
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  echo '<script type="text/javascript">alert(" IJMS Information inserted successfully ");window.location.href="ijms.php";</script>"';
			}
		    else
		    {
			   echo mysql_error();
			   echo '<script type="text/javascript">alert(" IJMS Information Not inserted");window.location.href="add_ijms.php";</script>"';
		    }
}
// Add IJME Info End

 // Update IJMS Info Start

if(isset($_POST['edit_ijms']) && ($_POST['edit_ijms'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 
		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJMS/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJMS/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    
	    $abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
	    $abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
		
	    $sno= trim($_POST['sno']);

		$log_sql = "update `ijms` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";
		$log_qr = mysqli_query($conn,$log_sql);        
  
		if($log_qr == TRUE)
        {           
          echo '<script type="text/javascript">alert(" IJMS Information Updated successfully ");window.location.href="ijms.php";</script>"';
        }
       else
       {
         echo '<script type="text/javascript">alert("IJMS Information Not Updated");window.location.href="ijms.php";</script>"';
       }
}
 
 
 // Update IJMS Info End

// Add IJAP Info Start

if(isset($_POST['add_ijap']) && ($_POST['add_ijap'] == 'Save'))
{
		$jname = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		$path = '../IJAP/'.$year.'/'; 
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJAP/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath =$paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);

	   $log_sql = "insert into `ijap`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())";
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  echo '<script type="text/javascript">alert(" IJAP Information inserted successfully ");window.location.href="ijap.php";</script>"';
			}
		    else
		    {
			   echo mysql_error();
			   echo '<script type="text/javascript">alert(" IJAP Information Not inserted");window.location.href="add_ijap.php";</script>"';
		    }
}
// Add IJAP Info End

 // Update IJAP Info Start

if(isset($_POST['edit_ijap']) && ($_POST['edit_ijap'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJAP/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJAP/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    
	    $abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
	    $abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= trim(mysqli_real_escape_string($conn, $_POST['details'])) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
	    $sno= trim($_POST['sno']);

		$log_sql = "update `ijap` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";
		$log_qr = mysqli_query($conn,$log_sql);        
  

		if($log_qr == TRUE)
        {           
          	echo '<script type="text/javascript">alert(" IJAP Information Updated successfully ");window.location.href="ijap.php";</script>"';
        }
       else
       {
        	echo '<script type="text/javascript">alert("IJAP Information Not Updated");window.location.href="ijap.php";</script>"';
       }
}
// Update IJAP Info End

// Add IJAC Info Start

if(isset($_POST['add_ijac']) && ($_POST['add_ijac'] == 'Save'))
{
		$jname = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		$path = '../IJAC/'.$year.'/'; 
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJAC/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath =$paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
		
	   $log_sql = "insert into `ijac`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())";
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  echo '<script type="text/javascript">alert(" IJAC Information inserted successfully ");window.location.href="ijac.php";</script>"';
			}
		    else
		    {
			   echo mysql_error();
			   echo '<script type="text/javascript">alert(" IJAC Information Not inserted");window.location.href="add_ijac.php";</script>"';
		    }
}
// Add IJAC Info End

 // Update IJAC Info Start

if(isset($_POST['edit_ijac']) && ($_POST['edit_ijac'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJAC/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJAC/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    
	    $abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
	    $abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
	    $sno= trim($_POST['sno']);

		$log_sql = "update `ijac` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";
		$log_qr = mysqli_query($conn,$log_sql);        
  

		if($log_qr == TRUE)
        {           
          	echo '<script type="text/javascript">alert(" IJAC Information Updated successfully ");window.location.href="ijac.php";</script>"';
        }
       else
       {
        	echo '<script type="text/javascript">alert("IJAC Information Not Updated");window.location.href="ijac.php";</script>"';
       }
}
// Update IJAC End

// Add IJMCA Info Start

if(isset($_POST['add_ijmca']) && ($_POST['add_ijmca'] == 'Save'))
{
		$jname = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		$path = '../IJMCA/'.$year.'/'; 
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJMCA/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath =$paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);

	   $log_sql = "insert into `ijmca`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())";
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  echo '<script type="text/javascript">alert(" IJMCA Information inserted successfully ");window.location.href="ijmca.php";</script>"';
			}
		    else
		    {
			   echo mysql_error();
			   echo '<script type="text/javascript">alert(" IJMCA Information Not inserted");window.location.href="add_ijmca.php";</script>"';
		    }
}
// Add IJMCA Info End

 // Update IJMCA Info Start

if(isset($_POST['edit_ijmca']) && ($_POST['edit_ijmca'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJMCA/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJMCA/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    
	    $abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
	    $abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
		
	    $sno= trim($_POST['sno']);

		$log_sql = "update `ijmca` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";
		$log_qr = mysqli_query($conn,$log_sql);        
  

		if($log_qr == TRUE)
        {           
          	echo '<script type="text/javascript">alert(" IJMCA Information Updated successfully ");window.location.href="ijmca.php";</script>"';
        }
       else
       {
        	echo '<script type="text/javascript">alert("IJMCA Information Not Updated");window.location.href="ijmca.php";</script>"';
       }
}
// Update IJMCA End

// Add IJIE Info Start

if(isset($_POST['add_ijie']) && ($_POST['add_ijie'] == 'Save'))
{
		$jname = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		$path = '../IJIE/'.$year.'/'; 
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJIE/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath =$paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
		
	   $log_sql = "insert into `ijie`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())";
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  echo '<script type="text/javascript">alert(" IJIE Information inserted successfully ");window.location.href="ijie.php";</script>"';
			}
		    else
		    {
			   echo mysql_error();
			   echo '<script type="text/javascript">alert(" IJIE Information Not inserted");window.location.href="add_ijie.php";</script>"';
		    }
}
// Add IJIE Info End

 // Update IJIE Info Start

if(isset($_POST['edit_ijie']) && ($_POST['edit_ijie'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJIE/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJIE/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    
	    $abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
	    $abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
		
	   	$sno= trim($_POST['sno']);

			$log_sql = "update `ijie` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";
			$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
        	{           
          		echo '<script type="text/javascript">alert(" IJIE Information Updated successfully ");window.location.href="ijie.php";</script>"';
        	}
       		else
       		{
        		echo '<script type="text/javascript">alert("IJIE Information Not Updated");window.location.href="ijie.php";</script>"';
       }
}
// Update IJIE End

// Add IJPBE Info Start

if(isset($_POST['add_ijpbe']) && ($_POST['add_ijpbe'] == 'Save'))
{
		$jname = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		$path = '../IJPBE/'.$year.'/'; 
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJPBE/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath =$paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);

	   $log_sql = "insert into `ijpbe`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())";
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  echo '<script type="text/javascript">alert(" IJPBE Information inserted successfully ");window.location.href="ijpbe.php";</script>"';
			}
		    else
		    {
			   echo mysql_error();
			   echo '<script type="text/javascript">alert(" IJPBE Information Not inserted");window.location.href="add_ijpbe.php";</script>"';
		    }
}
// Add IJPBE Info End

 // Update IJPBE Info Start

if(isset($_POST['edit_ijpbe']) && ($_POST['edit_ijpbe'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJPBE/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJPBE/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    
	    $abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
	    $abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
	   	$sno= trim($_POST['sno']);

			$log_sql = "update `ijpbe` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";
			$log_qr = mysqli_query($conn,$log_sql);        
  		
		if($log_qr == TRUE)
        {           
           	echo '<script type="text/javascript">alert(" IJPBE Information Updated successfully ");window.location.href="ijpbe.php";</script>"';
        }
       else
       {
        	echo '<script type="text/javascript">alert("IJPBE Information Not Updated");window.location.href="ijpbe.php";</script>"';
       }
}
// Update IJPBE End


// Add IJVSP Info Start

if(isset($_POST['add_ijvsp']) && ($_POST['add_ijvsp'] == 'Save'))
{
		$jname = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		$path = '../IJVSP/'.$year.'/'; 
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJVSP/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath =$paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
		
	   	$log_sql = "insert into `ijvsp`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())";
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  echo '<script type="text/javascript">alert("IJVSP Information inserted successfully ");window.location.href="ijvsp.php";</script>"';
			}
		    else
		    {
			   echo mysql_error();
			   echo '<script type="text/javascript">alert("IJVSP Information Not inserted");window.location.href="add_ijvsp.php";</script>"';
		    }
}
// Add IJPBE Info End

 // Update IJPBE Info Start

if(isset($_POST['edit_ijvsp']) && ($_POST['edit_ijvsp'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJVSP/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJVSP/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    
	    $abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
	    $abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
	   	
	   		$sno= trim($_POST['sno']);

			$log_sql = "update `ijvsp` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";
			$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
        	{           
          		echo '<script type="text/javascript">alert("IJVSP Information Updated successfully ");window.location.href="ijvsp.php";</script>"';
        	}
       		else
       		{
        		echo '<script type="text/javascript">alert("IJVSP Information Not Updated");window.location.href="ijvsp.php";</script>"';
       		}
}
// Update IJVSP End

// Add IJTE Info Start

if(isset($_POST['add_ijte']) && ($_POST['add_ijte'] == 'Save'))
{
		$jname = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		$path = '../IJTE/'.$year.'/'; 
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJTE/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath =$paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);

	   	$log_sql = "insert into `ijte`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())";
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  echo '<script type="text/javascript">alert("IJTE Information inserted successfully ");window.location.href="ijte.php";</script>"';
			}
		    else
		    {
			   echo mysql_error();
			   echo '<script type="text/javascript">alert("IJTE Information Not inserted");window.location.href="add_ijte.php";</script>"';
		    }
}
// Add IJTE Info End

 // Update IJTE Info Start

if(isset($_POST['edit_ijte']) && ($_POST['edit_ijte'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJTE/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJTE/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    
	    $abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
	    $abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
	   	$sno= trim($_POST['sno']);

			$log_sql = "update `ijte` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";
			$log_qr = mysqli_query($conn,$log_sql);        
  

			if($log_qr == TRUE)
			{           
			  	echo '<script type="text/javascript">alert("IJTE Information Updated successfully ");window.location.href="ijte.php";</script>"';
			}
		   else
		   {
				echo '<script type="text/javascript">alert("IJTE Information Not Updated");window.location.href="ijte.php";</script>"';
		   }
}
// Update IJTE End

// Add IJECE Info Start

if(isset($_POST['add_ijece']) && ($_POST['add_ijece'] == 'Save'))
{
		$jname = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
			
		$path = '../IJECE/'.$year.'/'; 
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJECE/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath =$paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);

	    $log_sql = "insert into `ijece`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())";
	   	
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  	echo '<script type="text/javascript">alert("IJECE Information inserted successfully ");window.location.href="ijece.php";</script>"';
			}
		    else
		    {
			   	echo mysql_error();
			   echo '<script type="text/javascript">alert("IJECE Information Not inserted");window.location.href="add_ijece.php";</script>"';
		    }
}
// Add IJTE Info End

 // Update IJTE Info Start

if(isset($_POST['edit_ijece']) && ($_POST['edit_ijece'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJECE/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJECE/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    
	    $abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
	    $abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
	   	$sno= trim($_POST['sno']);

			$log_sql = "update `ijece` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";
			$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
        	{           
         		 echo '<script type="text/javascript">alert("IJECE Information Updated successfully ");window.location.href="ijece.php";</script>"';
       		}
       		else
       		{
        		echo '<script type="text/javascript">alert("IJECE Information Not Updated");window.location.href="ijece.php";</script>"';
       		}
}
// Update IJECE End

// Add IJCE Info Start

if(isset($_POST['add_ijce']) && ($_POST['add_ijce'] == 'Save'))
{
		$jname = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		$path = '../IJCE/'.$year.'/'; 
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJCE/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath =$paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);

	   	$log_sql = "insert into `ijce`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())";
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  	echo '<script type="text/javascript">alert("IJCE Information inserted successfully ");window.location.href="ijce.php";</script>"';
			}
		    else
		    {
			   	echo mysql_error();
			   echo '<script type="text/javascript">alert("IJCE Information Not inserted");window.location.href="add_ijce.php";</script>"';
		    }
}
// Add IJTE Info End

 // Update IJTE Info Start

if(isset($_POST['edit_ijce']) && ($_POST['edit_ijce'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJCE/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJCE/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
	   	$sno= trim($_POST['sno']);

			$log_sql = "update `ijce` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";
			$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
        	{           
          		echo '<script type="text/javascript">alert("IJCE Information Updated successfully ");window.location.href="ijce.php";</script>"';
        	}
       		else
       		{
        		echo '<script type="text/javascript">alert("IJCE Information Not Updated");window.location.href="ijce.php";</script>"';
       		}
}
// Update IJCE End


// Add IJAES Info Start

if(isset($_POST['add_ijaes']) && ($_POST['add_ijaes'] == 'Save'))
{
		$jname = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
	 	//$month = implode(',',$month);
		$year = trim($_POST['year']);
		
		$path = '../IJAES/'.$year.'/'; 
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJAES/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath =$paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);

	   	$log_sql = "insert into `ijaes`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())";
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  echo '<script type="text/javascript">alert("IJAES Information inserted successfully ");window.location.href="ijaes.php";</script>"';
			}
		    else
		    {
			   echo mysql_error();
			   echo '<script type="text/javascript">alert("IJAES Information Not inserted");window.location.href="add_ijaes.php";</script>"';
		    }
}
// Add IJTE Info End

 // Update IJTE Info Start

if(isset($_POST['edit_ijaes']) && ($_POST['edit_ijaes'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJAES/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJAES/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    
	    $abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
	    $abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
	   	$sno= trim($_POST['sno']);

			$log_sql = "update `ijaes` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";
			$log_qr = mysqli_query($conn,$log_sql);        
  

			if($log_qr == TRUE)
			{           
			  	echo '<script type="text/javascript">alert("IJAES Information Updated successfully ");window.location.href="ijaes.php";</script>"';
			}
		   else
		   {
				echo '<script type="text/javascript">alert("IJAES Information Not Updated");window.location.href="ijaes.php";</script>"';
		   }
}
// Update IJAES End



// Add IJEMS Info Start

if(isset($_POST['add_ijems']) && ($_POST['add_ijems'] == 'Save'))
{
		$jname = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		$path = '../IJEMS/'.$year.'/'; 
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJEMS/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath =$paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
		
	   	$log_sql = "insert into `ijems`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())";
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  echo '<script type="text/javascript">alert("IJEMS Information inserted successfully ");window.location.href="ijems.php";</script>"';
			}
		    else
		    {
			   echo mysql_error();
			   echo '<script type="text/javascript">alert("IJEMS Information Not inserted");window.location.href="add_ijems.php";</script>"';
		    }
}
// Add IJTE Info End

 // Update IJTE Info Start

if(isset($_POST['edit_ijems']) && ($_POST['edit_ijems'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJEMS/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJEMS/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    
	    $abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
	    $abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
	   	$sno= trim($_POST['sno']);

			$log_sql = "update `ijems` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";
			$log_qr = mysqli_query($conn,$log_sql);        
  

			if($log_qr == TRUE)
			{           
			  	echo '<script type="text/javascript">alert("IJEMS Information Updated successfully ");window.location.href="ijems.php";</script>"';
			}
		   else
		   {
				echo '<script type="text/javascript">alert("IJEMS Information Not Updated");window.location.href="ijems.php";</script>"';
		   }
}
// Update IJEMS End


// Add IJHSS Info Start

if(isset($_POST['add_ijhss']) && ($_POST['add_ijhss'] == 'Save'))
{
		$jname = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		$path = '../IJHSS/'.$year.'/'; 
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJHSS/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath =$paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);

	   	$log_sql = "insert into `ijhss`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())";
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  echo '<script type="text/javascript">alert("IJHSS Information inserted successfully ");window.location.href="ijhss.php";</script>"';
			}
		    else
		    {
			   echo mysql_error();
			   echo '<script type="text/javascript">alert("IJHSS Information Not inserted");window.location.href="add_ijhss.php";</script>"';
		    }
}
// Add IJHSS Info End

 // Update IJHSS Info Start

if(isset($_POST['edit_ijhss']) && ($_POST['edit_ijhss'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJHSS/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJHSS/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    
	    $abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
	    $abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
	   	$sno= trim($_POST['sno']);

			$log_sql = "update `ijhss` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";
			$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
        	{           
          		echo '<script type="text/javascript">alert("IJHSS Information Updated successfully ");window.location.href="ijhss.php";</script>"';
        	}
       		else
       		{
        		echo '<script type="text/javascript">alert("IJHSS Information Not Updated");window.location.href="ijhss.php";</script>"';
       		}
}
// Update IJHSS End

// Add IJGGS Info Start

if(isset($_POST['add_ijggs']) && ($_POST['add_ijggs'] == 'Save'))
{
		$jname = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		$path = '../IJGGS/'.$year.'/'; 
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJGGS/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath =$paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);

	   	$log_sql = "insert into `ijggs`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())";
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  echo '<script type="text/javascript">alert("IJGGS Information inserted successfully ");window.location.href="ijggs.php";</script>"';
			}
		    else
		    {
			   echo mysql_error();
			   echo '<script type="text/javascript">alert("IJGGS Information Not inserted");window.location.href="add_ijggs.php";</script>"';
		    }
}
// Add IJGGS Info End

 // Update IJGGS Info Start

if(isset($_POST['edit_ijggs']) && ($_POST['edit_ijggs'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJGGS/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJGGS/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    
	    $abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
	    $abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
	   	$sno= trim($_POST['sno']);

			$log_sql = "update `ijggs` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";
			$log_qr = mysqli_query($conn,$log_sql);        
  

			if($log_qr == TRUE)
        	{           
          		echo '<script type="text/javascript">alert("IJGGS Information Updated successfully ");window.location.href="ijggs.php";</script>"';
        	}
       		else
       		{
        		echo '<script type="text/javascript">alert("IJGGS Information Not Updated");window.location.href="ijggs.php";</script>"';
       		}
}

// Add IJCMS Info Start

if(isset($_POST['add_ijcms']) && ($_POST['add_ijcms'] == 'Save'))
{
		$jname = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		$path = '../IJCMS/'.$year.'/'; 
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJCMS/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath =$paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);

	   	$log_sql = "insert into `ijcms`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())";
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  echo '<script type="text/javascript">alert("IJCMS Information inserted successfully ");window.location.href="ijcms.php";</script>"';
			}
		    else
		    {
			   echo mysql_error();
			   echo '<script type="text/javascript">alert("IJCMS Information Not inserted");window.location.href="add_ijcms.php";</script>"';
		    }
}
// Add IJCMS Info End

 // Update IJCMS Info Start

if(isset($_POST['edit_ijcms']) && ($_POST['edit_ijcms'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJCMS/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJCMS/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    
	    $abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
	    $abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
	   	
		$sno= trim($_POST['sno']);

			$log_sql = "update `ijcms` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";
		$log_qr = mysqli_query($conn,$log_sql);        
  

			if($log_qr == TRUE)
			{           
			 	 echo '<script type="text/javascript">alert("IJCMS Information Updated successfully ");window.location.href="ijcms.php";</script>"';
			}
		   else
		   {
				echo '<script type="text/javascript">alert("IJCMS Information Not Updated");window.location.href="ijcms.php";</script>"';
		   }
}

// Updat IJCMS End

// Add IJCER Info Start

if(isset($_POST['add_ijcer']) && ($_POST['add_ijcer'] == 'Save'))
{
		$jname = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		$path = '../IJCER/'.$year.'/'; 
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJCER/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath =$paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);

	   	$log_sql = "insert into `ijcer`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())";
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			 	 echo '<script type="text/javascript">alert("IJCER Information inserted successfully ");window.location.href="ijcer.php";</script>"';
			}
		    else
		    {
			   	 echo mysql_error();
			   echo '<script type="text/javascript">alert("IJCER Information Not inserted");window.location.href="add_ijcer.php";</script>"';
		    }
}
// Add IJCER Info End

 // Update IJCER Info Start

if(isset($_POST['edit_ijcer']) && ($_POST['edit_ijcer'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJCER/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJCER/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    
	    $abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
	    $abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
	   	$sno= trim($_POST['sno']);

			$log_sql = "update `ijcer` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";
			$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  	echo '<script type="text/javascript">alert("IJCER Information Updated successfully ");window.location.href="ijcer.php";</script>"';
			}
		   else
		   {
				echo '<script type="text/javascript">alert("IJCER Information Not Updated");window.location.href="ijcer.php";</script>"';
		   }
}

// Updat IJCER End


// Add IJPTE Info Start

if(isset($_POST['add_ijpte']) && ($_POST['add_ijpte'] == 'Save'))
{
		$jname = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		$path = '../IJPTE/'.$year.'/'; 
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJPTE/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath = $paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
    	
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);

	   	$log_sql = "insert into `ijpte`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())";
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  	echo '<script type="text/javascript">alert("IJPTE Information inserted successfully ");window.location.href="ijpte.php";</script>"';
			}
		    else
		    {
			   	echo mysql_error();
			   echo '<script type="text/javascript">alert("IJPTE Information Not inserted");window.location.href="add_ijpte.php";</script>"';
		    }
}
// Add IJPTE Info End

 // Update IJPTE Info Start

if(isset($_POST['edit_ijpte']) && ($_POST['edit_ijpte'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJPTE/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJPTE/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    
	    $abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
	    $abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
	   	$sno= trim($_POST['sno']);

			$log_sql = "update `ijpte` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";
			$log_qr = mysqli_query($conn,$log_sql);        
  

			if($log_qr == TRUE)
			{           
			  	echo '<script type="text/javascript">alert("IJPTE Information Updated successfully ");window.location.href="ijpte.php";</script>"';
			}
		   else
		   {
				echo '<script type="text/javascript">alert("IJPTE Information Not Updated");window.location.href="ijpte.php";</script>"';
		   }
}

// Updat IJPTE End


// Add IJNHS Info Start

if(isset($_POST['add_ijnhs']) && ($_POST['add_ijnhs'] == 'Save'))
{
		$jname = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		$path = '../IJNHS/'.$year.'/'; 
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJNHS/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath =$paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);

	   	$log_sql = "insert into `ijnhs`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())";
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  	echo '<script type="text/javascript">alert("IJNHS Information inserted successfully ");window.location.href="ijnhs.php";</script>"';
			}
		    else
		    {
			   	echo mysql_error();
			   	echo '<script type="text/javascript">alert("IJNHS Information Not inserted");window.location.href="add_ijnhs.php";</script>"';
		    }
}
// Add IJNHS Info End

 // Update IJNHS Info Start

if(isset($_POST['edit_ijnhs']) && ($_POST['edit_ijnhs'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJNHS/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJNHS/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    
	    $abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
	    $abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
	   	$sno= trim($_POST['sno']);

			$log_sql = "update `ijnhs` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";
			$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
        	{           
          		echo '<script type="text/javascript">alert("IJNHS Information Updated successfully ");window.location.href="ijnhs.php";</script>"';
        	}
       		else
       		{
        		echo '<script type="text/javascript">alert("IJNHS Information Not Updated");window.location.href="ijnhs.php";</script>"';
       		}
}

// Updat IJNHS End

// Add IJMSE Info Start

if(isset($_POST['add_ijmse']) && ($_POST['add_ijmse'] == 'Save'))
{
		$jname = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		$path = '../IJMSE/'.$year.'/'; 
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJMSE/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath =$paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);

	   	$log_sql = "insert into `ijmse`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())";
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  	echo '<script type="text/javascript">alert("IJMSE Information inserted successfully ");window.location.href="ijmse.php";</script>"';
			}
		    else
		    {
			   	echo mysql_error();
			   	echo '<script type="text/javascript">alert("IJMSE Information Not inserted");window.location.href="add_ijmse.php";</script>"';
		    }
}
// Add IJMSE Info End

 // Update IJMSE Info Start

if(isset($_POST['edit_ijmse']) && ($_POST['edit_ijmse'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJMSE/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJMSE/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    
	    $abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
	    $abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);
	   	$sno= trim($_POST['sno']);

			$log_sql = "update `ijmse` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";
			$log_qr = mysqli_query($conn,$log_sql);        
  

			if($log_qr == TRUE)
			{           
			  	echo '<script type="text/javascript">alert("IJMSE Information Updated successfully ");window.location.href="ijmse.php";</script>"';
			}
		   else
		   {
				echo '<script type="text/javascript">alert("IJMSE Information Not Updated");window.location.href="ijmse.php";</script>"';
		   }
}

// Updat IJMSE End

// Add IJVS Info Start

if(isset($_POST['add_ijvs']) && ($_POST['add_ijvs'] == 'Save'))
{
		$jname = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paper_id = trim($_POST['paper_id']);
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		$path = '../IJVS/'.$year.'/'; 
        if (!file_exists($path)){mkdir($path);}
		$target_path = '../IJVS/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
        if (!file_exists($target_path)){mkdir($target_path);}
		$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
		$ext = explode('.', basename($_FILES['pdf']['name']));
		$file_extension = end($ext); //store extensions in the variable
		$filepath =$paper_id.'.pdf';
		//$target = $target_path.$filepath;
		$target = $target_path.$filepath;
	
        move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		
    	$abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
    	$abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
		
		$status= trim($_POST['status']);

	   	$log_sql = "insert into `ijvs`(`joural_name`,`dio`,`paperid`,`journal_title`,`author`,`volume`,`volumeno`,`issue`,`issueno`,`month`,`year`,`pdf`,`abstract`,`reference`,`keywords`,`mla`,`apa`,`status`,`reg_date`)   values ('".$jname."','".$dio."','".$paper_id."','".$title."','".$author."','".$volume."','".$volumeno."','".$issue."','".$issueno."','".$month."','".$year."','".$target."','".$abstract."','".$references."','".$keywords."','".$mla."','".$apa."','".$status."',Now())";
		$log_qr = mysqli_query($conn,$log_sql);        
  
			if($log_qr == TRUE)
			{           
			  	echo '<script type="text/javascript">alert("IJVS Information inserted successfully ");window.location.href="ijvs.php";</script>"';
			}
		    else
		    {
			   	echo mysql_error();
			   	echo '<script type="text/javascript">alert("IJVS Information Not inserted");window.location.href="add_ijvs.php";</script>"';
		    }
}
// Add IJMSE Info End

 // Update IJMSE Info Start

if(isset($_POST['edit_ijvs']) && ($_POST['edit_ijvs'] == 'Update'))
{
		$joural_name = $_POST['jname'];
 		$dio = trim($_POST['dio']);
		$paperid = trim($_POST['paper_id']);   
		$title1= str_replace( "<a>", "", $_POST['title'] );					
		$title = str_replace( "</a>", "", $title1);
		$title = trim(mysqli_escape_string ($conn,$title));
		$author = trim($_POST['author']);
		$volume = trim($_POST['volume']);
		$volumeno = str_replace("Volume ","",$volume);
		$issue = trim($_POST['issue']);
		$issueno = str_replace("Issue ","",$issue);
		$volume1 = str_replace(" ","",$volume);
		$issue1 = str_replace(" ","",$issue);
	 	$month = $_POST['month'];
		$year = trim($_POST['year']);
		
		if(!empty($_FILES['pdf']['tmp_name']))
		{
			$path = '../IJVS/'.$year.'/'; 
			if (!file_exists($path)){mkdir($path);}
			$target_path = '../IJVS/'.$year.'/'.$volume1.'-'.$issue1.'/'; 
			if (!file_exists($target_path)){mkdir($target_path);} 
		
			$validextensions = array(".pdf", ".PDF");  //Extensions which are allowed
			$ext = explode('.', basename($_FILES['pdf']['name']));
			$file_extension = end($ext); //store extensions in the variable
			$filepath =$paperid.'.pdf';
			//$target = $target_path.$filepath;
			$target = $target_path.$filepath;
		
			move_uploaded_file($_FILES['pdf']['tmp_name'], $target);
		}
		else
		{
			$target= trim($_POST['oldpdf']);
		}
    
	    $abstract= mysqli_real_escape_string($conn, $_POST['abstract']);
	    $abstract = str_replace('<p>', "", $abstract); 
		$abstract = str_replace('</p>', "", $abstract);
		/* $findsymbols_abstract = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$abstract = str_replace($findsymbols_abstract, '"', $abstract); */
		
		$keywords= mysqli_real_escape_string($conn, $_POST['keywords']);
		$keywords = str_replace('<p>', "", $keywords); 
		$keywords = str_replace('</p>', "", $keywords);
		/* $findsymbols_keywords = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$keywords = str_replace($findsymbols_keywords, '"', $keywords); */
		
		$references= mysqli_real_escape_string($conn, $_POST['details']) ;
		/* $findsymbols_reference = array("‖", "―", "“", "”", "’", "‖", "―", "�", "'�", "'�");
		$references = str_replace($findsymbols_reference, '"', $references); */
		$references = str_replace('<p>', "", $references); 
		$references = str_replace('</p>', "", $references);
		
		$mla= mysqli_real_escape_string($conn, $_POST['mla'] );
		$mla = str_replace('<p>', "", $mla); 
		$mla = str_replace('</p>', "", $mla);
	   	$apa= mysqli_real_escape_string($conn, $_POST['apa'] );
	   	$apa = str_replace('<p>', "", $apa); 
		$apa = str_replace('</p>', "", $apa);
	   	
		
		$status= trim($_POST['status']);
	   	$sno= trim($_POST['sno']);

			$log_sql = "update `ijvs` set `joural_name`='".$joural_name."',`dio`='".$dio."',`paperid`='".$paperid."',`journal_title`='".$title."',`author`='".$author."',`volume`='".$volume."',`volumeno`='".$volumeno."',`issue`='".$issue."',`issueno`='".$issueno."',`month`='".$month."',`year`='".$year."',`pdf`='".$target."',	`abstract`='".$abstract."',`reference`='".$references."',`keywords`='".$keywords."',`mla`='".$mla."',`apa`='".$apa."',`status`='".$status."' where sno='".$sno."'";
			$log_qr = mysqli_query($conn,$log_sql);        
  

			if($log_qr == TRUE)
			{           
			  	echo '<script type="text/javascript">alert("IJVS Information Updated successfully ");window.location.href="ijvs.php";</script>"';
			}
		   else
		   {
				echo '<script type="text/javascript">alert("IJVS Information Not Updated");window.location.href="ijvs.php";</script>"';
		   }
}

// Updat IJVS End

if(isset($_POST['Current_issue']))
{
		$sno = $_POST['sno'];
 		$volume = trim($_POST['volume']);
	 	$issue = trim($_POST['issue']);
	 	$log_sql = "update `current_issue` set `volume`='".$volume."',`issue`='".$issue."' where sno='".$sno."'";
		$log_qr = mysqli_query($conn,$log_sql);        
  
		if($log_qr == TRUE)
        {           
         	 echo '<script type="text/javascript">alert(" Current_issue Updated successfully ");window.location.href="current_issue.php";</script>"';
        }
       else
       {
         	echo '<script type="text/javascript">alert("Current_issue Not Updated");window.location.href="current_issue.php";</script>"';
       }
}

//if condition is not fount then re-direct to dashboard page start
echo '<script type="text/javascript">window.location.href="index.php";</script>"';
//if condition is not fount then re-direct to dashboard page end
?>


Anon7 - 2022
AnonSec Team