} else { $req_defect_id = ''; } $defect_id = session_validate_form_get_field('defect_id'); print "<tr>" . NEWLINE; print "<td class=form-lbl-r nowrap>" . lang_get('req_defect_id') . "</td>" . NEWLINE; print "<td class=form-data-l>"; print "<input type='text' size='10' name='defect_id' value='" . session_validate_form_get_field('defect_id', $req_defect_id) . "'></td>" . NEWLINE; print "</tr>" . NEWLINE; # AREA COVERED print "<tr>" . NEWLINE; print "<td class=form-lbl-r nowrap>" . lang_get('req_area') . "</td>" . NEWLINE; print "<td class=form-data-l>" . NEWLINE; print "<select name=req_area size=1>" . NEWLINE; $list_box = array(); $rows_areas = project_get_req_areas_covered($project_id); foreach ($rows_areas as $row_area) { $list_box[$row_area[REQ_AREA_COVERAGE_ID]] = $row_area[REQ_AREA_COVERAGE]; } $list_box[""] = ""; html_print_list_box_from_key_array($list_box, session_validate_form_get_field('req_area', $req_area_covered_id)); print "</select>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; # FUNCTIONALITY $rows_functions = requirement_get_functionality($project_id, $s_req_id); $function_ids = array(); foreach ($rows_functions as $key => $value) { $function_ids[] = $key; } print "<tr>" . NEWLINE;
print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</form>" . NEWLINE; } # ---------------------------------------------------------------------------------- # Required Area Covered Table # ---------------------------------------------------------------------------------- print "<br>" . NEWLINE; print "<form method=post action='{$page}?order_by={$order_by}&order_dir={$order_dir}'>" . NEWLINE; print "<table class=hide70>" . NEWLINE; print "<tr>" . NEWLINE; print "<td>" . NEWLINE; $rows_req_areas_covered = project_get_req_areas_covered($selected_project_id, $order_by, $order_dir, $page_number); print "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</form>" . NEWLINE; if ($rows_req_areas_covered) { print "<table id='sortabletable' class='sortable' rules=cols>" . NEWLINE; print "<thead>" . NEWLINE; print "<tr>" . NEWLINE; html_tbl_print_header(lang_get('req_area_covered')); if ($project_manager) { html_tbl_print_header_not_sortable(lang_get('edit')); html_tbl_print_header_not_sortable(lang_get('delete')); } print "\n</tr>" . NEWLINE; print "</thead>" . NEWLINE;