Index: lams_tool_lamc/web/WEB-INF/tags/Alert.tag =================================================================== diff -u --- lams_tool_lamc/web/WEB-INF/tags/Alert.tag (revision 0) +++ lams_tool_lamc/web/WEB-INF/tags/Alert.tag (revision c048314fbc71e9f6125f8298849b394f45ff6c55) @@ -0,0 +1,46 @@ +<%@ tag body-content="scriptless"%> +<%@ taglib uri="tags-core" prefix="c"%> + +<%@ attribute name="close" required="false" rtexprvalue="true"%> +<%@ attribute name="id" required="false" rtexprvalue="true"%> +<%@ attribute name="type" required="false" rtexprvalue="true"%> + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ +
+
+ + × + + +
+
+
+
+
Index: lams_tool_lamc/web/WEB-INF/tags/DefineLater.tag =================================================================== diff -u -rfef442a88ab05c91db8a551081c4abc060d4da5e -rc048314fbc71e9f6125f8298849b394f45ff6c55 --- lams_tool_lamc/web/WEB-INF/tags/DefineLater.tag (.../DefineLater.tag) (revision fef442a88ab05c91db8a551081c4abc060d4da5e) +++ lams_tool_lamc/web/WEB-INF/tags/DefineLater.tag (.../DefineLater.tag) (revision c048314fbc71e9f6125f8298849b394f45ff6c55) @@ -1,6 +1,6 @@ <% - /**************************************************************** + /**************************************************************** * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) * ============================================================= * License Information: http://lamsfoundation.org/licensing/lams/2.0/ @@ -49,10 +49,18 @@ -

- -

-
- +
+
+
+ +
+
+
+
+ +
+
\ No newline at end of file Index: lams_tool_lamc/web/WEB-INF/tags/Page.tag =================================================================== diff -u --- lams_tool_lamc/web/WEB-INF/tags/Page.tag (revision 0) +++ lams_tool_lamc/web/WEB-INF/tags/Page.tag (revision c048314fbc71e9f6125f8298849b394f45ff6c55) @@ -0,0 +1,36 @@ +<%@ tag body-content="scriptless"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> + +<%@ attribute name="type" required="true" rtexprvalue="true"%> +<%@ attribute name="style" required="false" rtexprvalue="true"%> +<%@ attribute name="title" required="false" rtexprvalue="true"%> +<%@ attribute name="titleHelpURL" required="false" rtexprvalue="true"%> +<%@ attribute name="headingContent" required="false" rtexprvalue="true"%> + + + +
+
+
+
+
+ +
+ + + + +
+
+ + + +
+
+ +
+
+
+ +
+
Index: lams_tool_lamc/web/WEB-INF/tlds/lams/lams.tld =================================================================== diff -u -r86a2855c49422f236ac31c35df38fa3c66220dcc -rc048314fbc71e9f6125f8298849b394f45ff6c55 --- lams_tool_lamc/web/WEB-INF/tlds/lams/lams.tld (.../lams.tld) (revision 86a2855c49422f236ac31c35df38fa3c66220dcc) +++ lams_tool_lamc/web/WEB-INF/tlds/lams/lams.tld (.../lams.tld) (revision c048314fbc71e9f6125f8298849b394f45ff6c55) @@ -440,6 +440,14 @@ /WEB-INF/tags/DefineLater.tag + Alert + /WEB-INF/tags/Alert.tag + + + Page + /WEB-INF/tags/Page.tag + + ImgButtonWrapper /WEB-INF/tags/ImgButtonWrapper.tag Index: lams_tool_lamc/web/learning/AnswersContent.jsp =================================================================== diff -u -r732f77a31113c5838d0704829b99418d90053471 -rc048314fbc71e9f6125f8298849b394f45ff6c55 --- lams_tool_lamc/web/learning/AnswersContent.jsp (.../AnswersContent.jsp) (revision 732f77a31113c5838d0704829b99418d90053471) +++ lams_tool_lamc/web/learning/AnswersContent.jsp (.../AnswersContent.jsp) (revision c048314fbc71e9f6125f8298849b394f45ff6c55) @@ -1,164 +1,181 @@ - - + <%@ include file="/common/taglibs.jsp"%> - - - - - - - - - - + + + + + + <fmt:message key="activity.title" /> - - +div.growlUI { + background: url(check48.png) no-repeat 10px 10px +} + +div.growlUI h1, div.growlUI h2 { + color: white; + padding: 5px 5px 5px 0px; + text-align: center; +} + + - + + + function submitAllAnswers() { + document.McLearningForm.continueOptionsCombined.value = 1; + doSubmit(); + } + + function doSubmit() { + if (verifyAllQuestionsAnswered()) { + disableContinueButton(); + document.McLearningForm.submit(); + } + } + + function verifyAllQuestionsAnswered() { + // in case oneQuestionPerPage option is ON user has to select 1 answer, and all answers otherwise + var isOneQuestionPerPage = ${mcGeneralLearnerFlowDTO.questionListingMode == 'questionListingModeSequential'}; + var answersRequiredNumber = (isOneQuestionPerPage) ? 1 : ${fn:length(requestScope.learnerAnswersDTOList)}; + + //check each question is answered + if ($(':radio:checked').length == answersRequiredNumber) { + return true; + + } else { + var msg = ""; + alert(msg); + return false; + } + } + + function disableContinueButton() { + var elem = document.getElementById("continueButton"); + if (elem != null) { + elem.disabled = true; + } + } + + if (${!hasEditRight && mode != "teacher"}) { + setInterval("checkLeaderProgress();",60000);// Auto-Refresh every 1 minute for non-leaders + } + + function checkLeaderProgress() { + + $.ajax({ + async: false, + url: '', + data: 'method=checkLeaderProgress&toolSessionID=' + $("#tool-session-id").val(), + dataType: 'json', + type: 'post', + success: function (json) { + if (json.isLeaderResponseFinalized) { + location.reload(); + } + } + }); + } + + -
+ -

- -

+
+ +
- - - - - - - - - - - - <%@ include file="/common/messages.jsp"%> - - -

- - ${sessionMap.groupLeader.fullname} + + + + + + + -

+
- - - - - - - - - -
-
- + + + ( ) + + + +
+ + + + + + + + + + + + <%@ include file="/common/messages.jsp"%> + + +

+ + ${sessionMap.groupLeader.fullname} + +

+
+ + + + + + + + + +
+
+
- + Index: lams_tool_lamc/web/learning/CombinedAnswersContent.jsp =================================================================== diff -u -r816baa75867795676ea15c9dfcc4feef712edc47 -rc048314fbc71e9f6125f8298849b394f45ff6c55 --- lams_tool_lamc/web/learning/CombinedAnswersContent.jsp (.../CombinedAnswersContent.jsp) (revision 816baa75867795676ea15c9dfcc4feef712edc47) +++ lams_tool_lamc/web/learning/CombinedAnswersContent.jsp (.../CombinedAnswersContent.jsp) (revision c048314fbc71e9f6125f8298849b394f45ff6c55) @@ -1,104 +1,88 @@ <%@ include file="/common/taglibs.jsp"%> - - - - - - + - + -

- -

+
+
+
+
+ + + + + + + + + + +
${dto.displayOrder}) + +
+ [ + + + ] +
+
+
+ +
+ + + + + + + + + +
+ + + checked="checked"/> + + + + checked="checked" disabled="disabled"> + + + + + <%=Character.toChars(97 + (Integer)pageContext.getAttribute("seqLetter"))%>) + + + + +
+
+ - -
- - - -
-
+
+
+
+
- -

- - ( - - ) -

-
- -
-
- - ${dto.displayOrder}) - - - - - [ - - - ] - -
-
- - - - - - - - - - - - - - -
- - - checked="checked"> - - - - checked="checked" disabled="disabled"> - - - - - - - <%=Character.toChars(97 + (Integer)pageContext.getAttribute("seqLetter"))%>) - - - - -
-
-
- + - - - - - -
+ + + + + Index: lams_tool_lamc/web/learning/IndividualLearnerResults.jsp =================================================================== diff -u -r2ef18e4c87e2e7929950dbeb990c6715ef16c0c2 -rc048314fbc71e9f6125f8298849b394f45ff6c55 --- lams_tool_lamc/web/learning/IndividualLearnerResults.jsp (.../IndividualLearnerResults.jsp) (revision 2ef18e4c87e2e7929950dbeb990c6715ef16c0c2) +++ lams_tool_lamc/web/learning/IndividualLearnerResults.jsp (.../IndividualLearnerResults.jsp) (revision c048314fbc71e9f6125f8298849b394f45ff6c55) @@ -1,14 +1,5 @@ - <%@ include file="/common/taglibs.jsp"%> - - - - - - - - @@ -21,192 +12,195 @@ elem.disabled = true; } } - - function submitForm(methodName){ - var f = document.getElementById('Form1'); - f.submit(); - } + + function submitForm(methodName) { + var f = document.getElementById('Form1'); + f.submit(); + } -
+ -

- -

+ + +

+ +

+
- - - - - - - - - - + +

+ +

+
+
- - -

- -

-
- - -

- -

-
-
- - -

- - - - -

-
- +

- - - - - - - - - - - - - - + + + +

+
-

- -

+

+ - + + + + + -

+ + + + + + +

+

+ +

-
- - ${dto.displayOrder}) - + - - - - +
+ +
+ + + + + - - + + + - +
${dto.displayOrder})
+
+
-

- - - - - images/tick.gif" border="0" class="middle"> + + + + + + + + + + - - images/cross.gif" border="0" class="middle"> - - -

+ + +
-

- - -
- + +
+
+

+ +

+
+
+ +
+
+ +
- +
+
- -

- -

- - - - - - - - - - - -
- - - -
- - - -
-
+ +

+ +

+ + + + + + + + + + +
+
+ + + + + + + + + + + + +

- - - - + + + +

- - + +
- + -
- - - - - - - - - - - - - - - - - - - - - -
+ + + + + + + + + + + + + + + + + + + + +
-
+ Index: lams_tool_lamc/web/learning/Notebook.jsp =================================================================== diff -u -r1a02559e19419af9991eaeb9363f809355b39bc7 -rc048314fbc71e9f6125f8298849b394f45ff6c55 --- lams_tool_lamc/web/learning/Notebook.jsp (.../Notebook.jsp) (revision 1a02559e19419af9991eaeb9363f809355b39bc7) +++ lams_tool_lamc/web/learning/Notebook.jsp (.../Notebook.jsp) (revision c048314fbc71e9f6125f8298849b394f45ff6c55) @@ -1,56 +1,47 @@ - - + <%@ include file="/common/taglibs.jsp"%> - - - - - - - - - <fmt:message key="activity.title" /> - + <fmt:message key="activity.title" /> - - - - - - -
+ -

- -

+
+ +
-

- -

+
+ + + + + + + + + + + - - - - - -
- - - -
+ + + -
- + +
+ + Index: lams_tool_lamc/web/learning/SimpleLearnerError.jsp =================================================================== diff -u -r1a02559e19419af9991eaeb9363f809355b39bc7 -rc048314fbc71e9f6125f8298849b394f45ff6c55 --- lams_tool_lamc/web/learning/SimpleLearnerError.jsp (.../SimpleLearnerError.jsp) (revision 1a02559e19419af9991eaeb9363f809355b39bc7) +++ lams_tool_lamc/web/learning/SimpleLearnerError.jsp (.../SimpleLearnerError.jsp) (revision c048314fbc71e9f6125f8298849b394f45ff6c55) @@ -1,29 +1,22 @@ - - + <%@ include file="/common/taglibs.jsp"%> - - - - - - - - - <fmt:message key="label.learner.error" /> - + <fmt:message key="label.learner.error" /> + + + + -
-
- <%@ include file="/common/messages.jsp"%> -
+ +
+ <%@ include file="/common/messages.jsp"%>
- + +
\ No newline at end of file Index: lams_tool_lamc/web/learning/SingleQuestionAnswersContent.jsp =================================================================== diff -u -r1a02559e19419af9991eaeb9363f809355b39bc7 -rc048314fbc71e9f6125f8298849b394f45ff6c55 --- lams_tool_lamc/web/learning/SingleQuestionAnswersContent.jsp (.../SingleQuestionAnswersContent.jsp) (revision 1a02559e19419af9991eaeb9363f809355b39bc7) +++ lams_tool_lamc/web/learning/SingleQuestionAnswersContent.jsp (.../SingleQuestionAnswersContent.jsp) (revision c048314fbc71e9f6125f8298849b394f45ff6c55) @@ -1,105 +1,88 @@ <%@ include file="/common/taglibs.jsp"%> - - - - - - - -

- -

- - -
- - - -
-
- - - ( ) - - - - + - -
-
- - ${dto.displayOrder}) - - - - - [ - - - ] - -
-
- - - - - - - - -
- checked="checked"> - - - - - <%=Character.toChars(97 + (Integer)pageContext.getAttribute("seqLetter"))%>) - + +
+
+
+
+ + + + + + + + + - - - - - - - -
${dto.displayOrder})
[ ] +
+
+
+ +
+
+ + + + + + + + + + + +
checked="checked" /> + + <%=Character + .toChars(97 + (Integer) pageContext + .getAttribute("seqLetter"))%>) +
+
+
+ +
+
+
-
- - - - - + + + + + - - - - - + + + + + - - - - - + + + + + -

 

-
Index: lams_tool_lamc/web/learning/ViewAnswers.jsp =================================================================== diff -u -r2ef18e4c87e2e7929950dbeb990c6715ef16c0c2 -rc048314fbc71e9f6125f8298849b394f45ff6c55 --- lams_tool_lamc/web/learning/ViewAnswers.jsp (.../ViewAnswers.jsp) (revision 2ef18e4c87e2e7929950dbeb990c6715ef16c0c2) +++ lams_tool_lamc/web/learning/ViewAnswers.jsp (.../ViewAnswers.jsp) (revision c048314fbc71e9f6125f8298849b394f45ff6c55) @@ -1,23 +1,15 @@ - <%@ include file="/common/taglibs.jsp"%> - - - - - - - - + <fmt:message key="activity.title" /> + setTimeout("refresh();", 30000); + -
-

- -

- -

+ +

-

+

-
+
- -
+ +
    -
    - -
    +
  • -
- -
- - - -
+ -
- - - + + + + Index: lams_tool_lamc/web/learning/defineLater.jsp =================================================================== diff -u -r9db7a5bb39fecf9a0f1ae5cf2a9f701d2aa1532f -rc048314fbc71e9f6125f8298849b394f45ff6c55 --- lams_tool_lamc/web/learning/defineLater.jsp (.../defineLater.jsp) (revision 9db7a5bb39fecf9a0f1ae5cf2a9f701d2aa1532f) +++ lams_tool_lamc/web/learning/defineLater.jsp (.../defineLater.jsp) (revision c048314fbc71e9f6125f8298849b394f45ff6c55) @@ -1,29 +1,19 @@ - - + <%@ include file="/common/taglibs.jsp"%> + + + + + <fmt:message key="activity.title" /> + - - - - - - + - - - - - <fmt:message key="activity.title" /> - - - - -
- -
- - - - + + + + + + +
Index: lams_tool_lamc/web/learning/submissionDeadline.jsp =================================================================== diff -u -r2ef18e4c87e2e7929950dbeb990c6715ef16c0c2 -rc048314fbc71e9f6125f8298849b394f45ff6c55 --- lams_tool_lamc/web/learning/submissionDeadline.jsp (.../submissionDeadline.jsp) (revision 2ef18e4c87e2e7929950dbeb990c6715ef16c0c2) +++ lams_tool_lamc/web/learning/submissionDeadline.jsp (.../submissionDeadline.jsp) (revision c048314fbc71e9f6125f8298849b394f45ff6c55) @@ -1,30 +1,22 @@ - <%@ include file="/common/taglibs.jsp"%> - - - - - - - - <fmt:message key="activity.title" /> - - + + <fmt:message key="activity.title" /> +