<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html"; charset=utf-8" />
        <link href="{{ asset('bundles/DorcasTabitha/css/loginform.css') }}" type="text/css" rel="stylesheet" />

    </head>
    <body>          


 <div style="padding-left:15%; border:1px groove gray; border-radius:9px; padding-right:15%; padding-top:50px; padding-bottom:50px;">

            <img src="{{ asset('bundles/dorcastabitha/images/fabricImage_liquify_logo.png') }}" >
	
    <div  style="position: absolute; top: 120px; width: 400px;">

        <div id="welcome">
            <br>&nbsp;<br> 
            <br>&nbsp;<br> 
            <br>&nbsp;<br> 
			 <br>
            <center>Welcome to the <big>Tabitha C</big><small>lient</small> <big>S</big><small>ervices</small> <big>M</big><small>anagement</small>
                <big>S</big><small>ystem</small>
				<br />
				Please Log In</center>
        </div>

	 
        <form action="{{ path("login_check") }}" method="post" id="login" style="border:3px groove DimGray;">
            <div style="margin-top:10px; width:270px;">	
                <label for="username">Username: </label>
                <input type="text" id="username" name="_username" value="{{ last_username }}" />
            </div>
            <br>
            <div style="margin-top:2px; width:270px;">
                <label for="password">Password: </label>
                <input type="password" id="password" name="_password" />
            </div>
            <br>

            {% if error %}
                <div class="error">{{ error.message }}</div>
            {% else %}
                <br />
            {% endif %}

            <div style=" padding-top:1px; padding-left:100px;">
                    <input type="submit" class="symfony-button-grey" value="  LOGIN  " />
            </div>  
            <br>

            <input type="hidden" name="_target_path" value="/private/" />
        </form>
	
    </div>	
</div>



<div id="footer">
    <br>

    <h8>Developed By:</h8>
    <br>
    <img src="{{ asset('bundles/dorcastabitha/images/jlsLogo_aqua.png') }}" alt="JLSConsulting" />

</div>

</body>

<script type="text/javascript">
window.onload = checkVersion();

    function getInternetExplorerVersion()
        // Returns the version of Internet Explorer or a -1
        // (indicating the use of another browser).
        {
        var rv = -1; // Return value assumes failure.
        if (navigator.appName == 'Microsoft Internet Explorer')
        {
            var ua = navigator.userAgent;
            var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
            if (re.exec(ua) != null)
            rv = parseFloat( RegExp.$1 );
        }
        return rv;
        }
        function checkVersion()
        {
        var msg = "You're not using Internet Explorer.";
        var ver = getInternetExplorerVersion();

            if ( ver < 9.0 && ver > 0 ) 
            {
                msg = "Please upgrade your browser to Internet Explorer 9.0.";
                alert( msg );
            }
            else if ( ver == -1 )
            {
                msg = "Please close this browser and open Internet Explorer 9.0.";
                alert( msg );
            }
        }
</script>

</html>
