Fixed issue 80. Obsolete test files were not updated with some changes in ExternalAPI...
[pithos] / war / coupon.jsp
1 <%--
2
3 Copyright 2010 Electronic Business Systems Ltd.
4
5 This file is part of GSS.
6
7 GSS is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 GSS is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GSS.  If not, see <http://www.gnu.org/licenses/>.
19
20 --%>
21 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
22 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
23
24 <%@page import="gr.ebs.gss.server.configuration.GSSConfigurationFactory"%>
25 <%@page import="java.net.URLDecoder"%>
26 <html>
27 <head>
28 <title><%= GSSConfigurationFactory.getConfiguration().getString("serviceName") %> Coupons</title>
29 <link href="/pithos/main.css" rel="stylesheet" type="text/css">
30 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
31 </head>
32 <body>
33 <div class="wrapper" >
34 <div class="header"></div>
35 <div class="image_logo">
36 <table><tr>
37   <td><a href="/"><img src="/pithos/images/service-logo.png"></img></a>
38 </tr></table>
39 </div> <!-- image_logo -->
40 <div style="clear: both; "> </div>
41 <div class="page_main">
42 <center>
43 <p class="blurb">Welcome to the <%= GSSConfigurationFactory.getConfiguration().getString("serviceName") %> storage service.
44 <%= GSSConfigurationFactory.getConfiguration().getString("couponsIntro") %></p>
45 <form method="post" action="/pithos/coupon">
46 <div class="error">
47     <%= request.getParameter("error") != null? URLDecoder.decode(request.getParameter("error"), "UTF-8"): "" %>
48 </div>
49     <table>
50         <tr>
51             <td>Code:</td>
52             <td><input type="text" name="code" title="Enter your code"/></td>
53         </tr>
54         <tr>
55             <td colspan="2" align="center">
56                 <input type="submit" value="Submit" />
57             </td>
58         </tr>
59     </table>
60 </form>
61 </center>
62 </div>
63 <div class="footer"></div>
64 </div> <!-- wrapper -->
65 </body>
66 </html>