function updateVillage_history($sessionkey, $appcode, $Village_historydata)
{
    $main_result = "<VPROFILERESULT>";
    $main_result .= "<AUTHSTATUS>0</AUTHSTATUS>";
    $userId = ValidateSession($sessionkey, $appcode);
    if ($userId > -1) {
        $main_result = "<AUTHSTATUS>1</AUTHSTATUS>";
        $obj_Village_history = new Village_history();
        foreach ($Userdata["[UPPERTEMPLATENAME"] as $key => $child) {
            switch ($key) {
                case "TBLID":
                    $obj_Village_history->TblId = $child;
                    break;
                case "VILLAGEID":
                    $obj_Village_history->VillageId = $child;
                    break;
                case "DESCRIPTIONTYPE":
                    $obj_Village_history->DescriptionType = $child;
                    break;
                case "DESCRIPTION":
                    $obj_Village_history->Description = $child;
                    break;
            }
        }
        $obj_retResult_Village_history = DAL_manageVillage_history::updateVillage_history($obj_Village_history);
        if ($obj_retResult_Village_history->type == 1) {
            $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
            $main_result .= getVillage_historyXml($obj_retResult_Village_history->data);
        } else {
            $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
        }
    }
    $main_result .= "</VPROFILERESULT>";
    return $main_result;
}
 public static function updateVillage_history2($TblId, $VillageId, $DescriptionType, $Description)
 {
     $obj_retResult = new returnResult();
     $obj_newVillage_history = new Village_history();
     $obj_newVillage_history->TblId = $TblId;
     $obj_newVillage_history->VillageId = $VillageId;
     $obj_newVillage_history->DescriptionType = $DescriptionType;
     $obj_newVillage_history->Description = $Description;
     $issuccess = DAL_manageVillage_history::updateVillage_history($obj_newVillage_history);
     if ($issuccess) {
         $obj_retResult->type = 1;
         //	$obj_retResult->data = BL_manageVillage_history::getVillage_historyByTblId($obj_newVillage_history->TblId);
         $obj_retResult->msg = "Village_history updation is Success";
     } else {
         $obj_retResult->type = 0;
         $obj_retResult->msg = "Village_history updation is Failed";
     }
     return $obj_retResult;
 }