<?php session_start();
include("dbcon/connect.php");
if(!isset($_SESSION['delsuresultadminid'])){
	header("location:index.php");
}else{
	$ddd=mysqli_query($con,"select * from notification_admin where id='".$_SESSION['delsuresultadminid']."'");
	$adm=mysqli_fetch_assoc($ddd);	
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
	<title>Process Student Notification of Result :: Lagos State University, Student Results Management System</title>
	<meta name="description" content="Inspire Polytechnic, Automated Student Notification of Result System" />
	<meta name="keyword" content="Inspire Polytechnic, Notification of Result, Student, Results Management System, Education" />
	<meta name="author" content="Dosumu Ololade"/>
    <link rel="icon" href="img/favicon.png">
	<link href="../<?php echo $host_folder;?>/vendors/bower_components/datatables/media/css/jquery.dataTables.min.css" rel="stylesheet" type="text/css"/>
	<link href="../<?php echo $host_folder;?>/vendors/bower_components/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css"/>
		<link href="../<?php echo $host_folder;?>/vendors/bower_components/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet" type="text/css"/>
		
		<link href="../<?php echo $host_folder;?>/vendors/bower_components/dropify/dist/css/dropify.min.css" rel="stylesheet" type="text/css"/>
		
		<link href="../<?php echo $host_folder;?>/vendors/bower_components/select2/dist/css/select2.min.css" rel="stylesheet" type="text/css"/>
		<link href="../<?php echo $host_folder;?>/vendors/bower_components/bootstrap-select/dist/css/bootstrap-select.min.css" rel="stylesheet" type="text/css"/>
		
	<link href="../<?php echo $host_folder;?>/dist/css/style.css" rel="stylesheet" type="text/css">
		
		<script src="../<?php echo $host_folder;?>/sweetalert/dist/jquery-2.1.3.min.js"></script>
	<script src="../<?php echo $host_folder;?>/sweetalert/dist/sweetalert-dev.js"></script>
	<link rel="stylesheet" href="../<?php echo $host_folder;?>/sweetalert/dist/sweetalert.css">
	
	
</head>

<body>
	<!--Preloader-->
	<div class="preloader-it">
		<div class="la-anim-1"></div>
	</div>
	<!--/Preloader-->
    <div class="wrapper theme-6-active pimary-color-green">
		<!-- Top Menu Items -->
		<nav class="navbar navbar-inverse navbar-fixed-top">
			<div class="mobile-only-brand pull-left">
				<div class="nav-header pull-left">
					<div class="logo-wrap">
						<a href="dashboard.php">
							<img class="brand-img" style="width:140px;" src="img/logo.png" alt="logo"/>
							
						</a>
					</div>
				</div>	
				<a id="toggle_nav_btn" class="toggle-left-nav-btn inline-block ml-20 pull-left" href="javascript:void(0);"><i class="zmdi zmdi-menu"></i></a>
				
			</div>
			<div id="mobile_only_nav" class="mobile-only-nav pull-right">
				<ul class="nav navbar-right top-nav pull-right">
					<li class="dropdown auth-drp">
						<a href="#" class="dropdown-toggle pr-0" data-toggle="dropdown"> <?php echo ucwords($adm['lastname']); ?> <img src="../<?php echo $host_folder;?>/img/avatar.png" alt="user_auth" class="user-auth-img img-circle"/><span class="user-online-status"></span></a>
						<ul class="dropdown-menu user-auth-dropdown" data-dropdown-in="flipInX" data-dropdown-out="flipOutX">
							<li>
								<a href="logout.php"><i class="zmdi zmdi-power"></i><span>Log Out</span></a>
							</li>
						</ul>
					</li>
				</ul>
			</div>	
		</nav>
		<!-- /Top Menu Items -->
		
		<!-- Left Sidebar Menu -->
		<div class="fixed-sidebar-left">
			<ul class="nav navbar-nav side-nav nicescroll-bar">
				<li class="navigation-header">
					<span>Portal Admin</span> 
					<i class="zmdi zmdi-more"></i>
				</li>
				
				<li>
					<a href="dashboard.php" class="active"><div class="pull-left"><i class="fa fa-dashboard mr-20"></i><span class="right-nav-text">Dashboard</span></div>
					<div class="clearfix"></div></a>
				</li>
				
				
					<li>
					<a href="generator.php"><div class="pull-left"><i class="fa fa-file-text-o mr-20"></i><span class="right-nav-text">Generated Docs</span></div> <div class="clearfix"></div></a>
				</li>
				
				<li><hr class="light-grey-hr mb-10"/></li>
				<li>
					<a href="profile.php"><div class="pull-left"><i class="fa fa-universal-access mr-20"></i><span class="right-nav-text">Profile</span></div><div class="clearfix"></div></a>
				</li>
				<li>
					<a href="logout.php"><div class="pull-left"><i class="fa fa-power-off mr-20"></i><span class="right-nav-text">Logout</span></div><div class="clearfix"></div></a>
				</li>
			</ul>
		</div>
		<!-- /Left Sidebar Menu -->
		
		
		
		
		<!-- Right Sidebar Backdrop -->
		<div class="right-sidebar-backdrop"></div>
		<!-- /Right Sidebar Backdrop -->

        <!-- Main Content -->
		<div class="page-wrapper">
            <div class="container-fluid pt-25">
					
					<div class="row">
					
					<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
						<div class="panel panel-success card-view pa-0">
							<div class="panel-wrapper collapse in">
								<div class="panel-body pa-0">
						<div align="center"><img src="img/logo1.png" style="width:250px; padding:13px;" class="img-responsive"></div>
									
								</div>
							</div>
						</div>
					</div>
					
					<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
						<div class="panel panel-default card-view ">
							<div class="panel-wrapper collapse in">
								<div class="panel-body pa-0">
									<div class="sm-data-box">
										<div class="container-fluid">
											<div class="row">
												<div style="margin-top:-12px;margin-bottom:-12px;" class="col-md-12 text-center pl-0 pr-0 data-wrap-left">
													<span class="txt-dark block counter" style="font-weight:600;">
													<i class="fa fa-language"></i> PROCESS DOCUMENT</span>
												</div> 
												
											</div>	
										</div>
									</div>
								</div>
							</div>
						</div>
							
					</div>
					
				</div>
					
				<!-- Row -->
					<br>
				
				<div class="row">
					
					<div class="col-lg-12 col-xs-12">
					
					
					<div class="panel  panel-primary card-view">
					<div class="panel-heading">
									<div class="pull-left">
										<h6 class="panel-title" style="color:white; font-weight:bold; font-size:15px; margin-top:-10px; margin-bottom:-10px;">
										Process New Student Notification of Results</h6>
									</div> <div class="clearfix"></div>
									</div>
								
									<div class="panel-body"> 
									
									
									<form method="post" id="form_submit">
											<input type="hidden" class="form-control" name="add_notification" value="Dosumu Ololade">
											
												
												<div class="row"> 
												
												<div class="col-md-4"> 
													<label class="control-label mb-5" for="exampleInputEmail_2">Lastname</label>
												<div class="input-group">
												 <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
													<input type="text" placeholder="Student Surname" class="form-control" name="sname" required />
												</div>
												</div>
												
												<div class="col-md-4"> 
													<label class="control-label mb-5" for="exampleInputEmail_2">Firstname</label>
												<div class="input-group">
												 <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
													<input type="text" placeholder="Student Firstname" class="form-control" name="fname" required />
												</div>
												</div>
												
												
												<div class="col-md-4"> 
													<label class="control-label mb-5" for="exampleInputEmail_2">Middlename</label>
												<div class="input-group">
												 <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
													<input type="text" placeholder="Student Middlename" class="form-control" name="mname" />
												</div>
												</div>
												
												</div>
												
												<div class="row">
												
												<div class="col-md-4">
													<label class="control-label mb-5 mt-20" for="exampleInputEmail_2">Matric No</label>
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-bookmark-o"></i></span>
													<input type="text" placeholder="Matriculation Number" class="form-control" name="matric_no" required />
												</div>
												</div>
												
												<div class="col-md-4">
													<label class="control-label mb-5 mt-20" for="exampleInputEmail_2">Discipline</label>
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-book"></i></span>
													<input type="text" placeholder="i.e Marketing" class="form-control" name="discipline" required />
												</div>
												</div>
												
												<div class="col-md-4">
													<label class="control-label mb-5 mt-20" for="exampleInputEmail_2">Email</label>
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-envelope-o"></i></span>
													<input type="email" placeholder="Valid Email Address" class="form-control" name="email" required />
												</div>
												</div>
												
												</div>
												
												<div class="row">
												
												<div class="col-md-4">
													<label class="control-label mb-5 mt-20" for="exampleInputEmail_2">Awarded Degree</label>
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-certificate"></i></span>
													<input type="text" placeholder="i.e National Degree" class="form-control" name="degree" required />
												</div>
												</div>
												
												<div class="col-md-4">
													<label class="control-label mb-5 mt-20" for="exampleInputEmail_2">Class of Degree</label>
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-male"></i></span>
													<input type="text" placeholder="i.e Upper Credit" class="form-control" name="class_degree" required />
												</div>
												</div>
												
												<div class="col-md-4">
													<label class="control-label mb-5 mt-20" for="exampleInputEmail_2">Graduated Session</label>
												<div class="input-group">
													<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
													<select class="form-control" name="grad_session" required>
													<option value=""> --Select--</option>
													<?php
													for($i=date("Y")+1; $i>=2010; $i--){
														echo '<option>'.($i-1).'/'.$i.'</option>';
													}
													?>
													</select>
												</div>
												</div>
												
												</div>
												
												
												<br>
												<br>
												<div class="form-group text-center"> 
										<div class="msg"></div>
													<button type="submit" class="btn btn-primary pull-right">Process <i class="fa fa-cogs"></i></button>
													<div class="clearfix"></div>
												</div>
											</form>
							
								<!-- ref_no 	sname 	fname 	mname 	matric_no 	discipline 	degree 	class_degree 	grad_session 	email 	reg_by 	date 	code 	 -->		
									
											
									</div>
							</div>
					
					
					
					
					
					</div>
				
					
				</div>
				<!-- /Row -->
				
				
			
			</div>
			<!-- Footer -->
			<footer class="footer container-fluid pl-30 pr-30">
				<div class="row">
					<div class="col-sm-12">
						<p style="text-align:center;"> &copy; Copyright <?php echo date("Y");?> Inspire Polytechnic. All right reserved</p>
					</div>
				</div>
			</footer>
			<!-- /Footer -->
			
		</div>
        <!-- /Main Content -->

    </div>
    <!-- /#wrapper -->
	
	<!-- JavaScript -->
	
    <!-- jQuery -->
    <script src="../<?php echo $host_folder;?>/vendors/bower_components/jquery/dist/jquery.min.js"></script>
	
	<script>
	jQuery().ready(function(){
		
		$("select#s_programme").change(function(){
			var s_prog = $(this).val();
			if(s_prog!=''){
			$.ajax({
						type: "POST",
                        url: "operation.php",
                        data: ({s_prog:s_prog}),
                        cache: false,
                        success: function(data){ 
							$("div.s_semester_result").html(data);
						 } 
 });
		}else{
			$("div.s_semester_result").html('<div class="form-group semester_result">\
                             <label class="control-label mb-5" for="email_de">Semester</label>\
												<select class="form-control" name="status" required >\
												<option value="">Select</option>\
												</select>\
                                                </div>');
		}
		});
		
		
		$("select#programme").change(function(){
			var prog = $(this).val();
			if(prog!=''){
			$.ajax({
						type: "POST",
                        url: "operation.php",
                        data: ({prog:prog}),
                        cache: false,
                        success: function(data){ 
							$("div.semester_result").html(data);
						 } 
 });
		}else{
			$("div.semester_result").html('<div class="form-group semester_result">\
                             <label class="control-label mb-5" for="email_de">Semester</label>\
												<select class="form-control" name="status" required >\
												<option value="">Select</option>\
												</select>\
                                                </div>');
		}
		});
		
		
$('#example').DataTable( {
		      "paging": true,
      "lengthChange": false,
      "searching": true,
      "ordering": false,
      "info": true,
      "autoWidth": false,
		dom: 'Blfrtip',
		buttons: [
			'excel', 'pdf', 'print'
		],
		
		"fnDrawCallback": function(oSettings){
			
		$("a.lecturer_log").click(function(){
		$("div.error").html('<div class="alert alert-info alert-dismissable">\
		<p class="pull-left" style="margin-bottom:-6px;"><i class="fa fa-spin fa-spinner"></i> Processing Request...</p><div class="clearfix"></div>\</div>');
			var lecturer_log = $(this).attr("id");
			$.ajax({
						type: "POST",
                        url: "operation.php",
                        data: ({lecturer_log:lecturer_log}),
                        cache: false,
                        success: function(data){ 
							$("div.error").html(data);
						 } 
 });
		});
			
		$("a.assigned_course").click(function(){
		$("div.error").html('<div class="alert alert-info alert-dismissable">\
		<p class="pull-left" style="margin-bottom:-6px;"><i class="fa fa-spin fa-spinner"></i> Processing Request...</p><div class="clearfix"></div>\</div>');
			var assigned_course = $(this).attr("id");
			$.ajax({
						type: "POST",
                        url: "operation.php",
                        data: ({assigned_course:assigned_course}),
                        cache: false,
                        success: function(data){ 
							$("div.error").html(data);
						 } 
 });
		});
			
			
			
				  $("a.delete_deferment").click(function(){
		var delete_deferment = $(this).attr("id");
		if(confirm("Are you want to delete deferment request!"))
		  {
			  $("div.error").html('<div class="alert alert-info alert-dismissable">\
		<p class="pull-left" style="margin-bottom:-6px;"><i class="fa fa-spin fa-spinner"></i> Processing Request...</p><div class="clearfix"></div>\</div>');
			$.ajax({
						type: "POST",
                        url: "operation.php",
                        data: ({delete_deferment:delete_deferment}),
                        cache: false,
                        success: function(data){ 
						$("div.error").html(' ');
							$("tr#"+delete_deferment).animate({ backgroundColor: "#fbc7c7" }, "fast").animate({ opacity: "hide" }, "slow");
						 } 
 });
 }

return false;
	});
			
			
		$("a.edit_score").click(function(){
			
		var edit_value=$(this).attr("id");
		
		//id="'.$sac['matric_no'].'_'.$sac['id'].'_'.$sac['course'].'_'.$sac['score'].'"
		
		var role_value=edit_value.split('_');
		$("input#r_id").val(role_value[1]);
		$("input#r_matric").val(role_value[0]);
		$("input#r_course").val(role_value[2]);
		$("input#r_score").val(role_value[3]);
		});
			
			
			
		$("a.ass_role").click(function(){
			
		var ass_role=$(this).attr("id");
		
		var role_value=ass_role.split('_');
		$("input#staff_id").val(role_value[1]);
		$("input#depcode").val(role_value[5]);
		$("input#l_name").val(role_value[0]);
		$("input#l_department").val(role_value[3]);
		$("input#l_faculty").val(role_value[4]);
		$("input#l_role").val(role_value[2]);
		});
			
		
		$("a.edit_course").click(function(){
		var edit_course = $(this).attr("id");
		
		$("div.result").html('<div align="center"><i class="fa fa-spin fa-spinner fa-2x" style="color:gray;"></i></div>');
		
			$.ajax({
						type: "POST",
                        url: "operation.php",
                        data: ({edit_course:edit_course}),
                        cache: false,
                        success: function(data){ 
							$("div.result").html(data);
						 } 
 });
		
	});
		
		}
	} );
		
		
		$("form#form_submit1").on('submit',(function(e){
			e.preventDefault();
			
	$("div.search_result").html("<p class='text-primary' style='padding:5px; text-align:center;'><i class='fa fa-spin fa-spinner'></i> Processing Request...</p>");
	
				$.ajax({
						type: "POST",
                        url: "operation.php",
                        data: new FormData(this),
						contentType:false,
						processData:false,
                        cache: false,
                        success: function(data){ 
						$("div.search_result").html(data);
						}
    });			
	
	
		}));
		
		$("form#form_submit").on('submit',(function(e){
			e.preventDefault();
			
	$("div.msg").html("<p style='padding:5px; text-align:center; font-size:18px; color:#4d4d4d;'><i class='fa fa-spin fa-spinner'></i> Processing Request...</p>");
	
				$.ajax({
						type: "POST",
                        url: "operation.php",
                        data: new FormData(this),
						contentType:false,
						processData:false,
                        cache: false,
                        success: function(data){ 
						$("div.msg").html(data);
						}
    });			
	
	
		}));
		
		
	});
	</script>
	

    <!-- Bootstrap Core JavaScript -->
    <script src="../<?php echo $host_folder;?>/vendors/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
	<script src="../<?php echo $host_folder;?>/vendors/bower_components/dropify/dist/js/dropify.min.js"></script>
		<script src="../<?php echo $host_folder;?>/dist/js/form-file-upload-data.js"></script>
	
	<!-- Switchery JavaScript -->
		<script src="../<?php echo $host_folder;?>/vendors/bower_components/switchery/dist/switchery.min.js"></script>
		<script src="../<?php echo $host_folder;?>/vendors/bower_components/sweetalert/dist/sweetalert.min.js"></script>
		
		
		<!-- Data table JavaScript -->
	<script src="../<?php echo $host_folder;?>/vendors/bower_components/datatables/media/js/jquery.dataTables.min.js"></script>
	<script src="../<?php echo $host_folder;?>/vendors/bower_components/datatables.net-buttons/js/dataTables.buttons.min.js"></script>
	<script src="../<?php echo $host_folder;?>/vendors/bower_components/datatables.net-buttons/js/buttons.flash.min.js"></script>
	<script src="../<?php echo $host_folder;?>/vendors/bower_components/jszip/dist/jszip.min.js"></script>
	<script src="../<?php echo $host_folder;?>/vendors/bower_components/pdfmake/build/pdfmake.min.js"></script>
	<script src="../<?php echo $host_folder;?>/vendors/bower_components/pdfmake/build/vfs_fonts.js"></script>
	
	<script src="../<?php echo $host_folder;?>/vendors/bower_components/datatables.net-buttons/js/buttons.html5.min.js"></script>
	<script src="../<?php echo $host_folder;?>/vendors/bower_components/datatables.net-buttons/js/buttons.print.min.js"></script>
	<!--<script src="dist/js/export-table-data.js"></script>-->
	
	
	<script type="text/javascript" src="../<?php echo $host_folder;?>/vendors/bower_components/moment/min/moment-with-locales.min.js"></script>
		<script src="../<?php echo $host_folder;?>/vendors/bower_components/mjolnic-bootstrap-colorpicker/dist/js/bootstrap-colorpicker.min.js"></script>
		<script type="text/javascript" src="../<?php echo $host_folder;?>/vendors/bower_components/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js"></script>
		<!--<script src="../<?php echo $host_folder;?>/dist/js/form-picker-data.js"></script>
		
		
		<script src="../<?php echo $host_folder;?>/dist/js/form-advance-data.js"></script>-->

	

	
	<!-- Slimscroll JavaScript -->
	<script src="../<?php echo $host_folder;?>/dist/js/jquery.slimscroll.js"></script>
	
	<!-- Fancy Dropdown JS -->
	<script src="../<?php echo $host_folder;?>/dist/js/dropdown-bootstrap-extended.js"></script>
	
	<!-- Switchery JavaScript -->
	<script src="../<?php echo $host_folder;?>/vendors/bower_components/switchery/dist/switchery.min.js"></script>
	
	<!-- Bootstrap Tagsinput JavaScript -->
	
		

	
		<script src="../<?php echo $host_folder;?>/vendors/bower_components/bootstrap-tagsinput/dist/bootstrap-tagsinput.min.js"></script>
	<script src="../<?php echo $host_folder;?>/dist/js/init.js"></script>
	
		<script src="../<?php echo $host_folder;?>/vendors/bower_components/select2/dist/js/select2.full.min.js"></script>
	<script src="../<?php echo $host_folder;?>/dist/js/form-advance-data.js"></script>
	
	<script src="../<?php echo $host_folder;?>/dist/js/dashboard-data.js"></script>



</body>

</html>
