if ($project_manager) {
                print "<td><a href='project_edit_environment_page.php?environment_id={$id}'>" . lang_get("edit") . "</a></td>" . NEWLINE;
                print "<td>" . NEWLINE;
                print "<form name='delete_release' method=post action='{$delete_page}'>" . NEWLINE;
                print "<input type='submit' name='delete_environment' value='" . lang_get('delete') . "' class='page-numbers'>" . NEWLINE;
                print "<input type='hidden' name='r_page' value='{$redirect_url}#environment'>" . NEWLINE;
                print "<input type='hidden' name='f' value='remove_environment_from_project'>" . NEWLINE;
                print "<input type='hidden' name='id' value='{$id}'>" . NEWLINE;
                print "<input type='hidden' name='project_id' value='{$selected_project_id}'>" . NEWLINE;
                print "<input type='hidden' name='msg' value='" . DEL_ENVIRONMENT_FROM_PROJECT . "'>" . NEWLINE;
                print "</form>" . NEWLINE;
                print "</td>" . NEWLINE;
            }
            print "</tr>" . NEWLINE;
        }
        print "</table>" . NEWLINE;
    }
} else {
    html_no_records_found_message(lang_get('no_projects'));
}
print "</div>" . NEWLINE;
html_print_footer();
# ------------------------------------
# $Log: project_manage_environment_page.php,v $
# Revision 1.2  2006/08/05 22:08:24  gth2
# adding NEWLINE constant to support multiple OS newline chars - gth
#
# Revision 1.1.1.1  2005/11/30 23:00:57  gth2
# importing initial version - gth
#
# ------------------------------------
                print "<td>" . NEWLINE;
                print "<form name='delete_release' method=post action='{$delete_page}'>" . NEWLINE;
                print "<input type='submit' name='remove_man_doc_type_from_project' value='" . lang_get('delete') . "' class='page-numbers'>" . NEWLINE;
                print "<input type='hidden' name='r_page' value='{$redirect_url}#test_doc_type'>" . NEWLINE;
                print "<input type='hidden' name='f' value='remove_man_doc_type_from_project'>" . NEWLINE;
                print "<input type='hidden' name='id' value='{$id}'>" . NEWLINE;
                print "<input type='hidden' name='project_id' value='{$selected_project_id}'>" . NEWLINE;
                print "<input type='hidden' name='msg' value='" . DEL_TEST_DOC_TYPE_FROM_PROJECT . "'>" . NEWLINE;
                print "</form>" . NEWLINE;
                print "</td>" . NEWLINE;
            }
            print "</tr>" . NEWLINE;
        }
        print "</table>" . NEWLINE;
    } else {
        html_no_records_found_message(lang_get('no_testdoctype'));
    }
}
print "</div>" . NEWLINE;
html_print_footer();
# ------------------------------------
# $Log: project_manage_testdoctype_page.php,v $
# Revision 1.3  2006/08/05 22:08:36  gth2
# adding NEWLINE constant to support multiple OS newline chars - gth
#
# Revision 1.2  2006/02/24 11:37:48  gth2
# update to div - class=div-c not working in firefox - gth
#
# Revision 1.1.1.1  2005/11/30 23:00:57  gth2
# importing initial version - gth
#
        print "<input type='submit' name='delete' value='" . lang_get('delete') . "' class='page-numbers'>";
        print "<input type='hidden' name='r_page' value={$redirect_url}>" . NEWLINE;
        print "<input type='hidden' name='f' value='delete_build'>" . NEWLINE;
        print "<input type='hidden' name='id' value={$build_id}>" . NEWLINE;
        print "<input type='hidden' name='msg' value='30'>" . NEWLINE;
        print "</form>";
        print "</td>" . NEWLINE;
        /*
        print"<td class='tbl-c'><a href='$delete_page?r_page=$page&f=delete_build&id=$build_id&msg=30'>". lang_get('delete') ."</a></td>". NEWLINE;
        */
        print "</tr>" . NEWLINE;
    }
    print "</tbody>" . NEWLINE;
    print "</table>" . NEWLINE;
} else {
    html_no_records_found_message(lang_get('no_builds'));
}
print "</div>" . NEWLINE;
html_print_footer();
session_validate_form_reset();
# ------------------------------------
# $Log: build_page.php,v $
# Revision 1.5  2008/04/23 06:31:29  cryobean
# *** empty log message ***
#
# Revision 1.4  2008/01/22 07:55:49  cryobean
# made the table sortable
#
# Revision 1.3  2006/08/05 22:07:59  gth2
# adding NEWLINE constant to support multiple OS newline chars - gth
#
    print "</div>" . NEWLINE;
    if (session_use_javascript()) {
        //print"<input type=checkbox name=all_tests value=all onClick=checkall('bug_form', this.form.all_tests.checked)\">Select All&nbsp;&nbsp;";
        print "<input id=select_all type=checkbox onClick='checkAll( this )'>" . NEWLINE;
        print "<label for=select_all>" . lang_get("select_all") . "</label>" . NEWLINE;
    }
    print "<select name=action>";
    print "<option value=bug_status>" . lang_get('bug_status') . "</option>";
    print "<option value=assign_to>" . lang_get('assign_to') . "</option>";
    print "<option value=assign_to_dev>" . lang_get('assign_to_developer') . "</option>";
    print "<option value=bug_more>" . lang_get('bug_move') . "</option>";
    print "</select>";
    print "&nbsp;";
    print "<input type=submit name=mass_update_btn value='" . lang_get("update") . "'>";
} else {
    html_no_records_found_message(lang_get('no_tests'));
}
print "</form>" . NEWLINE;
html_print_footer();
# ------------------------------------
# $Log: bug_page.php,v $
# Revision 1.4  2007/02/25 23:17:39  gth2
# fixing bugs for release 1.6.1 - gth
#
# Revision 1.3  2006/08/05 22:07:59  gth2
# adding NEWLINE constant to support multiple OS newline chars - gth
#
# Revision 1.2  2006/02/24 11:38:20  gth2
# update to div - class=div-c not working in firefox - gth
#
# Revision 1.1.1.1  2005/11/30 23:00:56  gth2
            print "</tr>" . NEWLINE;
        }
        print "</table>" . NEWLINE;
        print "</div>" . NEWLINE;
        if (session_use_javascript()) {
            //print"<input type=checkbox name=all_tests value=all onClick=checkall('tests_form', this.form.all_tests.checked)\">Select All&nbsp;&nbsp;";
            print "<input id=select_all type=checkbox onClick='checkAll( this )'>" . NEWLINE;
            print "<label for=select_all>" . lang_get("select_all") . "</label>" . NEWLINE;
        }
        ################################################################################
        print "<br>" . NEWLINE;
        print "<div align=center>" . NEWLINE;
        print "<input type='submit' name=submit_button value='" . lang_get("copy") . "'>" . NEWLINE;
        print "</div>" . NEWLINE;
    } else {
        html_no_records_found_message(lang_get("no_tests"));
    }
    print "<input type=hidden name=records value=\"{$records}\">" . NEWLINE;
    print "<input type='hidden' name='record_groups' value=\"{$select_group}\">" . NEWLINE;
    print "</form>" . NEWLINE;
    # display all test sets if the user has selected a build id
} elseif (isset($_GET['build_id']) && $_GET['build_id'] != 'all') {
}
html_print_footer();
# ---------------------------------------------------------------------
# $Log: testset_copy_page.php,v $
# Revision 1.5  2008/07/18 07:43:36  peter_thal
# fixed search filter bug in some testset php pages
#
# Revision 1.4  2007/02/03 10:26:19  gth2
# no message
        print "<td class='tbl-c'>{$screen_desc}</td>" . NEWLINE;
        print "<td class='tbl-c'><a href='screen_edit_page.php?screen_id={$screen_id}'>" . lang_get('edit') . "</a></td>" . NEWLINE;
        print "<td class='tbl-c'>";
        print "<form method=post action='{$delete_page}'>" . NEWLINE;
        print "<input type='submit' name='delete' value='" . lang_get('delete') . "' class='page-numbers'>";
        print "<input type='hidden' name='r_page' value={$page}>" . NEWLINE;
        print "<input type='hidden' name='f' value='delete_screen'>" . NEWLINE;
        print "<input type='hidden' name='id' value={$screen_id}>" . NEWLINE;
        print "<input type='hidden' name='msg' value='300'>" . NEWLINE;
        print "</form>";
        print "</td>" . NEWLINE;
        print "</tr>" . NEWLINE;
    }
    print "<input type='hidden' name='screen_id' value='{$screen_id}'>";
    print "</table>" . NEWLINE;
    #print"</form>". NEWLINE;
} else {
    html_no_records_found_message(lang_get('no_screens'));
}
print "</div>";
html_print_footer();
session_validate_form_reset();
# ------------------------------------
# $Log: screen_page.php,v $
# Revision 1.2  2006/08/05 22:08:51  gth2
# adding NEWLINE constant to support multiple OS newline chars - gth
#
# Revision 1.1  2006/05/03 20:24:01  gth2
# no message
#
# ------------------------------------
                print "<td>" . NEWLINE;
                print "<form name='delete_release' method=post action='{$delete_page}'>" . NEWLINE;
                print "<input type='submit' name='delete_req_functionality' value='" . lang_get('delete') . "' class='page-numbers'>" . NEWLINE;
                print "<input type='hidden' name='r_page' value='{$redirect_url}#req_functionality'>" . NEWLINE;
                print "<input type='hidden' name='f' value='remove_req_functionality_from_project'>" . NEWLINE;
                print "<input type='hidden' name='id' value='{$id}'>" . NEWLINE;
                print "<input type='hidden' name='project_id' value='{$selected_project_id}'>" . NEWLINE;
                print "<input type='hidden' name='msg' value='" . DEL_REQ_FUNCT_FROM_PROJECT . "'>" . NEWLINE;
                print "</form>" . NEWLINE;
                print "</td>" . NEWLINE;
            }
            print "</tr>" . NEWLINE;
        }
        print "</table>" . NEWLINE;
    } else {
        html_no_records_found_message(lang_get('no_reqfunctionality'));
    }
}
print "</div>" . NEWLINE;
html_print_footer();
# ------------------------------------
# $Log: project_manage_reqfunctionality_page.php,v $
# Revision 1.3  2006/08/05 22:08:24  gth2
# adding NEWLINE constant to support multiple OS newline chars - gth
#
# Revision 1.2  2006/02/24 11:37:48  gth2
# update to div - class=div-c not working in firefox - gth
#
# Revision 1.1.1.1  2005/11/30 23:00:57  gth2
# importing initial version - gth
#
    }
    print "</table>" . NEWLINE;
    print "</div>" . NEWLINE;
    //print lang_get("update").": &nbsp;". NEWLINE;
    if (session_use_javascript()) {
        print "<input id=select_all type=checkbox name=thispage onClick='checkAll( this )'>" . NEWLINE;
        print "<label for=select_all>" . lang_get("select_all") . "</label>";
        print "&nbsp;" . NEWLINE;
    }
    print "<select name=action>" . NEWLINE;
    print "<option value=status>" . lang_get("status") . "</option>" . NEWLINE;
    print "<option value=assigned_release>" . lang_get("req_assign_release") . "</option>" . NEWLINE;
    print "</select>" . NEWLINE;
    print "<input type=submit name=mass_req_update value='" . lang_get("update") . "'>";
} else {
    html_no_records_found_message(lang_get("no_requirements"));
}
print "</form>" . NEWLINE;
html_print_footer();
# ---------------------------------------------------------------------
# $Log: requirement_page.php,v $
# Revision 1.5  2008/08/04 06:54:58  peter_thal
# added sorting function to several tables
#
# Revision 1.4  2006/08/05 22:08:37  gth2
# adding NEWLINE constant to support multiple OS newline chars - gth
#
# Revision 1.3  2006/02/24 11:35:34  gth2
# update to div - class=div-c not working in firefox - gth
#
# Revision 1.2  2005/12/13 13:59:56  gth2
            if (session_use_javascript()) {
                print "<input id=select_all type=checkbox name=thispage onClick='checkAll( this )'>\n" . NEWLINE;
                print "<label for=select_all>" . lang_get("select_all") . "</label>\n" . NEWLINE;
            }
            print "<select name='action'>\n" . NEWLINE;
            $selected_value = '';
            $test_run_status = results_get_teststatus_by_project($project_id);
            html_print_list_box_from_array($test_run_status, $selected_value);
            print "</select>\n" . NEWLINE;
            print "</td>\n" . NEWLINE;
            print "<td><input type='hidden' name='testset_id' value='{$testset_id}'></td>\n" . NEWLINE;
            print "<td><input type='submit' name=mass_update value='OK'></td>\n" . NEWLINE;
            print "</table>\n" . NEWLINE;
        }
    } else {
        print html_no_records_found_message(lang_get("no_tests_testset"));
    }
    print "</form>\n" . NEWLINE;
} elseif (!empty($s_properties['build_id']) && $s_properties['build_id'] != 'all') {
    # Move this above the if loop so it can be used by all queries on the page
    $testset_tbl = TS_TBL;
    $db_testset_id = TS_TBL . "." . TS_ID;
    $db_testset_name = TS_TBL . "." . TS_NAME;
    $db_testset_date_created = TS_TBL . "." . TS_DATE_CREATED;
    $db_testset_desc = TS_TBL . "." . TS_DESCRIPTION;
    $db_testset_status = TS_TBL . "." . TS_STATUS;
    $db_testset_signoff_by = TS_TBL . "." . TS_SIGNOFF_BY;
    $db_testset_signoff_date = TS_TBL . "." . TS_SIGNOFF_DATE;
    $db_testset_comments = TS_TBL . "." . TS_SIGNOFF_COMMENTS;
    $db_testset_orderby = TS_TBL . "." . TS_ORDERBY;
    $db_testset_build_id = TS_TBL . "." . TS_BUILD_ID;
                print "<td>" . NEWLINE;
                print "<form name='remove_bug_component' method=post action='{$delete_page}'>" . NEWLINE;
                print "<input type='submit' name='delete_req_area_covered' value='" . lang_get('delete') . "' class='page-numbers'>" . NEWLINE;
                print "<input type='hidden' name='r_page' value='{$redirect_url}'>" . NEWLINE;
                print "<input type='hidden' name='f' value='remove_bug_component_from_project'>" . NEWLINE;
                print "<input type='hidden' name='id' value='{$id}'>" . NEWLINE;
                print "<input type='hidden' name='project_id' value='{$selected_project_id}'>" . NEWLINE;
                print "<input type='hidden' name='msg' value='240'>" . NEWLINE;
                print "</form>" . NEWLINE;
                print "</td>" . NEWLINE;
            }
            print "</tr>" . NEWLINE;
        }
        print "</table>" . NEWLINE;
    } else {
        html_no_records_found_message(lang_get('no_bug_components'));
    }
}
print "</div>" . NEWLINE;
html_print_footer();
# ------------------------------------
# $Log: project_manage_bug_component_page.php,v $
# Revision 1.3  2006/08/05 22:08:24  gth2
# adding NEWLINE constant to support multiple OS newline chars - gth
#
# Revision 1.2  2006/02/24 11:37:48  gth2
# update to div - class=div-c not working in firefox - gth
#
# Revision 1.1.1.1  2005/11/30 23:00:57  gth2
# importing initial version - gth
#
                print "<td>" . NEWLINE;
                print "<form name='delete_release' method=post action='{$delete_page}'>" . NEWLINE;
                print "<input type='submit' name='delete_environment' value='" . lang_get('delete') . "' class='page-numbers'>" . NEWLINE;
                print "<input type='hidden' name='r_page' value='{$redirect_url}#environment'>" . NEWLINE;
                print "<input type='hidden' name='f' value='remove_environment_from_project'>" . NEWLINE;
                print "<input type='hidden' name='id' value='{$id}'>" . NEWLINE;
                print "<input type='hidden' name='project_id' value='{$selected_project_id}'>" . NEWLINE;
                print "<input type='hidden' name='msg' value='" . DEL_ENVIRONMENT_FROM_PROJECT . "'>" . NEWLINE;
                print "</form>" . NEWLINE;
                print "</td>" . NEWLINE;
            }
            print "</tr>" . NEWLINE;
        }
        print "</table>" . NEWLINE;
    } else {
        html_no_records_found_message(lang_get('no_testenvironment'));
    }
}
print "</div>" . NEWLINE;
html_print_footer();
# ------------------------------------
# $Log: project_manage_testenvironment_page.php,v $
# Revision 1.3  2006/08/05 22:08:36  gth2
# adding NEWLINE constant to support multiple OS newline chars - gth
#
# Revision 1.2  2006/02/24 11:37:48  gth2
# update to div - class=div-c not working in firefox - gth
#
# Revision 1.1.1.1  2005/11/30 23:00:57  gth2
# importing initial version - gth
#
                print "<td>" . NEWLINE;
                print "<form name='remove_bug_category' method=post action='{$delete_page}'>" . NEWLINE;
                print "<input type='submit' name='delete_req_area_covered' value='" . lang_get('delete') . "' class='page-numbers'>" . NEWLINE;
                print "<input type='hidden' name='r_page' value='{$redirect_url}'>" . NEWLINE;
                print "<input type='hidden' name='f' value='remove_bug_category_from_project'>" . NEWLINE;
                print "<input type='hidden' name='id' value='{$id}'>" . NEWLINE;
                print "<input type='hidden' name='project_id' value='{$selected_project_id}'>" . NEWLINE;
                print "<input type='hidden' name='msg' value='" . DEL_BUG_CATEGORY_FROM_PROJECT . "'>" . NEWLINE;
                print "</form>" . NEWLINE;
                print "</td>" . NEWLINE;
            }
            print "</tr>" . NEWLINE;
        }
        print "</table>" . NEWLINE;
    } else {
        html_no_records_found_message(lang_get('no_bug_categories'));
    }
}
print "</div>" . NEWLINE;
html_print_footer();
# ------------------------------------
# $Log: project_manage_bug_category_page.php,v $
# Revision 1.3  2006/08/05 22:08:24  gth2
# adding NEWLINE constant to support multiple OS newline chars - gth
#
# Revision 1.2  2006/02/24 11:37:48  gth2
# update to div - class=div-c not working in firefox - gth
#
# Revision 1.1.1.1  2005/11/30 23:00:57  gth2
# importing initial version - gth
#
                print "<form name='remove_req_area_covered' method=post action='{$delete_page}'>" . NEWLINE;
                print "<input type='submit' name='delete_req_area_covered' value='" . lang_get('delete') . "' class='page-numbers'>" . NEWLINE;
                print "<input type='hidden' name='r_page' value='{$redirect_url}#req_area_covered'>" . NEWLINE;
                print "<input type='hidden' name='f' value='remove_req_area_covered_from_project'>" . NEWLINE;
                print "<input type='hidden' name='id' value='{$id}'>" . NEWLINE;
                print "<input type='hidden' name='project_id' value='{$selected_project_id}'>" . NEWLINE;
                print "<input type='hidden' name='msg' value='" . DEL_REQ_AREA_FROM_PROJECT . "'>" . NEWLINE;
                print "</form>" . NEWLINE;
                print "</td>" . NEWLINE;
            }
            print "</tr>" . NEWLINE;
        }
        print "</tbody>" . NEWLINE;
        print "</table>" . NEWLINE;
    } else {
        html_no_records_found_message(lang_get('no_areas_covered'));
    }
}
print "</div>" . NEWLINE;
html_print_footer();
# ------------------------------------
# $Log: project_manage_reqareacovered_page.php,v $
# Revision 1.4  2008/01/22 07:58:02  cryobean
# made the table sortable
#
# Revision 1.3  2006/08/05 22:08:24  gth2
# adding NEWLINE constant to support multiple OS newline chars - gth
#
# Revision 1.2  2006/02/24 11:37:48  gth2
# update to div - class=div-c not working in firefox - gth
#
        print "<td class='tbl-c'>";
        print "<form method=post action='{$delete_page}'>" . NEWLINE;
        print "<input type='submit' name='delete' value='" . lang_get('delete') . "' class='page-numbers'>";
        print "<input type='hidden' name='r_page' value={$page}>" . NEWLINE;
        print "<input type='hidden' name='f' value='delete_release'>" . NEWLINE;
        print "<input type='hidden' name='id' value={$release_id}>" . NEWLINE;
        print "<input type='hidden' name='msg' value='20'>" . NEWLINE;
        print "</form>";
        print "</td>" . NEWLINE;
        print "</tr>" . NEWLINE;
    }
    print "</tbody>" . NEWLINE;
    print "</table>" . NEWLINE;
    #print"</form>". NEWLINE;
} else {
    html_no_records_found_message(lang_get('no_releases'));
}
print "</div>";
html_print_footer();
session_validate_form_reset();
# ------------------------------------
# $Log: release_page.php,v $
# Revision 1.8  2008/04/29 04:55:09  cryobean
# ui bugfixes from bruce
#
# Revision 1.7  2008/01/22 07:59:13  cryobean
# made the table sortable
#
# Revision 1.6  2006/08/05 22:08:37  gth2
# adding NEWLINE constant to support multiple OS newline chars - gth
#
                print "<form name='delete_area_tested' method=post action='{$delete_page}'>" . NEWLINE;
                print "<input type='submit' name='delete_area_tested' value='" . lang_get('delete') . "' class='page-numbers'>" . NEWLINE;
                print "<input type='hidden' name='r_page' value='{$redirect_url}#area_tested'>" . NEWLINE;
                print "<input type='hidden' name='f' value='remove_area_tested_from_project'>" . NEWLINE;
                print "<input type='hidden' name='id' value='{$area_tested_id}'>" . NEWLINE;
                print "<input type='hidden' name='project_id' value='{$selected_project_id}'>" . NEWLINE;
                print "<input type='hidden' name='msg' value='" . DEL_AREA_FROM_PROJECT . "'>" . NEWLINE;
                print "</form>" . NEWLINE;
                print "</td>" . NEWLINE;
            }
            print "</tr>" . NEWLINE;
        }
        print "</tbody>" . NEWLINE;
        print "</table>" . NEWLINE;
    } else {
        html_no_records_found_message(lang_get('no_testareatested'));
    }
}
print "</div>" . NEWLINE;
html_print_footer();
# ------------------------------------
# $Log: project_manage_testareatested_page.php,v $
# Revision 1.4  2008/01/22 07:58:14  cryobean
# made the table sortable
#
# Revision 1.3  2006/08/05 22:08:36  gth2
# adding NEWLINE constant to support multiple OS newline chars - gth
#
# Revision 1.2  2006/02/24 11:37:48  gth2
# update to div - class=div-c not working in firefox - gth
#