"; } if ($hasWriteAccess) { $edit_link = ""; } if ($hasExecuteAccess) { $delete_link = ""; } $space = "   "; $links = $assign_link . $space . $view_link . $space . $edit_link . $space . $delete_link; $data['rows'][] = array( 'client_location_id' => $row['id'], 'cell' => array($links, $count++, $name, $row['client_location'], getTableFieldValue('citys', 'city', 'city_id', $row['client_city']), getTableFieldValue('state_form_master', 'state_code', 'id', $row['client_state']), $row['client_contact'], $row['client_email'],$date) ); } // error_log(print_r($data, true)); echo json_encode($data); ?>