[sword-cvs] swordweb/layouts base-layout.jsp,1.6,1.7

sword@www.crosswire.org sword@www.crosswire.org
Wed, 24 Sep 2003 11:19:36 -0700


Update of /usr/local/cvsroot/swordweb/layouts
In directory www:/tmp/cvs-serv9165/layouts

Modified Files:
	base-layout.jsp 
Log Message:
printing feature

Index: base-layout.jsp
===================================================================
RCS file: /usr/local/cvsroot/swordweb/layouts/base-layout.jsp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- base-layout.jsp	24 Sep 2003 03:09:39 -0000	1.6
+++ base-layout.jsp	24 Sep 2003 18:19:34 -0000	1.7
@@ -6,11 +6,37 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 	<title>OSIS Web:<tiles:getAsString name="title"/></title>
-	<link href="blues.css" title="Blue" rel="stylesheet" type="text/css" />
-	<link href="wash.css" title="Washed Out" rel="alternate stylesheet" type="text/css" />
-	<link href="blank.css" title="Blank" rel="alternate stylesheet" type="text/css" />
+
+	<%
+		String print = request.getParameter("print");
+		if ("1".equals(print)) {
+	%>
+			<link href="print.css" title="Printer friendly" rel="stylesheet" type="text/css" />
+	<%
+		}
+		else {
+	%>
+			<link href="blues.css" title="Blue" rel="stylesheet" type="text/css" />
+			<link href="wash.css" title="Washed Out" rel="alternate stylesheet" type="text/css" />
+			<link href="blank.css" title="Blank" rel="alternate stylesheet" type="text/css" />
+	<%
+		}
+	%>
 </head>
-<body>
+
+<%
+	if ("1".equals(request.getParameter("print"))) {
+%>
+	<body onLoad="window.print();">
+<%
+	}
+	else {
+%>
+	<body>
+<%
+	}
+%>
+
 	<%-- include footer --%>
 	<tiles:insert attribute="header" />