Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/web/actions/LearningAction.java =================================================================== diff -u -r5773f84ed608838de3521ecde87c52f3c72d478c -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/web/actions/LearningAction.java (.../LearningAction.java) (revision 5773f84ed608838de3521ecde87c52f3c72d478c) +++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/web/actions/LearningAction.java (.../LearningAction.java) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -498,7 +498,18 @@ sessionMap.put(ForumConstants.ATTR_ROOT_TOPIC_UID, rootTopicId); // get forum user and forum - ForumUser forumUser = getCurrentUser(request, (Long) sessionMap.get(AttributeNames.PARAM_TOOL_SESSION_ID)); + // if coming from topic list, the toolSessionId is in the SessionMap. + // if coming from the monitoring statistics window, it is passed in as a parameter. + Long toolSessionId = WebUtil.readLongParam(request, AttributeNames.PARAM_TOOL_SESSION_ID, true); + if ( toolSessionId != null ) { + sessionMap.put(AttributeNames.PARAM_TOOL_SESSION_ID, toolSessionId); + String mode = WebUtil.readStrParam(request, AttributeNames.PARAM_MODE, true); + if ( mode != null ) + sessionMap.put(AttributeNames.PARAM_MODE, mode); + } else { + toolSessionId = (Long) sessionMap.get(AttributeNames.PARAM_TOOL_SESSION_ID); + } + ForumUser forumUser = getCurrentUser(request, toolSessionId); Forum forum = forumUser.getSession().getForum(); Long lastMsgSeqId = WebUtil.readLongParam(request, ForumConstants.PAGE_LAST_ID, true); Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/web/actions/MonitoringAction.java =================================================================== diff -u -r5773f84ed608838de3521ecde87c52f3c72d478c -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/web/actions/MonitoringAction.java (.../MonitoringAction.java) (revision 5773f84ed608838de3521ecde87c52f3c72d478c) +++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/web/actions/MonitoringAction.java (.../MonitoringAction.java) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -573,6 +573,7 @@ request.setAttribute("topicList", sessionTopicsMap); request.setAttribute("markAverage", sessionAvaMarkMap); request.setAttribute("totalMessage", sessionTotalMsgMap); + request.setAttribute(ForumConstants.ATTR_SESSION_MAP_ID, WebUtil.readStrParam(request, ForumConstants.ATTR_SESSION_MAP_ID)); } /** Index: lams_tool_forum/web/WEB-INF/tags/AdvancedAccordian.tag =================================================================== diff -u --- lams_tool_forum/web/WEB-INF/tags/AdvancedAccordian.tag (revision 0) +++ lams_tool_forum/web/WEB-INF/tags/AdvancedAccordian.tag (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -0,0 +1,53 @@ +<% + /**************************************************************** + * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) + * ============================================================= + * License Information: http://lamsfoundation.org/licensing/lams/2.0/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2.0 + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 + * USA + * + * http://www.gnu.org/licenses/gpl.txt + * **************************************************************** + */ + + /** + * AdvancedAccordian.tag + * Author: Fiona Malikoff + * Description: Creates the show/hide entry for the Advanced Settings in Montoring. + * Wiki: + */ +%> +<%@ attribute name="title" required="true" rtexprvalue="true"%> + +<%@ taglib uri="tags-core" prefix="c"%> +<%@ taglib uri="tags-fmt" prefix="fmt"%> +<%@ taglib uri="tags-lams" prefix="lams"%> + +
+
+ + +
+ +
+
+
+ \ No newline at end of file Index: lams_tool_forum/web/WEB-INF/tags/Arrow.tag =================================================================== diff -u --- lams_tool_forum/web/WEB-INF/tags/Arrow.tag (revision 0) +++ lams_tool_forum/web/WEB-INF/tags/Arrow.tag (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -0,0 +1,35 @@ +<%@ tag body-content="scriptless"%> +<%@ taglib uri="tags-core" prefix="c"%> +<%@ taglib uri="tags-function" prefix="fn" %> + +<%-- state = up: up arrow; state = down: down arrow --%> +<%@ attribute name="state" required="true" rtexprvalue="true"%> +<%@ attribute name="title" required="false" rtexprvalue="true"%> +<%@ attribute name="onclick" required="false" rtexprvalue="true"%> + + + + title="${title}" + + + + + + + + + onclick="${onclick}" + + + + + + + + + + + + + + Index: lams_tool_forum/web/WEB-INF/tags/AuthoringButton.tag =================================================================== diff -u -r271d1969c71c45a7e00e068f0b31d610fee8e9c0 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/WEB-INF/tags/AuthoringButton.tag (.../AuthoringButton.tag) (revision 271d1969c71c45a7e00e068f0b31d610fee8e9c0) +++ lams_tool_forum/web/WEB-INF/tags/AuthoringButton.tag (.../AuthoringButton.tag) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -122,12 +122,12 @@ window.close(); } -

- +

+ - + -

- +
+ \ No newline at end of file Index: lams_tool_forum/web/WEB-INF/tags/CKEditor.tag =================================================================== diff -u -rdc884b8e6274ebbc664d1ee940e565803445bb26 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/WEB-INF/tags/CKEditor.tag (.../CKEditor.tag) (revision dc884b8e6274ebbc664d1ee940e565803445bb26) +++ lams_tool_forum/web/WEB-INF/tags/CKEditor.tag (.../CKEditor.tag) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -10,7 +10,12 @@ <%@ attribute name="contentFolderID" required="false" rtexprvalue="true"%> <%@ attribute name="displayExpanded" required="false" rtexprvalue="true"%> <%@ attribute name="resizeParentFrameName" required="false" rtexprvalue="true"%> +<%@ attribute name="method" required="false" rtexprvalue="true"%> + + + + @@ -19,6 +24,10 @@ + + ${toolbarSet}Replace + + @@ -33,10 +42,10 @@ - + - ckeditor/ + /lams/ckeditor/ @@ -59,10 +68,9 @@ var editor = CKEDITOR.instances["${id}"]; if (editor) { editor.destroy(true); } - var instance = CKEDITOR.replace( "${id}", { + var instance = CKEDITOR.${method}( "${id}", { width : "${width}", height : "${height}", - autoGrow_minHeight : "${height}".replace("px", ""), toolbar : "${toolbarSet}", language : "${language}", defaultLangugage : "en", Index: lams_tool_forum/web/WEB-INF/tags/Comments.tag =================================================================== diff -u --- lams_tool_forum/web/WEB-INF/tags/Comments.tag (revision 0) +++ lams_tool_forum/web/WEB-INF/tags/Comments.tag (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -0,0 +1,47 @@ +<%@ taglib uri="tags-core" prefix="c"%> +<%@ taglib uri="tags-lams" prefix="lams"%> +<%@ taglib uri="tags-function" prefix="fn" %> + +<%@ attribute name="toolSessionId" required="true" rtexprvalue="true"%> +<%@ attribute name="toolSignature" required="true" rtexprvalue="true"%> +<%@ attribute name="height" required="false" rtexprvalue="true"%> +<%@ attribute name="width" required="false" rtexprvalue="true"%> +<%@ attribute name="mode" required="false" rtexprvalue="true"%> +<%@ attribute name="likeAndDislike" required="false" rtexprvalue="true"%> +<%@ attribute name="readOnly" required="false" rtexprvalue="true"%> +<%@ attribute name="pageSize" required="false" rtexprvalue="true"%> +<%@ attribute name="sortBy" required="false" rtexprvalue="true"%> + + + + + + + + + + + + + &mode=${mode} + + + + + + + + + + + + + + +
+ \ No newline at end of file Index: lams_tool_forum/web/WEB-INF/tags/CommentsAuthor.tag =================================================================== diff -u --- lams_tool_forum/web/WEB-INF/tags/CommentsAuthor.tag (revision 0) +++ lams_tool_forum/web/WEB-INF/tags/CommentsAuthor.tag (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -0,0 +1,51 @@ +<%@ taglib uri="tags-core" prefix="c"%> +<%@ taglib uri="tags-html" prefix="html"%> +<%@ taglib uri="tags-fmt" prefix="fmt"%> + +<%@ attribute name="allowCommentsVariableName" required="false" rtexprvalue="true"%> +<%@ attribute name="allowCommentLabelKey" required="false" rtexprvalue="true"%> +<%@ attribute name="likeDislikeVariableName" required="false" rtexprvalue="true"%> +<%@ attribute name="likeOnlyCommentLabelKey" required="false" rtexprvalue="true"%> +<%@ attribute name="likeDislikeLabelKey" required="false" rtexprvalue="true"%> + + + + + + + + + + + + + + + + + +
+ +
+
+     +   +
+ + + + Index: lams_tool_forum/web/WEB-INF/tags/Page.tag =================================================================== diff -u -rf7f47f902db6eae297429b67c683540199704f13 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/WEB-INF/tags/Page.tag (.../Page.tag) (revision f7f47f902db6eae297429b67c683540199704f13) +++ lams_tool_forum/web/WEB-INF/tags/Page.tag (.../Page.tag) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -12,25 +12,38 @@
+ + + + + +
-
- + +
- - - - -
+ + + +
+
+
+
+
+ + + + Index: lams_tool_forum/web/WEB-INF/tags/ProgressBar.tag =================================================================== diff -u --- lams_tool_forum/web/WEB-INF/tags/ProgressBar.tag (revision 0) +++ lams_tool_forum/web/WEB-INF/tags/ProgressBar.tag (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -0,0 +1,91 @@ +<% +/**************************************************************** + * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) + * ============================================================= + * License Information: http://lamsfoundation.org/licensing/lams/2.0/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2.0 + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 + * USA + * + * http://www.gnu.org/licenses/gpl.txt + * **************************************************************** + */ + + /** + * ProgressBar.tag + * Author: Marcin Cieslak + * Description: Creates a the progress bar widget. + */ + + %> +<%@ tag body-content="scriptless" %> +<%@ taglib uri="tags-core" prefix="c" %> +<%@ taglib uri="tags-fmt" prefix="fmt" %> +<%@ taglib uri="tags-html" prefix="html" %> +<%@ taglib uri="tags-lams" prefix="lams"%> + + + + + + + +  \ No newline at end of file Index: lams_tool_forum/web/WEB-INF/tags/RestrictedUsageAccordian.tag =================================================================== diff -u --- lams_tool_forum/web/WEB-INF/tags/RestrictedUsageAccordian.tag (revision 0) +++ lams_tool_forum/web/WEB-INF/tags/RestrictedUsageAccordian.tag (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -0,0 +1,54 @@ +<% + /**************************************************************** + * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) + * ============================================================= + * License Information: http://lamsfoundation.org/licensing/lams/2.0/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2.0 + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 + * USA + * + * http://www.gnu.org/licenses/gpl.txt + * **************************************************************** + */ + + /** + * AdvancedAccordian.tag + * Author: Fiona Malikoff + * Description: Creates the show/hide entry for the Restricted Usage Settings in Monitoring. + * Wiki: + */ +%> +<%@ attribute name="title" required="true" rtexprvalue="true"%> + +<%@ taglib uri="tags-core" prefix="c"%> +<%@ taglib uri="tags-fmt" prefix="fmt"%> +<%@ taglib uri="tags-lams" prefix="lams"%> + +
+
+ + + +
+ +
+
+
+ \ No newline at end of file Index: lams_tool_forum/web/WEB-INF/tags/TSTable.tag =================================================================== diff -u --- lams_tool_forum/web/WEB-INF/tags/TSTable.tag (revision 0) +++ lams_tool_forum/web/WEB-INF/tags/TSTable.tag (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -0,0 +1,53 @@ +<%-- Tablesorter Table and Pager --%> +<%@ tag body-content="scriptless"%> +<%@ taglib uri="tags-core" prefix="c"%> + +<%@ attribute name="numColumns" required="true" rtexprvalue="true"%> +<%@ attribute name="dataId" required="false" rtexprvalue="true"%> +<%@ attribute name="tableClass" required="false" rtexprvalue="true"%> +<%@ attribute name="pagerClass" required="false" rtexprvalue="true"%> +<%@ attribute name="test" required="false" rtexprvalue="true"%> + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + +
+ + \ No newline at end of file Index: lams_tool_forum/web/WEB-INF/tags/Tab.tag =================================================================== diff -u -rb5c9ab3d41689d5418b146ccd178c39a82a78fcc -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/WEB-INF/tags/Tab.tag (.../Tab.tag) (revision b5c9ab3d41689d5418b146ccd178c39a82a78fcc) +++ lams_tool_forum/web/WEB-INF/tags/Tab.tag (.../Tab.tag) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -1,85 +1,89 @@ -<% - /**************************************************************** - * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) - * ============================================================= - * License Information: http://lamsfoundation.org/licensing/lams/2.0/ - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2.0 - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 - * USA - * - * http://www.gnu.org/licenses/gpl.txt - * **************************************************************** - */ - - /** - * Tab.tag - * Author: Mitchell Seaton - * Description: Creates a tab element. - * Wiki: - */ -%> -<%@ tag body-content="empty"%> -<%@ attribute name="id" required="true" rtexprvalue="true"%> -<%@ attribute name="value" required="false" rtexprvalue="true"%> -<%@ attribute name="key" required="false" rtexprvalue="true"%> -<%@ attribute name="inactive" required="false" rtexprvalue="true"%> -<%@ attribute name="methodCall" required="false" rtexprvalue="true"%> - -<%@ taglib uri="tags-core" prefix="c"%> -<%@ taglib uri="tags-fmt" prefix="fmt"%> -<%@ taglib uri="tags-lams" prefix="lams"%> - -<%-- Check if bundle is set --%> - - - - - - - - - - -<%-- - Usually methodCall is selectTab, but the calling code can override methodCall if desired. - this is handy if the page needs different logic on initialisation and user switching tabs ---%> - - - - - - - - - - - - - - - - - - - +<% + /**************************************************************** + * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) + * ============================================================= + * License Information: http://lamsfoundation.org/licensing/lams/2.0/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2.0 + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 + * USA + * + * http://www.gnu.org/licenses/gpl.txt + * **************************************************************** + */ + + /** + * Tab.tag + * Author: Fiona Malikoff + * Description: Creates a tab element within the Hybrid Tab Header. + * Wiki: + */ +%> +<%@ tag body-content="empty"%> +<%@ attribute name="id" required="true" rtexprvalue="true"%> +<%@ attribute name="value" required="false" rtexprvalue="true"%> +<%@ attribute name="key" required="false" rtexprvalue="true"%> +<%@ attribute name="inactive" required="false" rtexprvalue="true"%> +<%@ attribute name="methodCall" required="false" rtexprvalue="true"%> + +<%@ taglib uri="tags-core" prefix="c"%> +<%@ taglib uri="tags-fmt" prefix="fmt"%> +<%@ taglib uri="tags-lams" prefix="lams"%> + +<%-- Check if bundle is set --%> + + + + + + + + + + +<%-- + Usually methodCall is selectTab, but the calling code can override methodCall if desired. + this is handy if the page needs different logic on initialisation and user switching tabs + + -- onclick="${methodCall}(${id});return false;"> + +--%> + + + + + + + + + + + + + + + + + + + + + class="active" + + + + + class="disabled" + + +
  • ${tabTitle}
  • Index: lams_tool_forum/web/WEB-INF/tags/TabBody.tag =================================================================== diff -u -rca73a51b45e6071a6a9edd5da8b0d61bf3a39929 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/WEB-INF/tags/TabBody.tag (.../TabBody.tag) (revision ca73a51b45e6071a6a9edd5da8b0d61bf3a39929) +++ lams_tool_forum/web/WEB-INF/tags/TabBody.tag (.../TabBody.tag) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -1,52 +1,44 @@ -<%/**************************************************************** - * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) - * ============================================================= - * License Information: http://lamsfoundation.org/licensing/lams/2.0/ - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2.0 - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 - * USA - * - * http://www.gnu.org/licenses/gpl.txt - * **************************************************************** - */ - -/** - * TabBody.tag - * Author: Mitchell Seaton - * Description: Creates the body container for a tab element - * Wiki: - */ - - %> -<%@ tag body-content="scriptless"%> -<%@ attribute name="id" required="true" rtexprvalue="true"%> -<%@ attribute name="tabTitle" required="false" rtexprvalue="true"%> -<%@ attribute name="titleKey" required="false" rtexprvalue="true"%> -<%@ attribute name="page" required="false" rtexprvalue="true"%> -<%@ taglib uri="tags-core" prefix="c"%> -<%@ taglib uri="tags-bean" prefix="bean"%> - - -
    - - - - - - - - - -
    - +<%/**************************************************************** + * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) + * ============================================================= + * License Information: http://lamsfoundation.org/licensing/lams/2.0/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2.0 + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 + * USA + * + * http://www.gnu.org/licenses/gpl.txt + * **************************************************************** + */ + +/** + * TabBody.tag + * Author: Mitchell Seaton + * Description: Creates the body container for a tab element + * Wiki: + */ + +%> +<%@ attribute name="id" required="true" rtexprvalue="true"%> +<%@ attribute name="tabTitle" required="false" rtexprvalue="true"%> +<%@ attribute name="titleKey" required="false" rtexprvalue="true"%> +<%@ attribute name="page" required="false" rtexprvalue="true"%> +<%@ taglib uri="tags-core" prefix="c"%> +<%@ taglib uri="tags-bean" prefix="bean"%> + + + + active + + +
    Index: lams_tool_forum/web/WEB-INF/tags/TabBodyArea.tag =================================================================== diff -u --- lams_tool_forum/web/WEB-INF/tags/TabBodyArea.tag (revision 0) +++ lams_tool_forum/web/WEB-INF/tags/TabBodyArea.tag (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -0,0 +1,39 @@ +<%/**************************************************************** + * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) + * ============================================================= + * License Information: http://lamsfoundation.org/licensing/lams/2.0/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2.0 + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 + * USA + * + * http://www.gnu.org/licenses/gpl.txt + * **************************************************************** + */ + +/** + * TabBodyArea.tag + * Author: Fiona Malikoff + * Description: Creates the panel body area for a nav bar screen + * Wiki: + */ + +%> +<%@ taglib uri="tags-core" prefix="c"%> +<%@ taglib uri="tags-bean" prefix="bean"%> + +
    + +
    + + \ No newline at end of file Index: lams_tool_forum/web/WEB-INF/tags/TabBodys.tag =================================================================== diff -u --- lams_tool_forum/web/WEB-INF/tags/TabBodys.tag (revision 0) +++ lams_tool_forum/web/WEB-INF/tags/TabBodys.tag (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -0,0 +1,37 @@ +<%/**************************************************************** + * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) + * ============================================================= + * License Information: http://lamsfoundation.org/licensing/lams/2.0/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2.0 + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 + * USA + * + * http://www.gnu.org/licenses/gpl.txt + * **************************************************************** + */ + +/** + * TabBodys.tag + * Author: Fiona Malikoff + * Description: Create a tabbody list from nested TabBody tags. + * Wiki: + */ + + %> +<%@ tag body-content="scriptless"%> + + +
    + +
    Index: lams_tool_forum/web/WEB-INF/tags/TabName.tag =================================================================== diff -u -r7329c82c5388fbb86b6a0a2b27a71151ee8f116e -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/WEB-INF/tags/TabName.tag (.../TabName.tag) (revision 7329c82c5388fbb86b6a0a2b27a71151ee8f116e) +++ lams_tool_forum/web/WEB-INF/tags/TabName.tag (.../TabName.tag) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -1,59 +1,59 @@ -<%/**************************************************************** - * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) - * ============================================================= - * License Information: http://lamsfoundation.org/licensing/lams/2.0/ - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2.0 - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 - * USA - * - * http://www.gnu.org/licenses/gpl.txt - * **************************************************************** - */ - -/** - * TabName Tag - * Author: Mitchell Seaton - * Description: Shortens name that are too long to fit inside a tab - */ - - %> -<%@ tag body-content="scriptless" %> - -<%@ attribute name="url" required="true" rtexprvalue="true"%> -<%@ attribute name="highlight" required="false" rtexprvalue="true" %> - -<%@ taglib uri="tags-core" prefix="c"%> -<%@ taglib uri="tags-function" prefix="fn"%> - -12 - - - - - - - - - - - - - - - - - - - +<%/**************************************************************** + * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) + * ============================================================= + * License Information: http://lamsfoundation.org/licensing/lams/2.0/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2.0 + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 + * USA + * + * http://www.gnu.org/licenses/gpl.txt + * **************************************************************** + */ + +/** + * TabName Tag + * Author: Mitchell Seaton + * Description: Shortens name that are too long to fit inside a tab + */ + + %> +<%@ tag body-content="scriptless" %> + +<%@ attribute name="url" required="true" rtexprvalue="true"%> +<%@ attribute name="highlight" required="false" rtexprvalue="true" %> + +<%@ taglib uri="tags-core" prefix="c"%> +<%@ taglib uri="tags-function" prefix="fn"%> + +12 + + + + + + + + + + + + + + + + + + + \ No newline at end of file Index: lams_tool_forum/web/WEB-INF/tags/Tabs.tag =================================================================== diff -u -rca73a51b45e6071a6a9edd5da8b0d61bf3a39929 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/WEB-INF/tags/Tabs.tag (.../Tabs.tag) (revision ca73a51b45e6071a6a9edd5da8b0d61bf3a39929) +++ lams_tool_forum/web/WEB-INF/tags/Tabs.tag (.../Tabs.tag) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -1,69 +1,92 @@ -<%/**************************************************************** - * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) - * ============================================================= - * License Information: http://lamsfoundation.org/licensing/lams/2.0/ - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2.0 - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 - * USA - * - * http://www.gnu.org/licenses/gpl.txt - * **************************************************************** - */ - -/** - * Tabs.tag - * Author: Mitchell Seaton - * Description: Create a tab list from a input collection or nested Tab tags. - * Wiki: - */ - - %> -<%@ tag body-content="scriptless"%> -<%@ attribute name="collection" type="java.util.Collection" required="false" rtexprvalue="true"%> -<%@ attribute name="control" required="false" rtexprvalue="true"%> -<%@ attribute name="useKey" required="false" rtexprvalue="true"%> -<%@ taglib uri="tags-core" prefix="c"%> -<%@ taglib uri="tags-lams" prefix="lams"%> - - - - - - - - - - - - +<%/**************************************************************** + * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) + * ============================================================= + * License Information: http://lamsfoundation.org/licensing/lams/2.0/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2.0 + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 + * USA + * + * http://www.gnu.org/licenses/gpl.txt + * **************************************************************** + */ + +/** + * Tabs.tag + * Author: Fiona Malikoff + * Description: Create a hybrid panel header that contains a nav bar that acts like tabs. + */ + +%> +<%@ attribute name="control" required="false" rtexprvalue="true"%> +<%@ attribute name="title" required="false" rtexprvalue="true"%> +<%@ attribute name="refreshOnClickAction" required="false" rtexprvalue="true"%> +<%@ attribute name="helpToolSignature" required="false" rtexprvalue="true"%> +<%@ attribute name="helpModule" required="false" rtexprvalue="true"%> +<%@ attribute name="extraControl" required="false" rtexprvalue="true"%> + +<%@ taglib uri="tags-core" prefix="c"%> +<%@ taglib uri="tags-lams" prefix="lams"%> + + + + + + + + + + + + +
    + + \ No newline at end of file Index: lams_tool_forum/web/WEB-INF/tags/headItems.tag =================================================================== diff -u -r613f0d0d76eb497ed58d7e6836eda34a245425a9 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/WEB-INF/tags/headItems.tag (.../headItems.tag) (revision 613f0d0d76eb497ed58d7e6836eda34a245425a9) +++ lams_tool_forum/web/WEB-INF/tags/headItems.tag (.../headItems.tag) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -41,7 +41,9 @@ - + - + + + Index: lams_tool_forum/web/WEB-INF/tlds/lams/lams.tld =================================================================== diff -u -rd5fee901f5527e516add11b0ec872521de171133 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/WEB-INF/tlds/lams/lams.tld (.../lams.tld) (revision d5fee901f5527e516add11b0ec872521de171133) +++ lams_tool_forum/web/WEB-INF/tlds/lams/lams.tld (.../lams.tld) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -178,7 +178,7 @@ css org.lamsfoundation.lams.web.tag.CssTag empty - + Output stylesheet based on the user preferences. style @@ -408,10 +408,18 @@ /WEB-INF/tags/TabBody.tag + TabBodys + /WEB-INF/tags/TabBodys.tag + + TabName /WEB-INF/tags/TabName.tag + TabBodyArea + /WEB-INF/tags/TabBodyArea.tag + + CKEditor /WEB-INF/tags/CKEditor.tag @@ -438,7 +446,31 @@ Page /WEB-INF/tags/Page.tag + + + TSTable + /WEB-INF/tags/TSTable.tag + + + Arrow + /WEB-INF/tags/Arrow.tag + + + AdvancedAccordian + /WEB-INF/tags/AdvancedAccordian.tag + + RestrictedUsageAccordian + /WEB-INF/tags/RestrictedUsageAccordian.tag + + + ImgButtonWrapper + /WEB-INF/tags/ImgButtonWrapper.tag + + + TextSearch + /WEB-INF/tags/TextSearch.tag + textarea org.lamsfoundation.lams.web.tag.LAMSMultiLinesTextareaTag @@ -473,5 +505,13 @@ head /WEB-INF/tags/Head.tag + + Comments + /WEB-INF/tags/Comments.tag + + + CommentsAuthor + /WEB-INF/tags/CommentsAuthor.tag + Index: lams_tool_forum/web/common/header.jsp =================================================================== diff -u -rd3a9876dc1ffb96feebcd861473dd3339e83966e -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/common/header.jsp (.../header.jsp) (revision d3a9876dc1ffb96feebcd861473dd3339e83966e) +++ lams_tool_forum/web/common/header.jsp (.../header.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -7,13 +7,12 @@ - + - - - - - \ No newline at end of file + + + + Index: lams_tool_forum/web/common/messages.jsp =================================================================== diff -u -rd5fee901f5527e516add11b0ec872521de171133 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/common/messages.jsp (.../messages.jsp) (revision d5fee901f5527e516add11b0ec872521de171133) +++ lams_tool_forum/web/common/messages.jsp (.../messages.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -1,6 +1,6 @@ <%-- Error Messages --%> - + Index: lams_tool_forum/web/common/tabbedheader.jsp =================================================================== diff -u -r5e63656a12c02f7476564e278b43ff4ce86ac930 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/common/tabbedheader.jsp (.../tabbedheader.jsp) (revision 5e63656a12c02f7476564e278b43ff4ce86ac930) +++ lams_tool_forum/web/common/tabbedheader.jsp (.../tabbedheader.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -16,10 +16,18 @@ - + - + + + + + + + + + Index: lams_tool_forum/web/includes/javascript/message.js =================================================================== diff -u -rb732d53d7176e05258acb291c209dfeb1e6e6704 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/includes/javascript/message.js (.../message.js) (revision b732d53d7176e05258acb291c209dfeb1e6e6704) +++ lams_tool_forum/web/includes/javascript/message.js (.../message.js) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -11,31 +11,32 @@ var reqIDVar = new Date(); var param = "reqID="+reqIDVar.getTime(); removeItemAttachmentLoading(); - var myAjax = new Ajax.Updater( - itemAttachmentTargetDiv, - url, - { - method:'get', - parameters:param, - onComplete:removeItemAttachmentComplete, - evalScripts:true - } - ); + + $.ajax({ + type: 'get', + url: url, + data: param, + success: function(data) { + $("#"+itemAttachmentTargetDiv).html(data); + removeItemAttachmentComplete(); + } + }); } function removeItemAttachmentLoading(){ showBusy(itemAttachmentTargetDiv); } function removeItemAttachmentComplete(){ hideBusy(itemAttachmentTargetDiv); } + function showBusy(targetDiv){ if($(targetDiv+"_Busy") != null){ - Element.show(targetDiv+"_Busy"); + $(targetDiv+"_Busy").show(); } } function hideBusy(targetDiv){ if($(targetDiv+"_Busy") != null){ - Element.hide(targetDiv+"_Busy"); + $(targetDiv+"_Busy").hide(); } } Index: lams_tool_forum/web/includes/layout.jsp =================================================================== diff -u -re48fc0e1f6819e257b87efa36c3baec3c1c488f0 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/includes/layout.jsp (.../layout.jsp) (revision e48fc0e1f6819e257b87efa36c3baec3c1c488f0) +++ lams_tool_forum/web/includes/layout.jsp (.../layout.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -10,21 +10,22 @@ <%@ include file="/common/header.jsp"%> + + + + + + + + -
    - - - -

    - -

    -
    + - -
    + + Index: lams_tool_forum/web/includes/tablayout.jsp =================================================================== diff -u -re48fc0e1f6819e257b87efa36c3baec3c1c488f0 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/includes/tablayout.jsp (.../tablayout.jsp) (revision e48fc0e1f6819e257b87efa36c3baec3c1c488f0) +++ lams_tool_forum/web/includes/tablayout.jsp (.../tablayout.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -13,19 +13,8 @@ -
    - - - -

    - -

    -
    - - - - -
    + + Index: lams_tool_forum/web/jsps/authoring/addCondition.jsp =================================================================== diff -u -re48fc0e1f6819e257b87efa36c3baec3c1c488f0 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/jsps/authoring/addCondition.jsp (.../addCondition.jsp) (revision e48fc0e1f6819e257b87efa36c3baec3c1c488f0) +++ lams_tool_forum/web/jsps/authoring/addCondition.jsp (.../addCondition.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -5,43 +5,52 @@ <%@ include file="/common/header.jsp"%> - + + +
    +
    +
    +
    + +
    + <%@ include file="/common/messages.jsp"%> -

    - -

    - -
    - + +
    + +
    -
    - -
    <%-- Text search form fields are being included --%> -

    + +

    +
    - +
    + +
    - + - - - - +
    + + +
    + +
    +
    Index: lams_tool_forum/web/jsps/authoring/advance.jsp =================================================================== diff -u -r526771dc8db698cc6e2afd8e23d8d40d996b785a -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/jsps/authoring/advance.jsp (.../advance.jsp) (revision 526771dc8db698cc6e2afd8e23d8d40d996b785a) +++ lams_tool_forum/web/jsps/authoring/advance.jsp (.../advance.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -1,33 +1,26 @@ <%@ include file="/common/taglibs.jsp"%> -<%-- If you change this file, remember to update the copy made for CNG-12 --%> - -

    - - -

    +
    + +
    -

    - - -

    +
    + +
    -

    - - -

    +
    + +
    -

    - - +

    +
    + + @@ -42,9 +35,10 @@ 9 10 - - - +
    +
    + + @@ -59,73 +53,60 @@ 9 10 -

    +
    +
    -

    - - -

    +
    + +
    -

    - - -

    +
    + +
    -

    - - +

    + + +
    - -

    +
    + + +
    -

    - - +

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

    +
    + +
    -

    -

    - - -

    -

    - - -

    +
    + +
    +
    + +
    -

    - - -

    - -

    - - -

    - -

    - - - -

    -

    +

    -

    + -

    - - -

    +
    + +
    -

    - - -

    +
    + +
    -

    - - +

    +
    + + @@ -180,9 +160,11 @@ 9 10 - +
    +
    + - + @@ -197,9 +179,9 @@ 9 10 +
    +
    -

    - + Index: lams_tool_forum/web/jsps/authoring/authoring.jsp =================================================================== diff -u -r281244f5d518e88719ffc871ac71bb03136cb03e -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/jsps/authoring/authoring.jsp (.../authoring.jsp) (revision 281244f5d518e88719ffc871ac71bb03136cb03e) +++ lams_tool_forum/web/jsps/authoring/authoring.jsp (.../authoring.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -19,36 +19,42 @@ + + + + + + + + + + - - -
    - + <%@ include file="/common/messages.jsp"%> - - - - - - - + + + + + + + + -
    + + + + +
    Index: lams_tool_forum/web/jsps/authoring/basic.jsp =================================================================== diff -u -r271d1969c71c45a7e00e068f0b31d610fee8e9c0 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/jsps/authoring/basic.jsp (.../basic.jsp) (revision 271d1969c71c45a7e00e068f0b31d610fee8e9c0) +++ lams_tool_forum/web/jsps/authoring/basic.jsp (.../basic.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -9,19 +9,21 @@ * Launches the popup window for the instruction files */ function showMessage(url) { - var area=document.getElementById("messageArea"); - if(area != null){ - area.style.width="100%"; - area.src=url; - area.style.display="block"; - } + $("#messageArea").load(url, function() { + var area=document.getElementById("messageArea"); + if(area != null){ + area.style.width="100%"; + area.style.height="100%"; + area.style.display="block"; + } + + var elem = document.getElementById("saveCancelButtons"); + if (elem != null) { + elem.style.display="none"; + } - var elem = document.getElementById("saveCancelButtons"); - if (elem != null) { - elem.style.display="none"; - } - - location.hash = "messageArea"; + location.hash = "messageArea"; + }); } function hideMessage(){ var area=document.getElementById("messageArea"); @@ -45,23 +47,23 @@ //The panel of taskList list panel var topicListTargetDiv = "messageListArea"; function deleteTopic(topicIndex, sessionMapID){ + var deletionConfirmed = confirm(""); if (deletionConfirmed) { var url = ""; var reqIDVar = new Date(); var param = "topicIndex=" + topicIndex +"&reqID="+reqIDVar.getTime()+"&sessionMapID="+sessionMapID;; deleteItemLoading(); - var myAjax = new Ajax.Updater( - topicListTargetDiv, - url, - { - method:'get', - parameters:param, - onComplete:deleteItemComplete, - evalScripts:true - } - ); + $.ajax({ + type: 'get', + url: url, + data: param, + success: function(data) { + $("#messageListArea").html(data); + deleteItemComplete(); + } + }); } } @@ -77,81 +79,74 @@ var reqIDVar = new Date(); var param = "topicIndex=" + topicIndex +"&reqID="+reqIDVar.getTime()+"&sessionMapID="+sessionMapID;; deleteItemLoading(); - var myAjax = new Ajax.Updater( - topicListTargetDiv, - url, - { - method:'get', - parameters:param, - onComplete:deleteItemComplete, - evalScripts:true - } - ); + $.ajax({ + type: 'get', + url: url, + data: param, + success: function(data) { + $("#messageListArea").html(data); + deleteItemComplete(); + } + }); } function downTopic(topicIndex, sessionMapID){ var url = ""; var reqIDVar = new Date(); var param = "topicIndex=" + topicIndex +"&reqID="+reqIDVar.getTime()+"&sessionMapID="+sessionMapID;; deleteItemLoading(); - var myAjax = new Ajax.Updater( - topicListTargetDiv, - url, - { - method:'get', - parameters:param, - onComplete:deleteItemComplete, - evalScripts:true - } - ); + $.ajax({ + type: 'get', + url: url, + data: param, + success: function(data) { + $("#messageListArea").html(data); + deleteItemComplete(); + } + }); } - function resizeOnMessageFrameLoad(){ - var messageAreaFrame = document.getElementById("messageArea"); - messageAreaFrame.style.height=messageAreaFrame.contentWindow.document.body.scrollHeight+'px'; - } + //Packs additional elements and submits the question form + function submitMessage(){ + + if ( typeof CKEDITOR !== 'undefined' ) { + for ( instance in CKEDITOR.instances ) + CKEDITOR.instances[instance].updateElement(); + } + var formData = new FormData(document.getElementById("topicFormId")); + + $.ajax({ // create an AJAX call... + data: formData, + processData: false, // tell jQuery not to process the data + contentType: false, // tell jQuery not to set contentType + type: $("#topicFormId").attr('method'), + url: $("#topicFormId").attr('action'), + success: function(data) { + $('#messageArea').html(data); + } + }); + } - - - - - - - -
    -
    - -
    - -
    -
    - -
    - -
    +
    + + +
    +
    + + +
    <%@ include file="/jsps/authoring/message/topiclist.jsp"%>
    -

    - ');" id="addTopic" - class="button-add-item"> - -

    + -

    - -

    +
    Index: lams_tool_forum/web/jsps/authoring/conditionList.jsp =================================================================== diff -u -r21ce4d0194e8b81e613f4f6e14eb4e8bf53bdf59 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/jsps/authoring/conditionList.jsp (.../conditionList.jsp) (revision 21ce4d0194e8b81e613f4f6e14eb4e8bf53bdf59) +++ lams_tool_forum/web/jsps/authoring/conditionList.jsp (.../conditionList.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -3,12 +3,11 @@
    -

    - +
    -

    +
    - +
    - - - + + + +
    @@ -36,62 +35,31 @@ ${condition.displayName} - + + - " - onclick="upCondition(${status.index},'${sessionMapID}')"> - - "> - - - + + + - - "> - - - " - onclick="downCondition(${status.index},'${sessionMapID}')"> - + + - " - onclick="editCondition(${status.index},'${sessionMapID}')" /> - - " - onclick="deleteCondition(${status.index},'${sessionMapID}')" /> - " + onclick="editCondition(${status.index},'${sessionMapID}')">" + onclick="deleteCondition(${status.index},'${sessionMapID}')">
    -<%-- This script will works when a new resoruce Condition submit in order to refresh "TaskList List" panel. --%> +<%-- This script will works when a new Condition submit in order to refresh "Condition List" panel. --%> Index: lams_tool_forum/web/jsps/authoring/conditions.jsp =================================================================== diff -u -rc081e2b0c9c82fc97d2d39fb7109c9c2f10ff224 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/jsps/authoring/conditions.jsp (.../conditions.jsp) (revision c081e2b0c9c82fc97d2d39fb7109c9c2f10ff224) +++ lams_tool_forum/web/jsps/authoring/conditions.jsp (.../conditions.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -8,18 +8,19 @@ * Launches the popup window for the instruction files */ function showConditionMessage(url) { - var area=document.getElementById("conditionInputArea"); - if(area != null){ - area.style.width="650px"; - area.style.height="100%"; - area.src=url; - area.style.display="block"; - } - var elem = document.getElementById("saveCancelButtons"); - if (elem != null) { - elem.style.display="none"; - } - location.hash = "conditionInputArea"; + $("#conditionInputArea").load(url, function() { + var area=document.getElementById("conditionInputArea"); + if(area != null){ + area.style.width="100%"; + area.style.height="100%"; + area.style.display="block"; + } + var elem = document.getElementById("saveCancelButtons"); + if (elem != null) { + elem.style.display="none"; + } + location.hash = "conditionInputArea"; + }); } function hideConditionMessage(){ var area=document.getElementById("conditionInputArea"); @@ -44,46 +45,56 @@ function deleteCondition(orderId,sessionMapID){ var url = ""; var reqIDVar = new Date(); - var param = "orderId=" + orderId +"&sessionMapID="+sessionMapID;; - var myAjax = new Ajax.Updater( - conditionListTargetDiv, - url, - { - method:'get', - parameters:param, - evalScripts:true - } - ); + var param = "orderId=" + orderId +"&sessionMapID="+sessionMapID; + $.ajax({ + type: 'get', + url: url, + data: param, + success: function(data) { + $("#"+conditionListTargetDiv).html(data); + } + }); } function upCondition(orderId,sessionMapID){ var url = ""; var reqIDVar = new Date(); var param = "orderId=" + orderId + "&sessionMapID="+sessionMapID;; - var myAjax = new Ajax.Updater( - conditionListTargetDiv, - url, - { - method:'get', - parameters:param, - evalScripts:true - } - ); + $.ajax({ + type: 'get', + url: url, + data: param, + success: function(data) { + $("#"+conditionListTargetDiv).html(data); + } + }); } function downCondition(orderId,sessionMapID){ var url = ""; var reqIDVar = new Date(); var param = "orderId=" + orderId + "&sessionMapID="+sessionMapID;; - var myAjax = new Ajax.Updater( - conditionListTargetDiv, - url, - { - method:'get', - parameters:param, - evalScripts:true - } - ); + $.ajax({ + type: 'get', + url: url, + data: param, + success: function(data) { + $("#"+conditionListTargetDiv).html(data); + } + }); } + + //Packs additional elements and submits the question form + function submitCondition(){ + + $.ajax({ // create an AJAX call... + type: $("#forumConditionForm").attr('method'), + url: $("#forumConditionForm").attr('action'), + data: $("#forumConditionForm").serialize(), + success: function(data) { + $('#forumConditionForm').html(data); + } + }); + } @@ -93,18 +104,10 @@ <%@ include file="/jsps/authoring/conditionList.jsp"%>
    + + -

    - ');" class="button-add-item"> - -

    - - -

    - -

    +
    Index: lams_tool_forum/web/jsps/authoring/definelater.jsp =================================================================== diff -u -r3a8e994950328828669db522e276e9181fc37d05 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/jsps/authoring/definelater.jsp (.../definelater.jsp) (revision 3a8e994950328828669db522e276e9181fc37d05) +++ lams_tool_forum/web/jsps/authoring/definelater.jsp (.../definelater.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -5,32 +5,36 @@ -<%Set tabs = new HashSet(); - tabs.add("authoring.tab.basic"); - pageContext.setAttribute("tabs", tabs); - - %> - + -
    + + + + <%@ include file="/common/messages.jsp"%> - - - - + + + + + + -
    + + + + + +
    +
    Index: lams_tool_forum/web/jsps/authoring/header.jsp =================================================================== diff -u -race8b408295af831e2715b2013d64a000aa09549 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/jsps/authoring/header.jsp (.../header.jsp) (revision ace8b408295af831e2715b2013d64a000aa09549) +++ lams_tool_forum/web/jsps/authoring/header.jsp (.../header.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -5,7 +5,6 @@ - - + +
    +
    + <%@ include file="/common/messages.jsp"%> @@ -29,48 +19,33 @@ -
    - - * +
    + + +
    -
    - - + +
    + + + + + + +
    -
    - - * +
    + +
    +
    -
    - - - - - - +
    + +
    -
    - -
    - -
    -
    - -
    - - - - -   - - - Index: lams_tool_forum/web/jsps/authoring/message/edit.jsp =================================================================== diff -u -r613f0d0d76eb497ed58d7e6836eda34a245425a9 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/jsps/authoring/message/edit.jsp (.../edit.jsp) (revision 613f0d0d76eb497ed58d7e6836eda34a245425a9) +++ lams_tool_forum/web/jsps/authoring/message/edit.jsp (.../edit.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -4,28 +4,16 @@ <%@ include file="/common/header.jsp"%> - + - - - - - +
    +
    + <%@ include file="/common/messages.jsp"%> @@ -34,46 +22,40 @@ -
    - - * +
    + + +
    -
    - - -
    - -
    - - * -
    - - -
    - - -
    -
    - +
    + + + + + + +
    + - -
    - <%@ include file="/jsps/authoring/parts/msgattachment.jsp"%> +
    + +
    + <%@ include file="/jsps/authoring/parts/msgattachment.jsp"%> +
    - - - -   - - - +
    + + +
    + + +
    +
    + Index: lams_tool_forum/web/jsps/authoring/message/topiclist.jsp =================================================================== diff -u -r21ce4d0194e8b81e613f4f6e14eb4e8bf53bdf59 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/jsps/authoring/message/topiclist.jsp (.../topiclist.jsp) (revision 21ce4d0194e8b81e613f4f6e14eb4e8bf53bdf59) +++ lams_tool_forum/web/jsps/authoring/message/topiclist.jsp (.../topiclist.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -3,7 +3,7 @@
    - +
    @@ -21,62 +21,31 @@ "> - - - - - + + + +
    + + + - " - onclick="upTopic(${status.index},'${sessionMapID}')"> - - "> - - - + + + - - "> - - - " - onclick="downTopic(${status.index},'${sessionMapID}')"> - + + - " id="edit${status.index}" - onclick="editTopic(${status.index},'${sessionMapID}')" /> - - " id="delete${status.index}" - onclick="deleteTopic(${status.index},'${sessionMapID}')" /> - " id="edit${status.index}" + onclick="editTopic(${status.index},'${sessionMapID}')">" id="delete${status.index}" + onclick="deleteTopic(${status.index},'${sessionMapID}')">
    -<%-- This script will works when a new resoruce item submit in order to refresh "Resource List" panel. --%> - Index: lams_tool_forum/web/jsps/authoring/parts/msgattachment.jsp =================================================================== diff -u -r2dbea686e81e6a5843328d8c0bd814b63e64d36f -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/jsps/authoring/parts/msgattachment.jsp (.../msgattachment.jsp) (revision 2dbea686e81e6a5843328d8c0bd814b63e64d36f) +++ lams_tool_forum/web/jsps/authoring/parts/msgattachment.jsp (.../msgattachment.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -14,7 +14,7 @@ - + @@ -25,6 +25,6 @@ - + Index: lams_tool_forum/web/jsps/monitoring/editactivity.jsp =================================================================== diff -u -rac65e701de5276fc14c0dfeccb2fa8c3a9237bf3 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/jsps/monitoring/editactivity.jsp (.../editactivity.jsp) (revision ac65e701de5276fc14c0dfeccb2fa8c3a9237bf3) +++ lams_tool_forum/web/jsps/monitoring/editactivity.jsp (.../editactivity.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -1,10 +1,17 @@ <%@ include file="/common/taglibs.jsp"%> - + + + + + + + + +
    - - - -
    - : @@ -14,33 +21,20 @@
    - :
    - - - - - - - - - - - - -
    - -
    -
    -
    -
    + + + + + + + + + + Index: lams_tool_forum/web/jsps/monitoring/header.jsp =================================================================== diff -u -r2b4141f8f15fe552ea1ba29d0b302544943cb6b0 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/jsps/monitoring/header.jsp (.../header.jsp) (revision 2b4141f8f15fe552ea1ba29d0b302544943cb6b0) +++ lams_tool_forum/web/jsps/monitoring/header.jsp (.../header.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -29,7 +29,7 @@ } function doStatistic(){ - var url = ""; + var url = ""; $("#statisticArea_Busy").show(); $("#statisticArea").load( Fisheye: Tag 26a0240d04a160036cc15d1adca267cd1e9c42e5 refers to a dead (removed) revision in file `lams_tool_forum/web/jsps/monitoring/message/viewtopic.jsp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 26a0240d04a160036cc15d1adca267cd1e9c42e5 refers to a dead (removed) revision in file `lams_tool_forum/web/jsps/monitoring/message/viewtopictree.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_forum/web/jsps/monitoring/monitoring.jsp =================================================================== diff -u -r2b4141f8f15fe552ea1ba29d0b302544943cb6b0 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/jsps/monitoring/monitoring.jsp (.../monitoring.jsp) (revision 2b4141f8f15fe552ea1ba29d0b302544943cb6b0) +++ lams_tool_forum/web/jsps/monitoring/monitoring.jsp (.../monitoring.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -4,19 +4,25 @@ - - -
    - - + + + -
    + + + + \ No newline at end of file + + Index: lams_tool_forum/web/jsps/monitoring/parts/daterestriction.jsp =================================================================== diff -u -r2b4141f8f15fe552ea1ba29d0b302544943cb6b0 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/jsps/monitoring/parts/daterestriction.jsp (.../daterestriction.jsp) (revision 2b4141f8f15fe552ea1ba29d0b302544943cb6b0) +++ lams_tool_forum/web/jsps/monitoring/parts/daterestriction.jsp (.../daterestriction.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -1,42 +1,29 @@ <%@include file="/common/taglibs.jsp"%> -

    - + + - - - -

    - - \ No newline at end of file + \ No newline at end of file Index: lams_tool_forum/web/jsps/monitoring/statisticpart.jsp =================================================================== diff -u -r2b4141f8f15fe552ea1ba29d0b302544943cb6b0 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/jsps/monitoring/statisticpart.jsp (.../statisticpart.jsp) (revision 2b4141f8f15fe552ea1ba29d0b302544943cb6b0) +++ lams_tool_forum/web/jsps/monitoring/statisticpart.jsp (.../statisticpart.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -1,7 +1,16 @@ <%@ include file="/common/taglibs.jsp"%> -<%-- If you change this file, remember to update the copy made for CNG-12 --%> + + + + + + + + + + @@ -16,12 +25,41 @@ -

    - : -

    - - + +
    +
    + + : + +
    + +
    + + +

    +
    + + + + + + + + + +
    + + + +
    + + + +
    + + + @@ -36,7 +74,7 @@
    - + @@ -52,24 +90,10 @@
    - - - - - - - - - - - -
    - - - -
    - - - -
    + +
    +
    + + + Index: lams_tool_forum/web/jsps/monitoring/summary.jsp =================================================================== diff -u -r3e9e058a240c59fb1ff5cab55b5f42ed481b1b8d -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/jsps/monitoring/summary.jsp (.../summary.jsp) (revision 3e9e058a240c59fb1ff5cab55b5f42ed481b1b8d) +++ lams_tool_forum/web/jsps/monitoring/summary.jsp (.../summary.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -7,42 +7,11 @@ -<%-- If you change this file, remember to update the copy made for CNG-12 --%> - - + - - - - - - - - - - - -

    - -

    -
    - -
    -
    - - -

    - -

    -
    - - +
    +

    + +

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

    - : -

    +
    +
    + + + : + +
    + +
    -
    - - - - - - - - - + + + 5 + 15% + + + 4 + 25% + + + + + + + + - + - - - - - -
    - - - - - - - - - - - - - - -
    - - -
    -
    - - - - - - -
    -
    -
    + -
    -
    - - - - - - - - -
    -
    - +

    + + + + + + + -

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

    + + +
    +
    +
    + ${ !sessionMap.isGroupedActivity || ! status.last ? '
     
    ' : ''} +
    + +
    +
    <%@include file="parts/advanceOptions.jsp"%> <%@include file="parts/daterestriction.jsp"%> Index: lams_tool_forum/web/jsps/monitoring/updatemarks.jsp =================================================================== diff -u -r2b4141f8f15fe552ea1ba29d0b302544943cb6b0 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/jsps/monitoring/updatemarks.jsp (.../updatemarks.jsp) (revision 2b4141f8f15fe552ea1ba29d0b302544943cb6b0) +++ lams_tool_forum/web/jsps/monitoring/updatemarks.jsp (.../updatemarks.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -8,9 +8,9 @@

    - - - +   +   +   ():

    @@ -26,49 +26,36 @@

    - - - - - - - - - - - - - - -
    - <%@ include file="/common/messages.jsp"%> -
    - * - - -
    - -
    - - -
    -
    - " class="button" /> + <%@ include file="/common/messages.jsp"%> + +
    + + +
    +
    + + + + +
    + + +
    + " class="btn btn-default" /> - - - ?sessionMapID=${formBean.sessionMapID}&userUid=${user.uid}&toolSessionID=${sessionMap.toolSessionID} - - + + + ?sessionMapID=${formBean.sessionMapID}&userUid=${user.uid}&toolSessionID=${sessionMap.toolSessionID} + + - - - ?sessionMapID=${formBean.sessionMapID}&topicID=${sessionMap.rootUid}&hideReflection=${sessionMap.hideReflection} - - - "> -
    -
    + + + ?sessionMapID=${formBean.sessionMapID}&topicID=${sessionMap.rootUid}&hideReflection=${sessionMap.hideReflection} + + + + "> +
    + Index: lams_tool_forum/web/jsps/monitoring/viewmarks.jsp =================================================================== diff -u -r2b4141f8f15fe552ea1ba29d0b302544943cb6b0 -r26a0240d04a160036cc15d1adca267cd1e9c42e5 --- lams_tool_forum/web/jsps/monitoring/viewmarks.jsp (.../viewmarks.jsp) (revision 2b4141f8f15fe552ea1ba29d0b302544943cb6b0) +++ lams_tool_forum/web/jsps/monitoring/viewmarks.jsp (.../viewmarks.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) @@ -12,96 +12,81 @@

    - - +   

    + - +
    +
    +

    + + + + +

    +
    + +
    + +
    + + + " class="btn btn-default btn-sm" /> + +
    + +
    +
    +
    ${topic.message.replyNumber}
    +
    +
    +
    +
    + + + + + + + + +
    +
    - -
    - - - - - - - - - - +
    +
    +
    + + + + + + + + +
    +
    - - - - - - - - - - - - - - - +
    + + + + + + + + -
    - - - - - - - - - "> - -
    - -
    - - : - - ${topic.message.replyNumber} -
    - - : - - - - - - - - - -
    - - : - - - - - - - - - -
    - - - - - " class="button" /> - -
    +
    +
    + + +