[sword-cvs] swordweb/layouts base-layout.jsp,1.14,1.15
sword@www.crosswire.org
sword@www.crosswire.org
Mon, 10 Nov 2003 14:12:49 -0700
- Previous message: [sword-cvs] swordweb init.jsp,1.5,1.6 preferences.jsp,1.8,1.9
- Next message: [sword-cvs] swordweb sandy.css,NONE,1.1 index.jsp,1.15,1.16 init.jsp,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/local/cvsroot/swordweb/layouts
In directory www:/tmp/cvs-serv22485/layouts
Modified Files:
base-layout.jsp
Log Message:
Added dynamic stylesheet / user pref options
Index: base-layout.jsp
===================================================================
RCS file: /usr/local/cvsroot/swordweb/layouts/base-layout.jsp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- base-layout.jsp 8 Nov 2003 16:42:22 -0000 1.14
+++ base-layout.jsp 10 Nov 2003 21:12:46 -0000 1.15
@@ -7,12 +7,17 @@
<head>
<title>OSIS Web:<tiles:getAsString name="title"/></title>
-<link rel="stylesheet" type="text/css" media="all" title="Washed Out" href="wash.css" />
-<link rel="alternate stylesheet" type="text/css" media="all" title="Washed Out" href="wash.css.css" />
-<link rel="alternate stylesheet" type="text/css" media="all" title="Sandy Creek" href="sandy.css" />
-<link rel="alternate stylesheet" type="text/css" media="all" title="Parchment" href="parchment.css" />
-<link rel="alternate stylesheet" type="text/css" media="all" title="Testing 1 2 3" href="test.css" />
-<link rel="alternate stylesheet" type="text/css" media="all" title="No Style" href="blank.css" />
+<%
+ int style = styleNames.indexOf(prefStyle);
+ String styleName = (String)styleNames.get(style);
+ String styleFile = (String)styleFiles.get(style);
+%>
+
+<link rel="stylesheet" type="text/css" media="all" title="<%= styleName %>" href="<%= styleFile %>" />
+
+<% for (int i = 0; i < styleNames.size(); i++) { %>
+<link rel="alternate stylesheet" type="text/css" media="all" title="<%= (String)styleNames.get(i) %>" href=" (String)styleFiles.get(i) %>" />
+<% } %>
<!--For printing stuff -->
<link rel="stylesheet" type="text/css" media="print" href="print.css" />
- Previous message: [sword-cvs] swordweb init.jsp,1.5,1.6 preferences.jsp,1.8,1.9
- Next message: [sword-cvs] swordweb sandy.css,NONE,1.1 index.jsp,1.15,1.16 init.jsp,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]