<?php
$permission  = explode(',',$_SESSION['permission_id']);
if(!in_array(4,$permission) && !in_array(1,$permission)  ){

?>
<script>
window.location="starter.php";
</script>
<?php
}
?>

<style >
	tfoot {
    display: table-header-group !important;
	}

	.dataTable {
        font-size: 11.5px;
	}
</style>

	
				<div class="row">
					


					<div class="col-md-12">

						


					

						<!-- Multiple icon buttons -->
						<div class="panel panel-default">
							<div class="panel-heading">
								<h6 class="panel-title">Back Up System Database</h6>
								<div class="heading-elements">
									<div class="heading-btn">
										<button type="button" id="backup_btn" class="btn btn-primary btn-icon"><i class="icon-download"></i></button>
									</div>
								</div>
							</div>
							
							<div class="panel-body">
								<center>
								<span id="download_backup"></span>
									
								</center>
								<br>
								<span class="alert text-center text-black alert-warning col-sm-12"> Latest 10 Backup Files </span>
								<br>
								<br>
								<br>
								<center>
									<span id="list_backup"></span>
								</center>
								

							</div>
						</div>
						<!-- /multiple icon buttons -->

					</div>
				</div>


<script type="text/javascript" src="controllers/backup.js?random=<?php echo uniqid(); ?>"></script>
