示例#1
0
        $rResult = $nDistrict->rcount;
        if ($rResult > 0) {
            ?>
			<body onload='javascript: alert ("Existing District Found!!");'></body>
			<?php 
        } else {
            $datetoday = date("Y-m-d H:i:s");
            $nDistrict = new EBPLSDistrict($dbLink, 'false');
            $nDistrict->setData(DISTRICT_DESC, $iDistrict);
            $nDistrict->setData(DISTRICT_DATE_REGISTERED, $datetoday);
            $nDistrict->setData(DISTRICT_DATE_UPDATED, $datetoday);
            $nDistrict->setData(UPDATED_BY, $usern);
            $nDistrict->setData(G_ZONE, '');
            $nDistrict->setData(UPPER, $iLGU);
            $nDistrict->setData(BLGF_CODE, $iBLGFCode);
            $nDistrict->update($bbo);
            $bbo = "";
            $iLGU = "";
            $iDistrict = "";
            $iBLGFCode = "";
            ?>
			<body onload='javascript:alert ("Record Successfully Updated!!");'></body>
			<?php 
        }
    }
} elseif ($confx == 1) {
    $check1 = mysql_query("select * from ebpls_owner where owner_district_code = '{$bbo}'");
    $check1 = mysql_num_rows($check1);
    $check2 = mysql_query("select * from ebpls_business_enterprise where business_district_code = '{$bbo}'");
    $check2 = mysql_num_rows($check2);
    if ($check1 > 0 || $check2 > 0) {