示例#1
0
}
if (!isset($ctc_business_id) && !isset($ctc_owner_id) && ($cmd == CTC_CMD_NEW || $cmd == "")) {
    ?>
<script language='Javascript'>
window.location='<?php 
    echo getURI(eBPLS_PAGE_CTC_SEARCH);
    ?>
';
</script>
<?php 
} else {
    if ($cmd == CTC_CMD_NEW && (isset($ctc_business_id) || isset($ctc_owner_id))) {
        // load onwer info
        $clsOwner = new EBPLSOwner($dbLink);
        $clsOwner->view($ctc_owner_id);
        $HTTP_POST_VARS["ctc_first_name"] = $clsOwner->getData(OWNER_FIRST_NAME);
        $HTTP_POST_VARS["ctc_middle_name"] = $clsOwner->getData(OWNER_MIDDLE_NAME);
        $HTTP_POST_VARS["ctc_last_name"] = $clsOwner->getData(OWNER_LAST_NAME);
        $HTTP_POST_VARS["ctc_tin_no"] = $clsOwner->getData(OWNER_TIN_NO);
        $HTTP_POST_VARS["ctc_birth_date"] = $clsOwner->getData(OWNER_BIRTH_DATE);
        $HTTP_POST_VARS["ctc_civil_status"] = strtoupper($clsOwner->getData(OWNER_CIVIL_STATUS));
        $HTTP_POST_VARS["ctc_citizenship"] = $clsOwner->getData(OWNER_CITIZENSHIP);
        $HTTP_POST_VARS["ctc_gender"] = $clsOwner->getData(OWNER_GENDER);
        $HTTP_POST_VARS["ctc_address"] = $clsOwner->getData(OWNER_HOUSE_NO) . " " . $clsOwner->getData(OWNER_STREET);
        //$HTTP_POST_VARS["ctc_icr_no"] = $clsOwner->getData(OWNER_ICR_NO);
        $HTTP_POST_VARS["ctc_owner_id"] = $clsOwner->getData(OWNER_ID);
        $ctc_type = "INDIVIDUAL";
        if (intval($ctc_business_id)) {
            $ctc_type = "BUSINESS";
            // load business enterprise info
            $clsBus = new EBPLSEnterprise($dbLink);
示例#2
0
//--- get the parameters
$tx_code = trim($tx_code);
$status_of_application = trim($status_of_application);
$permit_type = trim($permit_type);
$permit_no = trim($permit_no);
$owner_id = trim($owner_id);
$method_of_application = trim($method_of_application);
$is_new = true;
//--- check first the method method_of_application NEW
$submit_button_name = 'S U B M I T';
if (!strcasecmp($child_reload, 'reload')) {
    //log_err("refresh");
    //--- get the owner
    $clsOwner = new EBPLSOwner($dbLink, $debug);
    $clsOwner->view(trim($child_reload_owner_id));
    $owner_datarow = $clsOwner->getData();
    //--- get the business name
    if (strlen(trim($child_reload_permit_no)) > 0) {
        $clsEnterprise = new EBPLSEnterprise($dbLink, $debug);
        $permit_id = $clsEnterprise->view(trim($child_reload_permit_no));
        $datarow = $clsEnterprise->getData();
        //--- get the business_nature_list
        $business_nature_list = $clsEnterprise->getBusinessNatureList($datarow[BUSINESS_ID]);
    }
}
//--- chk the sublevels
/*if(   ! is_valid_sublevels(27) or ! is_valid_sublevels(28) )
 {
 	setUrlRedirect('index.php?part=999');
	
 }