Subversion Repositories Sigmater

Rev

Blame | Last modification | View Log | Download | RSS feed

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>


<%@page import="org.sigmater.srm.SrmAuthenticationException"%>
<%@page import="java.util.Enumeration"%><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" lang="it">
        <head>
                <title>Sigmater - Login</title>
                <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> 
                <meta content="it" http-equiv="Content-Language" />
                <link href="<%=request.getContextPath()%>/img/favicon.ico" rel="shortcut icon" />
                
                <style type="text/css">
                <!--
                
                html,
                body {
                    background: url("../img/s3Body-bg-wave.gif") repeat scroll 0 0 #9A9B9B;
                    font-family: sans-serif;
                    height: 95%;
                    margin: 15px auto;
                    min-height: 95%;
                    width: 95%;
                }
                
                input.textfield:focus,
                input.textfield {
                    border: 1px solid;
                    font-size: 18px;
                    padding: 6px;
                    font-family: sans-serif;
                }
                
                input.textfield:focus {
                        background-color:#ffff99;
                }
                
                input.button {
                    border: 1px solid;
                    cursor: pointer;
                    margin-top: 25px;
                    padding: 6px;
                    width: 120px;
                }
                
                label {
                    font-size: 14px;
                }
                
                #logo {
                    background-image: url("../img/logo.jpg");
                    background-position: right center;
                    background-repeat: no-repeat;
                    background-size: 300px auto;
        }
        
                #messaggi {
                        text-align:center;
                        color:red;
                        font-weight:bold;
                }
                
                #messaggi ul li {
                        list-style:none;
                }
                // -->
                </style>

        </head> 
        <body style="background-color: white;">
                <div id="global" style="height:100%;">
                        <div style="height:100%;">
                                <table class="loginTable" style="width:100%;height:100%;background-color:#f2f2f2;border:1px solid black;" border="0" cellpadding="0" cellspacing="40">
                                        <tr>
                                                <td id="logo" style="width:45%;">
                                                </td>
                                                <td style="width:55%;">
                                                        <form id="LoginForm" action="<%=request.getContextPath()%>/j_spring_security_check" method="post">
                                                                <table style="border-top: 1px solid lightgray;border-bottom: 1px solid lightgray;" border="0" cellpadding="3" cellspacing="0">
                                                                        <tr>
                                                                                <td colspan="2" style="text-align:right;height:30px;">
                                                                                </td>
                                                                        </tr>
                                                                        <tr>
                                                                                <td style="text-align:right;width:130px;">
                                                                                        <label for="username">Username:</label>
                                                                                </td>
                                                                                <td><input class="textfield" id="username" type="text" name="j_username" /></td>
                                                                        </tr>
                                                                        <tr>
                                                                                <td style="text-align:right;width:130px;">
                                                                                        <label for="password">Password:</label>
                                                                                </td>
                                                                                <td><input class="textfield" id="password" type="password" autocomplete="off" name="j_password" /></td>
                                                                        </tr>
                                                                        <tr>
                                                                                <td colspan="2" style="text-align:right;">
                                                                                        <%
                                                                                                String message = "";
                                                                                                Object exception = session.getAttribute("SPRING_SECURITY_LAST_EXCEPTION");
                                                                                                if (exception != null) {
                                                                                                        if (exception instanceof SrmAuthenticationException) {
                                                                                                                message = "Username e/o password non corretti.";
                                                                                                        } else {
                                                                                                                message = exception.toString();
                                                                                                        }
                                                                                                }
                                                                                        %>
                                                                                        <div id="messaggi">
                                                                                                <ul><li><%=message%></li></ul>
                                                                                        </div>
                                                                                        <input class="button" type="submit" value="Accedi" />
                                                                                </td>
                                                                        </tr>
                                                                        <tr>
                                                                                <td colspan="2" style="text-align:right;height:30px;">
                                                                                </td>
                                                                        </tr>
                                                                </table>
                                                        </form>
                                                </td>
                                        </tr>
                                </table>
                        </div>
                </div>
        </body>
</html>