"; } if ($hasWriteAccess) { $edit_link = ""; } if ($hasExecuteAccess) { $delete_link = ""; } $training_mode = getTableFieldValue('training_mode', 'training_mode_name', 'training_mode_id', $row1['mode_of_training']) . '

'; $training_type = $row1['type_of_training'] == 'wellness'?'Wellness Program':'Training Program'.'

'; $training_health_param_sections = getCommaSeperatedValuesForInClause("select section_name from checkup_form_section",'section_id',$row1['key_health_param_sections']); $space = "   "; $links = $assign_link . $space . $view_link . $space . $edit_link . $space . $delete_link; $data['rows'][] = array( 'id' => $row1['training_id'], 'cell' => array($count++, $row1['training_name'], $row1['description'], $row1['durations'], $training_mode,$training_type,$training_health_param_sections, $links) ); } $data['rows'][] = array( 'id' => $row['filterkey'], 'cell' => array( '', "", "", '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '' ) ); echo json_encode($data); ?>