<%@ include file="defines/tiles.jsp" %> <% String []addMods = request.getParameterValues("add"); if (addMods != null) { for (int i = 0; i < addMods.length; i++) { String addModule = addMods[i]; 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.contains(delModule)) { parDispModules.remove(delModule); } if (parDispModules.size() == 0) { parDispModules.add(0, "WEB"); //our standard, fallback module } 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"; // our fallback key %> <%-- override lookup URL, so this script is used to display the keys --%>

Translations:

Displayed modules (click to remove)


Available modules (click to add)

    <% for (int i = 0; i < modInfo.length; i++) { if (modInfo[i].category.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.getCategory().equals(SwordOrb.COMMENTARIES)) { %>
  • <%= module.getDescription().replaceAll("&", "&") %>
  • <% } } %>

Available modules (click to add)

    <% for (int i = 0; i < modInfo.length; i++) { if (modInfo[i].category.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 = mgr.getModuleByName((String)parDispModules.get(0)); if (activeModule.getCategory().equals(SwordOrb.BIBLES) || activeModule.getCategory().equals(SwordOrb.COMMENTARIES)) { %> <%-- table which contains all verse items --%> <% //insert module names at the top for (int i = 0; i < parDispModules.size(); i++) { SWModule mod = mgr.getModuleByName((String)parDispModules.get(i)); %> <% } %> <% 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)); boolean rtol = ("RtoL".equalsIgnoreCase(mod.getConfigEntry("Direction"))); if (mod != activeModule) mod.setKeyText( keyText ); %> <% } %> <% } } %>
»<%= mod.getDescription().replaceAll("&", "&") + " (" + mod.getName() + ")" %>
" class="<%= (keyText.equals(activeKey)) ? "currentverse" : "verse" %>" > <%= keyText.substring(keyText.indexOf(":")+1) %> <%= new String(mod.getRenderText().getBytes("iso-8859-1"), "UTF-8") %>