Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaAuthoringForm.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/Attic/QaAuthoringForm.java,v diff -u -r1.12 -r1.13 --- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaAuthoringForm.java 8 Mar 2006 15:31:08 -0000 1.12 +++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaAuthoringForm.java 30 Mar 2006 22:17:20 -0000 1.13 @@ -40,7 +40,8 @@ protected String submitOfflineFile; protected String submitOnlineFile; protected String dispatch; - + protected String currentTab; + protected String choice; protected String choiceBasic; protected String choiceAdvanced; @@ -58,6 +59,7 @@ protected FormFile theOfflineFile; protected FormFile theOnlineFile; + protected String toolContentID; /* advanced content */ protected String synchInMonitor; protected String reportTitle; @@ -126,6 +128,8 @@ this.editActivityMonitoring=null; this.statsMonitoring=null; this.edit=null; + this.toolContentID=null; + this.currentTab=null; } public void resetRadioBoxes() @@ -526,4 +530,31 @@ public void setDispatch(String dispatch) { this.dispatch = dispatch; } + + /** + * @return Returns the toolContentID. + */ + public String getToolContentID() { + return toolContentID; + } + /** + * @param toolContentID The toolContentID to set. + */ + public void setToolContentID(String toolContentID) { + this.toolContentID = toolContentID; + } + + + /** + * @return Returns the currentTab. + */ + public String getCurrentTab() { + return currentTab; + } + /** + * @param currentTab The currentTab to set. + */ + public void setCurrentTab(String currentTab) { + this.currentTab = currentTab; + } } Index: lams_tool_laqa/web/WEB-INF/lams.tld =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/WEB-INF/Attic/lams.tld,v diff -u -r1.6 -r1.7 --- lams_tool_laqa/web/WEB-INF/lams.tld 24 Feb 2006 15:06:00 -0000 1.6 +++ lams_tool_laqa/web/WEB-INF/lams.tld 30 Mar 2006 22:17:20 -0000 1.7 @@ -1,53 +1,81 @@ - - + - 1.0 - 1.1 - lams + 1.0 + lams - + LAMSTags + + Output the Server URL as defined in the lams.xml configuration file. + LAMS URL + + LAMSURL - org.lamsfoundation.lams.web.tag.LAMSURLTag - + org.lamsfoundation.lams.web.tag.LAMSURLTag + empty + Output details from the shared session UserDTO object + user details + + user - org.lamsfoundation.lams.web.tag.UserTag - + org.lamsfoundation.lams.web.tag.UserTag + empty property true - true + true + + Output the basic URL for the current webapp. e.g. http://server/lams/tool/nb11/ + Base URL for the current web app + + WebAppURL - org.lamsfoundation.lams.web.tag.WebAppURLTag - + org.lamsfoundation.lams.web.tag.WebAppURLTag + empty + Output stylesheet based on the user preferences. + User's chosen stylesheet + + css - org.lamsfoundation.lams.web.tag.CssTag - + org.lamsfoundation.lams.web.tag.CssTag + empty + + localLink + false + + true + + + STRUTS-textarea org.lamsfoundation.lams.web.tag.MultiLinesTextareaTag + empty accesskey false @@ -224,5 +252,25 @@ true + + Tab + /WEB-INF/tags/Tab.tag + + + Tabs + /WEB-INF/tags/Tabs.tag + + + TabBody + /WEB-INF/tags/TabBody.tag + + + HTMLEditor + /WEB-INF/tags/HTMLEditor.tag + + + SetEditor + /WEB-INF/tags/SetEditor.tag + Index: lams_tool_laqa/web/author_page/css/aqua.css =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/author_page/css/Attic/aqua.css,v diff -u -r1.4 -r1.5 --- lams_tool_laqa/web/author_page/css/aqua.css 23 Feb 2006 20:14:03 -0000 1.4 +++ lams_tool_laqa/web/author_page/css/aqua.css 30 Mar 2006 22:18:44 -0000 1.5 @@ -72,52 +72,60 @@ } /********* tab styles **********/ -/** Tab layout **/ -.tabmenu ul{ - list-style: none; - padding: 0px; - margin: 0px; +/*tab styles*/ +.tab{ + text-align:center; } -.tabmenu li{ - float: left; - margin: 0px 0px; - padding: 0px; - text-align: center +.tab a{ + font-size: 11px; + color: #000000; + text-decoration:none; } +.tab a:hover{ + font-size: 11px; + color: #000000; + text-decoration:underline +} +.tabcentre{ + background-image:url(../images/aqua_tab_centre.gif); + background-repeat:repeat-x; +} -/** Non Selected tab style **/ -.tabitem .tableft{ - background: url(../images/aqua_tab_left.gif) no-repeat top left; +.tabcentre_selected{ + background-image:url(../images/aqua_tab_s_centre.gif); + background-repeat:repeat-x; } -.tabitem .tabright{ - background: url(../images/aqua_tab_right.gif) no-repeat top right; + +.tabcentre_inactive{ + background-image:url(../images/aqua_tab_i_centre.gif); + background-repeat:repeat-x; } -.tabitem a, .tabitem a:hover, .tabitem a:active, .tabitem a:visited{ - background: url(../images/aqua_tab_centre.gif) 0 0 repeat-x; - margin:0px 8px; - font-size: 11px; - padding: 4px 10px 1px 10px; - color: #000000; - text-decoration:none; + +/** Non Selected tab style **/ +.tableft td{ + background: url(../images/aqua_tab_left.gif) no-repeat; } +.tabright td{ + background: url(../images/aqua_tab_right.gif) no-repeat; +} /** Selected tab style **/ -.tabitem_selected .tableft{ - background: url(../images/aqua_tab_s_left.gif) no-repeat top left; +.tableft_selected td{ + background: url(../images/aqua_tab_s_left.gif) no-repeat; } -.tabitem_selected .tabright{ - background: url(../images/aqua_tab_s_right.gif) no-repeat top right; + +.tableft_inactive td{ + background: url(../images/aqua_tab_i_left.gif) no-repeat; } -.tabitem_selected a, .tabitem_selected a:hover, .tabitem_selected a:active, .tabitem_selected a:visited{ - background: url(../images/aqua_tab_s_centre.gif) 0 0 repeat-x; - margin:0px 8px; - font-size: 11px; - padding: 4px 10px 1px 10px; - color: #000000; - text-decoration:none; + +.tabright_selected td{ + background: url(../images/aqua_tab_s_right.gif) no-repeat; } +.tabright_inactive td{ + background: url(../images/aqua_tab_i_right.gif) no-repeat; +} /*Tab content containers*/ .tabbody{ Index: lams_tool_laqa/web/author_page/images/Thumbs.db =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/author_page/images/Attic/Thumbs.db,v diff -u -r1.3 -r1.4 Binary files differ Index: lams_tool_laqa/web/author_page/images/aqua_tab_i_centre.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/author_page/images/Attic/aqua_tab_i_centre.gif,v diff -u Binary files differ Index: lams_tool_laqa/web/author_page/images/aqua_tab_i_left.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/author_page/images/Attic/aqua_tab_i_left.gif,v diff -u Binary files differ Index: lams_tool_laqa/web/author_page/images/aqua_tab_i_right.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/author_page/images/Attic/aqua_tab_i_right.gif,v diff -u Binary files differ Index: lams_tool_laqa/web/author_page/js/tabcontroller.js =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/author_page/js/Attic/tabcontroller.js,v diff -u -r1.4 -r1.5 --- lams_tool_laqa/web/author_page/js/tabcontroller.js 23 Feb 2006 20:14:03 -0000 1.4 +++ lams_tool_laqa/web/author_page/js/tabcontroller.js 30 Mar 2006 22:18:44 -0000 1.5 @@ -15,10 +15,23 @@ selectedTabID = tabID; //change the old tab's class - document.getElementById("tab" + selectedTabID).className = "tabitem"; + document.getElementById("tab" + selectedTabID).className = "tab tabcentre"; + //swap images of side parts + var tl = document.getElementById("tableft_"+selectedTabID); + tl.src= imgRoot + themeName + "_tab_left.gif"; + tl.height = 22; + var tr = document.getElementById("tabright_"+selectedTabID); + tr.src= imgRoot + themeName + "_tab_right.gif"; + tr.height = 22; //change the new tab's class - document.getElementById("tab" + tabID).className = "tabitem_selected"; + document.getElementById("tab" + tabID).className = "tab tabcentre_selected"; + var tl = document.getElementById("tableft_"+tabID); + tl.src= imgRoot + themeName + "_tab_s_left.gif"; + tl.height = 25; + var tr = document.getElementById("tabright_"+tabID); + tr.src= imgRoot + themeName + "_tab_s_right.gif"; + tr.height = 25; //save tabID as selectedTabID selectedTabID = tabID; Index: lams_tool_laqa/web/authoring/AdvancedContent.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/authoring/AdvancedContent.jsp,v diff -u -r1.4 -r1.5 --- lams_tool_laqa/web/authoring/AdvancedContent.jsp 24 Feb 2006 15:06:00 -0000 1.4 +++ lams_tool_laqa/web/authoring/AdvancedContent.jsp 30 Mar 2006 22:17:20 -0000 1.5 @@ -27,7 +27,6 @@ <%@ taglib uri="fck-editor" prefix="FCK" %> <%@ taglib uri="tags-lams" prefix="lams" %> -
@@ -124,9 +123,9 @@
-
+ Index: lams_tool_laqa/web/authoring/AuthoringTabs.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/authoring/Attic/AuthoringTabs.jsp,v diff -u -r1.1 -r1.2 --- lams_tool_laqa/web/authoring/AuthoringTabs.jsp 5 Mar 2006 13:23:14 -0000 1.1 +++ lams_tool_laqa/web/authoring/AuthoringTabs.jsp 30 Mar 2006 22:17:20 -0000 1.2 @@ -30,102 +30,20 @@ - - - -
- -
    
- - -
-
    -
  • -
  • -
  • -
-
- -
+ +
+ + + + + - - - - - -
-
- -
- -
- Cancel - -
+ +
+ + - -
-

-
- -
-
-
- - - - + - - -
-

-
- -
-
-
-
- - - - - \ No newline at end of file Index: lams_tool_laqa/web/authoring/AuthoringTabsHolder.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/authoring/AuthoringTabsHolder.jsp,v diff -u -r1.3 -r1.4 --- lams_tool_laqa/web/authoring/AuthoringTabsHolder.jsp 5 Mar 2006 23:08:47 -0000 1.3 +++ lams_tool_laqa/web/authoring/AuthoringTabsHolder.jsp 30 Mar 2006 22:17:20 -0000 1.4 @@ -27,157 +27,141 @@ <%@ taglib uri="fck-editor" prefix="FCK" %> <%@ taglib uri="tags-lams" prefix="lams" %> +<%@ page import="java.util.LinkedHashSet" %> +<%@ page import="java.util.Set" %> + + <% + Set tabs = new LinkedHashSet(); + tabs.add("label.basic"); + tabs.add("label.advanced"); + tabs.add("label.instructions"); + pageContext.setAttribute("tabs", tabs); + + Set tabsBasic = new LinkedHashSet(); + tabsBasic.add("label.basic"); + pageContext.setAttribute("tabsBasic", tabsBasic); + %> + -<% -String protocol = request.getProtocol(); -if(protocol.startsWith("HTTPS")){ - protocol = "https://"; -}else{ - protocol = "http://"; -} -String root = protocol+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/"; -String pathToLams = protocol+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/../.."; + + + + + <bean:message key="label.authoring"/> + + + -%> + + + + - + - - - - - - - - - - - - - - - - - + } + + function doSelectTab(tabId) { + // start optional tab controller stuff + var tag = document.getElementById("currentTab"); + tag.value = tabId; + // end optional tab controller stuff + selectTab(tabId); + } + + function doSubmit(method) { + document.QaAuthoringForm.dispatch.value=method; + document.QaAuthoringForm.submit(); + } + + + + + + + - - - - - - - - - + -
- - -      - -
-
- - - - - -
- -
-
- - - -
- -
-
- - - - - -
- -
-
-
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + +
+ + + + + + + + + - \ No newline at end of file + Index: lams_tool_laqa/web/authoring/BasicContent.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/authoring/BasicContent.jsp,v diff -u -r1.9 -r1.10 --- lams_tool_laqa/web/authoring/BasicContent.jsp 21 Mar 2006 14:52:22 -0000 1.9 +++ lams_tool_laqa/web/authoring/BasicContent.jsp 30 Mar 2006 22:17:20 -0000 1.10 @@ -28,7 +28,6 @@ <%@ taglib uri="tags-lams" prefix="lams" %> -

@@ -48,67 +47,32 @@
- + - + + - + - + + @@ -120,26 +84,14 @@ - @@ -154,18 +106,20 @@
: - - -
- -
- -
- +
+
: - - -
- -
- -
-
+ +
: - - -
- -
- -
-
+ +
: - - " style="visibility: hidden; display: none;"> -
- ')"> -
-
.text">
-
- "> - - - + +
+ + + onclick="removeQuestion(${queIndex});">
- -
+
+ Cancel + + + +