<?php
include_once 'includes/processes.php';
$Process = new Login_Process;
$pageLink = basename($_SERVER['REQUEST_URI']);
$Process->check_status($pageLink);

$departmentData = $Process->getDepartmentInfo($_GET['did']);
$deptDesigData = $Process->getDeptDesignations($_GET['did']);

?>

				<form method="post" action="departments.php" >
				<input type="hidden" name="dept_id" value="<?php echo $_GET['did']; ?>" />
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" class="ti-close"></span></button>
						<h4 class="modal-title" id="myModalLabel6"><i class="fa fa-trash"></i> Delete Project</h4>
					</div>
					<div class="modal-body">
						<!-- xaddress form-->
						<div class="row">
							
							<div class="col-md-12">
								<div class="alert alert-danger">
									<i class="ion ion-alert-circled"></i> 
									Deleting this Department will remove all associated designations and move employees under this department to
									 uncategorized department.
									 <br />
									 <br />
									 <h4 style="text-align:center">Are you sure you want to delete this department?</h4>
								</div>
							</div>
						<!-- xaddress form-->
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">No! Cancel</button>
						<button type="submit" name="delete_designation" class="btn btn-primary">Yes! Delete</button>
					</div>
				</form>
		