[sword-cvs] swordweb parallelstudy.jsp,1.30,1.31

sword at www.crosswire.org sword at www.crosswire.org
Thu Apr 29 19:41:47 MST 2004


Update of /cvs/core/swordweb
In directory www:/tmp/cvs-serv15765

Modified Files:
	parallelstudy.jsp 
Log Message:
use colgroup and col for width to be xhtml compliant


Index: parallelstudy.jsp
===================================================================
RCS file: /cvs/core/swordweb/parallelstudy.jsp,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- parallelstudy.jsp	30 Apr 2004 02:05:23 -0000	1.30
+++ parallelstudy.jsp	30 Apr 2004 02:41:44 -0000	1.31
@@ -208,6 +208,18 @@
 		<table>
 		<caption>
 		</caption>
+
+		<colgroup>
+		<% //setup col attributes
+				for (int i = 0; i < parDispModules.size(); i++) {
+					SWModule mod = mgr.getModuleByName((String)parDispModules.get(i));
+		%>
+					<col width="<%= 100/parDispModules.size() %>%" />
+		<%
+				}
+		%>
+		</colgroup>
+
 		<thead>
 
 		<%
@@ -260,7 +272,7 @@
 						if (mod != activeModule)
 							mod.setKeyText( keyText );
 		%>
-							<td width="<%= 100/parDispModules.size() %>%" <%= rtol ? "dir=\"rtl\"" : "" %> class="<%= (keyText.equals(activeKey)) ? "currentverse" : "verse" %>">
+							<td <%= rtol ? "dir=\"rtl\"" : "" %> class="<%= (keyText.equals(activeKey)) ? "currentverse" : "verse" %>">
 								<span class="versenum">
 									<a <%= (keyText.equals(activeKey)) ? "id=\"cv\"" : "" %> href="parallelstudy.jsp?key=<%= URLEncoder.encode(keyText) %>#cv"> <%= keyText.substring(keyText.indexOf(":")+1) %></a>
 								</span>




More information about the sword-cvs mailing list