Esempio n. 1
0
<?php

require_once 'IConstants.inc';
require_once $ConstantsArray['dbServerUrl'] . "/DataStoreMgr/UserDataStore.php";
require_once $ConstantsArray['dbServerUrl'] . "FormValidator//validator.php";
require_once $ConstantsArray['dbServerUrl'] . "Utils/DropDownUtils.php";
require_once $ConstantsArray['dbServerUrl'] . "DataStoreMgr//LocationDataStore.php";
$user = new User();
$UDS = new UserDataStore();
$otherLocationSeqs = "";
$locationSeq = "";
if ($_POST["editSeq"] != "") {
    $UDS = new UserDataStore();
    $user = $UDS->FindBySeq($_POST["editSeq"]);
    $locationSeq = $user->getLocationSeq();
    $otherLocation = $user->getOtherLocationSeqs();
    if (!empty($otherLocation)) {
        $otherLocationSeqs = implode(",", $otherLocation);
    }
}
if ($_POST["submit"] != "") {
    // $locationSeq = $_POST["locSeq"];
    $fullName = $_POST["fullName"];
    $username = $_POST["username"];
    $Password = $_POST["password"];
    //$conPassword = $_POST["conPassword"];
    $emailId = $_POST["emailId"];
    $active = $_POST["active"];
    $seq = $_POST["seq"];
    $locationSeq = $_POST["l_DropDown"];
    $otherLocations = $_POST["otherLocationSeqs"];