<?php include_once "../../includes/basics/basics.inc"; if (!empty($_GET['org_type']) && $_GET['org_type'] == 'enterprise_org') { $org = new org(); $enterprises = $org->findAll_enterprise(); if (count($enterprises) == 0) { return false; } else { echo header('Content-Type: application/json'); echo json_encode($enterprises); } } ?> <?php if (!empty($_GET['org_type']) && $_GET['org_type'] == 'business_org') { $org = new org(); $business_orgs = $org->findAll_business(); if (count($business_orgs) == 0) { return false; } else { echo header('Content-Type: application/json'); echo json_encode($business_orgs); } } ?> <?php if (!empty($_GET['org_type']) && $_GET['org_type'] == 'inventory_org') {