[sword-cvs] swordweb/tiles header.jsp,1.10,1.11

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


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

Modified Files:
	header.jsp 
Log Message:
printing feature

Index: header.jsp
===================================================================
RCS file: /usr/local/cvsroot/swordweb/tiles/header.jsp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- header.jsp	24 Sep 2003 02:09:50 -0000	1.10
+++ header.jsp	24 Sep 2003 18:19:34 -0000	1.11
@@ -12,5 +12,15 @@
         <li><a href="about.jsp" title="About">About</a></li>
         <li><a href="help.jsp" title="Help">Help</a></li>
       </ul>
+		<%
+		String uri = request.getRequestURI();
+		if (request.getQueryString() != null) {
+			uri += "?print=1&" + request.getQueryString();
+		}
+		else {
+			uri += "?print=1";
+		}
+		%>
+		&nbsp;&nbsp;&nbsp;&nbsp;<a target="_blank" href="<%= uri %>">Print</a>
     </div>
   </div>