Index: lams_tool_forum/build.properties =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/build.properties,v diff -u -r1.22 -r1.23 --- lams_tool_forum/build.properties 20 Feb 2008 06:26:32 -0000 1.22 +++ lams_tool_forum/build.properties 27 Oct 2008 00:53:02 -0000 1.23 @@ -9,7 +9,7 @@ ### project properties ### signature=lafrum11 project.displayname = lams forum tool -tool.version=20080220 +tool.version=20081022 # hide tool option hideTool=false Index: lams_tool_forum/conf/hibernate/mappings/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/conf/hibernate/mappings/org/lamsfoundation/lams/tool/forum/persistence/Attic/Forum.hbm.xml,v diff -u -r1.18 -r1.19 --- lams_tool_forum/conf/hibernate/mappings/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml 2 Sep 2008 04:45:00 -0000 1.18 +++ lams_tool_forum/conf/hibernate/mappings/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml 27 Oct 2008 00:53:02 -0000 1.19 @@ -260,6 +260,24 @@ column="mark_release_notify" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + Index: lams_tool_forum/db/model/forum.clay =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/db/model/forum.clay,v diff -u -r1.16 -r1.17 --- lams_tool_forum/db/model/forum.clay 2 Sep 2008 04:45:00 -0000 1.16 +++ lams_tool_forum/db/model/forum.clay 27 Oct 2008 00:53:02 -0000 1.17 @@ -6,7 +6,123 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
@@ -124,7 +240,7 @@ - + @@ -330,7 +446,7 @@ - + @@ -413,7 +529,7 @@ - + @@ -665,7 +781,7 @@ - + @@ -778,7 +894,7 @@ - + @@ -842,7 +958,7 @@ - + @@ -939,7 +1055,7 @@ - + Index: lams_tool_forum/db/sql/create_lams_tool_forum.sql =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/db/sql/create_lams_tool_forum.sql,v diff -u -r1.31 -r1.32 --- lams_tool_forum/db/sql/create_lams_tool_forum.sql 2 Sep 2008 04:45:00 -0000 1.31 +++ lams_tool_forum/db/sql/create_lams_tool_forum.sql 27 Oct 2008 00:53:02 -0000 1.32 @@ -103,6 +103,27 @@ session_name varchar(250), primary key (uid) )TYPE=InnoDB; + +CREATE TABLE tl_lafrum11_conditions ( + condition_id BIGINT(20) NOT NULL + , content_uid BIGINT(20) + , PRIMARY KEY (condition_id) + , CONSTRAINT ForumConditionInheritance FOREIGN KEY (condition_id) + REFERENCES lams_branch_condition(condition_id) ON DELETE CASCADE ON UPDATE CASCADE + , CONSTRAINT ForumConditionToForum FOREIGN KEY (content_uid) + REFERENCES tl_lafrum11_forum(uid) ON DELETE CASCADE ON UPDATE CASCADE +)TYPE=InnoDB; + +CREATE TABLE tl_lafrum11_condition_topics ( + condition_id BIGINT(20) + , topic_uid BIGINT(20) + , PRIMARY KEY (condition_id,topic_uid) + , CONSTRAINT ForumConditionQuestionToForumCondition FOREIGN KEY (condition_id) + REFERENCES tl_lafrum11_conditions(condition_id) ON DELETE CASCADE ON UPDATE CASCADE + , CONSTRAINT ForumConditionQuestionToForumQuestion FOREIGN KEY (topic_uid) + REFERENCES tl_lafrum11_message(uid) ON DELETE CASCADE ON UPDATE CASCADE +)TYPE=InnoDB; + alter table tl_lafrum11_attachment add index FK389AD9A2FE939F2A (message_uid), add constraint FK389AD9A2FE939F2A foreign key (message_uid) references tl_lafrum11_message (uid); alter table tl_lafrum11_attachment add index FK389AD9A2131CE31E (forum_uid), add constraint FK389AD9A2131CE31E foreign key (forum_uid) references tl_lafrum11_forum (uid); alter table tl_lafrum11_forum add index FK87917942E42F4351 (create_by), add constraint FK87917942E42F4351 foreign key (create_by) references tl_lafrum11_forum_user (uid); Index: lams_tool_forum/db/sql/drop_lams_tool_forum.sql =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/db/sql/drop_lams_tool_forum.sql,v diff -u -r1.10 -r1.11 --- lams_tool_forum/db/sql/drop_lams_tool_forum.sql 21 Mar 2006 06:17:07 -0000 1.10 +++ lams_tool_forum/db/sql/drop_lams_tool_forum.sql 27 Oct 2008 00:53:02 -0000 1.11 @@ -8,6 +8,8 @@ drop table if exists tl_lafrum11_message_seq; drop table if exists tl_lafrum11_tool_session; drop table if exists tl_lafrum11_report; +drop table if exists tl_lafrum11_condition_topics; +drop table if exists tl_lafrum11_conditions; SET FOREIGN_KEY_CHECKS=1; Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/forumApplicationContext.xml =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/forumApplicationContext.xml,v diff -u -r1.19 -r1.20 --- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/forumApplicationContext.xml 2 Sep 2008 04:45:00 -0000 1.19 +++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/forumApplicationContext.xml 27 Oct 2008 00:53:02 -0000 1.20 @@ -16,13 +16,15 @@ + org/lamsfoundation/lams/learningdesign/BranchCondition.hbm.xml org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml org/lamsfoundation/lams/tool/forum/persistence/Message.hbm.xml org/lamsfoundation/lams/tool/forum/persistence/Attachment.hbm.xml org/lamsfoundation/lams/tool/forum/persistence/ForumUser.hbm.xml org/lamsfoundation/lams/tool/forum/persistence/ForumReport.hbm.xml org/lamsfoundation/lams/tool/forum/persistence/ForumToolSession.hbm.xml org/lamsfoundation/lams/tool/forum/persistence/MessageSeq.hbm.xml + org/lamsfoundation/lams/tool/forum/persistence/ForumCondition.hbm.xml Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/dbupdates/patch20081022_updateFrom21.sql =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/dbupdates/patch20081022_updateFrom21.sql,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/dbupdates/patch20081022_updateFrom21.sql 27 Oct 2008 00:53:02 -0000 1.1 @@ -0,0 +1,21 @@ +-- SQL statements to update from LAMS 2.1/2.1.1 + +CREATE TABLE tl_lafrum11_conditions ( + condition_id BIGINT(20) NOT NULL + , content_uid BIGINT(20) + , PRIMARY KEY (condition_id) + , CONSTRAINT ForumConditionInheritance FOREIGN KEY (condition_id) + REFERENCES lams_branch_condition(condition_id) ON DELETE CASCADE ON UPDATE CASCADE + , CONSTRAINT ForumConditionToForum FOREIGN KEY (content_uid) + REFERENCES tl_lafrum11_forum(uid) ON DELETE CASCADE ON UPDATE CASCADE +)TYPE=InnoDB; + +CREATE TABLE tl_lafrum11_condition_topics ( + condition_id BIGINT(20) + , topic_uid BIGINT(20) + , PRIMARY KEY (condition_id,topic_uid) + , CONSTRAINT ForumConditionQuestionToForumCondition FOREIGN KEY (condition_id) + REFERENCES tl_lafrum11_conditions(condition_id) ON DELETE CASCADE ON UPDATE CASCADE + , CONSTRAINT ForumConditionQuestionToForumQuestion FOREIGN KEY (topic_uid) + REFERENCES tl_lafrum11_message(uid) ON DELETE CASCADE ON UPDATE CASCADE +)TYPE=InnoDB; \ No newline at end of file Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/persistence/Attic/Forum.hbm.xml,v diff -u -r1.18 -r1.19 --- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml 2 Sep 2008 04:45:00 -0000 1.18 +++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml 27 Oct 2008 00:53:02 -0000 1.19 @@ -260,6 +260,24 @@ column="mark_release_notify" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + +<%@ 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" %> + +<%-- Required attributes --%> +<%@ attribute name="sessionMapID" required="true" rtexprvalue="true" %> +<%@ attribute name="wrapInFormTag" required="true" rtexprvalue="true" %> + +<%-- Optional attributes --%> +<%@ attribute name="action" required="false" rtexprvalue="true" %> +<%@ attribute name="formID" required="false" rtexprvalue="true" %> +<%@ attribute name="headingLabelKey" required="false" rtexprvalue="true" %> +<%@ attribute name="allWordsLabelKey" required="false" rtexprvalue="true" %> +<%@ attribute name="phraseLabelKey" required="false" rtexprvalue="true" %> +<%@ attribute name="anyWordsLabelKey" required="false" rtexprvalue="true" %> +<%@ attribute name="excludedWordsLabelKey" required="false" rtexprvalue="true" %> +<%@ attribute name="saveButtonLabelKey" required="false" rtexprvalue="true" %> +<%@ attribute name="cancelButtonLabelKey" required="false" rtexprvalue="true" %> +<%@ attribute name="cancelAction" required="false" rtexprvalue="true" %> + +<%-- Default value for message key --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +

+ + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + + + + + + + + \ No newline at end of file Index: lams_tool_forum/web/images/downarrow.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/web/images/downarrow.gif,v diff -u Binary files differ Index: lams_tool_forum/web/images/downarrow_disabled.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/web/images/downarrow_disabled.gif,v diff -u Binary files differ Index: lams_tool_forum/web/images/uparrow.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/web/images/uparrow.gif,v diff -u Binary files differ Index: lams_tool_forum/web/images/uparrow_disabled.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/web/images/uparrow_disabled.gif,v diff -u Binary files differ Index: lams_tool_forum/web/jsps/authoring/addCondition.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/web/jsps/authoring/addCondition.jsp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_tool_forum/web/jsps/authoring/addCondition.jsp 27 Oct 2008 00:53:02 -0000 1.1 @@ -0,0 +1,47 @@ + +<%@ include file="/common/taglibs.jsp"%> + + + + <%@ include file="/common/header.jsp"%> + + + + + + <%@ include file="/common/messages.jsp"%> + + +

+ +

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

+ + + + + +
+
+ +
+ + + + + + +
Index: lams_tool_forum/web/jsps/authoring/authoring.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/web/jsps/authoring/authoring.jsp,v diff -u -r1.27 -r1.28 --- lams_tool_forum/web/jsps/authoring/authoring.jsp 2 Nov 2006 06:15:52 -0000 1.27 +++ lams_tool_forum/web/jsps/authoring/authoring.jsp 27 Oct 2008 00:53:02 -0000 1.28 @@ -18,6 +18,7 @@ +
@@ -31,6 +32,8 @@ page="advance.jsp" /> + + + + +
+

+ + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ +
+ ${status.index + 1} + + ${condition.displayName} + + + " + onclick="upCondition(${status.index},'${sessionMapID}')"> + + "> + + + + + + "> + + + " + onclick="downCondition(${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. --%> + Index: lams_tool_forum/web/jsps/authoring/conditions.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/web/jsps/authoring/conditions.jsp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_tool_forum/web/jsps/authoring/conditions.jsp 27 Oct 2008 00:53:02 -0000 1.1 @@ -0,0 +1,110 @@ +<%@ include file="/common/taglibs.jsp"%> + + + + + +
+ + <%@ include file="/jsps/authoring/conditionList.jsp"%> +
+ +

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

+ + +

+ +