"; } if($hasWriteAccess) { $edit_link=""; } if($hasExecuteAccess) { $delete_link=""; } $space="   "; $links = $assign_link.$space.$view_link.$space.$edit_link.$space.$delete_link; $data['rows'][] = array( 'report_id' => $row_report['report_id'], 'cell' => array($count++, $row_report['report_code'], $row_report['report_name'], //($row_report['report_type']==1)?'Report':'Dashboard', $row_report['report_type'], $row_report['report_url'], $row_report['fun_name'], $links) ); } echo json_encode($data); ?>