<?php include_once "../../../includes/basics/basics.inc"; if (!empty($_REQUEST['action']) && ($_REQUEST['action'] = 'search')) { if (empty($_REQUEST['term'])) { exit; } $customer_name = $_REQUEST['term']; if (!empty($_REQUEST['primary_column1'])) { $primary_column1 = $_REQUEST['primary_column1']; } $customer = new ar_customer(); $customer->customer_name = $customer_name; if (!empty($primary_column1)) { $customer->org_id = $primary_column1; $data = $customer->searchBy_customerName_orgId(); } else { $data = $customer->searchBy_customer_name(); } // JSON data echo json_encode($data); flush(); //return from this file return; } if (!empty($_GET['ar_customer_id']) && !empty($_GET['org_id'])) { echo '<div id="customer_bu_addresses">'; $ar_customer_id = $_GET['ar_customer_id']; $org_id = $_GET['org_id']; $customer_bu_assigment = ar_customer_bu::find_by_orgId_customerId($ar_customer_id, $org_id); echo '</div>';