Example #1
0
    if ($pro == 1) {
        $SearchDOT = new BusinessEstablishment();
        $SearchDOT->VerifyACR($business_id, $business_dot_acr_no);
        $checkme = $SearchDOT->outnumrow;
        if ($checkme > 0) {
            ?>
        <body onload='alert("Duplicate DOT ACR Number Found!");_FRM.business_dot_acr_no.focus();_FRM.business_dot_acr_no.select();'></body>
<?php 
            $pro = 12;
        }
    }
}
if ($business_tin_reg_no != '') {
    if ($pro == 1) {
        $SearchTIN = new BusinessEstablishment();
        $SearchTIN->VerifyTIN($business_id, $business_tin_reg_no);
        $checkme = $SearchTIN->outnumrow;
        if ($checkme > 0) {
            ?>
        <body onload='alert("Duplicate TIN Found!");;_FRM.business_tin_reg_no.focus();_FRM.business_tin_reg_no.select();'></body>
<?php 
            $pro = 12;
        }
    }
}
if ($pro == 1 and $fupload_name != '') {
    $allowed_file_size_in_bytes = 1000000;
    $file_dir = eBPLS_APP_URL;
    //	echo "this is the filename $fupload .... $fupload_name";
    //if (!empty($fupload_name)){
    if ($fupload_size <= $allowed_file_size_in_bytes) {