}
private void printDataTable(ProbeData histData, boolean full) {
ResultSet resultSet = histData.getResultSet();
int numRows = resultSet.numRows();
if (numRows == 0) {
out.print("<p>");
out.print(resources.getHTML("HistData.No_Data_Message"));
out.println("</p>");
return;
}
if (full) {
out.print("<p>");
out.print(resources.getString("HistData.Data_Table_Header_HTML"));
out.print("</p>");
}
String timeFootnote = getTimeFootnote(histData);
out.print("<table id='histData' border style='margin-left:1cm'><tr><th>");
out.print(resources.getHTML("Project_Task"));
for (int c = 1; c <= ProbeData.EXCLUDE; c++) {
out.print("</th><th>");
String colName = resultSet.getColName(c);
String displayName;
try {
String key = "HistData.Columns."+colName.replace(' ', '_');
displayName = resources.getString(key);
} catch (Exception e) {
displayName = Translator.translate(colName);
}
out.print(esc(displayName));
if (c == ProbeData.EST_TIME || c == ProbeData.ACT_TIME)
out.print(timeFootnote);
else if (c == ProbeData.EXCLUDE && !histData.isReportMode())
out.print(EXCLUDE_ALL_CHECKBOX);
}
out.println("</th></tr>");
for (int r = 1; r <= resultSet.numRows(); r++) {
out.print("<tr>");
out.print("<td nowrap>");
out.print(esc(resultSet.getRowName(r)));
for (int c = 1; c < ProbeData.EXCLUDE; c++) {
out.print("</td><td align=center>");
out.print(resultSet.format(r, c));
}
out.println("<td align=center>");
if (histData.isReportMode()) {
if (resultSet.getData(r, ProbeData.EXCLUDE) != null)
out.print("<b style='font-family: sans-serif'>X</b>");
else
out.print(" ");
} else {
printField(TASK_FIELD+r, histData.getRowId(r));
out.println("<input type=checkbox name='"+EXCLUDE_FIELD+r+"'");
if (resultSet.getData(r, ProbeData.EXCLUDE) != null)
out.print(" checked");
out.print(">");
}
out.println("</td></tr>");
}