"; } if ($hasWriteAccess) { $edit_link = ""; } if ($hasExecuteAccess) { $delete_link = ""; } $task_header = getFieldFromTable('task_name_header', 'task_header_master', 'task_id_header', $row1['task_header_id']); $space = "   "; $links = $assign_link . $space . $view_link . $space . $edit_link . $space . $delete_link; $data['rows'][] = array( 'id' => $row1['id'], 'cell' => array($count++, $task_header, $row1['task_name'], $row1['task_description'], $row1['frequency_name'], $row1['ohc_type_name'], $links) ); } $data['rows'][] = array( 'id' => $row['filterkey'], 'cell' => array( '', "", "", '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '' ) ); // error_log(print_r($data, true)); echo json_encode($data); ?>