<%-- $HeadURL: svn+ssh://jwilden@svn.wald.intevation.org/deegree/apps/igeoportal-standard/branches/2.5_testing/modules/pdfprint/printtemplate_2.jsp $ --%>
<%-- $Id: printtemplate_2.jsp 24513 2010-05-20 12:13:00Z jmays $ --%>
<%-- 
 This file is part of deegree, http://deegree.org/
 Copyright (C) 2001-2009 by:
 - Department of Geography, University of Bonn -
 and
 - lat/lon GmbH -

 This library is free software; you can redistribute it and/or modify it under
 the terms of the GNU Lesser General Public License as published by the Free
 Software Foundation; either version 2.1 of the License, or (at your option)
 any later version.
 This library is distributed in the hope that it will be useful, but WITHOUT
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 details.
 You should have received a copy of the GNU Lesser General Public License
 along with this library; if not, write to the Free Software Foundation, Inc.,
 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

 Contact information:

 lat/lon GmbH
 Aennchenstr. 19, 53177 Bonn
 Germany
 http://lat-lon.de/

 Department of Geography, University of Bonn
 Prof. Dr. Klaus Greve
 Postfach 1147, 53001 Bonn
 Germany
 http://www.geographie.uni-bonn.de/deegree/

 e-mail: info@deegree.org
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="org.deegree.i18n.Messages" %>
<%@ page import="java.util.Locale" %>
<%
    Locale loc = request.getLocale();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
        <title>t2</title>
        <link href="../../css/deegree.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" charset="UTF-8">
        <!--

            function init() {
                parent.txtDoc = document;
            }

            function printMap( asPDF ) {
                var el = document.getElementsByTagName( 'textarea' );
                var a = new Array();
                var k = 0;
                for ( var i = 0; i < el.length; i++) {
                    a[k] = new Array(2);
                    a[k][0] = el[i].name;
                    a[k++][1] = el[i].value;
                }
                parent.printMap( a , asPDF );
            }

        // -->
        </script>
    </head>
    <body onload="init();" class="pPrintDialog">
        <table border="0" width="100">
            <tr>
                <td>
                    <%=Messages.get( loc, "IGEO_STD_PDF_TMPLT_TITLE" ) %><br>
                    <textarea id="T1" name="TITLE" ><%=Messages.get( loc, "IGEO_STD_PDF_TMPLT_TITLE_INP" ) %></textarea>
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>
                    <%=Messages.get( loc, "IGEO_STD_PDF_TMPLT_AUTHOR" ) %><br>
                    <textarea id="T2" name="AUTHOR"><%=Messages.get( loc, "IGEO_STD_PDF_TMPLT_AUTHOR_INP" ) %></textarea>
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>
                    <%=Messages.get( loc, "IGEO_STD_PDF_TMPLT_DESCRIPTION" ) %><br>
                    <textarea id="T3" name="DESCRIPTION"><%=Messages.get( loc, "IGEO_STD_PDF_TMPLT_DESCRIPTION_INP" ) %></textarea>
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>
                    <a href="javascript:printMap(true)" style="position: absolute; width:140px" class="buttonArea"><%=Messages.get( loc, "IGEO_STD_BTN_PRINTPDF" ) %></a><br><br>
                    <a href="javascript:printMap(false)" style="position: absolute; width:140px" class="buttonArea"><%=Messages.get( loc, "IGEO_STD_BTN_DWNLDIMAGE" ) %></a><br><br>
                    <a href="javascript:parent.close()" style="position: absolute; width:140px" class="buttonArea"><%=Messages.get( loc, "IGEO_STD_BTN_CLOSE" ) %></a><br>
                </td>
            </tr>      
        </table>
    </body>
</html>
