Index: lams_monitoring/web/includes/javascript/monitorLesson5.js =================================================================== diff -u -r7fe497ec7a7438f220dfd18d071c02431cc24abc -re63f171f9fe9c08cdf47514249ecb9757419193c --- lams_monitoring/web/includes/javascript/monitorLesson5.js (.../monitorLesson5.js) (revision 7fe497ec7a7438f220dfd18d071c02431cc24abc) +++ lams_monitoring/web/includes/javascript/monitorLesson5.js (.../monitorLesson5.js) (revision e63f171f9fe9c08cdf47514249ecb9757419193c) @@ -3186,4 +3186,35 @@ } }); eventSources = []; +} + + +function printTable() { + var title = document.title; + var divElements = document.getElementById('questions-data').outerHTML; + var printWindow = window.open("", "_blank", ""); + //open the window + printWindow.document.open(); + //write the html to the new window, link to css file + printWindow.document.write('' + title + '\n'); + printWindow.document.write('\n'); + printWindow.document.write('\n'); + printWindow.document.write(divElements); + printWindow.document.write('\n'); + printWindow.document.close(); + printWindow.focus(); + //The Timeout is ONLY to make Safari work, but it still works with FF, IE & Chrome. + setTimeout(function() { + printWindow.print(); + printWindow.close(); + }, 100); } \ No newline at end of file Index: lams_tool_assessment/web/pages/monitoring/parts/mcqStudentChoices5.jsp =================================================================== diff -u -r56003dc7b87af7983c137daf04e402404932aeaa -re63f171f9fe9c08cdf47514249ecb9757419193c --- lams_tool_assessment/web/pages/monitoring/parts/mcqStudentChoices5.jsp (.../mcqStudentChoices5.jsp) (revision 56003dc7b87af7983c137daf04e402404932aeaa) +++ lams_tool_assessment/web/pages/monitoring/parts/mcqStudentChoices5.jsp (.../mcqStudentChoices5.jsp) (revision e63f171f9fe9c08cdf47514249ecb9757419193c) @@ -22,7 +22,7 @@ - + ${i.index+1} @@ -43,61 +43,53 @@ - -