Index: lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McAction.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McAction.java,v
diff -u -r1.37 -r1.38
--- lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McAction.java 6 Nov 2005 13:43:34 -0000 1.37
+++ lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McAction.java 6 Nov 2005 15:49:36 -0000 1.38
@@ -252,6 +252,7 @@
mcAuthoringForm.setMoveDown(null);
mcAuthoringForm.setAddOption(null);
mcAuthoringForm.setRemoveOption(null);
+ mcAuthoringForm.setViewFileItem(null);
String addQuestion=request.getParameter("addQuestion");
@@ -311,6 +312,14 @@
mcAuthoringForm.setRemoveOption("1");
}
+ String viewFileItem=request.getParameter("viewFileItem");
+ logger.debug("parameter viewFileItem" + viewFileItem);
+ if ((viewFileItem != null) && viewFileItem.equals("1"))
+ {
+ logger.debug("parameter viewFileItem is selected " + viewFileItem);
+ mcAuthoringForm.setViewFileItem("1");
+ }
+
String userAction=null;
if (mcAuthoringForm.getAddQuestion() != null)
@@ -1272,6 +1281,21 @@
request.getSession().setAttribute(CURRENT_TAB, new Long(3));
return (mapping.findForward(ALL_INSTRUCTIONS));
}
+ else if (mcAuthoringForm.getViewFileItem() != null)
+ {
+ userAction="viewFileItem";
+ request.setAttribute(USER_ACTION, userAction);
+ logger.debug("userAction:" + userAction);
+
+ String fileItem= request.getParameter("fileItem");
+ logger.debug("fileItem:" + fileItem);
+
+ mcAuthoringForm.resetUserAction();
+ request.getSession().setAttribute(EDIT_OPTIONS_MODE, new Integer(2));
+ logger.debug("setting EDIT_OPTIONS_MODE :" + 2);
+ request.getSession().setAttribute(CURRENT_TAB, new Long(3));
+ return (mapping.findForward(ALL_INSTRUCTIONS));
+ }
mcAuthoringForm.resetUserAction();
return (mapping.findForward(LOAD_QUESTIONS));
Index: lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McAuthoringForm.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McAuthoringForm.java,v
diff -u -r1.16 -r1.17
--- lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McAuthoringForm.java 5 Nov 2005 17:37:13 -0000 1.16
+++ lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McAuthoringForm.java 6 Nov 2005 15:49:36 -0000 1.17
@@ -45,6 +45,9 @@
protected String advancedTabDone;
protected String instructionsTabDone;
+ protected String fileItem;
+ protected String viewFileItem;
+
protected String addContent;
protected String removeContent;
protected String removeAllContent;
@@ -116,6 +119,9 @@
this.moveDown=null;
this.moveUp=null;
+ this.fileItem=null;
+ this.viewFileItem=null;
+
this.addContent=null;
this.removeContent=null;
this.removeAllContent=null;
@@ -148,6 +154,9 @@
this.moveDown=null;
this.moveUp=null;
+ this.fileItem=null;
+ this.viewFileItem=null;
+
this.addContent=null;
this.removeContent=null;
this.removeAllContent=null;
@@ -858,4 +867,28 @@
public void setMoveUp(String moveUp) {
this.moveUp = moveUp;
}
+ /**
+ * @return Returns the fileItem.
+ */
+ public String getFileItem() {
+ return fileItem;
+ }
+ /**
+ * @param fileItem The fileItem to set.
+ */
+ public void setFileItem(String fileItem) {
+ this.fileItem = fileItem;
+ }
+ /**
+ * @return Returns the viewFileItem.
+ */
+ public String getViewFileItem() {
+ return viewFileItem;
+ }
+ /**
+ * @param viewFileItem The viewFileItem to set.
+ */
+ public void setViewFileItem(String viewFileItem) {
+ this.viewFileItem = viewFileItem;
+ }
}
Index: lams_tool_lamc/web/BasicContent.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_lamc/web/Attic/BasicContent.jsp,v
diff -u -r1.9 -r1.10
--- lams_tool_lamc/web/BasicContent.jsp 6 Nov 2005 13:43:34 -0000 1.9
+++ lams_tool_lamc/web/BasicContent.jsp 6 Nov 2005 15:49:36 -0000 1.10
@@ -5,7 +5,7 @@
<%@ taglib uri="/WEB-INF/fmt.tld" prefix="fmt" %>
<%@ taglib uri="fck-editor" prefix="FCK" %>
-