Index: lams_bb_integration/web/modules/modify.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_bb_integration/web/modules/modify.jsp,v diff -u -r1.11 -r1.12 --- lams_bb_integration/web/modules/modify.jsp 16 Feb 2017 04:31:47 -0000 1.11 +++ lams_bb_integration/web/modules/modify.jsp 20 Feb 2017 17:22:36 -0000 1.12 @@ -1,72 +1,31 @@ - +<%@ page contentType="text/html; charset=utf-8" language="java"%> +<%@ page isELIgnored="false" %> + + <%-- - Original Version: 2007 LAMS Foundation - Updated for Blackboard 9.1 SP6 (including new bbNG tag library) 2011 - Richard Stals (www.stals.com.au) - Edith Cowan University, Western Australia ---%> -<%-- Step 1 For Modifing an existing LAMS Lesson Set the various attributes for the LAMS lesson in Blackboard Step 1 - modify.jsp - Step 2 - modify_proc.jsp + Step 2 - LessonManager?method=modify --%> -<%@ page import="java.util.*"%> -<%@ page import="java.util.Date"%> -<%@ page import="java.util.Calendar"%> -<%@ page import="java.text.SimpleDateFormat"%> -<%@ page import="blackboard.data.*"%> -<%@ page import="blackboard.persist.*"%> -<%@ page import="blackboard.data.course.*"%> -<%@ page import="blackboard.data.user.*"%> -<%@ page import="blackboard.persist.course.*"%> -<%@ page import="blackboard.data.content.*"%> -<%@ page import="blackboard.persist.content.*"%> -<%@ page import="blackboard.db.*"%> -<%@ page import="blackboard.base.*"%> -<%@ page import="blackboard.platform.*"%> -<%@ page import="blackboard.platform.persistence.*"%> -<%@ page import="blackboard.platform.plugin.*"%> <%@ page errorPage="/error.jsp"%> <%@ taglib uri="/bbNG" prefix="bbNG"%> +<%@ taglib uri="/tags-core" prefix="c"%> -<% - // Authorise current user for Course Control Panel (automatic redirect) - try{ - if (!PlugInUtil.authorizeForCourseControlPanel(request, response)) - return; - } catch(PlugInException e) { - throw new RuntimeException(e); - } - - // retrive the LAMS lesson - BbPersistenceManager bbPm = PersistenceServiceFactory.getInstance().getDbPersistenceManager(); - Container bbContainer = bbPm.getContainer(); - Id contentId = new PkId( bbContainer, CourseDocument.DATA_TYPE, request.getParameter("content_id") ); - ContentDbLoader courseDocumentLoader = (ContentDbLoader) bbPm.getLoader( ContentDbLoader.TYPE ); - Content bbContent = (Content)courseDocumentLoader.loadById( contentId ); - - // get LAMS lessons's properties - Calendar startDate = bbContent.getStartDate(); - Calendar endDate = bbContent.getEndDate(); - FormattedText description = bbContent.getBody(); -%> - <%-- Breadcrumbs --%> <%-- Page Header --%> - + - <%-- Form for the LAMS Lesson Attributes --%> -
+ "> "> @@ -75,46 +34,57 @@ - + - + - >Yes - >No + checked>Yes + checked>No - >Yes - >No + checked>Yes + checked>No - >Yes - >No + checked>Yes + checked>No <%-- Show start and end dates if they have been set If non ehave been set, leave the tags out so that Blackboard puts the default dates in --%> - <% if(startDate==null && endDate==null) { %> + + - <% } else if(endDate==null) { %> - - <% } else if(startDate==null) { %> - - <% } else { %> - - <% } %> + + + + + + + + + + + @@ -124,10 +94,8 @@
-