Index: lams_learning/web/lessonComplete.jsp =================================================================== diff -u -r1987f0f443399796f1ab8800d2baed906258ee74 -r495d8ba0d70ac286d4e8aaa40dd390669cf59e99 --- lams_learning/web/lessonComplete.jsp (.../lessonComplete.jsp) (revision 1987f0f443399796f1ab8800d2baed906258ee74) +++ lams_learning/web/lessonComplete.jsp (.../lessonComplete.jsp) (revision 495d8ba0d70ac286d4e8aaa40dd390669cf59e99) @@ -19,191 +19,209 @@ http://www.gnu.org/licenses/gpl.txt --%> -<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%> -<%@ taglib uri="tags-bean" prefix="bean"%> -<%@ taglib uri="tags-html" prefix="html"%> -<%@ taglib uri="tags-core" prefix="c"%> -<%@ taglib uri="tags-fmt" prefix="fmt"%> -<%@ taglib uri="tags-lams" prefix="lams"%> - - - + - - +<%@ include file="/common/taglibs.jsp"%> - - - - + + + + + + + + + + - // submit lesson total mark to the integrated server in case request comes from an integrated server - if (${not empty lessonFinishUrl}) { - $.ajax({ - url: "${lessonFinishUrl}", - type: "POST", - dataType: 'html', - cache: false, - async: 'false', - success: function (data) { - //log mark has been successfullly pushed to the integrated server - if (data && ((data == 'OK') || (data == 'No Lineitem object found'))) { - $.ajax({ - url: "logLessonMarkPushedToIntegrations", - data: {lessonID: "${lessonID}"}, - type: "POST", - cache: false - }); - } - }, - error: function (ajaxContext) { - alert("There was an error on trying to submit lesson total mark to the integrated server: " + ajaxContext.responseText) - } - }); - } - - - $(document).ready(function(){ - // Create the organisation view grid with sub grid for users - $("#userGradebookGrid").jqGrid({ - datatype : "json", - url : "gradebook/gradebook.do?dispatch=getLessonCompleteGridData&lessonID=${lessonID}", - height : "100%", - // use new theme - guiStyle : "bootstrap", - iconSet : 'fontAwesome', - autoencode : false, - colNames : [ - '', - '', - '', - '' - ], - colModel : [ - { - 'name' : 'name', - 'index' : 'name', - 'title' : false - }, - { - 'name' : 'progress', - 'index' : 'progress', - 'align' : 'center', - 'width' : 100, - 'title' : false - }, - { - 'name' : 'averageMark', - 'index' : 'averageMark', - 'align' : 'center', - 'width' : 100, - 'title' : false - }, - { - 'name' : 'mark', - 'index' : 'mark', - 'align' : 'center', - 'width' : 100, - 'title' : false - } - ], - beforeProcessing : function(data) { - // Wrap each activity name in a link to show same pop up - // as if the user clicked the activity in progress bar. - // The code depends on progressBar.js import in Page.tag - $.each(data.rows, function() { - this.cell[0] = '' + this.cell[0] + ''; - }); - }, - loadComplete : function(data) { - // display non-grid data - $('#learnerLessonMark').text(data.learnerLessonMark); - $('#averageLessonMark').text(data.averageLessonMark); - }, - loadError : function(xhr,st,err) { - $("#userGradebookGrid").clearGridData(); - $.jgrid.info_dialog('', - '', - ''); + + + + - - + } -
  - - -   - - -
+ + $(document).ready(function(){ + // Create the organisation view grid with sub grid for users + $("#userGradebookGrid").jqGrid({ + datatype : "json", + url : "gradebook/gradebook/getLessonCompleteGridData.do?lessonID=${lessonID}", + height : "100%", + // use new theme + guiStyle : "bootstrap", + iconSet : 'fontAwesome', + autoencode : false, + colNames : [ + '', + '', + '', + '' + ], + colModel : [ + { + 'name' : 'name', + 'index' : 'name', + 'title' : false + }, + { + 'name' : 'progress', + 'index' : 'progress', + 'align' : 'center', + 'width' : 100, + 'title' : false + }, + { + 'name' : 'averageMark', + 'index' : 'averageMark', + 'align' : 'center', + 'width' : 100, + 'title' : false + }, + { + 'name' : 'mark', + 'index' : 'mark', + 'align' : 'center', + 'width' : 100, + 'title' : false + } + ], + beforeProcessing : function(data) { + // Wrap each activity name in a link to show same pop up + // as if the user clicked the activity in progress bar. + // The code depends on progressBar.js import in Page.tag + $.each(data.rows, function() { + this.cell[0] = '' + this.cell[0] + ''; + }); + }, + loadComplete : function(data) { + // display non-grid data + $('#learnerLessonMark').text(data.learnerLessonMark); + $('#averageLessonMark').text(data.averageLessonMark); + }, + loadError : function(xhr,st,err) { + $("#userGradebookGrid").clearGridData(); + $.jgrid.info_dialog('', + '', + ''); + } + }); + }); + -
- - - - - - - - -
+ - -
- - - - + + +
  + + +   + +
- - - +
- + - - + + + + +
-
- - -
- - - -
-
- - -
-  
-

:

-

:

+ +
+ + + + +
+
-
-
-
-
-
\ No newline at end of file + +
+ + + + + +
+
+ + +
+ + + +
+
+ + +
+  
+ +

:

+

:

+ +
+
+
+
+ + + +