Index: lams_tool_larsrc/conf/xdoclet/struts-actions.xml =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/conf/xdoclet/struts-actions.xml,v diff -u -r1.10 -r1.11 --- lams_tool_larsrc/conf/xdoclet/struts-actions.xml 6 Apr 2006 06:58:12 -0000 1.10 +++ lams_tool_larsrc/conf/xdoclet/struts-actions.xml 7 Apr 2006 07:25:31 -0000 1.11 @@ -26,6 +26,39 @@ + + + + + + + + + + + + + ").append(file.getFileName()).append("\r\n"); -// sb.append(" "); -// sb.append(this.getResources(request).getMessage("label.view")); -// sb.append("\r\n"); -// sb.append(" "); -// sb.append(this.getResources(request).getMessage("label.download")); -// sb.append("\r\n"); -// sb.append(""); -// -// if(StringUtils.equals(type,IToolContentHandler.TYPE_OFFLINE)) -// sb.append(this.getResources(request).getMessage("label.authoring.offline.delete")); -// else -// sb.append(this.getResources(request).getMessage("label.authoring.online.delete")); -// sb.append("\r\n"); + if(StringUtils.equals(IToolContentHandler.TYPE_OFFLINE,type)){ + request.setAttribute("offlineFileList",leftAttachments); + }else{ + request.setAttribute("onlineFileList",leftAttachments); } - try { - PrintWriter out = response.getWriter(); - out.print(sb.toString()); - out.flush(); - } catch (IOException e) { - log.error(e); - } - return null; + return mapping.findForward(ResourceConstants.SUCCESS); + } //************************************************************************************* // Private method Index: lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/form/ResourceForm.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/form/ResourceForm.java,v diff -u -r1.5 -r1.6 --- lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/form/ResourceForm.java 3 Apr 2006 13:24:23 -0000 1.5 +++ lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/form/ResourceForm.java 7 Apr 2006 07:25:31 -0000 1.6 @@ -47,7 +47,8 @@ * User: Dapeng.Ni */ public class ResourceForm extends ValidatorForm { - private static final long serialVersionUID = -6054354910960460120L; + private static final long serialVersionUID = 3599879328307492312L; + private static Logger logger = Logger.getLogger(ResourceForm.class.getName()); //Forum fields @@ -89,15 +90,6 @@ logger.error("Initial ResourceForum failed by null value of Resource."); } } - public void reset(ActionMapping mapping, HttpServletRequest request){ - resource.setAllowAddFiles(false); - resource.setAllowAddUrls(false); - resource.setLockWhenFinished(false); - resource.setDefineLater(false); - resource.setRunAuto(false); - resource.setRunOffline(false); - } - public int getCurrentTab() { return currentTab; } Index: lams_tool_larsrc/web/includes/javascript/rsrccommon.js =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/includes/javascript/rsrccommon.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_tool_larsrc/web/includes/javascript/rsrccommon.js 7 Apr 2006 07:25:31 -0000 1.1 @@ -0,0 +1,18 @@ + function launchPopup(url,title) { + var wd = null; + if(wd && wd.open && !wd.closed){ + wd.close(); + } + wd = window.open(url,title,'resizable,width=796,height=570,scrollbars'); + wd.window.focus(); + } + function showBusy(targetDiv){ + if($(targetDiv+"_Busy") != null){ + Element.show(targetDiv+"_Busy"); + } + } + function hideBusy(targetDiv){ + if($(targetDiv+"_Busy") != null){ + Element.hide(targetDiv+"_Busy"); + } + } \ No newline at end of file Index: lams_tool_larsrc/web/pages/authoring/advance.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/pages/authoring/advance.jsp,v diff -u -r1.2 -r1.3 --- lams_tool_larsrc/web/pages/authoring/advance.jsp 27 Mar 2006 06:10:17 -0000 1.2 +++ lams_tool_larsrc/web/pages/authoring/advance.jsp 7 Apr 2006 07:25:31 -0000 1.3 @@ -1,28 +1,26 @@ +<%@ include file="/common/taglibs.jsp" %> + -<%@ taglib uri="tags-html" prefix="html" %> -<%@ taglib uri="tags-core" prefix="c"%> -<%@ taglib uri="tags-fmt" prefix="fmt"%> - Index: lams_tool_larsrc/web/pages/authoring/authoring.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/pages/authoring/authoring.jsp,v diff -u -r1.6 -r1.7 --- lams_tool_larsrc/web/pages/authoring/authoring.jsp 4 Apr 2006 07:05:55 -0000 1.6 +++ lams_tool_larsrc/web/pages/authoring/authoring.jsp 7 Apr 2006 07:25:31 -0000 1.7 @@ -23,6 +23,7 @@ + @@ -31,6 +32,7 @@ + @@ -74,7 +87,8 @@ + focus="resource.title" enctype="multipart/form-data"> + @@ -107,11 +121,10 @@

- + - +

Index: lams_tool_larsrc/web/pages/authoring/basic.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/pages/authoring/basic.jsp,v diff -u -r1.9 -r1.10 --- lams_tool_larsrc/web/pages/authoring/basic.jsp 5 Apr 2006 07:01:29 -0000 1.9 +++ lams_tool_larsrc/web/pages/authoring/basic.jsp 7 Apr 2006 07:25:31 -0000 1.10 @@ -1,4 +1,5 @@ <%@ include file="/common/taglibs.jsp" %> +
- +
- +
- + 1 2 3 @@ -36,14 +34,14 @@
- +
- +
- + Index: lams_tool_larsrc/web/pages/authoring/instructions.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/pages/authoring/Attic/instructions.jsp,v diff -u -r1.1 -r1.2 --- lams_tool_larsrc/web/pages/authoring/instructions.jsp 22 Mar 2006 05:34:55 -0000 1.1 +++ lams_tool_larsrc/web/pages/authoring/instructions.jsp 7 Apr 2006 07:25:31 -0000 1.2 @@ -1,8 +1,56 @@ -<%@ taglib uri="tags-html" prefix="html" %> -<%@ taglib uri="tags-core" prefix="c"%> -<%@ taglib uri="tags-fmt" prefix="fmt"%> -<%@ taglib uri="tags-lams" prefix="lams" %> +<%@ include file="/common/taglibs.jsp" %> + +
:
: - +
@@ -13,35 +61,15 @@ @@ -50,42 +78,28 @@ : @@ -94,12 +108,12 @@ : Index: lams_tool_larsrc/web/pages/authoring/parts/itemattachment.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/pages/authoring/parts/itemattachment.jsp,v diff -u -r1.1 -r1.2 --- lams_tool_larsrc/web/pages/authoring/parts/itemattachment.jsp 6 Apr 2006 06:58:12 -0000 1.1 +++ lams_tool_larsrc/web/pages/authoring/parts/itemattachment.jsp 7 Apr 2006 07:25:31 -0000 1.2 @@ -7,7 +7,7 @@ Index: lams_tool_larsrc/web/pages/authoring/parts/offlinefilelist.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/pages/authoring/parts/Attic/offlinefilelist.jsp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_tool_larsrc/web/pages/authoring/parts/offlinefilelist.jsp 7 Apr 2006 07:25:31 -0000 1.1 @@ -0,0 +1,31 @@ +<%@ include file="/common/taglibs.jsp" %> +
: - +
-
- -
  • - - - - - -   - - - - - -   - - - - - - -
  • -
    + +
    + <%@ include file="parts/onlinefilelist.jsp" %>
    - + - + - +
    : - +
    -
    - -
  • - - - - - - - - - - - - -
  • -
    + +
    + <%@ include file="parts/offlinefilelist.jsp" %>
    - + - + - +
    - +
    + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + +
    \ No newline at end of file Index: lams_tool_larsrc/web/pages/authoring/parts/onlinefilelist.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/pages/authoring/parts/Attic/onlinefilelist.jsp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_tool_larsrc/web/pages/authoring/parts/onlinefilelist.jsp 7 Apr 2006 07:25:31 -0000 1.1 @@ -0,0 +1,31 @@ +<%@ include file="/common/taglibs.jsp" %> + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + +
    \ No newline at end of file