Reformatted code, updated to new Analytics tags, fixed a problem with EmailAuthenticator
[zxing.git] / zxingorg / web / decode.jspx
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright (C) 2008 Google Inc.
4
5  Licensed under the Apache License, Version 2.0 (the "License");
6  you may not use this file except in compliance with the License.
7  You may obtain a copy of the License at
8
9       http://www.apache.org/licenses/LICENSE-2.0
10
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16  -->
17 <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns="http://www.w3.org/1999/xhtml" version="2.1">
18   <jsp:output
19           omit-xml-declaration="false" doctype-root-element="html"
20           doctype-public="-//W3C//DTD XHTML 1.1//EN"
21           doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"/>
22   <jsp:directive.page contentType="text/html" session="false"/>
23   <jsp:scriptlet>response.setHeader("Cache-Control", "public");</jsp:scriptlet>
24   <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
25     <head>
26       <title>ZXing Decoder Online</title>
27     </head>
28     <body>
29
30       <h1>ZXing Decoder Online</h1>
31
32       <p><b>Under Construction</b>: This is a simple page that will let you decode a 1D or 2D barcode found
33         in an image online. Enter a URL below.
34       </p>
35
36       <form action="decode" method="get">
37         <p>
38           <input type="text" size="50" name="u"/>
39           <input type="submit"/>
40         </p>
41       </form>
42
43       <p>Or try uploading a file:</p>
44
45       <form action="decode" method="post" enctype="multipart/form-data">
46         <p>
47           <input type="file" size="50" name="f"/>
48           <input type="submit"/>
49         </p>
50       </form>
51
52       <p>See the
53         <a href="http://code.google.com/p/zxing">project page</a>
54         for details.
55       </p>
56
57       <script type="text/javascript">
58         var gaJsHost = (("https:" == document.location.protocol) ?
59         "https://ssl." : "http://www.");
60         document.write(unescape("%3Cscript src='" + gaJsHost +
61         "google-analytics.com/ga.js'
62         type='text/javascript'%3E%3C/script%3E"));
63       </script>
64       <script type="text/javascript">
65         var pageTracker = _gat._getTracker("UA-788492-5");
66         pageTracker._initData();
67         pageTracker._trackPageview();
68       </script>
69
70     </body>
71   </html>
72 </jsp:root>