<%-- 
    Document   : Login
    Created on : Jan 2, 2010, 11:04:18 AM
    Author     : sinem
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>

        <link href="../design/css/login.css" type="text/css" rel="stylesheet" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Tren Bilgi Sistemi!</title>
    </head>
    <body>
        <font id="header"></font>
        <%
                    String url = request.getQueryString();
               if(url!=null){
                    if (url.indexOf('=') != -1) {
                        String error = url.substring(url.indexOf('=') + 1);
                        if (error.equals("1")) {
        %>
        <p id="Error" align="center">Yanlış kullanıcı adı ya da şifre!</p>
        <%                     }
                                if (error.equals("2")) {
        %>
        <p id="Error" align="center">Please sign in to perform this action!</p>
        <%                     }
                                if (error.equals("3")) {
        %>
        <p id="Error" align="center">Hesabınız henüz aktive edilmedi.<br /> Lütfen e-mail adresinizi kontrol edin!</p>
        <% }                   
                                if (error.equals("4")) {
        %>
         <p id="Error" align="center">Please login to use this feature!</p>
         <%                     }
                                if (error.equals("5")) {
        %>
        <p id="Error" align="center"><b>Lütfen tüm alanları doldurunuz!</b></p>

        <% }

                    }}%>
                    <table id="general">
        <form name="userLoginForm" action="../VerifyUser?Error=1" method="POST">
            <tr><td>Kullanıcı adı: </td><td> <input type="text" name="userName" value="" size="30" /></td></tr>
            <tr><td>Şifre:</td><td>  <input type="password" name="password" value="" size="30" /></td></tr>
            <tr><td colspan="2" align="right"><input type="submit" value="Login" name="loginButton" /></td></tr>
        </form></table>
        <a id="register" href="Register.jsp">Yeni Kullanıcı >></a><br />

        
    </body>
</html>
