extensions/net.sf.basedb.reggie/trunk/resources/print_template.jsp

Code
Comments
Other
Rev Date Author Line
1849 18 Feb 13 nicklas 1 <%@ page
1849 18 Feb 13 nicklas 2   pageEncoding="UTF-8"
1849 18 Feb 13 nicklas 3   session="false"
1849 18 Feb 13 nicklas 4   import="net.sf.basedb.core.User"
1849 18 Feb 13 nicklas 5   import="net.sf.basedb.core.DbControl"
1849 18 Feb 13 nicklas 6   import="net.sf.basedb.core.SessionControl"
1849 18 Feb 13 nicklas 7   import="net.sf.basedb.core.Application"
1849 18 Feb 13 nicklas 8   import="net.sf.basedb.util.Values"
1849 18 Feb 13 nicklas 9   import="net.sf.basedb.util.extensions.Extension"
1849 18 Feb 13 nicklas 10   import="net.sf.basedb.clients.web.Base"  
1849 18 Feb 13 nicklas 11   import="net.sf.basedb.clients.web.util.HTML"
1849 18 Feb 13 nicklas 12   import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
1849 18 Feb 13 nicklas 13   import="java.util.List"
1849 18 Feb 13 nicklas 14   import="java.util.ArrayList"
1849 18 Feb 13 nicklas 15 %>
2919 11 Nov 14 nicklas 16 <%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
1849 18 Feb 13 nicklas 17 <%
3976 26 May 16 nicklas 18 final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true);
1849 18 Feb 13 nicklas 19 final String ID = sc.getId();
2919 11 Nov 14 nicklas 20 final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie");
1912 20 Mar 13 nicklas 21 final String extraStyles = request.getParameter("extraStyles");
2919 11 Nov 14 nicklas 22 String styles = "~css/reggie-2.css,~css/printable.css";
2919 11 Nov 14 nicklas 23 if (extraStyles != null)
2919 11 Nov 14 nicklas 24 {
2919 11 Nov 14 nicklas 25   styles += ",~css/"+extraStyles;
2919 11 Nov 14 nicklas 26 }
1849 18 Feb 13 nicklas 27 %>
3026 11 Dec 14 nicklas 28 <base:page type="iframe" favicon="<%=home+"/images/print.png"%>" noskin="true">
2919 11 Nov 14 nicklas 29 <base:head
2919 11 Nov 14 nicklas 30   scripts="~print.js"
2919 11 Nov 14 nicklas 31   styles="<%=styles%>"
2919 11 Nov 14 nicklas 32 />
2919 11 Nov 14 nicklas 33 <base:body>
1849 18 Feb 13 nicklas 34   <div class="paper" id="paper">
2970 24 Nov 14 nicklas 35     <div id="print-instructions" class="noprint fullwidth">
2970 24 Nov 14 nicklas 36       <base:button id="print-button" image="<%=home+"/images/print.png"%>" title="Print&hellip;" />
1849 18 Feb 13 nicklas 37       <span id="printNote"></span>
1849 18 Feb 13 nicklas 38       <br clear="all">
1849 18 Feb 13 nicklas 39     </div>
1859 19 Feb 13 nicklas 40     <div id="printarea"></div>
1849 18 Feb 13 nicklas 41   </div>
2919 11 Nov 14 nicklas 42 </base:body>
2919 11 Nov 14 nicklas 43 </base:page>