Exemplo n.º 1
0
    $search_columns[OWNER_MIDDLE_NAME] = "Middlename";
    $search_columns[OWNER_HOUSE_NO] = "House #";
    $search_columns[OWNER_STREET] = "Street #";
    $search_columns[OWNER_EMAIL_ADDRESS] = "Email";
    $search_columns[OWNER_GENDER] = "Gender";
    $search_columns[OWNER_CIVIL_STATUS] = "Status";
    $search_columns[OWNER_BIRTH_DATE] = "Date of Birth";
    //--- update_delete_chart_of_accounts('$code');
    function createCommand($rec)
    {
        $code = $rec->getData(OWNER_ID);
        //return	  "<input type='radio' name='sys_owner_id' value='$code' onClick=\"attach_owner_details('$code')\">";
        return "<a href=\"ebpls1001.php?ctc_type=INDIVIDUAL&owner_id={$code}\" onClick=\"javascript:attach_owner_details('{$code}');\"><font color=red>Attach To Application</font></a>";
    }
    //--- display the result
    print_search_results("555", $HTTP_GET_VARS, "&nbsp;", $search_columns, $retValue, "createCommand");
    if ($total_records == 0) {
        echo '<table border=0 cellspacing=0 cellpadding=0><tr><td height=30><input type="button" onClick="javascript:showNewWin(\'owner_add.php\',820,500);" value="Add New Owner"></td></tr></table>';
    } else {
        //echo '<tr><td align="center" valign="center" class="errmsg" height=10 colspan=7 bgcolor="#ffffff">&nbsp;<input type="button" name="_ATTACH" onClick="set_attach_owner_details('.$total_records.')" value=" A T T A C H " ></td></tr>';
    }
    ?>
		<?php 
}
?>
		<!---// end of the table //-->
		</form>
	</td>
</tr>
<tr><td align="center" valign="center" class='title' height=10></td></tr>
</table>
Exemplo n.º 2
0
function print_search_result($ctc_type, $result, $post_params)
{
    if ($ctc_type == CTC_TYPE_INDIVIDUAL) {
        $columns[CTC_CODE] = "CTC #";
        $columns[CTC_LAST_NAME] = "Last Name";
        $columns[CTC_FIRST_NAME] = "First Name";
        $columns[CTC_MIDDLE_NAME] = "Middle Name";
        $columns[CTC_ADDRESS] = "Address";
        $columns[CTC_DATE_ISSUED] = "Date Issued";
        print_search_results(eBPLS_PAGE_CTC_CRITERIA, $post_params, "Search Result", $columns, $result, "print_ctc_command");
    } else {
        $columns[CTC_CODE] = "CTC #";
        $columns[CTC_COMPANY] = "Company";
        $columns[CTC_COMPANY_ADDRESS] = "Address";
        $columns[CTC_ORGANIZATION_TYPE] = "Organization Type";
        $columns[CTC_BUSINESS_NATURE] = "Business Nature";
        $columns[CTC_DATE_ISSUED] = "Date Issued";
        print_search_results(eBPLS_PAGE_CTC_CRITERIA, $post_params, "Search Result", $columns, $result);
    }
}