<?php require_once 'IConstants.inc'; require_once $ConstantsArray['dbServerUrl'] . "FormValidator//validator.php"; require $ConstantsArray['dbServerUrl'] . "DataStoreMgr//FolderDataStore.php"; require $ConstantsArray['dbServerUrl'] . "DataStoreMgr//LocationDataStore.php"; require $ConstantsArray['dbServerUrl'] . "Utils//FileSystemUtils.php"; require $ConstantsArray['dbServerUrl'] . "Utils//StringUtils.php"; $LDS = LocationDataStore::getInstance(); $msg = ""; if ($_POST["formAction"] == "delete") { $pathL = $_POST['locationPath']; $isLocationEmpty = FileSystemUtils::isDirEmpty($pathL); if ($isLocationEmpty) { $LDS->deleteBySeq($_POST['editSeq']); FileSystemUtils::delete_NestedDirectory($pathL); $msg = StringUtils::getMessage("Location", "Location deleted successfully", false); } else { $msg = StringUtils::getMessage("Delete Location", "-The Location that you are trying to delete is related to folders.", true); } //Delte folder from location } $locations = $LDS->FindAll(); ?> <!DOCTYPE html> <html> <head> <?php include "_jsAdminInclude.php"; ?>