Exemple #1
0
            if ($itfoindicator == 1 and $iDefAmount < 1) {
                ?>
				<body onload='javascript:alert ("Enter Valid Default Amount!!");'></body>
				<?php 
            } else {
                $datetoday = date("Y-m-d H:i:s");
                $nRequirements = new EBPLSTFO($dbLink, 'false');
                $nRequirements->setData(TFODESC, $iDesc);
                $nRequirements->setData(TFOSTATUS, "A");
                $nRequirements->setData(TFOINDICATOR, $itfoindicator1);
                $nRequirements->setData(TAXFEETYPE, $iTFOType);
                $nRequirements->setData(DATECREATED, $datetoday);
                $nRequirements->setData(DEFAMT, $iDefAmount);
                $nRequirements->setData(OR_PRINT, $iYearType);
                $nRequirements->setData(COUNTER, $iNoYear);
                $nRequirements->update($bbo);
                $bbo = "";
                $iDesc = "";
                $itfoindicator = "";
                $iTFOType = "";
                $iDefAmount = "";
                $iYearType = "";
                $iNoYear = "";
                ?>
			<body onload='javascript:alert ("Record Successfully Updated!!");'></body>
			<?php 
            }
        }
    }
} elseif ($confx == 1) {
    $nRequirements = new EBPLSTFO($dbLink, 'false');