コード例 #1
0
ファイル: eBPLS_barangay.php プロジェクト: laiello/ebpls
        $rResult = $nBarangay->rcount;
        if ($rResult > 0) {
            ?>
			<body onload='javascript: alert ("Existing Barangay Found!!");'></body>
			<?php 
        } else {
            $datetoday = date("Y-m-d H:i:s");
            $nBarangay = new EBPLSBarangay($dbLink, 'false');
            $nBarangay->setData(BARANGAY_DESC, $iBarangay);
            $nBarangay->setData(BARANGAY_DATE_REGISTERED, $datetoday);
            $nBarangay->setData(BARANGAY_DATE_UPDATED, $datetoday);
            $nBarangay->setData(UPDATED_BY, $usern);
            $nBarangay->setData(G_ZONE, $g_zone);
            $nBarangay->setData(UPPER, $iDistrict);
            $nBarangay->setData(BLGF_CODE, $iBLGFCode);
            $nBarangay->update($bbo);
            $bbo = "";
            $iDistrict = "";
            $iBarangay = "";
            $iBLGFCode = "";
            $iDistrict = "";
            $iCheck = "";
            ?>
			<body onload='javascript:alert ("Record Successfully Updated!!");'></body>
			<?php 
        }
    }
} elseif ($confx == 1) {
    $check1 = mysql_query("select * from ebpls_owner where owner_barangay_code = '{$bbo}'");
    $check1 = mysql_num_rows($check1);
    $check2 = mysql_query("select * from ebpls_business_enterprise where business_barangay_code = '{$bbo}'");