<%@ include file="defines/defines.jsp" %> <% String addModule = (String)request.getParameter("add"); if (addModule != null) { SWModule m = mgr.getModuleByName( addModule ); if (m != null) { parDispModules.remove(addModule); parDispModules.add(parDispModules.size(),addModule); } } String delModule = (String)request.getParameter("del"); if (delModule != null) { parDispModules.remove(delModule); } if (parDispModules.size() == 0) { parDispModules.add(0, "KJV"); } SWModule activeModule = mgr.getModuleByName((String)parDispModules.get(0)); String resetKey = request.getParameter("key"); if (resetKey != null) session.setAttribute("ActiveKey", resetKey); String activeKey = (String) session.getAttribute("ActiveKey"); if (activeKey == null) activeKey = "jas 1:19"; %> <%-- override lookup URL, so this script is used to display the keys --%>

Translations:

Displayed modules (click to remove)

    <% for (int i = 0; i < parDispModules.size(); i++) { SWModule module = mgr.getModuleByName((String)parDispModules.get(i)); if (module != null && module.getType().equals(SwordOrb.BIBLES)) { %>
  • <%= module.getDescription().replaceAll("&", "&") %>
  • <% } } %>

Available modules (click to add)

    <% for (int i = 0; i < modInfo.length; i++) { if (modInfo[i].type.equals(SwordOrb.BIBLES)) { SWModule module = mgr.getModuleByName(modInfo[i].name); if ( parDispModules.contains(module.getName()) ) { continue; } %>
  • <%= module.getDescription().replaceAll("&", "&") %>
  • <% } } %>

Comentaries:

Displayed modules (click to remove)

    <% for (int i = 0; i < parDispModules.size(); i++) { SWModule module = mgr.getModuleByName((String)parDispModules.get(i)); if (module != null && module.getType().equals(SwordOrb.COMMENTARIES)) { %>
  • <%= module.getDescription().replaceAll("&", "&") %>
  • <% } } %>

Available modules (click to add)

    <% for (int i = 0; i < modInfo.length; i++) { if (modInfo[i].type.equals(SwordOrb.COMMENTARIES)) { SWModule module = mgr.getModuleByName(modInfo[i].name); if ( parDispModules.contains(module.getName()) ) { continue; } %>
  • <%= module.getDescription().replaceAll("&", "&") %>
  • <% } } %>
<% if (activeModule != null) { activeModule.setKeyText(activeKey); activeKey = activeModule.getKeyText(); // be sure it's formatted nicely } %>

<%= activeKey %>

» <%= activeModule.getDescription().replaceAll("&", "&") + " (" + activeModule.getName() + ")" %>

<% activeModule = mgr.getModuleByName((String)parDispModules.get(0)); if (activeModule.getType().equals(SwordOrb.BIBLES) || activeModule.getType().equals(SwordOrb.COMMENTARIES)) { %>
<% //insert module names at the top for (int i = 0; i < parDispModules.size(); i++) { SWModule mod = mgr.getModuleByName((String)parDispModules.get(i)); %>
<%= mod.getDescription() %>
<% } %>
<% String chapterPrefix = activeKey.substring(0, activeKey.indexOf(":")); for (activeModule.setKeyText(chapterPrefix + ":1"); (activeModule.error() == (char)0); activeModule.next()) { String keyText = activeModule.getKeyText(); if (!chapterPrefix.equals(keyText.substring(0, keyText.indexOf(":")))) break; %>
<% for (int i = 0; i < parDispModules.size(); i++) { SWModule mod = mgr.getModuleByName((String)parDispModules.get(i)); if (mod != activeModule) mod.setKeyText( keyText ); boolean rtol = ("RtoL".equalsIgnoreCase(mod.getConfigEntry("Direction"))); %>
" dir="<%= rtol ? "rtl" : "ltr" %>" class="<%= (keyText.equals(activeKey)) ? "currentverse" : "verse" %>"> <%= keyText.substring(keyText.indexOf(":")+1) %> <%= new String(mod.getRenderText().getBytes("iso-8859-1"), "UTF-8") %>
<% } %>
<% } } %>