
		<?php  if (!isset($_SESSION['lockMyfScreen']) == 'IluvMyChukwu') {  /* check if screen lock is activated */  ?>	  
			<!--footer start-->
			<footer class="site-footer">
				<div class="text-center"> <?php echo $wizGradeVfooter; ?> </div>
			</footer>
			<!--footer end-->
		<?php } ?>

		<a href="javascript:;" class="back-to-top">Back to Top</a>
		</section>

		<!-- jquery  -->
 
		<script type="text/javascript"  src="<?php echo $wizGradeTemplate; ?>js/jquery-3.4.1.min.js"></script>
		<script type="text/javascript"  src="<?php echo $wizGradeTemplate; ?>js/bootstrap.min.js"></script>	
		<script type="text/javascript" src="<?php echo $wizGradeTemplate; ?>js/jquery-ui.js"></script>
		<script type="text/javascript" src="<?php echo $wizGradeTemplate; ?>js/pnotify.custom.js"></script>		
		<script type="text/javascript" src="<?php echo $wizGradeTemplate; ?>js/sweetalert2@9.js"></script>	 

		<script type="text/javascript"  src='<?php echo $wizGradeTemplate; ?>assets/fullcalendar/js/fullcalendarm.min.js'></script>    
		<script type="text/javascript"  src='<?php echo $wizGradeTemplate; ?>js/printThis.js'></script>
		<script type="text/javascript" src="<?php echo $wizGradeTemplate; ?>js/jquery.wallform.js"></script>	
		<script type="text/javascript" src="<?php echo $wizGradeTemplate; ?>js/bootstrap-combobox.js"></script>
		<script class="include" type="text/javascript" src="<?php echo $wizGradeTemplate; ?>js/jquery.dcjqaccordion.2.7.js"></script>
		<script src="<?php echo $wizGradeTemplate; ?>js/jquery.scrollTo.min.js"></script>

		<!-- jquery data tables -->  
		<script type="text/javascript" language="javascript" src="<?php echo $wizGradeTemplate; ?>assets/data-tables/jquery.dataTables.min.js"></script> 
		<script type="text/javascript" language="javascript" src="<?php echo $wizGradeTemplate; ?>assets/data-tables/dataTables.bootstrap.min.js"></script>
		<script type="text/javascript" language="javascript" src="<?php echo $wizGradeTemplate; ?>assets/data-tables/dataTables.buttons.min.js"></script>
		<script type="text/javascript" language="javascript" src="<?php echo $wizGradeTemplate; ?>assets/data-tables/buttons.bootstrap.min.js"></script>
		<script type="text/javascript" language="javascript" src="<?php echo $wizGradeTemplate; ?>assets/data-tables/jszip.min.js"></script>
		<script type="text/javascript" language="javascript" src="<?php echo $wizGradeTemplate; ?>assets/data-tables/pdfmake.min.js"></script>
		<script type="text/javascript" language="javascript" src="<?php echo $wizGradeTemplate; ?>assets/data-tables/vfs_fonts.js"></script>
		<script type="text/javascript" language="javascript" src="<?php echo $wizGradeTemplate; ?>assets/data-tables/buttons.html5.min.js"></script>
		<script type="text/javascript" language="javascript" src="<?php echo $wizGradeTemplate; ?>assets/data-tables/buttons.print.min.js"></script>
		<script type="text/javascript" language="javascript" src="<?php echo $wizGradeTemplate; ?>assets/data-tables/buttons.colVis.min.js"></script> 
		<!-- / jquery data tables --> 
		
		<?php  if (!isset($_SESSION['lockMyfScreen']) == 'IluvMyChukwu') {  /* check if screen lock is activated */  ?>	
		
		<script type='text/javascript' src='<?php echo $wizGradeTemplate; ?>js/css-clocks.js'></script>
 		
		<?php } ?>
		
		<!-- jquery tokenfield --> 
		<script type='text/javascript' src='<?php echo $wizGradeTemplate; ?>assets/bootstrap-tokenfield/js/bootstrap-tokenfield.js'></script>	
		<script type='text/javascript' src='<?php echo $wizGradeTemplate; ?>assets/bootstrap-tokenfield/js/affix.js'></script>
		<script type='text/javascript' src='<?php echo $wizGradeTemplate; ?>assets/bootstrap-tokenfield/js/typeahead.bundle.min.js'></script>
		<script type='text/javascript' src='<?php echo $wizGradeTemplate; ?>assets/bootstrap-tokenfield/js/docs.min.js'></script>
		<script type="text/javascript" src="<?php echo $wizGradeTemplate; ?>js/jquery.tokeninput.js"></script>
		
		<!-- jquery bootstrap --> 
		
		<script type="text/javascript" src=" <?php echo $wizGradeTemplate; ?>assets/bootstrap-fileupload/bootstrap-fileupload.js"></script>
		<script type="text/javascript" src=" <?php echo $wizGradeTemplate; ?>assets/bootstrap-datepicker/js/bootstrap-datepicker.js"></script> 
		<script type="text/javascript" src="<?php  echo $wizGradeTemplate; ?>assets/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js"></script>
		<script type="text/javascript" src="<?php echo $wizGradeTemplate; ?>assets/bootstrap-daterangepicker/moment.min.js"></script>
		<script type="text/javascript" src="<?php echo $wizGradeTemplate; ?>assets/bootstrap-daterangepicker/daterangepicker.js"></script>
		<script type="text/javascript" src="<?php echo $wizGradeTemplate; ?>assets/bootstrap-colorpicker/js/bootstrap-colorpicker.js"></script>
		<script type="text/javascript" src="<?php echo $wizGradeTemplate; ?>assets/bootstrap-timepicker/js/bootstrap-timepicker.js"></script>
		
		
		<script src="<?php echo $wizGradeTemplate; ?>js/jquery.customSelect.min.js" ></script>
		<script src="<?php echo $wizGradeTemplate; ?>js/respond.min.js" ></script>
		<script src="<?php echo $wizGradeTemplate; ?>js/modernizr.custom.js" ></script>
		<script src="<?php echo $wizGradeTemplate; ?>js/bootstrap-select.js"></script>
		<script src="<?php echo $wizGradeTemplate; ?>js/jquery.stepy.js"></script>
		<script type="text/javascript" src="<?php echo $wizGradeTemplate; ?>js/jquery.jstepper.min.js"></script>

		<!-- jquery exports table --> 
		
		<script type="text/javascript" src="<?php echo $wizGradeTemplate; ?>assets/exports-table/tableExport.js"></script>
		<script type="text/javascript" src="<?php echo $wizGradeTemplate; ?>assets/exports-table/jquery.base64.js"></script>
		<script type="text/javascript" src="<?php echo $wizGradeTemplate; ?>assets/exports-table/html2canvas.js"></script>
		<script type="text/javascript" src="<?php echo $wizGradeTemplate; ?>assets/exports-table/jspdf/libs/sprintf.js"></script>
		<script type="text/javascript" src="<?php echo $wizGradeTemplate; ?>assets/exports-table/jspdf/jspdf.js"></script>
		<script type="text/javascript" src="<?php echo $wizGradeTemplate; ?>assets/exports-table/jspdf/libs/base64.js"></script>
		

		<!-- / jquery exports table -->

		<script type="text/javascript">

			function showPageLoader(){  /* show loading image */

				$('.loader-background').fadeIn(100);
				$('.loader-background').css("z-index", "9999999");
				
			}

			function hidePageLoader(){  /* hide loading image */

				$('.loader-background').fadeOut(3000);
				
			};


			<?php

			if ( ( ($_SESSION['accessGrade'] == $adminGrade) &&  ($_SESSION['accessLevel'] == $adminGradeInt) ) 
			|| ( ($_SESSION['accessGrade'] == $schHeadGrade) &&  ($_SESSION['accessLevel'] == $schHeadGradeInt) ) ){  /* check if admin or school head */

			?>		   
			function studentSearcher(){  /* load student information using plugin jquery tokenfield */

				var engine = new Bloodhound({
					local: [<?php echo $studentToken; ?>],
					datumTokenizer: function(d) {
					return Bloodhound.tokenizers.whitespace(d.value);
					},
					queryTokenizer: Bloodhound.tokenizers.whitespace
				});

				engine.initialize();

				$('#searchStudent').tokenfield({
					typeahead: [null, { source: engine.ttAdapter() }],
					limit:1
				});

				$('#searchStudent').on('tokenfield:createtoken', function (event) {
					var existingTokens = $(this).tokenfield('getTokens');
					$.each(existingTokens, function(index, token) {
					if (token.value === event.attrs.value)
					event.preventDefault();
					});
				});	

			}studentSearcher();
			

			$('body').on('change','#searchStudent',function(){  /* search student  */									 

				var studentData = $(this).val();
				var student = studentData.split('-');
				var studentID = student[1];

				studentID = studentID.trim();

				$('#studentSLoading').fadeIn(100);

				$('#studentSearchDiv').load('showStudentProfile', {'reg': studentID, 'modalData': true}).fadeIn(1000); 

				$('#studentInfoModal').trigger('click');			

				$(this).tokenfield('destroy');

				studentSearcher();

				return false;

			});	 
			 
			
		<?php } ?>	

			$(function(){  /* dynamic include jquery scripts */

				var postVal = 'loadScript';

				$('#loadScriptPage').load('loadScript', {'pageType': postVal});

			});				


		</script> 

		<div id="loadScriptPage"> </div>
		<!-- jquery  -->


		</body>

		</html>