Index: lams_tool_forum/conf/hibernate/mappings/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml =================================================================== diff -u -r67333d9d0d4a93667e5b86544a3fca0cf85eacb8 -r77e263b43c7aed360e8dcc46af273db55123bc83 --- lams_tool_forum/conf/hibernate/mappings/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml (.../Forum.hbm.xml) (revision 67333d9d0d4a93667e5b86544a3fca0cf85eacb8) +++ lams_tool_forum/conf/hibernate/mappings/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml (.../Forum.hbm.xml) (revision 77e263b43c7aed360e8dcc46af273db55123bc83) @@ -236,6 +236,22 @@ column="minimum_reply" /> + + + + + + + + + + + + @@ -292,6 +312,11 @@ parameter="viewTopicTree"> + + + Index: lams_tool_forum/db/sql/create_lams_tool_forum.sql =================================================================== diff -u -rf6f0e93d2134d055aadd9414aee1b588f0669c19 -r77e263b43c7aed360e8dcc46af273db55123bc83 --- lams_tool_forum/db/sql/create_lams_tool_forum.sql (.../create_lams_tool_forum.sql) (revision f6f0e93d2134d055aadd9414aee1b588f0669c19) +++ lams_tool_forum/db/sql/create_lams_tool_forum.sql (.../create_lams_tool_forum.sql) (revision 77e263b43c7aed360e8dcc46af273db55123bc83) @@ -42,6 +42,8 @@ minimum_reply integer, limited_of_chars integer, limited_input_flag smallint, + reflect_instructions varchar(255), + reflect_on_activity smallint, primary key (uid) ); create table tl_lafrum11_forum_user ( @@ -113,5 +115,5 @@ alter table tl_lafrum11_tool_session add index FK5A04D7AE131CE31E (forum_uid), add constraint FK5A04D7AE131CE31E foreign key (forum_uid) references tl_lafrum11_forum (uid); -INSERT INTO tl_lafrum11_forum (title,instructions,online_instructions,offline_instructions,content_id,allow_anonym,run_offline,lock_on_finished,content_in_use,define_later,allow_edit,allow_rich_editor, allow_new_topic,allow_upload,maximum_reply, minimum_reply,limited_input_flag,limited_of_chars) VALUES("LAMS Forum","Instruction","Online instruction","Offline instruction",${default_content_id},0,0,0,0,0,1,0,1,1,0,0,1,5000); +INSERT INTO tl_lafrum11_forum (title,instructions,online_instructions,offline_instructions,content_id,allow_anonym,run_offline,lock_on_finished,content_in_use,define_later,allow_edit,allow_rich_editor, allow_new_topic,allow_upload,maximum_reply, minimum_reply,limited_input_flag,limited_of_chars,reflect_on_activity) VALUES("LAMS Forum","Instruction","Online instruction","Offline instruction",${default_content_id},0,0,0,0,0,1,0,1,1,0,0,1,5000,0); SET FOREIGN_KEY_CHECKS=1; \ No newline at end of file Index: lams_tool_forum/db/sql/table-schema.sql =================================================================== diff -u -rf6f0e93d2134d055aadd9414aee1b588f0669c19 -r77e263b43c7aed360e8dcc46af273db55123bc83 --- lams_tool_forum/db/sql/table-schema.sql (.../table-schema.sql) (revision f6f0e93d2134d055aadd9414aee1b588f0669c19) +++ lams_tool_forum/db/sql/table-schema.sql (.../table-schema.sql) (revision 77e263b43c7aed360e8dcc46af273db55123bc83) @@ -19,7 +19,7 @@ drop table if exists tl_lafrum11_report; drop table if exists tl_lafrum11_tool_session; create table tl_lafrum11_attachment (uid bigint not null auto_increment, file_version_id bigint, file_type varchar(255), file_name varchar(255), file_uuid bigint, create_date datetime, forum_uid bigint, message_uid bigint, primary key (uid)); -create table tl_lafrum11_forum (uid bigint not null auto_increment, create_date datetime, update_date datetime, create_by bigint, title varchar(255), allow_anonym bit, run_offline bit, lock_on_finished bit, instructions text, online_instructions text, offline_instructions text, content_in_use bit, define_later bit, content_id bigint unique, allow_edit bit, allow_rich_editor bit, limited_of_chars integer, limited_input_flag bit, allow_new_topic bit, allow_upload bit, maximum_reply integer, minimum_reply integer, primary key (uid)); +create table tl_lafrum11_forum (uid bigint not null auto_increment, create_date datetime, update_date datetime, create_by bigint, title varchar(255), allow_anonym bit, run_offline bit, lock_on_finished bit, instructions text, online_instructions text, offline_instructions text, content_in_use bit, define_later bit, content_id bigint unique, allow_edit bit, allow_rich_editor bit, limited_of_chars integer, limited_input_flag bit, allow_new_topic bit, allow_upload bit, maximum_reply integer, minimum_reply integer, reflect_instructions varchar(255), reflect_on_activity bit, primary key (uid)); create table tl_lafrum11_forum_user (uid bigint not null auto_increment, user_id bigint, last_name varchar(255), first_name varchar(255), session_id bigint, login_name varchar(255), session_finished bit, primary key (uid)); create table tl_lafrum11_message (uid bigint not null auto_increment, create_date datetime, last_reply_date datetime, update_date datetime, create_by bigint, modified_by bigint, subject varchar(255), body text, is_authored bit, is_anonymous bit, forum_session_uid bigint, parent_uid bigint, forum_uid bigint, reply_number integer, hide_flag bit, report_id bigint, primary key (uid)); create table tl_lafrum11_message_seq (uid bigint not null auto_increment, root_message_uid bigint, message_uid bigint, message_level smallint, primary key (uid)); Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/dto/UserDTO.java =================================================================== diff -u --- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/dto/UserDTO.java (revision 0) +++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/dto/UserDTO.java (revision 77e263b43c7aed360e8dcc46af273db55123bc83) @@ -0,0 +1,77 @@ +package org.lamsfoundation.lams.tool.forum.dto; + +import org.lamsfoundation.lams.tool.forum.persistence.ForumUser; + +public class UserDTO { + + private Long userUid; + private String fullName; + private String loginName; + private int noOfPosts; + private boolean hasRefection; + private String reflectInstrctions; + private boolean finishReflection; + private String reflect; + + public UserDTO(){ + } + + public UserDTO(ForumUser user) { + this.setLoginName(user.getLoginName()); + this.setFullName(user.getFirstName()+" "+user.getLastName()); + this.setUserUid(user.getUid()); + + } + public String getFullName() { + return fullName; + } + public void setFullName(String fullName) { + this.fullName = fullName; + } + public boolean isHasRefection() { + return hasRefection; + } + public void setHasRefection(boolean hasRefection) { + this.hasRefection = hasRefection; + } + public String getLoginName() { + return loginName; + } + public void setLoginName(String loginName) { + this.loginName = loginName; + } + public int getNoOfPosts() { + return noOfPosts; + } + public void setNoOfPosts(int noOfPosts) { + this.noOfPosts = noOfPosts; + } + public Long getUserUid() { + return userUid; + } + public void setUserUid(Long userUid) { + this.userUid = userUid; + } + public String getReflect() { + return reflect; + } + public void setReflect(String reflection) { + this.reflect = reflection; + } + + public String getReflectInstrctions() { + return reflectInstrctions; + } + + public void setReflectInstrctions(String reflectInstrctions) { + this.reflectInstrctions = reflectInstrctions; + } + + public boolean isFinishReflection() { + return finishReflection; + } + + public void setFinishReflection(boolean finishReflection) { + this.finishReflection = finishReflection; + } +} Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/forumApplicationContext.xml =================================================================== diff -u -r33a3ed3f118b3e599ed6ef024c1b92a6f94225b1 -r77e263b43c7aed360e8dcc46af273db55123bc83 --- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/forumApplicationContext.xml (.../forumApplicationContext.xml) (revision 33a3ed3f118b3e599ed6ef024c1b92a6f94225b1) +++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/forumApplicationContext.xml (.../forumApplicationContext.xml) (revision 77e263b43c7aed360e8dcc46af273db55123bc83) @@ -105,6 +105,7 @@ + Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml =================================================================== diff -u -r67333d9d0d4a93667e5b86544a3fca0cf85eacb8 -r77e263b43c7aed360e8dcc46af273db55123bc83 --- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml (.../Forum.hbm.xml) (revision 67333d9d0d4a93667e5b86544a3fca0cf85eacb8) +++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml (.../Forum.hbm.xml) (revision 77e263b43c7aed360e8dcc46af273db55123bc83) @@ -236,6 +236,22 @@ column="minimum_reply" /> + + + + + + + + + + + + + Index: lams_tool_forum/web/WEB-INF/struts/tiles-defs.xml =================================================================== diff -u -r782adea1cca29c0a511e5ba358bfefb9a1dcc2c2 -r77e263b43c7aed360e8dcc46af273db55123bc83 --- lams_tool_forum/web/WEB-INF/struts/tiles-defs.xml (.../tiles-defs.xml) (revision 782adea1cca29c0a511e5ba358bfefb9a1dcc2c2) +++ lams_tool_forum/web/WEB-INF/struts/tiles-defs.xml (.../tiles-defs.xml) (revision 77e263b43c7aed360e8dcc46af273db55123bc83) @@ -90,6 +90,10 @@ + + + + @@ -125,6 +129,10 @@ + + + + Index: lams_tool_forum/web/jsps/authoring/advance.jsp =================================================================== diff -u -r07bc909cfe122031c6236b32088858d4cd295fe9 -r77e263b43c7aed360e8dcc46af273db55123bc83 --- lams_tool_forum/web/jsps/authoring/advance.jsp (.../advance.jsp) (revision 07bc909cfe122031c6236b32088858d4cd295fe9) +++ lams_tool_forum/web/jsps/authoring/advance.jsp (.../advance.jsp) (revision 77e263b43c7aed360e8dcc46af273db55123bc83) @@ -7,42 +7,54 @@ - + - + - + - + - + + + + + + + + + + + + +

@@ -145,6 +157,15 @@ } allowNewTopic(); + function checkReflection(){ + var ropt = document.getElementById("reflectOn"); + var rins = document.getElementById("reflectInstructions"); + if(ropt.checked){ + rins.disabled=false; + }else{ + rins.disabled=true; + } + } Index: lams_tool_forum/web/jsps/learning/notebook.jsp =================================================================== diff -u --- lams_tool_forum/web/jsps/learning/notebook.jsp (revision 0) +++ lams_tool_forum/web/jsps/learning/notebook.jsp (revision 77e263b43c7aed360e8dcc46af273db55123bc83) @@ -0,0 +1,42 @@ +<%@ include file="/common/taglibs.jsp"%> + + + + + + + +

+ ${sessionMap.title} +

+
+
+ + + + + + + + + + + + + + + +
+ <%@ include file="/common/messages.jsp"%> +
+ ${sessionMap.reflectInstructions} +
+ +
+ + + +
+
+
+ Index: lams_tool_forum/web/jsps/learning/viewforum.jsp =================================================================== diff -u -r07bc909cfe122031c6236b32088858d4cd295fe9 -r77e263b43c7aed360e8dcc46af273db55123bc83 --- lams_tool_forum/web/jsps/learning/viewforum.jsp (.../viewforum.jsp) (revision 07bc909cfe122031c6236b32088858d4cd295fe9) +++ lams_tool_forum/web/jsps/learning/viewforum.jsp (.../viewforum.jsp) (revision 77e263b43c7aed360e8dcc46af273db55123bc83) @@ -36,8 +36,11 @@ + + + - +
@@ -54,9 +57,18 @@
- - - + + + + + + + + + + + +
Index: lams_tool_forum/web/jsps/monitoring/notebook.jsp =================================================================== diff -u --- lams_tool_forum/web/jsps/monitoring/notebook.jsp (revision 0) +++ lams_tool_forum/web/jsps/monitoring/notebook.jsp (revision 77e263b43c7aed360e8dcc46af273db55123bc83) @@ -0,0 +1,39 @@ +<%@ include file="/common/taglibs.jsp"%> + + + + + + + + + + + +
+

+ ${userDTO.fullName} +

+
+

+ ${userDTO.reflectInstrctions} +

+
+ + + + + + + + +
+ + + + +
+ +
+ + Index: lams_tool_forum/web/jsps/monitoring/summary.jsp =================================================================== diff -u -r07bc909cfe122031c6236b32088858d4cd295fe9 -r77e263b43c7aed360e8dcc46af273db55123bc83 --- lams_tool_forum/web/jsps/monitoring/summary.jsp (.../summary.jsp) (revision 07bc909cfe122031c6236b32088858d4cd295fe9) +++ lams_tool_forum/web/jsps/monitoring/summary.jsp (.../summary.jsp) (revision 77e263b43c7aed360e8dcc46af273db55123bc83) @@ -53,26 +53,54 @@ - + + - - - : - - + +

+ : +

+ - + + + + + + + + + + + + + + - +
+ + + + + +  
- - + + + + + + + + + + - + @@ -81,15 +109,16 @@
+