session_start(); $_SESSION["userlogged"] = $user; if (isset($_SESSION['httpUrl'])) { header("Location:" . $_SESSION['httpUrl']); } else { header("Location:cpcbMap.php"); } } else { $messageText = "Invalid User Name or Password"; } } } else { $messageText = "Invalid User Name or Password"; } if ($messageText != "") { $div = StringUtils::getMessage("Login", $messageText, true); } } ?> <!DOCTYPE html> <html> <head> <link type="text/css" href="admin/css/cupertino/jquery-ui-1.8.14.custom.css" rel="stylesheet" /> <link type="text/css" href="admin/css/custom.css" rel="stylesheet" /> </head> <body> <table align="center" width="50%" border="0"> <tr>
<?php require_once 'IConstants.inc'; require_once $ConstantsArray['dbServerUrl'] . "FormValidator//validator.php"; require $ConstantsArray['dbServerUrl'] . "DataStoreMgr//UserDataStore.php"; require $ConstantsArray['dbServerUrl'] . "Utils//StringUtils.php"; $msg = ""; $UDS = UserDataStore::getInstance(); if ($_POST["formAction"] != "") { $UDS->deleteBySeq($_POST['editSeq']); $msg = StringUtils::getMessage("Location", "User deleted successfully", false); } $Users = $UDS->FindAllManagers(); ?> <!DOCTYPE html> <html> <head> <?php include "_jsAdminInclude.php"; ?> <script type="text/javascript"> var showFolders_FoldersJSON = null; var showFolders_UsersJSON = null; var showFolders_UserDivId = 0; $(function(){ buildShowUsersDialog(false); buildFoldersJson(); }); </script>
if ($oldPassword != $earlierPassword) { if ($messageText != null && $messageText != "") { $messageText = $messageText . "<br/>" . "-Earlier Password does not match with the one in the database"; } else { $messageText = "-Earlier Password does not match with the one in the database"; } } } if ($messageText != null && $messageText != "") { $div = StringUtils::getMessage("Change Passowrd", $messageText, true); } else { $newPassword = SecurityUtil::Encode($newPassword); $user->setPassword($newPassword); $UDS->updatePassword($user); $messageText = "Password updated successfully"; $div = StringUtils::getMessage("", $messageText, false); } } ?> <!DOCTYPE html> <html> <head> </head> <body> <?php include "leftButtons.php";
$arr['locSeq'] = $user->getLocationSeq(); $_SESSION["userlogged"] = $arr; header("Location:indexjspl.php?locSeq=" . $locationSeq); } else { $messageText = "Invalid User Name or Password"; } } } else { $messageText = "Invalid User Name or Password"; } if ($messageText != "") { $div = StringUtils::getMessage("Login", $messageText, true); } } if ($_GET['err'] == 'true') { $div = StringUtils::getMessage("Data Viewing", "Please login to view information", true); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="http://www.svennerberg.com/examples/google_maps_3/css/style.css" type="text/css" media="all" /> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> </head> <?php include "_jsInclude.php"; ?>
require_once $ConstantsArray['dbServerUrl'] . "Utils/DropDownUtils.php"; require $ConstantsArray['dbServerUrl'] . "Utils//StringUtils.php"; $msg = ""; $HVRDS = HighValueRuleDataStore::getInstance(); $FDS = FolderDataStore::getInstance(); $LDS = LocationDataStore::getInstance(); $locSeq = $managerSession['locSeq']; $locationSeqs = $LDS->FindLocationsByUser($managerSession["seq"]); if (!in_array($locSeq, $locationSeqs)) { array_push($locationSeqs, $locSeq); } $folders = $FDS->FindByLocation(implode(",", $locationSeqs)); $folderSeq = $_GET["folderseq"]; if ($_POST["formAction"] != "" && $_POST["formAction"] == "delete") { $HVRDS->deleteBySeq($_POST['editSeq']); $msg = StringUtils::getMessage("HighValue Rule", "Rule deleted successfully", false); } if ($_GET["call"] == "getRules") { if (!empty($folderSeq)) { $folderSeqs = $folderSeq; } else { $folderSeqs = array_map(create_function('$o', 'return $o->getSeq();'), $folders); $folderSeqs = implode(",", $folderSeqs); } $rules = $HVRDS->FindArrByFolder($folderSeqs); $ruleJson = json_encode($rules); echo $ruleJson; return; } ?> <!DOCTYPE html>
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"; ?> </head> <body>